| | |
| | | <script> |
| | | import { dateFormat } from '@/utils/date' |
| | | import { mapGetters } from "@/utils/store-compat"; |
| | | import draftSave from '@/mixins/draftSave' |
| | | export default { |
| | | mixins: [draftSave], |
| | | props: { |
| | | clickNodeVal: { |
| | | type: Object, |
| | |
| | | }).then(res => { |
| | | if (res.code == 200) { |
| | | this.$message.success('提交成功') |
| | | this.draftClear('fault') |
| | | this.getTableList(this.clickNodeVal.value) |
| | | this.dialogVisible = false |
| | | } |
| | |
| | | this.form.manufacturer = res.data.manufacturer |
| | | this.form.specificationModel = res.data.specificationModel |
| | | this.form.managementNumber = res.data.managementNumber |
| | | if (!this.form.id) { |
| | | this.draftRestore('fault', 'form', this.clickNodeVal.value, 'dialogVisible') |
| | | } else if (this.currentStep === 0) { |
| | | this.draftRestore('fault', 'form', this.form.id, 'dialogVisible') |
| | | } |
| | | }); |
| | | // 获取负责人信息 |
| | | this.getUserList() |
| | |
| | | }, |
| | | dialogVisible(newVal) { |
| | | if (!newVal) { |
| | | this.draftStop('fault') |
| | | this.form = {} |
| | | this.closeLoading() |
| | | this.currentStep = 0 // 步骤条显示第几步 |