From 3c6bdb6f439ff7af04765259fd6a91b6d201d095 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期四, 19 六月 2025 17:12:25 +0800
Subject: [PATCH] 工单,数据中心用户查看数据的权限,合同考核每日,以及导出每日和按月

---
 src/views/system/contract/contract-result/index.vue |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/views/system/contract/contract-result/index.vue b/src/views/system/contract/contract-result/index.vue
index e97a6e6..f4984b2 100644
--- a/src/views/system/contract/contract-result/index.vue
+++ b/src/views/system/contract/contract-result/index.vue
@@ -43,6 +43,7 @@
           range-separator="-"
           start-placeholder="寮�濮嬫棩鏈�"
           end-placeholder="缁撴潫鏃ユ湡"
+          @change="handleQuery"
         ></el-date-picker>
       </el-form-item>
       <el-form-item>
@@ -111,7 +112,7 @@
       >
         <el-card class="box-card">
           <div slot="header" class="clearfix">
-            <span>{{ item.contractName }}</span>
+            <span>{{ item.unitName + item.whichYear +'骞�'+item.whichMonth+'鏈堣�冩牳鎶ュ憡' }}</span>
             <el-button
               style="float: right; padding: 3px 6px"
               type="text"
@@ -141,7 +142,7 @@
               size="small"
               round
               style="float: right"
-              disabled
+              @click="handlePublish(item)"
               v-show="item.publish == 1"
               v-hasPermi="['contract:result:publish']"
               >宸插彂甯�</el-button
@@ -290,8 +291,8 @@
     };
   },
   created() {
-    this.getList();
     this.getUnitSelect();
+    this.getList();
   },
   methods: {
     getUnitSelect() {
@@ -306,6 +307,9 @@
       if (null != this.daterangeCheckTime && "" != this.daterangeCheckTime) {
         this.queryParams["createStartTime"] = this.daterangeCheckTime[0];
         this.queryParams["createEndTime"] = this.daterangeCheckTime[1];
+      }else {
+        this.queryParams["createStartTime"] = null;
+        this.queryParams["createEndTime"] = null;
       }
       console.log("this.queryParams", this.queryParams);
       listCheckResult(this.queryParams).then((response) => {
@@ -369,7 +373,7 @@
       let text = row.publish == 1 ? "鍙栨秷鍙戝竷" : "鍙戝竷";
       const ids = row.id || this.ids;
       this.$modal
-        .confirm("鏄惁纭" + text + '鑰冩牳缁撴灉缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�')
+        .confirm("鏄惁纭" + text + row.unitName + row.whichYear +'骞�'+row.whichMonth+'鏈堣�冩牳鎶ュ憡?')
         .then(function () {
           return publishCheckResult(ids);
         })

--
Gitblit v1.8.0