| | |
| | | } from '@/api/cnas/resourceDemand/device.js' |
| | | import { selectUserCondition } from "@/api/business/inspectionTask"; |
| | | import { mapGetters } from "@/utils/store-compat"; |
| | | import draftSave from '@/mixins/draftSave' |
| | | export default { |
| | | mixins: [draftSave], |
| | | props: { |
| | | clickNodeVal: { |
| | | type: Object, |
| | |
| | | page: { |
| | | total: 0, |
| | | size: 10, |
| | | current: 0, |
| | | current: 1, |
| | | }, |
| | | tableLoading: false, |
| | | } |
| | |
| | | }, |
| | | dialogVisible(newVal) { |
| | | if (!newVal) { |
| | | this.draftStop('borrow') |
| | | this.form = {} |
| | | this.currentStep = 0 // 步骤条显示第几步 |
| | | this.currentStepClick = 0 // 点击步骤条变化 |
| | |
| | | saveDeviceBorrow(this.form).then(res => { |
| | | if (res.code == 200) { |
| | | this.$message.success('提交成功') |
| | | this.draftClear('borrow') |
| | | this.dialogVisible = false |
| | | this.refreshTable() |
| | | } |
| | |
| | | this.currentStepClick = i |
| | | } |
| | | console.log(this.currentStepClick) |
| | | if (this.currentStep < 2) { |
| | | this.draftRestore('borrow', 'form', this.form.id, 'dialogVisible') |
| | | } |
| | | this.dialogVisible = true |
| | | } |
| | | }) |
| | |
| | | } |
| | | this.form.deviceName = this.clickNodeVal.label |
| | | this.form.deviceId = this.clickNodeVal.value |
| | | this.draftRestore('borrow', 'form', this.clickNodeVal.value, 'dialogVisible') |
| | | }, |
| | | //导出 |
| | | handleDown() { |