Browse Source

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

csx 4 years ago
parent
commit
bd4e68575a
2 changed files with 4 additions and 2 deletions
  1. 1 1
      src/api/common/common.js
  2. 3 1
      src/xt_pages/qcd/statisticalConfiguration.vue

+ 1 - 1
src/api/common/common.js View File

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

+ 3 - 1
src/xt_pages/qcd/statisticalConfiguration.vue View File

330
       ).then(() => {
330
       ).then(() => {
331
         DeleteConfiguration(id).then(response => {
331
         DeleteConfiguration(id).then(response => {
332
           if (response.data.state === 1) {
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
       });