Commit 012a7ede authored by 黄媛媛's avatar 黄媛媛

update

parent 263c8da2
......@@ -143,6 +143,7 @@ export default {
this.dateList[0]=moment().subtract(6, "month").format("YYYY-MM-DD");
this.dateList[1]=moment().format("YYYY-MM-DD");
// console.log("this.dateList",this.dateList)
this.getTitle();
},
mounted(){
this.getLineList();
......@@ -166,6 +167,7 @@ export default {
this.msg.LineteamId=val.LtID;
this.msg.LineteamName=val.LtName;
},
//获取系列列表
getLineTeamList(val) {
let lineId=val.LineID;
......@@ -181,7 +183,23 @@ export default {
}
});
},
getTitle() {
this.apiJavaPost(
"/api/erp/survey/getSurveyTitleList",
{},
res => {
if (res.data.resultCode === 1) {
res.data.data.forEach(item=>{
this.fields.push(item.title)
})
} else {
this.Error(res.data.message);
}
},
null
);
},
getList(){
if(this.dateList && this.dateList.length>0){
......@@ -206,13 +224,14 @@ export default {
this.loading = false;
if (res.data.resultCode === 1) {
let arrays=[];
console.log("res.data.data.pageData",res.data.data)
// console.log("res.data.data.pageData",res.data.data)
res.data.data.pageData.forEach(x => {
let isHave=false
if(x.tCID!=0 || x.tCID || x.tCID!=''){
if(this.fields.indexOf(x.title)==-1&&x.title!=''){
this.fields.push(x.title)
}
// if(this.fields.indexOf(x.title)==-1&&x.title!=''){
// this.fields.push(x.title)
// console.log("fields",this.fields)
// }
if(arrays.length>0){
arrays.forEach(y=>{
if(y.tcid==x.tCID){
......@@ -242,7 +261,7 @@ export default {
});
this.dataList=arrays;
console.log("this.dataList",this.dataList)
// console.log("this.dataList",this.dataList)
this.total=res.data.data.count;
} else {
this.Error(res.data.message)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment