Browse Source

播放语音

shibei_master
jiangyy 3 years ago
parent
commit
7281e331f1
  1. 4
      src/views/modules/shequzhili/event/cpts/event-detail.vue
  2. 37
      src/views/modules/shequzhili/event/eventList.vue
  3. 8
      src/views/modules/visual/communityGovern/shijianchuli/event-info.vue
  4. 11
      src/views/modules/visual/cpts/analyse.vue

4
src/views/modules/shequzhili/event/cpts/event-detail.vue

@ -31,9 +31,9 @@
class="info-prop"> class="info-prop">
<span class="info-title-2">语音</span> <span class="info-title-2">语音</span>
<audio controls> <audio controls>
<source :src="item.url" <source :src="item"
type="" type=""
:key="item.url" :key="item"
v-for="item in info.voiceList" /> v-for="item in info.voiceList" />
</audio> </audio>
</div> </div>

37
src/views/modules/shequzhili/event/eventList.vue

@ -169,7 +169,8 @@
width="80" width="80"
label="音频"> label="音频">
<template slot-scope="scope"> <template slot-scope="scope">
<img class="img-voice" <img @click="handleShowVoice(scope.row.voiceList[0])"
class="img-voice"
v-if="scope.row.voiceList&&scope.row.voiceList.length>0" v-if="scope.row.voiceList&&scope.row.voiceList.length>0"
src="@/assets/img/icon-voice.png" /> src="@/assets/img/icon-voice.png" />
@ -261,7 +262,7 @@
@click="handleWatch(scope.row)" @click="handleWatch(scope.row)"
type="text" type="text"
size="small">查看</el-button> size="small">查看</el-button>
<!-- ="scope.row.status==='closed_case' && scope.row.satisfactionName" -->
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -290,6 +291,30 @@
@dialogOk="handleEditSuccess" /> @dialogOk="handleEditSuccess" />
</div> </div>
<el-dialog :title="'播放语音'"
:visible.sync="showVoice"
width="40%"
top="5vh"
append-to-body
class="dialog-h"
:close-on-click-modal="false">
<div class="dialog-h-content scroll-h">
<div style="display:flex;justify-content:center;margin:50px">
<audio controls>
<source :src="selVoiceUrl"
type="" />
</audio>
</div>
</div>
<div class="resi-btns">
<el-button size="small"
@click="showVoice=false">取消</el-button>
</div>
</el-dialog>
</div> </div>
</template> </template>
@ -384,7 +409,8 @@ export default {
eventDetailData: {}, eventDetailData: {},
showVoice: false,
selVoiceUrl: '',
}; };
}, },
computed: { computed: {
@ -518,6 +544,11 @@ export default {
} }
}, },
//
handleShowVoice (url) {
this.selVoiceUrl = url
this.showVoice = true
},
handleClose () { handleClose () {
this.pageType = "list"; this.pageType = "list";

8
src/views/modules/visual/communityGovern/shijianchuli/event-info.vue

@ -344,7 +344,7 @@ export default {
// //
this.yanPan.singleTitle = data.categoryName; this.yanPan.singleTitle = data.sourceTypeName;
this.yanPan.hasEvent = false; this.yanPan.hasEvent = false;
@ -374,8 +374,8 @@ export default {
this.yanPan.loading = true; this.yanPan.loading = true;
if (code === 0) { if (code === 0) {
let oneData = { let oneData = {
// categoryCode: 111, categoryCode: this.yanPan.categoryCode,
// categoryName: 111, categoryName: this.yanPan.categoryName,
showItem: true, showItem: true,
addressList: data.list.map((subItem) => { addressList: data.list.map((subItem) => {
return { return {
@ -391,8 +391,6 @@ export default {
singleList: [oneData] singleList: [oneData]
} }
this.yanPan = { ...this.yanPan, ...aaa }; this.yanPan = { ...this.yanPan, ...aaa };
console.log(this.yanPan); console.log(this.yanPan);

11
src/views/modules/visual/cpts/analyse.vue

@ -2,7 +2,8 @@
<div class="analyse-container"> <div class="analyse-container">
<div class="analyse-wr list-wr"> <div class="analyse-wr list-wr">
<div class="analys-col"> <div v-if="userList&&userList.length>0"
class="analys-col">
<div class="analys-family"> <div class="analys-family">
<div class="family-title">(家属)</div> <div class="family-title">(家属)</div>
<div v-for="(item, index) in userList" <div v-for="(item, index) in userList"
@ -13,7 +14,8 @@
</div> </div>
</div> </div>
<div class="analys-col"> <div v-if="userList&&userList.length>0"
class="analys-col">
<img class="analys-arrow" <img class="analys-arrow"
src="../../../../assets/img/shuju/measure/zuo@2x.png" /> src="../../../../assets/img/shuju/measure/zuo@2x.png" />
</div> </div>
@ -304,6 +306,7 @@ export default {
}, },
created () { created () {
this.tempList = [...this.singleList] this.tempList = [...this.singleList]
console.log(this.tempList)
}, },
methods: { methods: {
@ -494,6 +497,10 @@ export default {
margin: 0 auto; margin: 0 auto;
} }
} }
// .cate-col {
// width: 250px;
// }
.cate-col-w100 { .cate-col-w100 {
width: 230px; width: 230px;
.cate-list-w0 { .cate-list-w0 {

Loading…
Cancel
Save