diff --git a/epmet-oper-web/src/views/modules/customer/feedback/DetailForm.vue b/epmet-oper-web/src/views/modules/customer/feedback/DetailForm.vue index 4742340..c381b00 100644 --- a/epmet-oper-web/src/views/modules/customer/feedback/DetailForm.vue +++ b/epmet-oper-web/src/views/modules/customer/feedback/DetailForm.vue @@ -90,7 +90,7 @@ style="width:100%;margin-top:10px">回复详情
+ v-if="showConfirm"> 选择图片 @@ -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 }, // 开启加载动画