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 =>{