From 156746f7f4d14dc1283f5b28c5ad85f484533e17 Mon Sep 17 00:00:00 2001 From: zhangjun Date: Thu, 22 Sep 2022 14:53:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E8=AF=84=E4=BC=B0=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=EF=BC=8C=E6=89=B9=E5=87=86=E8=8A=82=E7=82=B9=EF=BC=8C?= =?UTF-8?q?=E6=A0=87=E5=87=86=E5=8F=B7=E4=B8=80=E6=A0=B7=E7=9A=84=E6=94=BE?= =?UTF-8?q?=E5=9C=A8=E4=B8=80=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/xmpg/step5.vue | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step5.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step5.vue index a5d1b92c9..247b9d985 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step5.vue @@ -451,6 +451,36 @@ export default { this.listForm.prcName = this.prcName; this.listForm["id"] = item.id; this.dataList = item.dataList; + let titleList = []; + let ordelTitleList = []; + + this.dataList.forEach(data=>{ + data.title = data.standSort + data.standNumber + data.standYear + let isReal = "" + // if (titleList !== []){ + titleList.forEach(tl => { + if (tl === data.title){ + isReal = data.title + } + }) + // } + if (isReal === ""){ + titleList.push(data.title); + } + }) + console.log(titleList,"titleList!!!!") + console.log(this.dataList,"dataList 进入方法前 !!!!") + titleList.forEach(tl => { + this.dataList.forEach(data=>{ + if (data.title === tl){ + console.log(data.title,"方法中的title !!!!") + ordelTitleList.push(data) + } + }) + }) + this.dataList = ordelTitleList + + this.dataList.forEach(item =>{ if(item.children){ item.children.forEach(items =>{