| | |
| | | this.diaLoading = true |
| | | getInternalReportOne({ reportId: row.reportId }).then(res => { |
| | | this.diaLoading = false |
| | | if (res.code === 201) return |
| | | this.form = res.data |
| | | }).catch(err => { |
| | | console.log(err) |
| | |
| | | if (this.operationType === 'add') { |
| | | addInternalReport(internalReport).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('操作成功') |
| | | this.closeImplementDia() |
| | | }).catch(err => { |
| | |
| | | } else if (this.operationType === 'edit') { |
| | | updateInternalReport(internalReport).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('操作成功') |
| | | this.closeImplementDia() |
| | | }).catch(err => { |