From b5dc31baabb5c2f833dc14dffb2240abefc0f046 Mon Sep 17 00:00:00 2001 From: yaoyuhao Date: Thu, 1 Aug 2024 17:08:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E7=82=B9=E6=B8=B2=E6=9F=93DGcreateCs2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/view/sy_mapcopy.vue | 55 +++++++++++++++++++++++++---------------- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/src/view/sy_mapcopy.vue b/src/view/sy_mapcopy.vue index 2facf0e..f2aa995 100644 --- a/src/view/sy_mapcopy.vue +++ b/src/view/sy_mapcopy.vue @@ -1237,7 +1237,7 @@ const getDatas = async (e, i) => { } if (cfJd.value != "") { xkzCenter.map((item) => { - // item.number = 0; + item.swrs = 0; res.data.committeeSwrs.map((items) => { if (items.csq == item.name) { item.swrs = items.swrs; @@ -1400,6 +1400,15 @@ const getDatas2 = async (e, i, cs) => { } } }); + if (choose.value.person == "") { + cs_dd_arr.value.map((item, index) => { + DGcreateCs(item, index); + }); + } else { + cs_dd_arr.value.map((item, index) => { + DGcreateCs2(item, index); + }); + } }; //特殊标签 //获取特殊标签 @@ -2220,15 +2229,15 @@ const addPolygonCountyCs = () => { getDatas2(cfJd.value, choose.value.person, cfCs.value); addCsChoose(); addCsUnChoose(); - if (choose.value.person == "") { - cs_dd_arr.value.map((item, index) => { - DGcreateCs(item, index); - }); - } else { - cs_dd_arr.value.map((item, index) => { - DGcreateCs2(item, index); - }); - } + // if (choose.value.person == "") { + // cs_dd_arr.value.map((item, index) => { + // DGcreateCs(item, index); + // }); + // } else { + // cs_dd_arr.value.map((item, index) => { + // DGcreateCs2(item, index); + // }); + // } }); } }); @@ -2322,11 +2331,12 @@ const addCsUnChoose = () => { // ) { // getDataBqs2(cfJd.value, cfCs.value, choose.value.person, false); // } - if (choose.value.person == "") { - cs_dd_arr.value.map((item, index) => { - DGcreateCs(item, index); - }); - } else if ( + // if (choose.value.person == "") { + // cs_dd_arr.value.map((item, index) => { + // DGcreateCs(item, index); + // }); + // } else + if ( choose.value.person == "cjr" || choose.value.person == "dibian" || choose.value.person == "db" || @@ -2336,13 +2346,16 @@ const addCsUnChoose = () => { choose.value.person == "kjer" ) { getDataBqs2(cfJd.value, cfCs.value, choose.value.person, false); - } else { - setTimeout(() => { - cs_dd_arr.value.map((item, index) => { - DGcreateCs2(item, index); - }); - }, 600); } + // if (choose.value.person == "") { + // cs_dd_arr.value.map((item, index) => { + // DGcreateCs(item, index); + // }); + // } else { + // cs_dd_arr.value.map((item, index) => { + // DGcreateCs2(item, index); + // }); + // } addCsChoose(); addCsUnChoose(); });