| | |
| | | <el-table-column type="index" label="序号" width="60" /> |
| | | <el-table-column prop="riskEventName" label="安全风险事件名称" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="controlMeasureCode" label="风控措施编码" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="controlType" label="管控方式" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="controlType" label="管控方式" show-overflow-tooltip> |
| | | <template #default="scope"> |
| | | {{ parseNumber(scope.row.controlType, '管控方式') }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="checkContent" label="管控内容" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="classify1" label="管控措施分类1" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="classify2" label="管控措施分类2" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="classify1" label="管控措施分类1" show-overflow-tooltip> |
| | | <template #default="scope"> |
| | | {{ parseNumber(scope.row.classify1, '管控措施分类1') }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="classify2" label="管控措施分类2" show-overflow-tooltip> |
| | | <template #default="scope"> |
| | | {{ parseNumber(scope.row.classify2, '管控措施分类2') }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="classify3" label="管控措施分类3" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="measureDesc" label="措施说明" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="createByUserName" label="创建人" show-overflow-tooltip></el-table-column> |
| | |
| | | }; |
| | | controlTypeList: Array<controlTypeType>; |
| | | classifyOneList: Array<classifyOneType>; |
| | | classifyTwoList: Array<classifyTwoType>; |
| | | classifyTwoList: Array<classifyOneType>; |
| | | allSafetyRiskEventData: Array<SafetyRiskEventDataState>; |
| | | } |
| | | interface controlTypeType {} |
| | | interface classifyOneType {} |
| | | interface classifyTwoType {} |
| | | interface controlTypeType { |
| | | id: number; |
| | | name: string; |
| | | } |
| | | interface classifyOneType { |
| | | id: number; |
| | | classifyOneType: string; |
| | | } |
| | | |
| | | interface SafetyRiskEventDataState {} |
| | | |
| | | // interface controlTypeListType { |
| | |
| | | .catch(() => {}); |
| | | }; |
| | | |
| | | const parseNumber = (value: string | number, type: string) => { |
| | | if (type === '管控方式') { |
| | | return state.controlTypeList.find((item) => item.id === value)?.name; |
| | | } else if (type === '管控措施分类1') { |
| | | return state.classifyOneList.find((item) => item.id === value)?.riskMeasureName; |
| | | } else { |
| | | return state.classifyTwoList.find((item) => item.id === value)?.riskMeasureName; |
| | | } |
| | | }; |
| | | |
| | | const handleSearch = () => { |
| | | initRiskControlMeasureData(); |
| | | }; |
| | |
| | | return { |
| | | dateFormat, |
| | | handleSearch, |
| | | parseNumber, |
| | | onOpenDialogRef, |
| | | onHandleSizeChange, |
| | | onDelRiskControlMeasure, |