From 1888b426ff2b6a529f5fdef0f0453dadef71824b Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 17 四月 2024 10:17:38 +0800
Subject: [PATCH] 隐藏多单位的问题

---
 src/views/operate/scrap/index.vue |   36 ++++++++++++++++++++++++++++++------
 1 files changed, 30 insertions(+), 6 deletions(-)

diff --git a/src/views/operate/scrap/index.vue b/src/views/operate/scrap/index.vue
index d971893..ae4d460 100644
--- a/src/views/operate/scrap/index.vue
+++ b/src/views/operate/scrap/index.vue
@@ -16,14 +16,25 @@
           :table-list="tableList"
           :show-checkcol="false"
           @tableRowClick="tableRowClick"
-        ></TableCommonView>
+        >
+          <template slot="tableButton">
+            <el-table-column fixed="right" label="鎿嶄綔" width="100">
+              <template slot-scope="scope">
+                <el-button @click="examineClick(scope.row)" type="text" size="small">鏌ョ湅</el-button>
+                <el-button type="text" v-if="scope.row.status != 4" size="small" @click="editClick(scope.row)"
+                  >缂栬緫</el-button
+                >
+              </template>
+            </el-table-column>
+          </template>
+        </TableCommonView>
       </div>
       <div class="btn-pager">
         <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
       </div>
     </div>
     <!-- 鏂板缓/缂栬緫 -->
-    <AddScrapDialog v-if="editConfig.visible" :edit-common-config="editConfig" />
+    <AddScrapDialog v-if="editConfig.visible" :editCommonConfig="editConfig" />
   </div>
 </template>
 
@@ -46,7 +57,8 @@
       editConfig: {
         visible: false,
         title: "鏂板缓",
-        infomation: {}
+        infomation: {},
+        showEdit: false
       },
       keyword: ""
     }
@@ -56,6 +68,18 @@
     this.getData()
   },
   methods: {
+    // 鏌ョ湅
+    examineClick(row) {
+      this.editConfig.title = "鏌ョ湅"
+      this.editConfig.infomation = { ...row }
+      this.editConfig.visible = true
+    },
+    editClick(row) {
+      console.log(row, "缂栬緫")
+      this.editConfig.title = "缂栬緫"
+      this.editConfig.infomation = { ...row }
+      this.editConfig.visible = true
+    },
     setTable() {
       this.tableList = {
         tableInfomation: [],
@@ -78,7 +102,7 @@
       console.log(showcol)
       let tableColumn = [
         {
-          label: "鍗曞彿",
+          label: "鎶ュ簾鍗曞彿",
           prop: "number",
           isShowColumn: true,
           default: true
@@ -166,8 +190,8 @@
     // 琛岀偣鍑�
     tableRowClick(row) {
       console.log(row)
-      this.editConfig.visible = true
-      this.editConfig.title = "缂栬緫"
+      // this.editConfig.visible = true;
+      // this.editConfig.title = "缂栬緫";
       this.editConfig.infomation = { ...row }
     },
     // 鏂板缓

--
Gitblit v1.8.0