From 9e9435a15d12e364d0a910434de0568e11bb273c Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期四, 03 八月 2023 17:08:05 +0800 Subject: [PATCH] 1、处理lastr","firstr","lastv","firstv"字段在数据创建时为整形问题。 2、处理属性分组设置了一个属性,且配置表单中不显示。那么页面的表单应该不显示此分组。 --- Source/UBCS-WEB/src/components/template/FlowPath.vue | 24 ++++++++++++++++++++++++ 1 files changed, 24 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..2474641 100644 --- a/Source/UBCS-WEB/src/components/template/FlowPath.vue +++ b/Source/UBCS-WEB/src/components/template/FlowPath.vue @@ -42,12 +42,15 @@ height: "auto", border: true, align: 'center', + menu:!this.checkStatus || this.crudLCStatus == 'Editing', menuAlign: 'center', index: true, searchMenuSpan: 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 +110,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