Browse Source

用户反馈

dev
jiangyy 5 years ago
parent
commit
7e11192a05
  1. 2
      epmet-oper-web/src/views/modules/customer/feedback/DetailForm.vue
  2. 91
      epmet-oper-web/src/views/modules/customer/feedback/FeedbackList.vue

2
epmet-oper-web/src/views/modules/customer/feedback/DetailForm.vue

@ -106,7 +106,7 @@
<el-col :span="spanThree">
<el-row :gutter="gutterCon">
<el-col :span="spanTitle">
<div class="form-title">{{'提出时间'}}</div>
<div class="form-title">{{'联系方式'}}</div>
</el-col>
<el-col :span="spanCon">
<div class="form-content">{{adviceData.phone}}</div>

91
epmet-oper-web/src/views/modules/customer/feedback/FeedbackList.vue

@ -12,7 +12,7 @@
<el-select v-model="tableParams.customerId"
placeholder="客户"
clear
@change="customerChange()"
@change="customerChange"
clearable>
<el-option v-for="item in form.data['customerId']"
:key="item.value"
@ -74,6 +74,9 @@
<el-date-picker v-model="tableParams.startTime"
style="width:200px;"
type="datetime"
:picker-options="startPickerTime"
@change="startTimeChange"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="开始时间"></el-date-picker>
</el-form-item>
@ -82,6 +85,8 @@
<el-date-picker v-model="tableParams.endTime"
style="width:200px;"
type="datetime"
:picker-options="endPickerTime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="结束时间"></el-date-picker>
</el-form-item>
@ -122,12 +127,12 @@
<el-table-column prop="phone"
label="联系电话"
:min-width="100"
:min-width="80"
align="center"></el-table-column>
<el-table-column prop="adviceTime"
label="建议时间"
:min-width="100"
:min-width="110"
align="center"></el-table-column>
<el-table-column prop="adviceContent"
@ -137,7 +142,7 @@
<el-table-column label="操作"
fixed="right"
align="center"
width="150">
width="80">
<template slot-scope="scope">
<el-button type="text"
size="small"
@ -177,6 +182,19 @@ export default {
return {
//
labelWidth: '70px',
startPickerTime: {
disabledDate (time) {
return time.getTime() > new Date();
},
},
endPickerTime: {
disabledDate (time) {
return time.getTime() > new Date();
}
},
//
tableUrl: '/epmetuser/useradvice/advicelist',
// tableUrl: 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/epmetuser/useradvice/advicelist',
@ -209,7 +227,6 @@ export default {
customerId: ''
},
//
form: {
dataUrl: [], // //url
@ -256,6 +273,7 @@ export default {
tableHeight () {
return this.clientHeight - 60 - 80 - 80 - 100
},
...mapGetters(['clientHeight', 'env'])
},
methods: {
@ -300,8 +318,11 @@ export default {
//
async customerChange (value) {
this.treeParams.customerId = this.tableParams.customerId
if (this.tableParams.customerId === '') {
this.tableParams.agencyId = ""
this.$refs['agencyCTreeDialog'].setInputValue("")
this.selBtnDisabled = true
this.treeParams.customerId = ''
} else {
@ -332,12 +353,27 @@ export default {
},
//使
startTimeChange (time) {
//date1date2 -- date1date2
let date1 = new Date(time).getTime()
console.log(date1)
this.endPickerTime = {
disabledDate: (time) => {
return time.getTime() < date1 || time.getTime() > Date.now();
}
}
},
handleAgencyOk (data) {//
this.tableParams.agencyId = data.id
console.log(this.tableParams.agencyId)
},
handleAgencyClear () {//
this.tableParams.agencyId = ""
this.$nextTick(() => {
@ -353,40 +389,23 @@ export default {
const { data, code, msg, internalMsg } = await requestPost(this.tableUrl, this.tableParams)
if (code === 0) {
this.total = data.total
this.tableData = data.list
let obj1 = {
"customerName": "灵山卫街道党工委",
"gridName": "市北区第二网格",
"adviceType": "政府业务建议&&软件功能及体验问题",
"phone": "15959999999",
"adviceTime": "2019-08-23 10:10:10",
"adviceContent": "我建议我建议我建议我建议我建议我建议我建议我建议我建议我建议我建议我建议我建议",
"id": "53815"
}
let obj2 = {
"customerName": "灵山卫街道党工委",
"gridName": "市北区第二网格",
"adviceType": "政府业务建议",
"phone": "15959999999",
"adviceTime": "2019-08-23 10:10:10",
"adviceContent": "我建议我建议我建议我建议我建议我建议我建议我建议我建议我建议我建议我建议我建议",
"id": "53815"
}
let obj3 = {
"customerName": "灵山卫街道党工委",
"gridName": "市北区第二网格",
"adviceType": "*",
"phone": "15959999999",
"adviceTime": "2019-08-23 10:10:10",
"adviceContent": "我建议我建议我建议我建议我建议我建议我建议我建议我建议我建议我建议我建议我建议",
"id": "53815"
}
this.tableData.push(obj1)
this.tableData.push(obj2)
this.tableData.push(obj3)
// let obj1 = {
// "customerName": "",
// "gridName": "",
// "adviceType": "&&",
// "phone": "15959999999",
// "adviceTime": "2019-08-23 10:10:10",
// "adviceContent": "",
// "id": "53815"
// }
// this.tableData.push(obj1)
this.tableData.forEach(element => {
element.adviceTypeArray = element.adviceType.split("&&")
element.adviceTypeArray = element.adviceType.split("\\n")
})

Loading…
Cancel
Save