|
@@ -26,9 +26,27 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
|
|
|
- <el-table :data="tableData" stripe style="width: 100%">
|
|
|
+ <el-table :data="tableData" style="width: 100%">
|
|
|
<el-table-column prop="stuffName" label="名称" />
|
|
|
<el-table-column prop="stuffName" label="状态">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-image
|
|
|
+ style="width: 100px; height: 100px"
|
|
|
+ :src="scope.row.addr"
|
|
|
+ v-if="isImg(scope.row.addr)"
|
|
|
+ :zoom-rate="1.2"
|
|
|
+ :max-scale="7"
|
|
|
+ :min-scale="0.2"
|
|
|
+ :preview-src-list="[scope.row.addr]"
|
|
|
+ :initial-index="4"
|
|
|
+ fit="cover"
|
|
|
+ :z-index="100000"
|
|
|
+ :preview-teleported="true"
|
|
|
+ />
|
|
|
+ <video v-else :src="scope.row.addr" controls></video>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="stuffName" label="查看">
|
|
|
<template #default="scope">
|
|
|
{{ getStatus(scope.row.status) }}
|
|
|
</template>
|
|
@@ -201,6 +219,10 @@ const OriginalityName = (id: number) => {
|
|
|
return item?.creativeName
|
|
|
}
|
|
|
|
|
|
+const isImg = (url: string) => {
|
|
|
+ return /\.(jpg|jpeg|png|gif)$/.test(url)
|
|
|
+}
|
|
|
+
|
|
|
const onSubmit = () => {
|
|
|
getMaterialList({
|
|
|
creativeId: pages.creativeId,
|