From f0644263d72f9503a50bad1034f51f2fce974d56 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期二, 17 六月 2025 19:35:58 +0800
Subject: [PATCH] 主制计划表

---
 src/views/flowmgr/timeoutQuery.vue |   80 +++++++++++++++++++++++++++-------------
 1 files changed, 54 insertions(+), 26 deletions(-)

diff --git a/src/views/flowmgr/timeoutQuery.vue b/src/views/flowmgr/timeoutQuery.vue
index cf69180..4ecd7cf 100644
--- a/src/views/flowmgr/timeoutQuery.vue
+++ b/src/views/flowmgr/timeoutQuery.vue
@@ -1,5 +1,6 @@
 <template>
   <basic-container>
+    <avue-form v-model="searchForm" :option="serachOption" @submit="searchSubmit"></avue-form>
     <avue-crud
       :addBtn="false"
       :option="option"
@@ -26,6 +27,35 @@
 export default {
   data() {
     return {
+      searchForm: {},
+      serachOption: {
+        labelWidth: 90,
+        menuSpan: 6,
+        submitText: "鏌ヨ",
+        emptyBtn: false,
+        column: [
+          {
+            label: "浠诲姟鏃堕棿",
+            prop: "daterange",
+            type: "daterange",
+            format: 'YYYY-MM-DD',
+            valueFormat: 'YYYY-MM-DD',
+            startPlaceholder: '鏃ユ湡寮�濮嬭寖鍥磋嚜瀹氫箟',
+            endPlaceholder: '鏃ユ湡缁撴潫鑼冨洿鑷畾涔�',
+            span: 6
+          },
+          {
+            label: '鎵ц浜哄憳',
+            prop: 'assigneeName',
+            span: 6
+          },
+          {
+            label: '鍏抽敭瀛�',
+            prop: 'keyword',
+            span: 6
+          }
+        ]
+      },
       search: {
         keyword: "",
         machineGroupCode: ""
@@ -46,38 +76,28 @@
         menu: false,
         column: [
           {
-            label: '浠诲姟鏃堕棿',
-            type: 'input',
-            prop: '',
-            search: true,
-            hide: true
-          },
-          {
             label: '鎵ц浜哄憳',
-            type: 'input',
-            prop: '',
-            search: true
+            prop: 'assigneeName',
           },
           {
             label: '浠诲姟鍚嶇О',
-            prop: '',
+            prop: 'taskName',
           },
           {
             label: '浠诲姟鑺傜偣',
-            prop: '',
+            prop: 'assignee',
           },
           {
             label: '浠诲姟鍒拌揪鏃堕棿',
-            prop: '',
+            prop: 'createTime',
           },
           {
             label: '瑕佹眰瀹屾垚鏃堕棿',
-            prop: '',
+            prop: 'claimTime',
           },
           {
-            label: '璇︽儏',
-            prop: '',
-            search: true,
+            label: '鍏抽敭瀛�',
+            prop: 'keyword',
             hide: true
           }
         ],
@@ -86,6 +106,10 @@
     };
   },
   methods: {
+    searchSubmit(params,done) {
+      this.onLoad(params);
+      done();
+    },
     handleEdit(row,index) {
       
     },
@@ -106,18 +130,22 @@
     refreshChange() {
       
     },
-    onLoad() {
-      this.loading = true;
-      var obj = {
-        keyword: this.search.keyword,
-        machineGroupCode: this.search.machineGroupCode,
-        current: this.mypage.current,
-        size: this.mypage.size,
+    onLoad(params) {
+      if(this.searchForm.daterange == undefined) {
+        this.searchForm.createTimeBegin = "";
+        this.searchForm.createTimeEnd = "";
+      }else if(this.searchForm.daterange.length == 1) {
+        this.searchForm.createTimeBegin = this.searchForm.daterange[0];
+      }else if(this.searchForm.daterange.length == 2) {
+        this.searchForm.createTimeBegin = this.searchForm.daterange[0];
+        this.searchForm.createTimeEnd = this.searchForm.daterange[1];
       }
+      console.log(this.searchForm,111)
+      this.loading = true;
       axios({
-        url: '/blade-mdm/machine/page',
+        url: '/blade-mdm/flow/mgr/overtime-list',
         method: 'get',
-        date: obj,
+        params: this.searchForm,
       }).then(
         res => {
           const data = res.data.data;

--
Gitblit v1.9.3