| | |
| | | <el-col v-if="(approveItemForm.type === 2 || approveItemForm.type === 3) && personType !== 3" :span="24" style="margin-bottom: 24px"> |
| | | <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> |
| | |
| | | approveItemFormRule: {}; |
| | | actionList: Array<type>; |
| | | typeList: Array<type>; |
| | | approveTypeList: Array<type>; |
| | | smTypeList: Array<type>; |
| | | standardList: []; |
| | | order: number | null; |
| | |
| | | interface type { |
| | | id: number; |
| | | name: string; |
| | | type?:number; |
| | | } |
| | | export default { |
| | | name: 'approveItemDialog', |
| | |
| | | }, |
| | | actionList: [], |
| | | typeList: [], |
| | | approveTypeList: [], |
| | | smTypeList: [ |
| | | { id: 1, name: '标准' }, |
| | | { id: 2, name: '措施' } |
| | |
| | | const clearValue = () => { |
| | | if (data.approveItemForm.type === 1) { |
| | | data.approveItemForm.measureId = null; |
| | | }else if(data.approveItemForm.type === 2){ |
| | | data.approveItemForm.standId = null; |
| | | data.approveTypeList = data.actionList.filter(item => item.type === 1) |
| | | } else { |
| | | data.approveItemForm.standId = null; |
| | | data.approveTypeList = data.actionList.filter(item => item.type === 2) |
| | | } |
| | | }; |
| | | |