| | |
| | | this.form.participants = row.participants ? row.participants.split(',').map(m => Number(m)) : [] |
| | | } |
| | | }, |
| | | // 查询详情 |
| | | // searchInfo (row) { |
| | | // this.diaLoading = true |
| | | // this.$axios(this.$api.internalReport.getInternalReportOne + '?reportId=' + row.reportId).then(res => { |
| | | // this.diaLoading = false |
| | | // if (res.code === 201) return |
| | | // this.form = res.data |
| | | // }).catch(err => { |
| | | // console.log(err) |
| | | // this.diaLoading = false |
| | | // }) |
| | | // }, |
| | | // 提交弹框数据 |
| | | handleEdit() { |
| | | this.$refs['form'].validate((valid) => { |
| | |
| | | if (this.operationType === 'add') { |
| | | addReviewProgram(internalReport).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('操作成功') |
| | | this.closeImplementDia() |
| | | }).catch(err => { |
| | |
| | | } else if (this.operationType === 'edit') { |
| | | modifyReviewProgram(internalReport).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('操作成功') |
| | | this.closeImplementDia() |
| | | }).catch(err => { |