Commit 29e72219 authored by 黄奎's avatar 黄奎

页面修改

parent 1e5caa34
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</li> </li>
<li> <li>
<input type="button" class="hollowFixedBtn" value="查询" @click="resetPageIndex(),getList()"> <input type="button" class="hollowFixedBtn" value="查询" @click="resetPageIndex(),getList()">
<input type="button" @click="goUrl" class="normalBtn" value="旅客反馈分析" /> <input type="button" @click="goUrl" class="normalBtn" value="旅客反馈分析" style="display:none;" />
</li> </li>
</ul> </ul>
</div> </div>
...@@ -55,33 +55,25 @@ ...@@ -55,33 +55,25 @@
<tr> <tr>
<th>发团日期</th> <th>发团日期</th>
<th>团号</th> <th>团号</th>
<th>未填写人数</th> <th>领队</th>
<th>未填写人数/总人数</th>
<th>整体评分</th> <th>整体评分</th>
<th v-for="(item,i) in fields" :key="i">{{item}}</th> <template v-if="dataList&&dataList.length>0">
<th v-for="(item,i) in dataList[0].SurveyItemList" :key="i">{{item.Title}}</th>
</template>
<th>操作</th> <th>操作</th>
</tr> </tr>
<tr v-for="(item,i) in dataList" :key="i"> <tr v-for="(item,i) in dataList" :key="i">
<td>{{item.start}}</td> <td>{{item.StartDate}}</td>
<td>{{item.tCNUM}}</td> <td @click='goUrl("RegistrationList", item.TCID,"报名清单")' class="go_regis">{{item.TCNUM}} ({{item.TCID}})</td>
<td>{{item.number}}</td> <td>{{item.LeaderName}}</td>
<td>{{item.FinishNum}}/{{item.TotalNum}}</td>
<td> <td>
<span v-if="fields.length>0"> {{item.ScoreNum}}
<span v-if="item.sumScore/fields.length>3.5">{{(item.sumScore/fields.length).toFixed(1)}}</span>
<span v-else style="color:red">{{(item.sumScore/fields.length).toFixed(1)}}</span>
</span>
<span v-else>
<span v-if="item.sumScore>3.5">{{item.sumScore}}</span>
<span v-else style="color:red">{{item.sumScore}}</span>
</span>
</td> </td>
<td v-for="(c,childIndex) in fields" :key="childIndex"> <template v-if="item.SurveyItemList&&item.SurveyItemList.length>0">
<td v-for="(subItem,subIndex) in item.SurveyItemList" :key="subIndex">{{subItem.ItemValue}}</td>
<span v-if="item[c]&&item[c]>3.5">{{item[c]?item[c]:0}}</span> </template>
<span v-else style="color:red">{{item[c]?item[c]:0}}</span>
</td>
<td> <td>
<span style="cursor:pointer" @click="chaKan(item)">明细</span> <span style="cursor:pointer" @click="chaKan(item)">明细</span>
</td> </td>
...@@ -144,7 +136,7 @@ ...@@ -144,7 +136,7 @@
this.$router.push({ this.$router.push({
name: 'investigationList', name: 'investigationList',
query: { query: {
"TCID": item.tcid, "TCID": item.TCID,
blank: 'y' blank: 'y'
} }
}) })
...@@ -171,7 +163,6 @@ ...@@ -171,7 +163,6 @@
this.msg.LineteamId = val.LtID; this.msg.LineteamId = val.LtID;
this.msg.LineteamName = val.LtName; this.msg.LineteamName = val.LtName;
}, },
//获取系列列表 //获取系列列表
getLineTeamList(val) { getLineTeamList(val) {
let lineId = val.LineID; let lineId = val.LineID;
...@@ -188,7 +179,7 @@ ...@@ -188,7 +179,7 @@
}); });
}, },
getTitle() { getTitle() {
this.apiJavaPost("/api/erp/survey/getSurveyTitleList", {}, res => { this.apipost("survey_post_GetSurveyShowList", {}, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
res.data.data.forEach(item => { res.data.data.forEach(item => {
this.fields.push(item.title) this.fields.push(item.title)
...@@ -217,40 +208,10 @@ ...@@ -217,40 +208,10 @@
this.msg.reEndDate = ""; this.msg.reEndDate = "";
} }
this.loading = true; this.loading = true;
this.apiJavaPost("/api/erp/survey/getSurveyList", this.msg, res => { this.apipost("survey_post_GetTravelSurveyPage", this.msg, res => {
this.loading = false; this.loading = false;
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
let arrays = []; this.dataList = res.data.data.pageData;
res.data.data.pageData.forEach(x => {
let isHave = false
if (x.tCID != 0 || x.tCID || x.tCID != '') {
if (arrays.length > 0) {
arrays.forEach(y => {
if (y.tcid == x.tCID) {
y[x.title] = x.scoreNum
y.sumScore += x.scoreNum
isHave = true
return false
}
})
}
if (!isHave) {
let obj = {
tcid: x.tCID,
start: "",
sumScore: x.scoreNum,
tCNUM: x.tCNUM,
number: x.number ? x.number : 0
}
if (x.startDate) {
obj.start = x.startDate.split('T')[0]
}
obj[x.title] = x.scoreNum
arrays.push(obj)
}
}
});
this.dataList = arrays;
this.total = res.data.data.count; this.total = res.data.data.count;
} else { } else {
this.Error(res.data.message) this.Error(res.data.message)
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
</tr> </tr>
<tr> <tr>
<td class="CP_ComTitle2 CostcomCenter" style="width:150px">酒店名称</td> <td class="CP_ComTitle2 CostcomCenter" style="width:150px">酒店名称</td>
<td class="CP_ComTitle2 CostcomCenter" style="width:50px">价格/</td> <td class="CP_ComTitle2 CostcomCenter" style="width:50px">价格/</td>
<td class="CP_ComTitle2 CostcomCenter" style="width:50px">车资/天</td> <td class="CP_ComTitle2 CostcomCenter" style="width:50px">车资/天</td>
<td class="CP_ComTitle2 CostcomCenter" style="width:50px">过路费<br />停车费/天</td> <td class="CP_ComTitle2 CostcomCenter" style="width:50px">过路费<br />停车费/天</td>
<td class="CP_ComTitle2 CostcomCenter" style="width:110px">餐厅名称</td> <td class="CP_ComTitle2 CostcomCenter" style="width:110px">餐厅名称</td>
......
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
</li> </li>
</ul> </ul>
</div> </div>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading"> <table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<tr> <tr>
<th>发团日期</th> <th>发团日期</th>
...@@ -48,6 +47,9 @@ ...@@ -48,6 +47,9 @@
<th>领队</th> <th>领队</th>
<th>未填写人数/总人数</th> <th>未填写人数/总人数</th>
<th>整体评分</th> <th>整体评分</th>
<template v-if="dataList&&dataList.length>0">
<th v-for="(item,i) in dataList[0].SurveyItemList" :key="i">{{item.Title}}</th>
</template>
<th>操作</th> <th>操作</th>
</tr> </tr>
<tr v-for="(item,i) in dataList" :key="i"> <tr v-for="(item,i) in dataList" :key="i">
...@@ -58,6 +60,9 @@ ...@@ -58,6 +60,9 @@
<td> <td>
{{item.ScoreNum}} {{item.ScoreNum}}
</td> </td>
<template v-if="item.SurveyItemList&&item.SurveyItemList.length>0">
<td v-for="(subItem,subIndex) in item.SurveyItemList" :key="subIndex">{{subItem.ItemValue}}</td>
</template>
<td> <td>
<span style="cursor:pointer" @click="setInfo(item)">填写</span> <span style="cursor:pointer" @click="setInfo(item)">填写</span>
</td> </td>
...@@ -301,7 +306,6 @@ ...@@ -301,7 +306,6 @@
this.msg.LineteamId = val.LtID; this.msg.LineteamId = val.LtID;
this.msg.LineteamName = val.LtName; this.msg.LineteamName = val.LtName;
}, },
//获取系列列表 //获取系列列表
getLineTeamList(val) { getLineTeamList(val) {
let lineId = val.LineID; let lineId = val.LineID;
...@@ -349,7 +353,6 @@ ...@@ -349,7 +353,6 @@
this.loading = true; this.loading = true;
this.apipost("survey_post_GetTravelSurveyPage", this.msg, res => { this.apipost("survey_post_GetTravelSurveyPage", this.msg, res => {
this.loading = false; this.loading = false;
console.log("survey_post_GetTravelSurveyPage", res.data);
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.dataList = res.data.data.pageData; this.dataList = res.data.data.pageData;
this.total = res.data.data.count; this.total = res.data.data.count;
......
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