Commit 07109a04 authored by 黄奎's avatar 黄奎

页面修改

parent 71ac4541
......@@ -46,23 +46,24 @@
<th>发团日期</th>
<th>团号</th>
<th>领队</th>
<th>未填写人数</th>
<th>未填写人数/总人数</th>
<th>整体评分</th>
<th>操作</th>
</tr>
<tr v-for="(item,i) in dataList" :key="i">
<td>{{item.start}}</td>
<td @click='goUrl("RegistrationList", item.tcid,"报名清单")' class="go_regis">{{item.tCNUM}}</td>
<td>{{item.lname}}</td>
<td>{{item.number}}</td>
<td>{{item.StartDate}}</td>
<td @click='goUrl("RegistrationList", item.TCID,"报名清单")' class="go_regis">{{item.TCNUM}} ({{item.TCID}})</td>
<td>{{item.LeaderName}}</td>
<td>{{item.FinishNum}}/{{item.TotalNum}}</td>
<td>
{{item.ScoreNum}}
</td>
<td>
<span style="cursor:pointer" @click="setInfo(item)">填写</span>
</td>
</tr>
<tr v-if="dataList.length==0">
<td colspan="12" align="center">暂无数据</td>
<td colspan="6" align="center">暂无数据</td>
</tr>
</table>
<el-dialog title="问券填写" :visible.sync="DiaoChaShow" center :before-close="closeDialog">
......@@ -203,7 +204,7 @@
if (obj.number < 1) {
return this.$message.error('此团已完成意见调查!')
}
this.TCID = obj.tcid;
this.TCID = obj.TCID;
this.DiaoChaShow = true;
this.getppList();
},
......@@ -348,47 +349,15 @@
this.loading = true;
this.apipost("survey_post_GetTravelSurveyPage", this.msg, res => {
this.loading = false;
console.log("survey_post_GetTravelSurveyPage", res.data);
if (res.data.resultCode === 1) {
let arrays = [];
console.log("survey_post_GetTravelSurveyPage", res.data);
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: x.StartDate,
sumScore: x.ScoreNum,
tCNUM: x.TCNUM,
number: x.TotalNum,
lname: x.LeaderName
}
obj[x.title] = x.scoreNum
arrays.push(obj)
}
}
});
this.dataList = arrays;
this.dataList = res.data.data.pageData;
this.total = res.data.data.count;
} else {
this.Error(res.data.message)
}
}, null);
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
......
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