From 9cb389b74302ce6b0a2333328922e7c462234a56 Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期五, 01 十二月 2023 18:31:27 +0800
Subject: [PATCH] feat: 基础信息 新增、编辑增加防重提交 列表也优化

---
 admin-web/src/views/foundation/material/index.vue |   23 +++++++++--------------
 1 files changed, 9 insertions(+), 14 deletions(-)

diff --git a/admin-web/src/views/foundation/material/index.vue b/admin-web/src/views/foundation/material/index.vue
index 314fbb1..b38160b 100644
--- a/admin-web/src/views/foundation/material/index.vue
+++ b/admin-web/src/views/foundation/material/index.vue
@@ -159,12 +159,12 @@
         },
         // 鍒椾俊鎭�
         columns: [
-          {title: '鐗╁搧缂栧彿', field: 'goodsCode', align: 'center'},
-          {title: '鐗╁搧鍚嶇О', field: 'goodsName', align: 'center'},
-          {title: '鍒嗙被', field: 'categoryName', align: 'center'},
-          {title: '绫诲埆', field: 'classification', align: 'center'},
+          {title: '鐗╁搧缂栧彿', field: 'goodsCode', align: 'center', width: 120},
+          {title: '鐗╁搧鍚嶇О', field: 'goodsName', align: 'left', minWidth: 140},
+          {title: '鍒嗙被', field: 'categoryName', align: 'left', minWidth: 140},
+          {title: '绫诲埆', field: 'classification', align: 'center', width: 80},
           // {title: '閲囪喘绫诲瀷', field: 'categoryId', align: 'center'},
-          {title: '鎵�灞炴満鏋�', field: 'agencyName', align: 'center'},
+          {title: '鎵�灞炴満鏋�', field: 'agencyName', align: 'left', minWidth: 140},
           {
             title: '鍒涘缓鏃堕棿',
             field: 'createDate',
@@ -205,7 +205,7 @@
         // 鎿嶄綔淇℃伅
         operation: {
           show: true, // 鏄剧ず鎿嶄綔鍒�
-          width: '250', // 鍒楀
+          width: 160, // 鍒楀
           attr: [
             {
               title: '缂栬緫',
@@ -290,19 +290,14 @@
       //   this.$message.warning('璇峰厛閫夋嫨宸︿晶鏈烘瀯')
       // } else {
         this.editSetting.id = null;
-        this.editSetting.info = null;
         this.editSetting.title = '鏂板';
         this.editSetting.show = true;
       // }
     },
     showAudit(row) {
-      finsystenant.editmaterial(row.id).then(res => {
-        // console.log(res,'res');
-        this.editSetting.id = res.id;
-        this.editSetting.info = JSON.stringify(res);
-        this.editSetting.title = '缂栬緫';
-        this.editSetting.show = true;
-      })
+      this.editSetting.id = row.id;
+      this.editSetting.title = '缂栬緫';
+      this.editSetting.show = true;
     },
     // 鏌ヨtable鍒楄〃
     search(pageNum) {

--
Gitblit v1.9.1