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