修改树节点区县key

This commit is contained in:
huangchenhao 2025-11-21 14:55:58 +08:00
parent 04305171ce
commit 4001c4942f
3 changed files with 6 additions and 6 deletions

View File

@ -114,7 +114,7 @@ const getTreeData = async () => {
type: "root", type: "root",
children: res.data.areaList.map((qx, index) => ( children: res.data.areaList.map((qx, index) => (
{ {
id: index, id: qx.qxmc,
name: `${qx.qxmc}(${qx.sbsl})`, name: `${qx.qxmc}(${qx.sbsl})`,
type: 'area', type: 'area',
children: qx.yhzList.map(site => ({ children: qx.yhzList.map(site => ({

View File

@ -130,7 +130,7 @@ const getTreeData = async () => {
type: "root", type: "root",
children: res.data.areaList.map((qx, index) => ( children: res.data.areaList.map((qx, index) => (
{ {
id: index, id: qx.qxmc,
name: `${qx.qxmc}(${qx.wzsl})`, name: `${qx.qxmc}(${qx.wzsl})`,
type: 'area', type: 'area',
children: qx.yhzList.map(site => ({ children: qx.yhzList.map(site => ({

View File

@ -113,7 +113,7 @@ const getTreeData = async () => {
type: 'root', type: 'root',
children: res.data.areaList.map((qx, index) => ( children: res.data.areaList.map((qx, index) => (
{ {
id: index, id: qx.qxmc,
name: `${qx.qxmc}(${qx.bxsjsl})`, name: `${qx.qxmc}(${qx.bxsjsl})`,
type: 'area', type: 'area',
children: qx.yhzList.map(site => ({ children: qx.yhzList.map(site => ({