四邻设置开发完成

This commit is contained in:
aixianling
2022-04-18 15:20:35 +08:00
parent 8002d58294
commit f4f23b4814
3 changed files with 228 additions and 1 deletions

View File

@@ -114,12 +114,13 @@
:size.sync="search.size"
@handleSelectionChange="handleSelectionChange"
@getList="getList">
<el-table-column slot="options" width="160px" fixed="right" label="操作" align="center">
<el-table-column slot="options" width="220px" fixed="right" label="操作" align="center">
<template slot-scope="{ row }">
<div class="table-options">
<el-button type="text" @click="toDetail(row.id)">详情</el-button>
<el-button type="text" @click="toAdd(row.id)">编辑</el-button>
<el-button type="text" @click="remove(row.id)">删除</el-button>
<el-button type="text" @click="showNeighbourSetting(row.id)">四邻设置</el-button>
</div>
</template>
</el-table-column>
@@ -204,6 +205,9 @@ export default {
this.getList()
},
methods: {
showNeighbourSetting(id) {
this.$router.push({query: {id}, hash: "#ns"})
},
onTreeChange(e) {
this.$emit("update:selected", e)
this.getList(e.id)