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

Loading…
Cancel
Save