From 45c9f6621a786b8624713c2919b5b0ff4cf0ed58 Mon Sep 17 00:00:00 2001
From: yejiaxing <591141169@qq.com>
Date: Wed, 24 Jan 2024 08:42:14 +0800
Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/disposition/defaultButtons.ts | 13 +
src/views/eam/basic/item/index.vue | 361 ++++++++++++------------
src/views/eam/basic/item/item.data.ts | 2 +-
3 files changed, 194 insertions(+), 182 deletions(-)
diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts
index 006205d..fbc090b 100644
--- a/src/utils/disposition/defaultButtons.ts
+++ b/src/utils/disposition/defaultButtons.ts
@@ -735,6 +735,19 @@ export function mainThawRequesttBtn(option:any) {
hasPermi: ''
})
}
+
+// 主列表-选择设备
+export function selectDeviceBtn(option:any) {
+ return __defaultBtnOption(option,{
+ label: '选择设备',
+ name: 'selectDevice',
+ hide: false,
+ type: 'primary',
+ color: '',
+ link: true, // 文本展现按钮
+ hasPermi: ''
+ })
+}
// 默认按钮规则
function __defaultBtnOption(option:any,specific:any){
return {
diff --git a/src/views/eam/basic/item/index.vue b/src/views/eam/basic/item/index.vue
index e436aab..0569bee 100644
--- a/src/views/eam/basic/item/index.vue
+++ b/src/views/eam/basic/item/index.vue
@@ -4,29 +4,16 @@
-
-
+
+
-
+ }" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage"
+ v-model:sort="tableObject.sort">
{{ row.code }}
@@ -39,187 +26,199 @@
-
+
-
-
+
+
diff --git a/src/views/eam/basic/item/item.data.ts b/src/views/eam/basic/item/item.data.ts
index 5965dcd..c47549e 100644
--- a/src/views/eam/basic/item/item.data.ts
+++ b/src/views/eam/basic/item/item.data.ts
@@ -169,7 +169,7 @@ export const Item = useCrudSchemas(reactive([
field: 'action',
isForm: false,
table: {
- width: 150,
+ width: 180,
fixed: 'right'
}
}