This commit is contained in:
yanran200730
2023-04-20 11:48:49 +08:00
parent d1fa008407
commit c0a513a1a7
2 changed files with 9 additions and 2 deletions

View File

@@ -36,7 +36,7 @@
<ai-info-item label="事件附件" isLine> <ai-info-item label="事件附件" isLine>
<div class="files"> <div class="files">
<div class="file-item" v-for="(item, index) in info.files" :key="index"> <div class="file-item" v-for="(item, index) in info.files" :key="index">
<img :src="item.url" v-viewer="{movable: true}" v-if="item.postfix !== '.mp4'"> <img :src="item.url" v-viewer="{movable: true}" v-if="['.mp4', '.mov'].includes(item.postfix) !== '.mp4'">
<video controls v-else :src="item.url"></video> <video controls v-else :src="item.url"></video>
</div> </div>
</div> </div>

View File

@@ -305,7 +305,9 @@
onConfirm () { onConfirm () {
this.isShow = false this.isShow = false
this.form.goodsList = this.chooseList.map(v => { let list = this.chooseList.filter(v => {
return this.form.goodsList.map(e => e.goodsId).indexOf(v.id) === -1
}).map(v => {
return { return {
goods: { goods: {
...v ...v
@@ -317,6 +319,11 @@
status: v.status status: v.status
} }
}) })
this.form.goodsList = [
...this.form.goodsList ,
...list
]
}, },
getInfo (id) { getInfo (id) {