285
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user