|
|
|
@ -164,6 +164,19 @@
|
|
|
|
|
></el-switch>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column fixed="right" label="是否显示" width="100">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-switch
|
|
|
|
|
style="margin-bottom: 4px;"
|
|
|
|
|
v-model="scope.row.isShow"
|
|
|
|
|
active-color="#13ce66"
|
|
|
|
|
@change="handleTableRowShowChange($event, scope.row)"
|
|
|
|
|
:active-value="1"
|
|
|
|
|
:inactive-value="0"
|
|
|
|
|
size="mini"
|
|
|
|
|
></el-switch>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
fixed="right"
|
|
|
|
|
label="操作"
|
|
|
|
@ -621,6 +634,20 @@ export default {
|
|
|
|
|
this.fetchData(this.queryForm.lastQuery);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 表格内显示滑块切换事件
|
|
|
|
|
*/
|
|
|
|
|
handleTableRowShowChange($event, row) {
|
|
|
|
|
tagApi.updateShow(row.id, $event).then(res => {
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
this.$message.success(res.message);
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.fetchData(this.queryForm.lastQuery);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 弹窗取消按扭点击事件
|
|
|
|
|
*/
|
|
|
|
|