From 50fd3239acf80f72877cd50165ad575f8532bedd Mon Sep 17 00:00:00 2001
From: luobisheng <727299681@qq.com>
Date: 星期二, 29 十一月 2022 18:06:39 +0800
Subject: [PATCH] 上传处置类型修改

---
 src/views/operate/message/myIndex/index.vue |   51 ++++++++++++++++++++++++---------------------------
 1 files changed, 24 insertions(+), 27 deletions(-)

diff --git a/src/views/operate/message/myIndex/index.vue b/src/views/operate/message/myIndex/index.vue
index c9bcf54..1a75ef1 100644
--- a/src/views/operate/message/myIndex/index.vue
+++ b/src/views/operate/message/myIndex/index.vue
@@ -3,26 +3,29 @@
         <header>
             <div class="header-nav">
                 <span class="nav-left">鏁版嵁绛涢��</span>
-                <span class="nav-right" @click="showMoreParamsDialog">楂樼骇鎼滅储</span>
             </div>
             <div class="header-content">
                 <div class="search">
                     <span>杈撳叆鏌ヨ:</span>
                     <el-input placeholder="娑堟伅鏍囬" v-model="context"></el-input>
                 </div>
-                <div class="message-status">
+                <div class="search">
                     <span>娑堟伅鐘舵��:</span>
                     <el-select v-model="messageStatus" placeholder="璇烽�夋嫨娑堟伅鐘舵��">
                         <el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value">
                         </el-option>
                     </el-select>
                 </div>
-                <div class="message-kind">
+                <div class="search">
                     <span>娑堟伅鍒嗙被:</span>
                     <el-select v-model="messageType" placeholder="璇烽�夋嫨娑堟伅鍒嗙被">
                         <el-option v-for="item in typeList" :key="item.id" :label="item.columnName" :value="item.id">
                         </el-option>
                     </el-select>
+                </div>
+                <div class="search">
+                  <span>淇敼鏃堕棿:</span>
+                  <el-date-picker style="width: 200px" type="datetimerange" v-model="datetime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
                 </div>
                 <div class="find">
                     <el-button type="primary" icon="el-icon-search" @click="handleSearch">鏌ヨ</el-button>
@@ -34,7 +37,7 @@
             <div class="mainContent">
                 <div class="main-nav">
                     <span>鏁版嵁鍒楄〃</span>
-                    <el-button type="primary" icon="el-icon-plus" @click="handleOpera(null, 'create')">娣诲姞</el-button>
+                    <el-button class="button-addition" type="primary" icon="el-icon-plus" @click="handleOpera(null, 'create')">娣诲姞</el-button>
                 </div>
                 <!-- 鏁版嵁灞曠ず -->
                 <el-table ref="multipleTable"
@@ -52,10 +55,10 @@
                     </el-table-column>
                     <el-table-column prop="createUser" label="鍙戝竷浜哄憳" min-width="15">
                     </el-table-column>
-                    <el-table-column prop="messageTypeName" label="娑堟伅鍒嗙被" min-width="10">
+                    <el-table-column prop="messageTypeName" label="娑堟伅鏍忕洰" min-width="10">
                     </el-table-column>
                     <el-table-column prop="status" label="鍙戝竷鐘舵��" min-width="5">
-                        <template slot-scope="scope">
+                        <template v-if="scope.row.status" slot-scope="scope">
                             {{scope.row.status === 0 ? '鏈彂甯�' :'宸插彂甯�'}}
                         </template>
                     </el-table-column>
@@ -72,7 +75,7 @@
                 </el-table>
                 <!-- 鏂板缓娑堟伅 -->
                 <el-dialog :destroy-on-close="true" :key="dialogType" :title="getDialogTitle" :visible.sync="isShowDialog" width="80%">
-                    <my-edit @closeMyDialog="closeDialog" :type="dialogType" :myDataRow="tableRowData"></my-edit>
+                    <my-edit v-if="isShowDialog" @closeMyDialog="closeDialog" :type="dialogType" :myDataRow="tableRowData"></my-edit>
                 </el-dialog>
                 <!-- tools -->
                 <div class="tools">
@@ -98,12 +101,6 @@
                     </div>
                 </div>
             </div>
-
-            <el-dialog
-                title="楂樼骇鍙傛暟"
-                :visible.sync="isShowMoreParams"
-                width="30%">
-            </el-dialog>
         </main>
     </div>
 </template>
@@ -144,6 +141,7 @@
             unsame: false,
             myIdx: 0,
             preMyIdx: 0,
+            datetime: null,
             options: [
                 {
                     value: 0,
@@ -190,11 +188,11 @@
                     columnName:'绔欏唴淇�',
                 },
                 {
-                    id:'02',
+                    id:'03',
                     columnName:'閭欢',
                 },
                 {
-                    id:'03',
+                    id:'02',
                     columnName:'鐭俊',
                 }
             ]
@@ -243,9 +241,11 @@
           const messageParam = {
             current: this.currentPage,
             size: this.pageSize,
-            channelCode: this.messageType,
-            status: this.messageStatus,
-            head: this.context
+            channelCode: this.messageType === '00' ? null : this.messageType,
+            status: this.messageStatus === 2 ? null : this.messageStatus,
+            head: this.context,
+            startTime: this.datetime ? this.datetime[0] : null,
+            endTime: this.datetime ? this.datetime[1] : null
           }
           getMessageList(messageParam)
               .then(({ records, total }) => {
@@ -339,10 +339,6 @@
             this.getMessageList();
         },
 
-        showMoreParamsDialog() {
-          this.isShowMoreParams = true;
-        },
-
         // 鑷畾涔夊叧闂脊绐�
         closeDialog() {
           this.isShowDialog = false;
@@ -375,11 +371,10 @@
             justify-content: space-between;
             align-items: center;
 
-            .search,
-            .message-status,
-            .message-kind {
+            .search {
                 display: flex;
-                justify-content: flex-start;
+                justify-content: space-between;
+                align-items: center;
 
                 span {
                     flex: 1;
@@ -589,11 +584,13 @@
     &::v-deep .el-dialog__close {
         width: 20px;
         height: 20px;
-        // color: #fff;
     }
 
     &::v-deep .el-dialog__body {
         padding: 0;
     }
+  :deep(.el-range-input) {
+    background-color: #09152f;
+  }
 }
 </style>
\ No newline at end of file

--
Gitblit v1.8.0