项目评估流程,批准节点,标准号一样的放在一起
This commit is contained in:
@@ -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 =>{
|
||||
|
||||
Reference in New Issue
Block a user