This commit is contained in:
yanran200730
2023-04-19 14:10:00 +08:00
parent 4bed4bca66
commit b202caec7f
5 changed files with 22 additions and 1074 deletions

View File

@@ -62,17 +62,6 @@
>
删除
</el-button>
<!-- <ai-download
:instance="instance"
url="/app/appgirdinfo/exportGirdInfo"
:params="{ ...searchObj, ids: ids.join(',') }"
fileName="网格区块"
>
<el-button icon="iconfont iconExported" size="small"
>导出全部
</el-button
>
</ai-download> -->
<ai-import
ref="import"
title="导入"
@@ -93,19 +82,20 @@
</el-button
>
</ai-import>
<el-button type="primary" v-if="!treeObj.treeList.length" @click="init">初始化</el-button>
</template>
</ai-search-bar>
<ai-table
class="mt10"
:tableData="tableData"
:col-configs="colConfigs"
:total="page.total"
ref="aitableex"
:current.sync="page.current"
:size.sync="page.size"
@selection-change="v=>ids=v.map((e) => e.id)"
@getList="getList()"
:dict="dict">
class="mt10"
:tableData="tableData"
:col-configs="colConfigs"
:total="page.total"
ref="aitableex"
:current.sync="page.current"
:size.sync="page.size"
@selection-change="v=>ids=v.map((e) => e.id)"
@getList="getList()"
:dict="dict">
<el-table-column label="网格成员" slot="user" align="center" width="160">
<template slot-scope="{ row }">
<el-button type="text" @click="showGridMembers(row)">{{ row.girdMemberNumber || 0 }}</el-button>
@@ -241,6 +231,17 @@ export default {
}
});
},
init () {
this.instance.post("/app/appgirdinfo/initByCorpAreaId").then((res) => {
if (res?.code == 0) {
this.getTreeList();
this.$message.success("网格初始化成功!");
this.getList();
}
})
},
filterNode(value, data) {
if (!value) return true;
return data.girdName.indexOf(value) !== -1;