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

页面修改

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