项目评估标准 如果localstorage里没有pastlist时做的判断(+)

This commit is contained in:
yanyizhou
2021-09-18 17:00:27 +08:00
parent 5bbcd9a340
commit 212e8acb9b
2 changed files with 26 additions and 18 deletions
@@ -729,17 +729,21 @@ export default {
this.standModel = false;
} else {
if (this.standList.length >= 1) {
this.pastProject.forEach(item => {
this.standList.map(items => {
if( item.productLine === items.productLine){
items.distributePersonId = item.distributePersonId
items.distributePerson = item.distributePerson
}
if (this.pastProject === null){
this.dataList = this.standList;
}else {
this.pastProject.forEach(item => {
this.standList.map(items => {
if( item.productLine === items.productLine){
items.distributePersonId = item.distributePersonId
items.distributePerson = item.distributePerson
}
})
})
})
this.dataList = this.standList;
this.roleForm.directorUser = this.dataList[0].uname;
this.dataList = this.standList
}
this.listForm.dataList = this.standList;
this.roleForm.directorUser = this.dataList[0].uname;
this.standModel = false;
} else {
this.$message.warning("请选择一条数据进行添加");
@@ -704,17 +704,21 @@ export default {
this.standModel = false;
} else {
if (this.standList.length >= 1) {
this.pastProject.forEach(item => {
this.standList.map(items => {
if( item.productLine === items.productLine){
items.distributePersonId = item.distributePersonId
items.distributePerson = item.distributePerson
}
if (this.pastProject === null){
this.dataList = this.standList;
}else {
this.pastProject.forEach(item => {
this.standList.map(items => {
if( item.productLine === items.productLine){
items.distributePersonId = item.distributePersonId
items.distributePerson = item.distributePerson
}
})
})
})
this.dataList = this.standList;
this.roleForm.directorUser = this.dataList[0].uname;
this.dataList = this.standList
}
this.listForm.dataList = this.standList;
this.roleForm.directorUser = this.dataList[0].uname;
this.standModel = false;
} else {
this.$message.warning("请选择一条数据进行添加");