Browse Source

kpi接口路径修改

master
zhangyongzhangyong 6 years ago
parent
commit
5bb749fad9
  1. 2
      src/views/modules/kpi/kpimanualscore.vue
  2. 4
      src/views/modules/kpi/manual-score-add-or-update.vue

2
src/views/modules/kpi/kpimanualscore.vue

@ -132,7 +132,7 @@ export default {
//
methods: {
getKpiManualRule () {
this.$http.get(`/kpi/kpirule/getKpiManualRule/`).then(({ data: res }) => {
this.$http.get(`/kpi/rule/getKpiManualRule/`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}

4
src/views/modules/kpi/manual-score-add-or-update.vue

@ -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 }) => {

Loading…
Cancel
Save