消息群发

This commit is contained in:
shijingjing
2022-06-14 14:47:49 +08:00
parent 447a9703ac
commit 190afb8d9d
2 changed files with 5 additions and 5 deletions

View File

@@ -227,7 +227,7 @@ export default {
if (res?.data) {
this.data = res.data
let obj = res.data.fileList.filter(e=> e.contentType == "image")
this.images = [{ url: obj[0].accessUrl }]
this.images = [{ url: obj[0]?.accessUrl }]
}
})
},

View File

@@ -11,7 +11,7 @@
</ai-search-bar>
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
@getList="getTableData" show-overflow-tooltip :col-configs="colConfigs" :dict="dict">
<el-table-column slot="type" width="240px" label="消息内容" align="center">
<!-- <el-table-column slot="type" width="240px" label="消息内容" align="center">
<template slot-scope="{ row }">
<el-popover
placement="bottom"
@@ -27,16 +27,16 @@
<video style="width:40px; height: 40px;" v-if="row.contentType == 'video'" :src="row.accessUrl"></video>
<img src="../../../../examples/assets/file.png" v-if="row.contentType == 'file'" width="40" height="40"/>
<div class="message-info__wrapper--right">
<!-- <h3 v-if="row.contentType === 'image'">{{ row.media.file.name }}</h3>
<h3 v-if="row.contentType === 'image'">{{ row.media.file.name }}</h3>
<h3 v-if="row.contentType === 'video'">{{ row.media.file.name }}</h3>
<p v-if="row.contentType === 'image'">{{ row.media.file.fileSizeStr }}</p>
<p v-if="row.contentType === 'video'">{{ row.media.file.fileSizeStr }}</p> -->
<p v-if="row.contentType === 'video'">{{ row.media.file.fileSizeStr }}</p>
</div>
</div>
</div>
</el-popover>
</template>
</el-table-column>
</el-table-column> -->
<el-table-column slot="options" label="操作" align="center">
<template slot-scope="{ row }">
<el-button type="text" @click="toAdd(row.id)">详情</el-button>