From a3dbb8fe40e06f9abd9718f14aaa7311bddbc150 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期四, 13 二月 2025 21:46:05 +0800 Subject: [PATCH] 除了项目中心,其它项目页面都不显示审核状态 --- src/components/Process/panel/PropertiesPanel.vue | 67 +++++++++++++++++++++++++++++++-- 1 files changed, 62 insertions(+), 5 deletions(-) diff --git a/src/components/Process/panel/PropertiesPanel.vue b/src/components/Process/panel/PropertiesPanel.vue index 959fc1a..c895056 100644 --- a/src/components/Process/panel/PropertiesPanel.vue +++ b/src/components/Process/panel/PropertiesPanel.vue @@ -14,8 +14,8 @@ <el-button size="mini" type="primary" icon="el-icon-setting" @click="openAttributesForm(null, -1)">灞炴�ц缃�</el-button> </div> - <el-dialog :visible.sync="propertyFormModelVisible" title="灞炴�ч厤缃�" width="600px" append-to-body destroy-on-close> - <div v-for="item in canConfigPropertyList"> + <el-dialog :visible.sync="propertyFormModelVisible" title="灞炴�ч厤缃�" width="600px" @close="closeProperty" append-to-body :destroy-on-close="true" :close-on-click-modal="false"> + <div v-for="item in canConfigPropertyList" style="margin-bottom: 20px"> <div v-if="item.vueType === 'switch'"> <el-switch v-model="item.value" @@ -35,7 +35,7 @@ <!-- </el-form-item>--> <!-- </el-form>--> <template slot="footer"> - <el-button size="mini" @click="propertyFormModelVisible = false">鍏� 闂�</el-button> + <el-button size="mini" @click="closeProperty">鍏� 闂�</el-button> </template> </el-dialog> </div> @@ -56,7 +56,27 @@ return { canConfigPropertyList: [ { - name: '璇ヨ妭鐐规槸瀹℃壒鑺傜偣', + name: '鏄惁瀹℃壒鑺傜偣', + value: false, + vueType: 'switch', + method: (name, value) => { + this.propertyForm.name = name + this.propertyForm.value = value + this.saveAttribute() + } + }, + { + name: '鏄惁鍏佽璺宠繃', + value: false, + vueType: 'switch', + method: (name, value) => { + this.propertyForm.name = name + this.propertyForm.value = value + this.saveAttribute() + } + }, + { + name: '鏄惁鍏佽瀹圭己', value: false, vueType: 'switch', method: (name, value) => { @@ -84,6 +104,44 @@ } }, methods: { + closeProperty() { + this.propertyFormModelVisible = false + this.resetList() + }, + resetList() { + this.canConfigPropertyList = [ + { + name: '鏄惁瀹℃壒鑺傜偣', + value: false, + vueType: 'switch', + method: (name, value) => { + this.propertyForm.name = name + this.propertyForm.value = value + this.saveAttribute() + } + }, + { + name: '鏄惁鍏佽璺宠繃', + value: false, + vueType: 'switch', + method: (name, value) => { + this.propertyForm.name = name + this.propertyForm.value = value + this.saveAttribute() + } + }, + { + name: '鏄惁鍏佽瀹圭己', + value: false, + vueType: 'switch', + method: (name, value) => { + this.propertyForm.name = name + this.propertyForm.value = value + this.saveAttribute() + } + } + ] + }, resetAttributesList() { this.bpmnElement = this.modelerStore.element; this.otherExtensionList = []; // 鍏朵粬鎵╁睍閰嶇疆 @@ -107,7 +165,6 @@ } }) - console.log(this.canConfigPropertyList, "杩欐槸浠�涔堥") this.elementPropertyList = JSON.parse(JSON.stringify(this.bpmnElementPropertyList ?? [])); }, openAttributesForm(attr, index) { -- Gitblit v1.8.0