|
|
@@ -2990,22 +2990,24 @@
|
|
|
UnitId: this.UnitOrg,
|
|
|
AuditRemark: this.auditform.AuditRemark
|
|
|
}
|
|
|
- annualapi.companyAuditEntity(this.formData.Id, params, this.$axios).then(res => {
|
|
|
+ let _this = this
|
|
|
+ annualapi.companyAuditEntity(this.annualId, params, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
// 保存成功后,初始化数据,变成修改
|
|
|
- this.getEntityById()
|
|
|
- this.dialogComSubmitToSeparateUnitVisible = false
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
|
})
|
|
|
+ _this.dialogComSubmitToSeparateUnitVisible = false
|
|
|
+ _this.getstatus(this.annualId)
|
|
|
+ // _this.getEntityById()
|
|
|
} else {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
|
})
|
|
|
}
|
|
|
- this.loading = false
|
|
|
+ _this.loading = false
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|