修改树节点区县key
This commit is contained in:
parent
04305171ce
commit
4001c4942f
@ -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 => ({
|
||||||
|
|||||||
@ -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 => ({
|
||||||
|
|||||||
@ -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 => ({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user