Przeglądaj źródła

删除量表关联字段修改

zhangxc 6 lat temu
rodzic
commit
ea0c280d5e
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      src/components/icss/DisAndScaleRelation.vue

+ 3 - 3
src/components/icss/DisAndScaleRelation.vue

@@ -56,7 +56,7 @@
                     <template slot-scope="scope">
                         <el-button  @click="modifyRelation(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>
@@ -181,9 +181,9 @@ export default {
             resolve();
           }).catch(() => {});
         },
-        showDelDialog(id){
+        showDelDialog(row){
           this.showConfirmDialog('是否删除该关联?',()=>{
-            api.delDisScaleInfo({id:id}).then((res)=>{
+            api.delDisScaleInfo({delId:row.delId}).then((res)=>{
               if(res.data.code=='0'){
                 this.getDataList();
                 this.warning(res.data.msg || '操作成功','success');