This commit is contained in:
yanran200730
2022-01-13 10:11:04 +08:00
parent 3a52cbb083
commit f18f98f3ea
2 changed files with 28 additions and 58 deletions

View File

@@ -116,14 +116,6 @@
>
</ai-import>
</template>
<!-- <template slot="right">
<el-input placeholder="输入网格名称" size="small" v-model="searchObj.con"
@keyup.enter.native="page.current=1,getList()" prefix-icon="iconfont iconSearch"/>
<el-button type="primary" icon="iconfont iconSearch" size="small"
@click="page.current=1,getList()">查询
</el-button>
<el-button icon="el-icon-refresh-right" size="small" @click="resetSearch">重置</el-button>
</template> -->
</ai-search-bar>
<ai-table
class="mt10"
@@ -148,14 +140,13 @@
slot="options"
align="center"
fixed="right"
width="250"
>
<template v-slot="{ row }">
<el-button type="text" @click="see(row)">编辑</el-button>
<el-button type="text" @click="poltting(row)">标绘</el-button>
<el-button type="text" @click="deleteById(row.id)"
>删除</el-button
>
width="160">
<template slot-scope="{ row }">
<div class="table-options">
<el-button type="text" @click="see(row)">编辑</el-button>
<el-button type="text" @click="poltting(row)">标绘</el-button>
<el-button type="text" @click="deleteById(row.id)">删除</el-button>
</div>
</template>
</el-table-column>
</ai-table>
@@ -279,12 +270,12 @@ export default {
},
{
prop: "girdCode",
align: "left",
align: "center",
label: "网格编码",
},
{
prop: "girdType",
align: "left",
align: "center",
label: "网格类型",
render(h, { row }) {
return h("span", {}, _.dict.getLabel("girdType", row.girdType));
@@ -292,7 +283,7 @@ export default {
},
{
prop: "girdLevel",
align: "left",
align: "center",
label: "网格层级",
render(h, { row }) {
return h("span", {}, _.dict.getLabel("girdLevel", row.girdLevel));
@@ -316,16 +307,16 @@ export default {
},
{
prop: "createTime",
align: "left",
align: "center",
label: "创建时间",
width: 200,
render(h, { row }) {
return h("span", {}, row.createTime.substring(0, 11));
},
},
{
prop: "girdMemberNames",
align: "left",
align: "center",
width: 200,
label: "网格员",
},
];
@@ -333,7 +324,6 @@ export default {
},
methods: {
handleNodeClick(val) {
console.log(val);
this.info = { ...val };
this.searchId = val.id;
this.getList();