Преглед изворни кода

Merge branch 'vue_statistics_branch' of http://git.shengws.com/csx/Vue_New into vue_statistics_branch

csx пре 4 година
родитељ
комит
bd4e68575a
2 измењених фајлова са 4 додато и 2 уклоњено
  1. 1 1
      src/api/common/common.js
  2. 3 1
      src/xt_pages/qcd/statisticalConfiguration.vue

+ 1 - 1
src/api/common/common.js Прегледај датотеку

@@ -73,7 +73,7 @@ export function UpdateConfiguration(id, data) {
73 73
 export function DeleteConfiguration(id, params) {
74 74
   return request({
75 75
     url: 'com/api/deleteconfiguration?id=' + id,
76
-    method: 'post',
76
+    method: 'delete',
77 77
     params: params
78 78
   })
79 79
 }

+ 3 - 1
src/xt_pages/qcd/statisticalConfiguration.vue Прегледај датотеку

@@ -330,7 +330,9 @@ export default {
330 330
       ).then(() => {
331 331
         DeleteConfiguration(id).then(response => {
332 332
           if (response.data.state === 1) {
333
-            
333
+           var msg =  response.data.data.msg
334
+           console.log("msg",msg)
335
+           this.configuraData.splice(index,1)
334 336
           }
335 337
         });
336 338
       });