标准评估流程第四步多条数据处理

This commit is contained in:
宋伟佳
2022-01-27 17:10:50 +08:00
parent b84a6900bd
commit 81467cd8d3
@@ -97,7 +97,7 @@
</el-tabs>
<el-table
ref="multipleTable"
:data="dataList"
:data="dataList.filter(item =>{return item.projectName === projectName})"
style="width: 100%; border: 1px solid #cccccc;height: 400px"
height="100%"
border
@@ -318,7 +318,8 @@ export default {
data(){
return {
active: '1',
activeName: 'first',
projectName: '',
activeName: '',
fileType: '', //条款文件类型
//折叠的标志,true为折叠,false为不折叠
foldFormFlag: false,
@@ -351,13 +352,7 @@ export default {
},
methods: {
handleClick(tab) {
let projectData = this.dataList
this.dataList = []
projectData.forEach(item => {
if(item.projectName === tab.name){
this.dataList.push(item)
}
})
this.projectName = tab.name
},
getData() {
return new Promise((resolve, reject) => {
@@ -377,6 +372,7 @@ export default {
* @description: 动态表单读取
*/
getFormFieldList (item) {
console.log(item);
this.$nextTick(() => {
this.listForm = JSON.parse(JSON.stringify(item))
this.fileType = item.fileType
@@ -384,11 +380,13 @@ export default {
this.listForm.prcName = this.prcName
this.listForm['id'] = item.id
this.dataList = item.resDats
this.oldDataList = item.resDats
item.resDats.forEach(item => {
if(!this.projectTabName.includes(item.projectName)){
this.projectTabName.push(item.projectName)
}
})
this.projectName = this.activeName = this.projectTabName[Object.keys(this.projectTabName)[0]]
this.listForm.resDats = []
this.listForm.breakdownList = []
this.dataList.distributePerson = item.dataList[0].distributePerson
@@ -533,6 +531,7 @@ export default {
this.selectProject = data
},
choiceZRRS(row, type, index) {
localStorage.setItem('selectProject', JSON.stringify(this.selectProject))
this.type = type;
if (type === 1) {
this.nodeList2 = [];
@@ -574,6 +573,7 @@ export default {
projectList[this.lsIndex].implementer = nameList;
this.dataList = projectList
} else if (this.type === 2) {
this.selectProject = JSON.parse(localStorage.getItem('selectProject'))
let projectList = JSON.parse(JSON.stringify(this.dataList))
projectList.forEach(item => {
this.selectProject.forEach(items => {