Commit 7e62c38f7f0d43547ff5494183ed8647862aff2b
1 parent
12fba5f0
优化
Showing
2 changed files
with
22 additions
and
5 deletions
src/views/DisposalSuggestions/index.vue
| ... | ... | @@ -286,6 +286,25 @@ export default { |
| 286 | 286 | this.ReportFormVisible = false; |
| 287 | 287 | if (isrRefresh) this.reset(); |
| 288 | 288 | }, |
| 289 | + handleDel(id) { | |
| 290 | + this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', { | |
| 291 | + type: 'warning' | |
| 292 | + }).then(() => { | |
| 293 | + request({ | |
| 294 | + url: `/Extend/BaseInspectionReport/${id}`, | |
| 295 | + method: 'DELETE' | |
| 296 | + }).then(res => { | |
| 297 | + this.$message({ | |
| 298 | + type: 'success', | |
| 299 | + message: res.msg, | |
| 300 | + onClose: () => { | |
| 301 | + this.initData() | |
| 302 | + } | |
| 303 | + }); | |
| 304 | + }) | |
| 305 | + }).catch(() => { | |
| 306 | + }); | |
| 307 | + }, | |
| 289 | 308 | // 处理 |
| 290 | 309 | toHandle(id, isDetail) { |
| 291 | 310 | this.HandleFormVisible = true; | ... | ... |
src/views/baseCaseHandling/Form.vue
| ... | ... | @@ -617,14 +617,12 @@ export default { |
| 617 | 617 | !res.data.closingReportFileModel && (res.data.closingReportFileModel = []); |
| 618 | 618 | this.isEmpty(res.data.other) && (res.data.other = ''); |
| 619 | 619 | !res.data.otherFileModel && (res.data.otherFileModel = []); |
| 620 | - res.data.registeredEntity && (res.data.registeredEntity = res.data.registeredEntityStr); | |
| 621 | - res.data.systemName && (res.data.systemName = res.data.systemNameStr); | |
| 620 | + // res.data.registeredEntity && (res.data.registeredEntity = res.data.registeredEntityStr); | |
| 621 | + // res.data.systemName && (res.data.systemName = res.data.systemNameStr); | |
| 622 | 622 | // this.companyChange(res.data.registeredEntity, 'change'); |
| 623 | + this.getSystemSelect(res.data.registeredEntity) | |
| 623 | 624 | this.dataForm = res.data; |
| 624 | 625 | this.loading = false; |
| 625 | - // this.$nextTick(() => { | |
| 626 | - // this.getSystemSelect(res.data.registeredEntity) | |
| 627 | - // }) | |
| 628 | 626 | }).catch(() => { |
| 629 | 627 | this.loading = false; |
| 630 | 628 | }); | ... | ... |