广告内容增加标题

This commit is contained in:
jacky 2024-05-21 13:36:39 +08:00
parent edae8ffc74
commit b983c4d773
1 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,7 @@
<el-table ref="multipleTable" :data="tableData" row-key="ID" @selection-change="handleSelectionChange">
<el-table-column fixed type="selection" width="40" align="center" />
<el-table-column align="left" label="ID" min-width="60" prop="ID" />
<el-table-column align="left" label="媒体文件" min-width="160" prop="mediaUrl">
<el-table-column align="left" label="媒体文件" min-width="180" prop="mediaUrl">
<template #default="scope">
<el-image v-if="scope.row.adType === 1 || scope.row.adType === 3" :src="scope.row.mediaUrl"
class="gva-image" fit="contain" :preview-src-list="[scope.row.mediaUrl]" preview-teleported
@ -17,6 +17,7 @@
<video-viewer v-else-if="scope.row.adType === 2" width="140px" height="100px" :url="scope.row.mediaUrl" />
</template>
</el-table-column>
<el-table-column align="left" label="标题" min-width="280" prop="title" />
<el-table-column align="left" label="类型" min-width="80" prop="adType">
<template #default="scope">
{{ formatAdType(scope.row.adType) }}
@ -77,6 +78,7 @@
<el-option v-for="item in positionOptions" :key="item.ID" :label="item.title" :value="item.ID" />
</el-select>
</el-form-item>
<el-form-item label="跳转地址" prop="url" style="width: 100%">
<el-input v-model="editForm.url" type="url" rows="3" autocomplete="off" style="width: 100%" />
</el-form-item>
@ -86,6 +88,9 @@
<el-form-item label="有效截止日期" prop="validEnd" style="width: 100%">
<el-date-picker v-model="editForm.validEnd" :clearable="false" :editable="false" style="width: 100%" />
</el-form-item>
<el-form-item label="广告标题" prop="title" style="width: 100%">
<el-input v-model="editForm.title" rows="3" autocomplete="off" style="width: 100%" />
</el-form-item>
<el-form-item label="媒体(需要先选择 “类型” 和 “位置”)" prop="mediaUrl" style="width: 100%">
<el-alert v-if="editForm.adType !== '' && editForm.adPositionId !== ''" type="info" :closable="false"
style="margin-bottom: 10px;"