瀏覽代碼

统计配置开发

XMLWAN 5 年之前
父節點
當前提交
bce26155cd
共有 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
 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 查看文件

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
       });