310
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user