Commit 0e57108e authored by 黄奎's avatar 黄奎

页面修改

parent 46230300
......@@ -192,7 +192,6 @@
if (res.data.resultCode === 1) {
res.data.data.forEach(item => {
this.fields.push(item.title)
})
} else {
this.Error(res.data.message);
......@@ -218,7 +217,7 @@
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;
if (res.data.resultCode === 1) {
let arrays = [];
......
<template>
<div id="Usersuggest">
<div style="margin:0 auto;width:1200px">
<div style="font-size:14px;color:#666666;margin:10px 0">
<span @click="goUrl('FeedbackChart')" style="cursor:pointer">旅客反馈数据分析 > </span>
<span style="color:#3751FE">用户建议</span>
</div>
<div class="people">
<p>
<span>用户建议</span>
<!-- <span style="float:right;font-size:12px;color:#333333">查看全部</span> -->
</p>
<ul class="ul">
<li v-for="(item,index) in SuggestList" :key="index">
<img style="width:40px;height:40px" src="../../../assets/img/fk/8.png" alt="">
<div class="Item">
<p style="color:#3751FE">({{item.TCNUM}}){{item.OrderID}}</p>
<p>{{item.TextContent}}</p>
</div>
</li>
<div v-if="SuggestList.length==0" style="text-align:center;padding:40px 0;">
<i style="font-size:80px" class="iconfont icon-wushuju"></i>
</div>
</ul>
<div>
<el-pagination
background
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
layout="total,prev, pager, next, jumper"
:page-size="msg.pageSize"
:total="total"
></el-pagination>
</div>
<div style="margin:0 auto;width:1200px">
<div style="font-size:14px;color:#666666;margin:10px 0">
<span @click="goUrl('FeedbackChart')" style="cursor:pointer">旅客反馈数据分析 > </span>
<span style="color:#3751FE">用户建议</span>
</div>
<div class="people">
<p>
<span>用户建议</span>
</p>
<ul class="ul">
<li v-for="(item,index) in SuggestList" :key="index">
<img style="width:40px;height:40px" src="../../../assets/img/fk/8.png" alt="">
<div class="Item">
<p style="color:#3751FE">({{item.TCNUM}}){{item.OrderID}}</p>
<p>{{item.TextContent}}</p>
</div>
</li>
<div v-if="SuggestList.length==0" style="text-align:center;padding:40px 0;">
<i style="font-size:80px" class="iconfont icon-wushuju"></i>
</div>
</ul>
<div>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total"></el-pagination>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
export default {
name: 'Feedbackchart',
data (){
return{
msg:{},
currentPage:1,
total:0,
SuggestList:[],
}
data() {
return {
msg: {},
currentPage: 1,
total: 0,
SuggestList: [],
}
},
created(){
if(this.$route.query.msg){
this.msg=JSON.parse(this.$route.query.msg);
}
this.getList();
created() {
if (this.$route.query.msg) {
this.msg = JSON.parse(this.$route.query.msg);
}
this.getList();
},
mounted(){
mounted() {
},
methods:{
getList(){
this.apiJavaPost("/api/erp/survey/getSuggest", this.msg, res => {
if (res.data.resultCode === 1) {
this.SuggestList=res.data.data.pageData;
this.total=res.data.data.count;
} else {
this.Error(res.data.message)
}
}, null);
},
goUrl(path){
this.$router.push({ name:path,query:{"msg":JSON.stringify(this.msg),blank: 'y'} })
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
}
}
methods: {
getList() {
this.apiJavaPost("/api/erp/survey/getSuggest", this.msg, res => {
if (res.data.resultCode === 1) {
this.SuggestList = res.data.data.pageData;
this.total = res.data.data.count;
} else {
this.Error(res.data.message)
}
}, null);
},
goUrl(path) {
this.$router.push({
name: path,
query: {
"msg": JSON.stringify(this.msg),
blank: 'y'
}
})
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
}
}
</script>
<style>
#Usersuggest .el-pagination{
border-top:none!important;
}
#Usersuggest .people .ul li{
padding:15px 0;
#Usersuggest .el-pagination {
border-top: none !important;
}
#Usersuggest .people .ul li {
padding: 15px 0;
border-bottom: 1px dashed #DCDCDC;
display: flex;
align-items: center;
}
#Usersuggest .people .Item{
}
#Usersuggest .people .Item {
font-size: 12px;
display: inline-block;
margin-left:10px;
width:90%;
}
#Usersuggest .people{
background:rgba(255,255,255,1);
border:2px solid rgba(235, 237, 244, 1);
border-radius:8px;
margin-left: 10px;
width: 90%;
}
#Usersuggest .people {
background: rgba(255, 255, 255, 1);
border: 2px solid rgba(235, 237, 244, 1);
border-radius: 8px;
margin-top: 20px;
padding: 30px;
box-sizing: border-box;
}
}
</style>
......@@ -359,11 +359,10 @@
});
},
getTitle() {
this.apiJavaPost("/api/erp/survey/getSurveyTitleList", {}, res => {
this.apipost("survey_post_GetSurveyShowList", {}, res => {
if (res.data.resultCode === 1) {
res.data.data.forEach(item => {
this.fields.push(item.title)
this.fields.push(item.Title)
})
} else {
this.Error(res.data.message);
......@@ -372,7 +371,6 @@
null
);
},
getList() {
if (this.dateList && this.dateList.length > 0) {
this.msg.reStartDate = this.dateList[0];
......
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