From 08f1b081e006f0f3b83bcbdf47f4ef494e18450b Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期三, 11 九月 2024 00:50:18 +0800
Subject: [PATCH] 包装规则更新,保存修改,重量范围

---
 src/views/tigerprojects/system/lowcode/detail/detail.vue |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/src/views/tigerprojects/system/lowcode/detail/detail.vue b/src/views/tigerprojects/system/lowcode/detail/detail.vue
index dfffafd..16b0ff6 100644
--- a/src/views/tigerprojects/system/lowcode/detail/detail.vue
+++ b/src/views/tigerprojects/system/lowcode/detail/detail.vue
@@ -128,6 +128,7 @@
       GetUseForm,
       GetUseModals,
     },
+    ActionColumn
   ] = isNullOrUnDef(custImport.value['default'])
     ? EntityCustFunction.value
     : custImport.value['default']();
@@ -155,13 +156,15 @@
     bordered: true,
     canResize: true,
     showIndexColumn: false,
-    actionColumn: {
-      width: 130,
-      title: '鎿嶄綔',
-      dataIndex: 'action',
-      slots: { customRender: 'action' },
-      fixed: undefined,
-    }, //鑷畾涔夋搷浣滃垪
+    actionColumn:  ActionColumn
+      ? ActionColumn
+      : {
+          width: 120,
+          title: '鎿嶄綔',
+          dataIndex: 'action',
+          slots: { customRender: 'action' },
+          fixed: 'right',
+        }, //鑷畾涔夋搷浣滃垪
   });
 
   onMounted(() => {});
@@ -175,7 +178,7 @@
     const params = {
       record,
       isUpdate: true,
-      ifSave: false,
+      ifSave: objParams['ifSave'],
       entityName: props.entityName,
       formJson: GetCrudForm(), //getFormSchema(`${entityName.value}_Crud`),
       cType,
@@ -217,7 +220,7 @@
     if (isNullOrUnDef(custImport.value['default'])) {
       openDrawer(true, {
         isUpdate: false,
-        ifSave: false,
+        ifSave: objParams.value['ifSave'],
         entityName: props.entityName,
         formJson: _cruds, //getFormSchema(`${entityName.value}_Crud`),
         crudColSlots: colSlots.value,
@@ -242,7 +245,7 @@
         case 'drawer':
           openDrawer(true, {
             isUpdate: false,
-            ifSave: false,
+            ifSave: objParams.value['ifSave'],
             entityName: props.entityName,
             formJson: _cruds, //getFormSchema(`${entityName.value}_Crud`),
             crudColSlots: colSlots.value,

--
Gitblit v1.9.3