From 8199d1738e8b75ccad7f3465dfd88aac2bb1a160 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期五, 04 八月 2023 14:56:11 +0800 Subject: [PATCH] 主题库切换树模板流程和阶段显示bug --- Source/UBCS-WEB/src/components/template/FlowPath.vue | 33 ++++++++++++++++++++++++++++++++- 1 files changed, 32 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..b1e37dd 100644 --- a/Source/UBCS-WEB/src/components/template/FlowPath.vue +++ b/Source/UBCS-WEB/src/components/template/FlowPath.vue @@ -23,6 +23,10 @@ typeof: String, required: true, default: "" + }, + Formlist:{ + type:Array, + default:[] } }, data() { @@ -39,15 +43,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 +115,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() @@ -134,6 +163,8 @@ this.data = data.records this.page.total = data.total } else this.loading = false + }else { + this.data=[] } }, -- Gitblit v1.9.3