| | |
| | | let { lecId, lsId, mesId, rsId, ...data} = evaluateDialogState.evaluateForm |
| | | let res = await evaluateApi().addEvaluate(data); |
| | | if(res.data.code === 100){ |
| | | emit('refresh') |
| | | evaluateDialogState.evaluateDialogVisible = false; |
| | | ElMessage({ |
| | | type: 'success', |
| | | message: '评价成功' |
| | | }) |
| | | emit('refresh') |
| | | }else{ |
| | | ElMessage({ |
| | | type: 'warning', |
| | |
| | | }else{ |
| | | let res = await evaluateApi().modEvaluate(evaluateDialogState.evaluateForm) |
| | | if(res.data.code === 100){ |
| | | emit('refresh') |
| | | evaluateDialogState.evaluateDialogVisible = false; |
| | | ElMessage({ |
| | | type: 'success', |
| | | message: '编辑成功' |
| | | }) |
| | | emit('refresh') |
| | | }else{ |
| | | ElMessage({ |
| | | type: 'warning', |
| | |
| | | let {hazopId, jhaId, phaId, sclId, analogyId, ...data} = identifyDialogState.identifyForm |
| | | let res = await identifyApi().addIdentify(data); |
| | | if (res.data.code === 100) { |
| | | emit('refresh', 1, res.data.data) |
| | | identifyDialogState.identifyDialogVisible = false; |
| | | ElMessage({ |
| | | type: 'success', |
| | | message: '新增成功' |
| | | }) |
| | | identifyDialogState.fileList = [] |
| | | emit('refresh', 1, res.data.data) |
| | | } else { |
| | | ElMessage({ |
| | | type: 'warning', |
| | |
| | | } |
| | | let res = await identifyApi().modIdentify(identifyDialogState.identifyForm) |
| | | if (res.data.code === 100) { |
| | | emit('refresh', 2, identifyDialogState.identifyForm) |
| | | identifyDialogState.identifyDialogVisible = false; |
| | | ElMessage({ |
| | | type: 'success', |
| | | message: '编辑成功' |
| | | }) |
| | | identifyDialogState.fileList = [] |
| | | emit('refresh', 2, identifyDialogState.identifyForm) |
| | | } else { |
| | | ElMessage({ |
| | | type: 'warning', |
| | |
| | | type: 'success', |
| | | message: '辨识方法修改成功' |
| | | }) |
| | | identifyQueryState.identifyQueryForm.identificationMethod = identifyQueryState.currentMethod, |
| | | identifyQueryState.currentMethod = identifyQueryState.currentMethod, |
| | | emit('refresh') |
| | | identifyQueryState.identifyQueryForm.identificationMethod = identifyQueryState.currentMethod |
| | | identifyQueryState.identifyForm.identificationMethod = identifyQueryState.currentMethod |
| | | identifyQueryState.identifyMethodVisible = false |
| | | await getIdentifyData() |
| | | emit('refresh') |
| | | }else{ |
| | | ElMessage({ |
| | | type: 'warning', |
| | | message: res.data.msg |
| | | }) |
| | | identifyQueryState.identifyMethodVisible = false |
| | | } |
| | | identifyQueryState.identifyMethodVisible = false |
| | | } |
| | | |
| | | const resetData = ()=>{ |