From e46cd23a5f91783cd6b46518aed460a561288b96 Mon Sep 17 00:00:00 2001
From: sen <sen@qq.com>
Date: 星期三, 17 十二月 2025 11:27:59 +0800
Subject: [PATCH] 修改

---
 ui/admin-ui3/src/views/tms/tmsCustomerInfo/index.vue |   25 ++++++++++++++++++++-----
 1 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/ui/admin-ui3/src/views/tms/tmsCustomerInfo/index.vue b/ui/admin-ui3/src/views/tms/tmsCustomerInfo/index.vue
index 5962d33..b44b312 100644
--- a/ui/admin-ui3/src/views/tms/tmsCustomerInfo/index.vue
+++ b/ui/admin-ui3/src/views/tms/tmsCustomerInfo/index.vue
@@ -21,7 +21,9 @@
         @on-load="onLoad"
     >
       <template #menu-left>
-        <el-button
+         <el-button type="primary" icon="Plus" v-hasPermi="['tms:tmsCustomerInfo:add']" @click="handleAdd">鏂板
+        </el-button>
+        <!-- <el-button
             type="success"
             icon="Edit"
             :disabled="pageF.single"
@@ -35,7 +37,7 @@
             @click="handleDelete"
             v-hasPermi="['tms:tmsCustomerInfo:remove']"
         >鍒犻櫎
-        </el-button>
+        </el-button> -->
         <el-button
             type="warning"
             plain
@@ -44,6 +46,12 @@
             v-hasPermi="['tms:tmsCustomerInfo:export']"
         >瀵煎嚭
         </el-button>
+      </template>
+         <template #menu="{ size, row, index }">
+        <el-link class="link-btn" type="primary" :underline="false" plain :size="size" icon="View"
+          @click="handleFy(row)" v-hasPermi="['tms:tmsCustomerInfo:edit']"> 鏌ョ湅
+        </el-link>
+
       </template>
     </avue-crud>
   </basicContainer>
@@ -66,7 +74,7 @@
 import {hasPermission} from "@/utils/permissionUtils";
 import {getTmsProject, listTmsProject} from "@/api/tms/tmsProject";
 import {getTmsSettlementEntity, listTmsSettlementEntity} from "@/api/tms/tmsSettlementEntity";
-
+import router from "@/router";
 const {proxy} = useCurrentInstance();
 const crudRef = ref();
 
@@ -94,6 +102,8 @@
   pageKey: 'TmsCustomerInfo',
   rowKey: 'id',
   labelWidth: 150,
+  addBtn: false,
+   viewBtn: false,
   searchLabelWidth: 150,
   group:[
     {
@@ -610,7 +620,7 @@
       label: '鏇存柊鏃堕棿', minWidth: 180,
       display:false,
       hide: false,
-      search: true,
+      // search: true,
     },
   }
 })
@@ -652,5 +662,10 @@
   }
 })
 
-
+const handleAdd = () => {
+  router.push('/customer/tmsCustomerInfo-info?formDisabled='+false)
+}
+const handleFy = (row) => {
+  router.push('/customer/tmsCustomerInfo-info?id=' + row.id+'&formDisabled='+true)
+}
 </script>
\ No newline at end of file

--
Gitblit v1.8.0