From db582914c36d92de14098fff2274811a2696114d Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期四, 07 九月 2023 10:54:48 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.218.113:9001/r/lims-before
---
src/views/message/toDo/index.vue | 226 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 225 insertions(+), 1 deletions(-)
diff --git a/src/views/message/toDo/index.vue b/src/views/message/toDo/index.vue
index 135a43e..ca79553 100644
--- a/src/views/message/toDo/index.vue
+++ b/src/views/message/toDo/index.vue
@@ -1,13 +1,237 @@
<template>
- <div>寰呭姙</div>
+ <div class="content-main">
+ <div class="top-bar">
+ <el-form ref="form" :inline="true" :model="searchData" style="margin-top: 10px;">
+ <el-form-item label="鏍囬:" class="sermargin">
+ <el-input
+ size="small"
+ v-model="searchData.title"
+ class="input-form"
+ placeholder="璇疯緭鍏ユ爣棰�"
+ >
+ </el-input>
+ </el-form-item>
+ <el-form-item label="鍐呭:" style="margin-right: 30px;">
+ <el-input
+ size="small"
+ v-model="searchData.content"
+ class="input-form"
+ placeholder="璇疯緭鍏ュ唴瀹�"
+ >
+ </el-input>
+ </el-form-item>
+ <el-form-item>
+ <el-button size="small" type="primary" @click="search">鏌ヨ</el-button>
+ <el-button size="small" type="primary" plain @click="reset">閲嶇疆</el-button>
+ </el-form-item>
+ </el-form>
+ <el-form style="margin-top: 10px;">
+ <el-button size="small" class="deleteBtn" plain type="primary" @click="deleteMessage" >鍒犻櫎</el-button>
+ <el-button size="small" type="primary" @click="readMessage" style="width: 110px;" >鏍囦负宸茶</el-button>
+ </el-form>
+ </div>
+ <div class="library-table">
+ <div class="table-header">
+ <el-radio-group v-model="radioValue" @change="radioclick">
+ <el-radio-button v-for="item in conditionsOptions" :key="item.value" :label="item.value">
+ {{ item.label }}
+ </el-radio-button>
+ </el-radio-group>
+ </div>
+ <div class="table-box">
+ <el-table
+ ref="toDoTable"
+ :max-height="800"
+ :cell-style="{textAlign: 'left'}"
+ :header-cell-style="{border:'0px',background:'#f5f7fa',color:'#606266',boxShadow: 'inset 0 1px 0 #ebeef5',textAlign: 'left'}"
+ :data="toDoTable"
+ @selection-change="handleSelectionChange"
+ style="width: 100%"
+ >
+ <el-table-column
+ prop="sender"
+ label="鍙戜欢浜�"
+ min-width="8%"
+ />
+ <el-table-column
+ prop="title"
+ label="鏍囬"
+ min-width="13%"
+ />
+ <el-table-column
+ prop="todo"
+ label="浠e姙鍐呭"
+ min-width="20%"
+ />
+ <el-table-column
+ prop="group"
+ label="鍒嗙粍"
+ min-width="15%"
+ />
+ <el-table-column
+ prop="level"
+ label="绛夌骇"
+ min-width="8%"
+ />
+ <el-table-column
+ prop="create_time"
+ label="鍒涘缓鏃堕棿"
+ min-width="12%"
+ />
+ <el-table-column
+ prop="deadline"
+ label="瑕佹眰瀹屾垚鏃堕棿"
+ min-width="12%"
+ />
+ <el-table-column
+ prop="state"
+ label="鐘舵��"
+ min-width="12%"
+ />
+ </el-table>
+ <!-- 鍒嗛〉鍣� -->
+ <div>
+ <el-pagination
+ @size-change="handleSizeChange"
+ @current-change="handleCurrentChange"
+ :current-page="currentPage"
+ :page-sizes="[5, 10, 15, 20]"
+ :page-size="pageSize"
+ layout="total, sizes, prev, pager, next, jumper"
+ :total="total">
+ </el-pagination>
+ </div>
+
+ </div>
+
+ </div>
+
+ </div>
</template>
<script>
export default {
+ data(){
+ return {
+ searchData: {
+ title: '',
+ content: ''
+ },
+ radioValue: 0,
+ conditionsOptions: [
+ {
+ label: '鍏ㄩ儴',
+ value: 0
+ },
+ {
+ label: '鏈鐞�',
+ value: 1
+ },
+ {
+ label: '宸插鐞�',
+ value: 2
+ },
+ {
+ label: '宸茶秴鏈�',
+ value: 3
+ }
+ ],
+ toDoTable:[],
+ selectionRows:[],
+ currentPage:1,
+ pageSize: 5,
+ total:100,
+
+ }
+ },
+ methods: {
+ deleteMessage(){
+ console.log(this.selectionRows)
+ },
+ readMessage(){
+ console.log(this.selectionRows)
+ },
+ // 鎹曡幏琛ㄦ牸閫夋嫨鐨勬暟鎹�
+ handleSelectionChange(selection){
+ this.selectionRows = selection
+ },
+ radioclick(){
+ console.log(this.radioValue)
+ },
+ handleSizeChange(val){
+ console.log(`褰撳墠姣忛〉${val}鏉℃暟鎹甡)
+ },
+ handleCurrentChange(val){
+ console.log(`褰撳墠鏄${val}椤礰)
+ }
+ }
}
</script>
<style lang="scss" scoped>
+.content-main{
+ width: 100%;
+ .top-bar{
+ margin: -25px -15px;
+ padding: 5px 24px 0px 24px;
+ display: flex;
+ justify-content: space-between;
+ background-color: #fff;
+ .sermargin{
+ margin-right: 60px;
+ }
+ .deleteBtn{
+ background-color: #fff;
+ border: 1px solid rgb(225, 222, 222);
+ color: rgb(184, 182, 182);
+ }
+ .deleteBtn:active {
+ outline: none; /* 鍘婚櫎鎸夐挳鐨勯粯璁ょ偣鍑绘椂鐨勫杈规 */
+ box-shadow: 0 0 4px rgb(142, 141, 141); /* 娣诲姞鐐瑰嚮鏃剁殑闃村奖鏁堟灉锛岄鑹茶涓虹伆鑹� */
+ }
+ .deleteBtn:hover {
+ outline: none; /* 鍘婚櫎鎸夐挳鐨勯粯璁ょ偣鍑绘椂鐨勫杈规 */
+ background-color: rgb(233, 233, 233); /* 娣诲姞鐐瑰嚮鏃剁殑闃村奖鏁堟灉锛岄鑹茶涓虹伆鑹� */
+ }
+ .deleteBtn:focus {
+ outline: none; /* 鍘婚櫎鎸夐挳鐨勯粯璁ょ偣鍑绘椂鐨勫杈规 */
+ background-color: rgb(233, 233, 233); /* 娣诲姞鐐瑰嚮鏃剁殑闃村奖鏁堟灉锛岄鑹茶涓虹伆鑹� */
+ }
+ }
+ .library-table{
+ background-color: #fff;
+ flex: 1;
+ margin: 0px -15px;
+ margin-top: 40px;
+ display: flex;
+ flex-direction: column;
+ .table-header{
+ padding: 20px;
+ display: flex;
+ justify-content: space-between;
+ .el-form-item{
+ margin-bottom: 30px !important;
+ }
+ }
+ .table-box{
+ padding: 0px 20px;
+ margin-top: 0px;
+ flex: 1;
+ background: #fff;
+ /* padding: 20px 20px 10px 20px; */
+ display: flex;
+ flex-direction: column;
+ .el-table {
+ flex: 1;
+ }
+ >div:nth-child(2){
+ display: flex;
+ justify-content: end;
+ margin: 10px 0;
+ }
+ }
+ }
+}
</style>
--
Gitblit v1.9.3