|
@@ -113,19 +113,13 @@
|
|
</div>
|
|
</div>
|
|
<div class="complaint-images complaint-content">
|
|
<div class="complaint-images complaint-content">
|
|
<span class="complaint-content-left">图片/视频:</span>
|
|
<span class="complaint-content-left">图片/视频:</span>
|
|
- <span v-if="srcList.length">
|
|
|
|
- <span v-for="(item, index) in imgList" :key="index">
|
|
|
|
- <el-image class="images" :src="item" :preview-src-list="imgList"> </el-image
|
|
|
|
|
|
+ <span v-for="(item, index) in mediaList" :key="index">
|
|
|
|
+ <span v-if="item.type == 1">
|
|
|
|
+ <el-image class="images" :src="item.url" :preview-src-list="imgList"> </el-image
|
|
></span>
|
|
></span>
|
|
- <span @click="clickVideo">
|
|
|
|
- <video
|
|
|
|
- id="video"
|
|
|
|
- v-for="(item, index) in videoList"
|
|
|
|
- :key="index"
|
|
|
|
- :controls="videoControls"
|
|
|
|
- class="videos"
|
|
|
|
- >
|
|
|
|
- <source :src="item" type="video/mp4" />
|
|
|
|
|
|
+ <span @click="clickVideo" v-else>
|
|
|
|
+ <video id="video" :controls="videoControls" class="videos">
|
|
|
|
+ <source :src="item.url" type="video/mp4" />
|
|
您的浏览器暂不支持播放视频
|
|
您的浏览器暂不支持播放视频
|
|
</video></span
|
|
</video></span
|
|
>
|
|
>
|
|
@@ -216,10 +210,9 @@ export default {
|
|
complaintName: '',
|
|
complaintName: '',
|
|
// 视频获得焦点
|
|
// 视频获得焦点
|
|
videoControls: false,
|
|
videoControls: false,
|
|
- // 弹框显示图片
|
|
|
|
- srcList: [],
|
|
|
|
|
|
+ // 弹框显示图片/视频
|
|
imgList: [],
|
|
imgList: [],
|
|
- videoList: [],
|
|
|
|
|
|
+ mediaList: [],
|
|
// 物业回复
|
|
// 物业回复
|
|
replayForm: {
|
|
replayForm: {
|
|
replay: ''
|
|
replay: ''
|
|
@@ -337,6 +330,9 @@ export default {
|
|
this.getCommunityList();
|
|
this.getCommunityList();
|
|
this.mixins_dataUrl = '/sc-community-web/feedback/page';
|
|
this.mixins_dataUrl = '/sc-community-web/feedback/page';
|
|
this.mixins_query = {};
|
|
this.mixins_query = {};
|
|
|
|
+ if (this.$route.query.showDialog && !this.$route.query.closeDialog) {
|
|
|
|
+ this.mixins_query.handleStatus = 1;
|
|
|
|
+ }
|
|
this.mixins_search();
|
|
this.mixins_search();
|
|
},
|
|
},
|
|
mounted() {},
|
|
mounted() {},
|
|
@@ -357,7 +353,9 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- /**查询按钮*/
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 查询按钮
|
|
|
|
+ */
|
|
searchInfo() {
|
|
searchInfo() {
|
|
let detaH = this.$moment(new Date()).format('HH');
|
|
let detaH = this.$moment(new Date()).format('HH');
|
|
let detaM = this.$moment(new Date()).format('mm');
|
|
let detaM = this.$moment(new Date()).format('mm');
|
|
@@ -372,7 +370,9 @@ export default {
|
|
}
|
|
}
|
|
this.mixins_search();
|
|
this.mixins_search();
|
|
},
|
|
},
|
|
- /** 弹框按钮*/
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 弹框按钮
|
|
|
|
+ */
|
|
dialogButton(type) {
|
|
dialogButton(type) {
|
|
console.log('点击保存', this.rowData);
|
|
console.log('点击保存', this.rowData);
|
|
if (type === 'submit') {
|
|
if (type === 'submit') {
|
|
@@ -381,14 +381,24 @@ export default {
|
|
let query = {
|
|
let query = {
|
|
buildingId: this.rowData.buildingId,
|
|
buildingId: this.rowData.buildingId,
|
|
communityId: this.rowData.communityId,
|
|
communityId: this.rowData.communityId,
|
|
- content: this.replayForm.replay,
|
|
|
|
|
|
+ content: '',
|
|
handleStatus: this.mixins_query.complaintStatus,
|
|
handleStatus: this.mixins_query.complaintStatus,
|
|
houseId: this.rowData.houseId,
|
|
houseId: this.rowData.houseId,
|
|
id: this.rowData.id
|
|
id: this.rowData.id
|
|
};
|
|
};
|
|
|
|
|
|
this.$http.post('/sc-community-web/feedback/update', query).then((res) => {
|
|
this.$http.post('/sc-community-web/feedback/update', query).then((res) => {
|
|
|
|
+ // this.message(res.status, '回复');
|
|
|
|
+ // console.log('点击提交', res, this.mixins_query.complaintStatus, this.replayForm.replay);
|
|
|
|
+ });
|
|
|
|
+ let querys = {
|
|
|
|
+ fid: this.rowData.id,
|
|
|
|
+ replyContent: this.replayForm.replay
|
|
|
|
+ };
|
|
|
|
+ this.$http.post('/sc-community-web/feedback/speed/add', querys).then((res) => {
|
|
this.message(res.status, '回复');
|
|
this.message(res.status, '回复');
|
|
|
|
+ this.$refs['replayForm'].resetFields();
|
|
|
|
+
|
|
console.log('点击提交', res, this.mixins_query.complaintStatus, this.replayForm.replay);
|
|
console.log('点击提交', res, this.mixins_query.complaintStatus, this.replayForm.replay);
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
@@ -422,17 +432,17 @@ export default {
|
|
this.rowData = res.data;
|
|
this.rowData = res.data;
|
|
this.centerDialogVisible = true;
|
|
this.centerDialogVisible = true;
|
|
this.complaintName = row.userName;
|
|
this.complaintName = row.userName;
|
|
- if (res.data.imageUrl) {
|
|
|
|
- let file = res.data.imageUrl;
|
|
|
|
- let files = file.split(',');
|
|
|
|
- this.srcList = files;
|
|
|
|
- this.imgList = files.filter((item) => {
|
|
|
|
- return item.substr(-3) == 'png' || item.substr(-3) == 'jpg' || item.substr(-4) == 'jpeg';
|
|
|
|
- });
|
|
|
|
- this.videoList = files.filter((item) => {
|
|
|
|
- return item.substr(-3) == 'mp4';
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+ this.mediaList = JSON.parse(res.data.imageUrl);
|
|
|
|
+ let arr = this.mediaList.filter((item) => {
|
|
|
|
+ console.log('item', item);
|
|
|
|
+ return item.url.substr(-3) == 'png' || item.url.substr(-3) == 'jpg' || item.url.substr(-4) == 'jpeg';
|
|
|
|
+ });
|
|
|
|
+ arr.map((item) => {
|
|
|
|
+ if (item.url) {
|
|
|
|
+ this.imgList.push(item.url);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ console.log(' this.imgList', this.imgList);
|
|
} else {
|
|
} else {
|
|
this.rowData = row;
|
|
this.rowData = row;
|
|
this.$message('获取详情失败!请稍后重试');
|
|
this.$message('获取详情失败!请稍后重试');
|
|
@@ -449,7 +459,7 @@ export default {
|
|
});
|
|
});
|
|
console.log('查看处理详情', row);
|
|
console.log('查看处理详情', row);
|
|
},
|
|
},
|
|
- // 提示消息
|
|
|
|
|
|
+ /**提示消息 */
|
|
message(status, text) {
|
|
message(status, text) {
|
|
if (status === 0) {
|
|
if (status === 0) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -471,4 +481,7 @@ export default {
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
@import './style.scss';
|
|
@import './style.scss';
|
|
|
|
+/deep/ .el-dialog {
|
|
|
|
+ margin-top: 5vh !important;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|