From 298b4505c17f70eb6359d2e51fc3d0e0144c00db Mon Sep 17 00:00:00 2001
From: lihang <lihang@vci-tech.com>
Date: 星期二, 01 八月 2023 17:29:33 +0800
Subject: [PATCH] 添加达梦VARCHAR2的反签;修改元数据id的最大值

---
 Source/UBCS-WEB/src/components/template/FlowPath.vue |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/template/FlowPath.vue b/Source/UBCS-WEB/src/components/template/FlowPath.vue
index d068154..5bb9834 100644
--- a/Source/UBCS-WEB/src/components/template/FlowPath.vue
+++ b/Source/UBCS-WEB/src/components/template/FlowPath.vue
@@ -48,6 +48,8 @@
               searchBtn: false,
               emptyBtn: false,
               columnBtn: false,
+              editBtn:!this.checkStatus || this.crudLCStatus == 'Editing',
+              delBtn:!this.checkStatus || this.crudLCStatus == 'Editing',
               addBtn: !this.checkStatus || this.crudLCStatus == 'Editing',
               defaultSort: {
                 prop: 'id,name,description,version',
@@ -107,6 +109,27 @@
     created() {
         this.getStart()
     },
+  watch: {
+    code: {
+      handler(newval, oldval) {
+        this.getDataList()
+      }
+    },
+    checkStatus: {
+      handler(newval, oldval) {
+        this.option.delBtn=!this.checkStatus || this.crudLCStatus == 'Editing';
+        this.option.editBtn=!this.checkStatus || this.crudLCStatus == 'Editing';
+        this.option.addBtn=!this.checkStatus || this.crudLCStatus == 'Editing';
+      }
+    },
+    crudLCStatus: {
+      handler(newval, oldval) {
+        this.option.delBtn=!this.checkStatus || this.crudLCStatus == 'Editing';
+        this.option.editBtn=!this.checkStatus || this.crudLCStatus == 'Editing';
+        this.option.addBtn=!this.checkStatus || this.crudLCStatus == 'Editing';
+      }
+    }
+  },
     methods: {
         async getStart() {
             const response = await getStartList()

--
Gitblit v1.9.3