From 15bcbd44b6a3b2ec34092bc5ed3e213fa9c55de4 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期三, 20 十二月 2023 16:14:56 +0800
Subject: [PATCH] 将侧栏菜单数据存储进vuex

---
 src/views/overview/OverviewListView.vue |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/src/views/overview/OverviewListView.vue b/src/views/overview/OverviewListView.vue
index de6c5c0..777378c 100644
--- a/src/views/overview/OverviewListView.vue
+++ b/src/views/overview/OverviewListView.vue
@@ -22,7 +22,7 @@
               <template slot-scope="scope">
                 <el-button @click="tableRowClick(scope.row, '鏌ョ湅')" type="text" size="small">鏌ョ湅</el-button>
                 <el-button
-                  v-if="scope.row.status !== 4&&scope.row.status !== 5"
+                  v-if="scope.row.status !== 4 && scope.row.status !== 5"
                   @click="tableRowClick(scope.row, '缂栬緫')"
                   type="text"
                   size="small"
@@ -40,7 +40,7 @@
     <!-- 鏂板缓/缂栬緫 -->
     <AddOverviewDialog
       v-if="editConfig.visible"
-      :work-type="workType"
+      :workType="workType"
       :edit-common-config="editConfig"
       :add-name="addName"
       :display-edit="displayEdit"
@@ -67,8 +67,7 @@
       searchOptions: [],
       commonDetail: {
         visible: false,
-        title: "鏂板缓"
-        ,
+        title: "鏂板缓",
         infomation: {}
       },
       editConfig: {
@@ -83,11 +82,11 @@
       formLabel: "",
       toLabel: "",
       addName: "",
-      searchTaskMap: []
+      searchTaskMap: [],
+      numberLabel: "鍗曞彿"
     }
   },
   created() {
-    console.log(this.workType)
     this.setFormToLabel()
     this.setTable()
     var paramsData = sessionStorage.getItem("paramsData")
@@ -113,12 +112,15 @@
       if (this.workType === 1) {
         this.formLabel = "渚涘簲鍟嗕綅缃�"
         this.toLabel = "浠撳簱浣嶇疆"
+        this.numberLabel = "鍏ュ簱鍗曞彿"
       } else if (this.workType === 2) {
         this.formLabel = "浠撳簱浣嶇疆"
         this.toLabel = "瀹㈡埛浣嶇疆"
+        this.numberLabel = "鍑哄簱鍗曞彿"
       } else {
         this.formLabel = "璋冨嚭浣嶇疆"
         this.toLabel = "璋冨叆浣嶇疆"
+        this.numberLabel = "璋冩嫧鍗曞彿"
       }
     },
     setTable() {
@@ -142,7 +144,7 @@
     setTableColumn(showcol) {
       let tableColumn = [
         {
-          label: "鍗曞彿",
+          label: this.numberLabel,
           prop: "number",
           isShowColumn: true,
           default: true
@@ -235,7 +237,7 @@
     async getData() {
       await getOperation({
         number: this.keyword,
-        operationTypeId: this.params.id,
+        operationTypeId: this.$route.params.id ? this.$route.params.id : this.params.id,
         page: this.pagerOptions.currPage,
         pageSize: this.pagerOptions.pageSize,
         status: this.params.status
@@ -263,7 +265,6 @@
     },
     // 鏌ョ湅 缂栬緫
     tableRowClick(row, val) {
-      console.log(row)
       this.editConfig.visible = true
       this.editConfig.title = val
       this.editConfig.operationTypeId = this.params.id
@@ -280,7 +281,7 @@
     },
     // 鐘舵��
     getStatus(val) {
-      return val === 1 ? "鑽夌" : val === 3 ? "灏辩华" : val === 4 ? "瀹屾垚" :val === 5 ? "鍙栨秷" : ""
+      return val === 1 ? "鑽夌" : val === 3 ? "灏辩华" : val === 4 ? "瀹屾垚" : val === 5 ? "鍙栨秷" : ""
     },
     // 鍒犻櫎鎼滅储鐘舵��
     delSelectClick() {

--
Gitblit v1.8.0