|
|
|
@ -111,7 +111,7 @@ export default { |
|
|
|
// 获取信息 |
|
|
|
getInfo () { |
|
|
|
this.$http |
|
|
|
.get(`/kpi/kpirule/${this.dataForm.id}`) |
|
|
|
.get(`/kpi/rule/${this.dataForm.id}`) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
@ -131,7 +131,7 @@ export default { |
|
|
|
return false |
|
|
|
} |
|
|
|
this.$http[!this.dataForm.id ? 'post' : 'put']( |
|
|
|
'/kpi/kpirule/saveOrUpdate/', |
|
|
|
'/kpi/rule/saveOrUpdate/', |
|
|
|
this.dataForm |
|
|
|
) |
|
|
|
.then(({ data: res }) => { |
|
|
|
|