浏览代码

Merge branch 'test' of http://192.168.2.236:10080/zhouna/platformFront into test

Luolei 6 年之前
父节点
当前提交
27555cc0ad
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. 7 3
      src/components/icss/IndeptLabel.vue

+ 7 - 3
src/components/icss/IndeptLabel.vue

@@ -66,7 +66,7 @@
                     <template slot-scope="scope">
                         <el-button  @click="modifyIndeptTag(scope.row)" type="text" size="small">修改</el-button>
                         <span style="margin:0 3px;">|</span>
-                        <el-button @click="showDelDialog(scope.row.id)" class="delete" type="text" size="small">删除</el-button>
+                        <el-button @click="showDelDialog(scope.row)" class="delete" type="text" size="small">删除</el-button>
                     </template>
                 </el-table-column>
             </el-table>
@@ -220,9 +220,13 @@
           resolve();
         }).catch(() => {});
       },
-      showDelDialog(id){
+      showDelDialog(row){
+        const param = {
+          "ids": row.id,
+          "type": row.type
+        }
         this.showConfirmDialog('是否删除该标签?',()=>{
-          api.deleteTagGroup({ids:id}).then((res)=>{
+          api.deleteTagGroup(param).then((res)=>{
             if(res.data.code=='0'){
               this.getDataList();
               this.warning(res.data.msg || '操作成功','success');