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

删除独立标签入参添加归属

zhangxc пре 6 година
родитељ
комит
26e10c7000
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');