Commit a1443e8d authored by 华国豪's avatar 华国豪 🙄
parents 64b82111 9fb91f42
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
<span> <span>
<em>线路</em> <em>线路</em>
</span> </span>
<el-select filterable v-model="msg.CreateBy" @change="getLineTeamList(msg.LineId)"> <el-select filterable v-model="msg.lineID" @change="getLineTeamList(msg.lineID)">
<el-option label="不限" value='-1'></el-option> <el-option label="不限" :value='0'></el-option>
<el-option v-for="item in LineList" :label='item.LineName' :value='item.LineID' :key='item.LineID'></el-option> <el-option v-for="item in LineList" :label='item.LineName' :value='item.LineID' :key='item.LineID'></el-option>
</el-select> </el-select>
</li> </li>
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
<span> <span>
<em>系列</em> <em>系列</em>
</span> </span>
<el-select filterable v-model="msg.CreateBy"> <el-select filterable v-model="msg.LineteamId">
<el-option label="不限" value='-1'></el-option> <el-option label="不限" :value='0'></el-option>
<el-option v-for="item in LineTeamList" :label='item.LtName' :value='item.LtID' :key='item.LtID'> <el-option v-for="item in LineTeamList" :label='item.LtName' :value='item.LtID' :key='item.LtID'>
</el-option> </el-option>
</el-select> </el-select>
...@@ -26,11 +26,10 @@ ...@@ -26,11 +26,10 @@
<span> <span>
<em>只看有评分</em> <em>只看有评分</em>
</span> </span>
<el-select filterable class='multiple_input' v-model='msg.Brand' :placeholder="$t('pub.pleaseSel')"> <el-select filterable class='multiple_input' v-model='msg.isScore' :placeholder="$t('pub.pleaseSel')">
<el-option label="不限" :value="-1"></el-option> <el-option label="不限" :value="0"></el-option>
<el-option label="是" :value="-1"></el-option> <el-option label="是" :value="1"></el-option>
<el-option label="否" :value="-1"></el-option> <el-option label="否" :value="-1"></el-option>
</el-select> </el-select>
</li> </li>
<li> <li>
...@@ -54,7 +53,7 @@ ...@@ -54,7 +53,7 @@
value="查询" value="查询"
@click="resetPageIndex(),getList()" @click="resetPageIndex(),getList()"
> >
<el-button @click="goUrl" type="danger" style="border-radius:14px;margin-left:8px" size="small">旅客反馈分析</el-button> <input type="button" @click="goUrl" class="normalBtn" value="旅客反馈分析"/>
</li> </li>
</ul> </ul>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading"> <table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
...@@ -67,7 +66,7 @@ ...@@ -67,7 +66,7 @@
</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.start}}</td>
<td>没有字段({{item.tcid}})</td> <td>{{item.tCNUM}}</td>
<td> <td>
{{(item.sumScore/fields.length).toFixed(1)}} {{(item.sumScore/fields.length).toFixed(1)}}
</td> </td>
...@@ -78,7 +77,7 @@ ...@@ -78,7 +77,7 @@
</td> </td>
</tr> </tr>
<tr v-if="dataList.length==0"> <tr v-if="dataList.length==0">
<td colspan="10" align="center">暂无数据</td> <td colspan="12" align="center">暂无数据</td>
</tr> </tr>
</table> </table>
<el-pagination <el-pagination
...@@ -103,6 +102,11 @@ export default { ...@@ -103,6 +102,11 @@ export default {
msg:{ msg:{
pageSize:10, pageSize:10,
pageIndex:1, pageIndex:1,
lineID:0,
LineteamId:0,
reStartDate:'',
reEndDate:'',
isScore:0
}, },
total:0, total:0,
currentPage:1, currentPage:1,
...@@ -117,11 +121,8 @@ export default { ...@@ -117,11 +121,8 @@ export default {
this.getList(); this.getList();
}, },
methods:{ methods:{
chaKan(item){ chaKan(item){
console.log("item",item)
this.$router.push({ name:'investigationList',query:{"TCID":item.tcid,blank: 'y'} }) this.$router.push({ name:'investigationList',query:{"TCID":item.tcid,blank: 'y'} })
}, },
goUrl(){ goUrl(){
this.$router.push({ name:'FeedbackChart',query:{"customerId":1,blank: 'y'} }) this.$router.push({ name:'FeedbackChart',query:{"customerId":1,blank: 'y'} })
...@@ -149,23 +150,20 @@ export default { ...@@ -149,23 +150,20 @@ export default {
getList(){ getList(){
if(this.dateList){ if(this.dateList){
this.msg.startDate=this.dateList[0]; this.msg.reStartDate=this.dateList[0];
this.msg.endDate=this.dateList[1]; this.msg.reEndDate=this.dateList[1];
}else{ }else{
this.msg.startDate=""; this.msg.reStartDate="";
this.msg.endDate=""; this.msg.reEndDate="";
} }
this.loading=true;
this.apiJavaPost("/api/erp/survey//getSurveyList", this.msg, res => { this.apiJavaPost("/api/erp/survey//getSurveyList", this.msg, res => {
// this.loading = false; this.loading = false;
console.log(res);
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
let arrays=[] let arrays=[]
res.data.data.pageData.forEach(x => { res.data.data.pageData.forEach(x => {
let isHave=false let isHave=false
if(this.fields.indexOf(x.title)==-1){ if(this.fields.indexOf(x.title)==-1&&x.title!=''){
this.fields.push(x.title) this.fields.push(x.title)
} }
if(arrays.length>0){ if(arrays.length>0){
...@@ -182,7 +180,8 @@ export default { ...@@ -182,7 +180,8 @@ export default {
let obj={ let obj={
tcid:x.tCID, tcid:x.tCID,
start:x.startDate.split('T')[0], start:x.startDate.split('T')[0],
sumScore:x.scoreNum sumScore:x.scoreNum,
tCNUM:x.tCNUM
} }
obj[x.title]=x.scoreNum obj[x.title]=x.scoreNum
arrays.push(obj) arrays.push(obj)
...@@ -191,12 +190,8 @@ export default { ...@@ -191,12 +190,8 @@ export default {
}); });
this.dataList=arrays; this.dataList=arrays;
this.total=this.dataList.length; this.total=this.dataList.length;
console.log(this.dataList,'datalist');
} else { } else {
this.Error(res.data.message) this.Error(res.data.message)
} }
}, null); }, null);
}, },
......
...@@ -234,12 +234,12 @@ ...@@ -234,12 +234,12 @@
}, },
timeAdd(){ timeAdd(){
if(!this.productionDate){ if(!this.productionDate){
this.msg.sDate = ''; this.msg.StartTime = '';
this.msg.eDate = ''; this.msg.EndTime = '';
return return
} }
this.msg.sDate = this.productionDate[0]; this.msg.StartTime = this.productionDate[0];
this.msg.eDate = this.productionDate[1]; this.msg.EndTime = this.productionDate[1];
}, },
financeinfo_post_GetList(){ // 币种类型 financeinfo_post_GetList(){ // 币种类型
this.apipost('financeinfo_post_GetList',{Name:''},res=>{ this.apipost('financeinfo_post_GetList',{Name:''},res=>{
......
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