jiangyy 3 years ago
parent
commit
2c906b6af1
  1. 26
      src/views/modules/shequzhili/issue/cptsAudit/issue-detail.vue

26
src/views/modules/shequzhili/issue/cptsAudit/issue-detail.vue

@ -34,14 +34,14 @@
v-for="src in topicInfo.photoList" v-for="src in topicInfo.photoList"
@click="watchImg(src.url)" /> @click="watchImg(src.url)" />
</div> </div>
<div v-if="topicInfo.voiceList&&topicInfo.voiceList.length>0" <div v-if="voiceList&&voiceList.length>0"
:class="['info-prop',{'info-prop-vis':source==='visiual'}]"> :class="['info-prop',{'info-prop-vis':source==='visiual'}]">
<span class="info-title-2">语音</span> <span class="info-title-2">语音</span>
<audio controls> <audio controls>
<source :src="item.url" <source :src="item.url"
type="" type=""
:key="item.url" :key="item.url"
v-for="item in topicInfo.voiceList" /> v-for="item in voiceList" />
</audio> </audio>
</div> </div>
<div :class="['info-prop',{'info-prop-vis':source==='visiual'}]"> <div :class="['info-prop',{'info-prop-vis':source==='visiual'}]">
@ -100,6 +100,7 @@ function iniData () {
issueInfo: {}, issueInfo: {},
topicInfo: {}, topicInfo: {},
voiceList: {},
showType: '', showType: '',
}; };
@ -154,11 +155,30 @@ export default {
"yyyy-MM-dd hh:mm" "yyyy-MM-dd hh:mm"
); );
} }
this.getAttechment()
} }
}, },
methods: { methods: {
async getAttechment () {
const url = "/resi/group/topic/topicattachmentlist"
let params = {
topicId: this.topicInfo.topicId,
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.voiceList = data.voiceList
} else {
this.$message.error(msg)
}
},
watchImg (src) { watchImg (src) {
window.open(src); window.open(src);
}, },
@ -171,8 +191,6 @@ export default {
this.$emit("handleClose"); this.$emit("handleClose");
}, },
async getApiData () {
},
handleToTopic () { handleToTopic () {
this.$emit("handleToTopic") this.$emit("handleToTopic")

Loading…
Cancel
Save