| | |
| | | deleteDeviceRecord, |
| | | } from '@/api/cnas/resourceDemand/device.js' |
| | | import { selectUserCondition } from "@/api/business/inspectionTask"; |
| | | import draftSave from '@/mixins/draftSave' |
| | | export default { |
| | | mixins: [draftSave], |
| | | props: { |
| | | clickNodeVal: { |
| | | type: Object, |
| | |
| | | this.outLoading = true |
| | | exportUseRecord({ |
| | | deviceId: this.clickNodeVal.value, |
| | | sampleCode: this.search.sampleCode, |
| | | managementNumber: this.search.managementNumber, |
| | | exportDate: this.exportDate |
| | | }).then(res => { |
| | | this.outLoading = false |
| | |
| | | this.form.managementNumber = res.data.managementNumber |
| | | this.$nextTick(() => { |
| | | this.$refs['form'].clearValidate() |
| | | this.draftRestore('record', 'form', '', 'dialogVisible') |
| | | }) |
| | | }); |
| | | }, |
| | |
| | | if (res.code == 200) { |
| | | this.$message.success('新增成功') |
| | | this.getTableList(this.clickNodeVal.value) |
| | | this.draftClear('record') |
| | | this.dialogVisible = false |
| | | } |
| | | }) |
| | |
| | | if (res.code == 200) { |
| | | this.$message.success('修改成功') |
| | | this.getTableList(this.clickNodeVal.value) |
| | | this.draftClear('record') |
| | | this.dialogVisible = false |
| | | } |
| | | }) |
| | |
| | | list.push(row.useStartDate) |
| | | list.push(row.useEndDate) |
| | | this.form['useDateList'] = list |
| | | if (type === 'edit') { |
| | | this.draftRestore('record', 'form', this.form.id, 'dialogVisible') |
| | | } |
| | | }, |
| | | handleDeleteClick(index, row) { |
| | | this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { |
| | |
| | | }, |
| | | dialogVisible(newVal) { |
| | | if (newVal === false) { |
| | | this.draftStop('record') |
| | | this.form = { |
| | | // deviceId:'', |
| | | sampleCode: '', |