From 25f146ce8920ec090a62ee89af78f35623e6fe27 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期六, 06 九月 2025 13:49:31 +0800
Subject: [PATCH] 个人已办增加状态查询条

---
 src/page/index/top/top-menu.vue |    6 ++++--
 src/views/flow/donelist.vue     |   48 +++++++++++++++++++++++++++---------------------
 2 files changed, 31 insertions(+), 23 deletions(-)

diff --git a/src/page/index/top/top-menu.vue b/src/page/index/top/top-menu.vue
index 0a06028..9f84e01 100644
--- a/src/page/index/top/top-menu.vue
+++ b/src/page/index/top/top-menu.vue
@@ -10,9 +10,10 @@
     <el-menu-item index="0" @click="openTodo(itemHome)">
       
       <template #title>
-            
+           
+               
            <el-dropdown>
-              <span class="el-dropdown-link">
+            <span class="el-dropdown-link">
                  <el-badge ref="topbadge" :value="remindCount" :max="99" :offset="[10, 0]" :class="{'blink-badge':this.remindCount>0}">
                     <el-tooltip
                     class="box-item"
@@ -31,6 +32,7 @@
 
                 </el-dropdown-menu>
               </template>
+             
             </el-dropdown>
       </template>
       <!--
diff --git a/src/views/flow/donelist.vue b/src/views/flow/donelist.vue
index 7eb8aa7..314eb6e 100644
--- a/src/views/flow/donelist.vue
+++ b/src/views/flow/donelist.vue
@@ -34,6 +34,7 @@
     data() {
         return {
             tableData: [],
+            query:{},
             viewFormOption: {
                 emptyBtn: false,
                 submitBtn: false,
@@ -205,16 +206,26 @@
                         search: true,
                         searchType: 'input',
                         hide: true,
+                    },
+                    {
+                        label: '鐘舵��',
+                        prop: 'status',
+                        //cleerable:true,
+                        search: true,
+                        type: 'select',
                         dicData: [
                             {
-                                label: '娑夊瘑缃戠▼搴�',
-                                value: 1,
+                                label:'杩涜涓�',
+                                value:'1'
                             },
                             {
-                                label: '宸ユ帶缃戣溅搴婄▼搴�',
-                                value: 2,
+                                label:'宸茬粨鏉�',
+                                value:'2'
                             },
                         ],
+                        labelKey: 'label', 
+                       
+                        span: "8"
                     },
 					{
                         label: '鏍囬',
@@ -375,34 +386,29 @@
             console.log('searchChange', params);
             params.createTimeBegin = params?.processCreateTime?.[0] || '';
             params.createTimeEnd = params?.processCreateTime?.[1] || '';
-            //console.log(params);
-            // data = {
-            //     createTimeBegin: dayjs(params.createTimeBegin).isValid() ? dayjs(params.createTimeBegin).format('YYYY-MM-DD') : '',
-            //     createTimeEnd: dayjs(params.createTimeEnd).isValid() ? dayjs(params.createTimeEnd).format('YYYY-MM-DD') : '',
-            //     keyword: params.keyword || ''
-            // }
+
             data = {
                 createTimeBegin: params.createTimeBegin,
                 createTimeEnd: params.createTimeEnd,
-                keyword: params.keyword || ''
+                keyword: params.keyword || '',
+                status: params.status || 0
             }
             this.query = data
             this.onLoad(this.page, data);
-            //done();
+            done();
         },
         searchReset () {
-            this.loading = true;
             this.form = {};
-            this.getList();         
+            this.getDoneList();         
         },
         sizeChange() {
-            this.loading = true;
-            this.getList(); 
+           
+            this.getDoneList(); 
         },
         refreshChange() {
             this.onLoad(this.page, this.query);
         },
-        onLoad(page, params = {}) {
+        onLoad(page, params = {},done) {
             const query = {
                 ...this.query,
                 // category: params.category ? flowCategory(params.category) : null,
@@ -413,17 +419,17 @@
                 console.error('鏃ユ湡鏍煎紡鍖栭敊璇�', error);
             }
 
-            this.loading = true;
+            //this.loading = true;
             getDoneList(page.currentPage, page.pageSize, Object.assign(query, params)).then(res => {
                 const data = res.data.data;
                 this.page.total = data.total;
                 this.data = data.records;
                 this.loading = false;
+                if(done){
+                    done();
+                }
             });
         },
-        at1(){
-            console.log('computed')
-        }
         
     },
     computed: {

--
Gitblit v1.9.3