From 40c559dc4155783c39899a4bb44c26cb0efe40dd Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期二, 01 八月 2023 14:20:10 +0800
Subject: [PATCH] 流程模板和阶段与模板联动数据
---
Source/UBCS-WEB/src/components/template/FlowPath.vue | 23 +++++++++++++++++++++++
Source/UBCS-WEB/src/components/template/Stage.vue | 6 +++++-
2 files changed, 28 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..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()
diff --git a/Source/UBCS-WEB/src/components/template/Stage.vue b/Source/UBCS-WEB/src/components/template/Stage.vue
index 7d01c68..d1e2795 100644
--- a/Source/UBCS-WEB/src/components/template/Stage.vue
+++ b/Source/UBCS-WEB/src/components/template/Stage.vue
@@ -38,7 +38,11 @@
}
},
watch: {
-
+ code: {
+ handler(newval, oldval) {
+ this.getDataList()
+ }
+ }
},
data() {
const options = {
--
Gitblit v1.9.3