| | |
| | | import { selectUserCondition } from "@/api/business/inspectionTask"; |
| | | import { dateFormat } from '@/utils/date' |
| | | import { mapGetters } from "@/utils/store-compat"; |
| | | import draftSave from '@/mixins/draftSave' |
| | | export default { |
| | | mixins: [draftSave], |
| | | props: { |
| | | clickNodeVal: { |
| | | type: Object, |
| | |
| | | if (res.code == 200) { |
| | | this.$message.success('提交成功') |
| | | this.getDeviceStatePage(this.clickNodeVal.value) |
| | | this.draftClear('deviceState') |
| | | this.dialogVisible = false |
| | | this.closeLoading() |
| | | } |
| | |
| | | this.form.managementNumber = res.data.managementNumber |
| | | this.$nextTick(() => { |
| | | this.$refs['form'].clearValidate() |
| | | if (!this.form.stateId) { |
| | | this.draftRestore('deviceState', 'form', '', 'dialogVisible') |
| | | } |
| | | }) |
| | | }); |
| | | // 获取负责人信息 |
| | |
| | | this.currentStepClick = this.currentStep === 4 ? 0 : this.currentStep |
| | | this.$nextTick(() => { |
| | | this.$refs['form'].clearValidate() |
| | | if (this.currentStep === 0) { |
| | | this.draftRestore('deviceState', 'form', this.form.stateId, 'dialogVisible') |
| | | } |
| | | }) |
| | | this.dialogVisible = true |
| | | }, |
| | |
| | | }, |
| | | dialogVisible(newVal) { |
| | | if (!newVal) { |
| | | this.draftStop('deviceState') |
| | | this.form = { |
| | | } |
| | | this.closeLoading() |