| | |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | | this.daterangeCreateTime = []; |
| | | this.form = { |
| | | id: null, |
| | | unitId: null, |
| | |
| | | reportContent: null, |
| | | reportMaterials: null, |
| | | deleted: null, |
| | | errorType: null |
| | | errorType: null, |
| | | }; |
| | | this.resetForm("form"); |
| | | // this.resetForm("form"); |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | this.reset(); |
| | | this.addOrImport = 'add' |
| | | this.addOrImport = 'add'; |
| | | this.open = true; |
| | | this.title = "添加报备"; |
| | | }, |
| | | /** 导入按钮操作 */ |
| | | handleImport() { |
| | | this.reset(); |
| | | this.addOrImport = 'import' |
| | | this.addOrImport = 'import'; |
| | | this.open = true; |
| | | this.title = "导入报备"; |
| | | }, |
| | |
| | | this.daterangeCreateTime = [response.data.beginCreateTime, response.data.endCreateTime] |
| | | this.form = response.data; |
| | | this.form.errorType = this.form.errorType.split(','); |
| | | this.addOrImport = 'add'; |
| | | this.open = true; |
| | | this.title = "修改报备"; |
| | | }); |
| | |
| | | }, |
| | | /** 提交按钮 */ |
| | | submitForm() { |
| | | this.form.pointId = this.form.pointId ? this.form.pointId : this.form.serialNumber; |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | this.form.beginCreateTime = this.daterangeCreateTime[0] |