Browse Source

我的建议

master
jiangyy 5 years ago
parent
commit
9bb5e08da0
  1. 24
      epmet-oper-web/src/views/modules/customer/feedback/DetailForm.vue

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

@ -90,7 +90,7 @@
style="width:100%;margin-top:10px">回复详情</el-tag>
<div class="div_form"
v-if="adviceData.replyContent===''">
v-if="showConfirm">
<el-form-item prop="replyContent"
label="回复内容"
label-width="100px"
@ -131,6 +131,7 @@
list-type="picture-card"
:on-exceed="exceedPic"
:on-remove="removePic"
:file-list="replayImgList"
:on-success="handleSuccess"
:limit="3">
<span class="font-14">选择图片</span>
@ -214,8 +215,9 @@ export default {
govImgList: [],//
},
showConfirm: true,
replayImgList: [],
uploadUlr: window.SITE_CONFIG['apiURL'] + '/oss/file/function/upload',
uploadUlr: window.SITE_CONFIG['apiURL'] + '/oss/file/uploadimg',
// upload_url: '', // URL
upload_name: '', //
@ -261,7 +263,9 @@ export default {
// this.endLoading()
if (data) {
this.adviceData = data
if (this.adviceData.replyContent !== '') {
if (this.adviceData.replyContent === '' || this.adviceData.replyContent === null) {
this.showConfirm = true
} else {
this.showConfirm = false
}
}
@ -272,8 +276,9 @@ export default {
},
removePic (file, fileList) {
this.adviceData.govImgList.splice(this.adviceData.govImgList.findIndex(item => item.uid === file.uid), 1)
debugger
this.adviceData.govImgList.splice(this.adviceData.govImgList.findIndex(item => item === file.url), 1)
this.replayImgList.splice(this.replayImgList.findIndex(item => item.uid === file.uid), 1)
},
@ -282,7 +287,9 @@ export default {
},
handleSuccess (response, file, fileList) {
this.adviceData.govImgList.push(file.url)
debugger
this.replayImgList.push(file)
this.adviceData.govImgList.push(response.data.url)
},
@ -295,8 +302,8 @@ export default {
// }
this.startLoading()
let url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/epmetuser/useradvice/advicedetail'
// let url = '/epmetuser/useradvice/advicedetail'
// let url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/epmetuser/useradvice/replyadvice'
let url = '/epmetuser/useradvice/replyadvice'
//
let _data = {
@ -323,6 +330,7 @@ export default {
})
},
diaCancel () {
this.replayImgList = []
this.diaVisible = false
},
//

Loading…
Cancel
Save