From 17bc12d7414dedab9d8eb60794603e61e8cce01e Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: Tue, 25 Oct 2022 17:20:35 +0800
Subject: [PATCH] '更新'
---
src/views/specialWorkManage/workFlow/approveRule/components/approveItemDialog.vue | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/views/specialWorkManage/workFlow/approveRule/components/approveItemDialog.vue b/src/views/specialWorkManage/workFlow/approveRule/components/approveItemDialog.vue
index 035315b..149f566 100644
--- a/src/views/specialWorkManage/workFlow/approveRule/components/approveItemDialog.vue
+++ b/src/views/specialWorkManage/workFlow/approveRule/components/approveItemDialog.vue
@@ -23,7 +23,7 @@
<el-col v-if="(approveItemForm.type === 2 || approveItemForm.type === 3) && personType !== 3" :span="24">
<el-form-item label="措施名称" prop="measureId">
<el-select v-model="approveItemForm.measureId" placeholder="请选择措施" class="input-add" clearable filterable>
- <el-option v-for="item in actionList" :key="item.id" :value="item.id" :label="item.context"></el-option>
+ <el-option v-for="item in approveTypeList" :key="item.id" :value="item.id" :label="item.context"></el-option>
</el-select>
</el-form-item>
</el-col>
@@ -67,6 +67,7 @@
standId: [{ required: true, message: '请选择标准', trigger: 'change' }]
},
actionList: [],
+ approveTypeList: [],
typeList: [],
smTypeList: [
{ id: 1, name: '标准' },
@@ -90,6 +91,7 @@
{ id: 3, name: '填空' }
];
} else {
+ this.personType = 2
this.typeList = [
{ id: 2, name: '选项' },
{ id: 3, name: '填空' }
@@ -131,8 +133,12 @@
clearValue () {
if (this.approveItemForm.type === 1) {
this.approveItemForm.measureId = null;
+ }else if(this.approveItemForm.type === 2){
+ this.approveItemForm.standId = null;
+ this.approveTypeList = this.actionList.filter(item => item.type === 1)
} else {
this.approveItemForm.standId = null;
+ this.approveTypeList = this.actionList.filter(item => item.type === 2)
}
},
},
--
Gitblit v1.9.2