|
@@ -40,7 +40,7 @@
|
|
|
row-key="hotspotCode"
|
|
|
lazy
|
|
|
:load="load"
|
|
|
- :tree-props="{ children: 'children', hasChildren: 'sublevel' }"
|
|
|
+ :tree-props="{ children: 'children', hasChildren: 'hasChild' }"
|
|
|
show-summary
|
|
|
>
|
|
|
<el-table-column prop="hotspotName" label="热点名称" show-overflow-tooltip></el-table-column>
|
|
@@ -89,6 +89,10 @@ const queryList = throttle(() => {
|
|
|
departmentHotSmall(request)
|
|
|
.then((res: any) => {
|
|
|
state.tableData = res.result ?? [];
|
|
|
+ state.tableData = state.tableData.map((item: any) => {
|
|
|
+ item.children = []
|
|
|
+ return item;
|
|
|
+ });
|
|
|
state.loading = false;
|
|
|
})
|
|
|
.catch(() => {
|