素材 支持视频
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<h2>{{ dashboard.title }}</h2>
|
<h2>{{ dashboard.title }}</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="layout-header__right">
|
<div class="layout-header__right">
|
||||||
<span type="text" @click="isShowImg = true">图片素材</span>
|
<span type="text" @click="isShowImg = true">素材</span>
|
||||||
<span type="text" @click="back">退出</span>
|
<span type="text" @click="back">退出</span>
|
||||||
<span type="text" @click="save">保存</span>
|
<span type="text" @click="save">保存</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -314,22 +314,14 @@
|
|||||||
<span>置底图层</span>
|
<span>置底图层</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ai-dialog :visible.sync="isShowImg" append-to-body title="图片素材" @onConfirm="isShowImg = false">
|
<ai-dialog :visible.sync="isShowImg" append-to-body title="素材" @onConfirm="isShowImg = false">
|
||||||
<el-button type="primary" style="margin-bottom: 20px" @click="isShowAddImg = true">添加图片</el-button>
|
<el-button type="primary" style="margin-bottom: 20px" @click="isShowAddImg = true">添加素材</el-button>
|
||||||
<ai-table
|
<ai-table
|
||||||
:tableData="images"
|
:tableData="images"
|
||||||
:total="images.length"
|
:total="images.length"
|
||||||
:colConfigs="colConfigs"
|
:colConfigs="colConfigs"
|
||||||
@getList="() => {}">
|
@getList="() => {}">
|
||||||
<el-table-column slot="img" label="图片" align="center">
|
<el-table-column slot="img" prop="素材地址" label="素材" align="center">
|
||||||
<template slot-scope="{ row }">
|
|
||||||
<ai-uploader
|
|
||||||
:instance="instance"
|
|
||||||
:value="[{url: row.url}]"
|
|
||||||
disabled
|
|
||||||
:limit="1">
|
|
||||||
</ai-uploader>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column slot="options" width="140px" fixed="right" label="操作" align="center">
|
<el-table-column slot="options" width="140px" fixed="right" label="操作" align="center">
|
||||||
<template slot-scope="{ row, $index }">
|
<template slot-scope="{ row, $index }">
|
||||||
@@ -341,14 +333,14 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</ai-table>
|
</ai-table>
|
||||||
</ai-dialog>
|
</ai-dialog>
|
||||||
<ai-dialog :visible.sync="isShowAddImg" width="580px" append-to-body title="添加图片" @closed="form.images = []" @onConfirm="onImageConfirm">
|
<ai-dialog :visible.sync="isShowAddImg" width="580px" append-to-body title="添加素材" @closed="form.images = []" @onConfirm="onImageConfirm">
|
||||||
<ai-uploader
|
<ai-uploader
|
||||||
:instance="instance"
|
:instance="instance"
|
||||||
v-model="form.images"
|
v-model="form.images"
|
||||||
:limit="9">
|
fileType="file"
|
||||||
<template slot="tips">
|
:maxSize="100"
|
||||||
<p>最多上传9张图片,单个文件最大10MB,支持jpg、jpeg、png格式</p>
|
url="/admin/file/add-unlimited"
|
||||||
</template>
|
:limit="9">
|
||||||
</ai-uploader>
|
</ai-uploader>
|
||||||
</ai-dialog>
|
</ai-dialog>
|
||||||
</div>
|
</div>
|
||||||
@@ -373,8 +365,8 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
// { prop: 'url', label: '图片链接', showOverflowTooltip: false },
|
{ prop: 'url', label: '图片链接', showOverflowTooltip: false },
|
||||||
{slot: 'img', label: '图片'}
|
// {slot: 'img', label: '图片'}
|
||||||
],
|
],
|
||||||
form: {
|
form: {
|
||||||
images: []
|
images: []
|
||||||
|
|||||||
Reference in New Issue
Block a user