From fe48637b8197e55cb2b454f79d29dab88bd5f7dd Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: 星期三, 28 九月 2022 16:03:47 +0800
Subject: [PATCH] 'xiugai'

---
 src/views/specialWorkManage/workFlow/approveRule/components/approveItemDialog.vue |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/views/specialWorkManage/workFlow/approveRule/components/approveItemDialog.vue b/src/views/specialWorkManage/workFlow/approveRule/components/approveItemDialog.vue
index 893dbe4..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: '标准' },
@@ -132,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