| | |
| | | ZttMonacoEditor, |
| | | operationDialog |
| | | }, |
| | | watch:{ |
| | | visible(newVal){ |
| | | if(!newVal){ |
| | | this.dataForm = { |
| | | id: 0, |
| | | standardName: '', |
| | | standardNo: '', |
| | | remark: '', |
| | | judgeFormula: '', |
| | | inspectionType: null, |
| | | operationId: null, |
| | | operationNo: null, |
| | | operationName: null, |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.funcs = funcForStandard() |
| | | this.constants = constantForStandard() |
| | |
| | | this.visible = false |
| | | this.isSubmit = false |
| | | this.$emit('refreshDataList') |
| | | }).catch(error=>{ |
| | | console.error(error); |
| | | this.isSubmit = false |
| | | }) |
| | | } else { |
| | | addTestStandard(this.dataForm).then((data) => { |
| | |
| | | this.visible = false |
| | | this.isSubmit = false |
| | | this.$emit('refreshDataList') |
| | | }).catch(error=>{ |
| | | console.error(error); |
| | | this.isSubmit = false |
| | | }) |
| | | } |
| | | } else { |