From d9995144f1353ec0b59f4d005d359b80c9d1d9e5 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 04 九月 2024 01:35:04 +0800
Subject: [PATCH] 权限配置

---
 src/views/system/contract/score/index.vue |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/src/views/system/contract/score/index.vue b/src/views/system/contract/score/index.vue
index c1ae99c..b38f87c 100644
--- a/src/views/system/contract/score/index.vue
+++ b/src/views/system/contract/score/index.vue
@@ -25,19 +25,15 @@
     <el-row :gutter="10" class="mb8">
       <el-col :span="1.5">
         <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
-          v-hasPermi="['platform:score:add']">鏂板</el-button>
-      </el-col>
-      <el-col :span="1.5">
-        <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
-          v-hasPermi="['platform:score:edit']">淇敼</el-button>
+          v-hasPermi="['contract:score:add']">鏂板</el-button>
       </el-col>
       <el-col :span="1.5">
         <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
-          v-hasPermi="['platform:score:remove']">鍒犻櫎</el-button>
+          v-hasPermi="['contract:score:remove']">鍒犻櫎</el-button>
       </el-col>
       <el-col :span="1.5">
         <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
-          v-hasPermi="['platform:score:export']">瀵煎嚭</el-button>
+          v-hasPermi="['contract:score:export']">瀵煎嚭</el-button>
       </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
@@ -63,10 +59,10 @@
         <template slot-scope="scope">
           <el-button size="mini" type="text" icon="el-icon-view" @click="handleView(scope.row)">璇︽儏</el-button>
           <el-button size="mini" type="text" icon="el-icon-s-check" @click="handleAuditing(scope.row)"
-            v-hasPermi="['default:audit']" v-if="scope.row.auditingStatus === '寰呭鏍�'">瀹℃牳</el-button>
+            v-hasPermi="['contract:score:audit']" v-if="scope.row.auditingStatus === '寰呭鏍�'">瀹℃牳</el-button>
           <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
-            v-if="scope.row.auditingStatus === '寰呭鏍�'" v-hasPermi="['system:auditing:edit']">淇敼</el-button>
-          <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">鍒犻櫎</el-button>
+            v-if="scope.row.auditingStatus === '寰呭鏍�'" v-hasPermi="['contract:score:edit']">淇敼</el-button>
+          <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['contract:score:remove']">鍒犻櫎</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -289,7 +285,7 @@
       let item = this.$refs['cascader'].getCheckedNodes()[0].data;
       this.calcObj = item;
       this.form.contractId = item.contractId;
-      this.form.ruleName = item.ruleName + "/" + item.label;
+      this.form.ruleName = item.ruleName + " / " + item.label;
       this.form.deductCategory = item.deductCategory == '鍒嗘暟涔樹互鏁伴噺' ? '鎵�' + item.calcFraction  + '鍒�*鏁伴噺 ' : item.deductCategory == '闄や互鏁伴噺鍚庝箻浠ュ垎鏁�' ? '鎵�' + item.calcFraction + '鍒�/' +  item.calcUnit + '灏忔椂' : '鎵�' + item.calcFraction + '鍒�';
       if (item.deductCategory == "鎵f寚瀹氬垎鏁�") {
         this.needNum = false;
@@ -388,12 +384,17 @@
       if (null != this.daterangeAuditingTime && '' != this.daterangeAuditingTime) {
         this.queryParams["auditingStartTime"] = this.daterangeAuditingTime[0];
         this.queryParams["auditingEndTime"] = this.daterangeAuditingTime[1];
+      } else {
+        this.queryParams["auditingStartTime"] = null;
+        this.queryParams["auditingEndTime"] = null;
       }
       if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) {
         this.queryParams["createStartTime"] = this.daterangeCreateTime[0];
         this.queryParams["createEndTime"] = this.daterangeCreateTime[1];
+      } else {
+        this.queryParams["createStartTime"] = null;
+        this.queryParams["createEndTime"] = null;
       }
-      console.log("this.queryParams", this.queryParams)
       listAuditing(this.queryParams).then(response => {
         this.auditingList = response.rows;
         this.total = response.total;

--
Gitblit v1.8.0