From ee7d7c29b8d95f0adab3bd9d93fdb1af51565a2d Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 03 八月 2023 20:54:48 +0800
Subject: [PATCH] Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs

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

diff --git a/Source/UBCS-WEB/src/components/template/FlowPath.vue b/Source/UBCS-WEB/src/components/template/FlowPath.vue
index d068154..83f36ba 100644
--- a/Source/UBCS-WEB/src/components/template/FlowPath.vue
+++ b/Source/UBCS-WEB/src/components/template/FlowPath.vue
@@ -39,15 +39,19 @@
             startData: [],
             form: {},
             option: {
-              height: "auto",
+              height: 340,
               border: true,
               align: 'center',
+              menu:!this.checkStatus || this.crudLCStatus == 'Editing',
               menuAlign: 'center',
               index: true,
               searchMenuSpan: 8,
               searchBtn: false,
+              refreshBtn: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 +111,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