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