轮播图
This commit is contained in:
@@ -2,15 +2,13 @@
|
|||||||
<div class="appcarousel">
|
<div class="appcarousel">
|
||||||
<ai-list>
|
<ai-list>
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<ai-title title="轮播图片" :isShowBottomBorder="false" :isShowArea="false"></ai-title>
|
<ai-title title="轮播图片" isShowBottomBorder></ai-title>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template slot="content">
|
<template slot="content">
|
||||||
<ai-search-bar>
|
<ai-search-bar>
|
||||||
<template slot="left">
|
<template slot="left">
|
||||||
<el-button type="primary" icon="iconfont iconAdd" size="small" @click="add">添加</el-button>
|
<el-button type="primary" icon="iconfont iconAdd" size="small" @click="add">添加</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template slot="right">
|
<template slot="right">
|
||||||
<el-input v-model="search.title" size="small" placeholder="搜索标题" clearable
|
<el-input v-model="search.title" size="small" placeholder="搜索标题" clearable
|
||||||
@keyup.enter.native=";(page.current = 1), getList()"
|
@keyup.enter.native=";(page.current = 1), getList()"
|
||||||
@@ -28,14 +26,15 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<!-- 操作 -->
|
<!-- 操作 -->
|
||||||
<el-table-column label="操作" align="center" width="300" slot="option">
|
<el-table-column label="操作" align="center" width="220" slot="option">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<el-button type="text" @click="release(row)" v-if="row.status == 1">取消发布</el-button>
|
<div class="table-options">
|
||||||
<el-button type="text" @click="release(row)" v-else>发布</el-button>
|
<el-button type="text" @click="release(row)" v-if="row.status == 1">取消发布</el-button>
|
||||||
|
<el-button type="text" @click="release(row)" v-else>发布</el-button>
|
||||||
<el-button type="text" @click="detail(row)">详情</el-button>
|
<el-button type="text" @click="detail(row)">详情</el-button>
|
||||||
<el-button type="text" @click="edit(row)">编辑</el-button>
|
<el-button type="text" @click="edit(row)">编辑</el-button>
|
||||||
<el-button type="text" @click="remove(row.id)">删除</el-button>
|
<el-button type="text" @click="remove(row.id)">删除</el-button>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</ai-table>
|
</ai-table>
|
||||||
@@ -57,12 +56,16 @@
|
|||||||
<!-- 连接类型 -->
|
<!-- 连接类型 -->
|
||||||
<el-form-item label="链接类型" prop="type">
|
<el-form-item label="链接类型" prop="type">
|
||||||
<ai-select v-model="dialogInfo.type" placeholder="请选择链接类型"
|
<ai-select v-model="dialogInfo.type" placeholder="请选择链接类型"
|
||||||
:selectList="$dict.getDict('bannerType')"></ai-select>
|
:selectList="dict.getDict('bannerType')"></ai-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 链接 -->
|
<!-- 链接 -->
|
||||||
<el-form-item label="链接" prop="linkUrl">
|
<el-form-item label="链接" prop="linkUrl">
|
||||||
<el-input placeholder="请输入链接" v-model="dialogInfo.linkUrl"></el-input>
|
<el-input placeholder="请输入链接" v-model="dialogInfo.linkUrl"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="位置" prop="position">
|
||||||
|
<ai-select v-model="dialogInfo.position" placeholder="请选择链接类型"
|
||||||
|
:selectList="dict.getDict('bannerPosition')"></ai-select>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</ai-dialog>
|
</ai-dialog>
|
||||||
|
|
||||||
@@ -83,6 +86,9 @@
|
|||||||
<ai-info-item label="链接:">
|
<ai-info-item label="链接:">
|
||||||
<span>{{ dialogInfo.linkUrl }}</span>
|
<span>{{ dialogInfo.linkUrl }}</span>
|
||||||
</ai-info-item>
|
</ai-info-item>
|
||||||
|
<ai-info-item label="位置:">
|
||||||
|
<span>{{ this.dict.getLabel('bannerPosition', dialogInfo.position) }}</span>
|
||||||
|
</ai-info-item>
|
||||||
</ai-wrapper>
|
</ai-wrapper>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
@@ -131,6 +137,7 @@ export default {
|
|||||||
imgUrl: [],
|
imgUrl: [],
|
||||||
type: '',
|
type: '',
|
||||||
linkUrl: '',
|
linkUrl: '',
|
||||||
|
position: ''
|
||||||
},
|
},
|
||||||
// fileList: '',
|
// fileList: '',
|
||||||
formRules: {
|
formRules: {
|
||||||
@@ -175,7 +182,7 @@ export default {
|
|||||||
watch: {},
|
watch: {},
|
||||||
// 实例创建后
|
// 实例创建后
|
||||||
created() {
|
created() {
|
||||||
this.dict.load('bannerType', 'bannerSstatus').then(() => {
|
this.dict.load('bannerType', 'bannerSstatus', 'bannerPosition').then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
// this.getList()
|
// this.getList()
|
||||||
@@ -231,6 +238,7 @@ export default {
|
|||||||
title: this.dialogInfo.title,
|
title: this.dialogInfo.title,
|
||||||
type: this.dialogInfo.type,
|
type: this.dialogInfo.type,
|
||||||
id: this.dialogInfo.id,
|
id: this.dialogInfo.id,
|
||||||
|
position: this.dialogInfo.position
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
|
|||||||
@@ -65,10 +65,10 @@ module.exports = {
|
|||||||
//设置代理,可解决跨5
|
//设置代理,可解决跨5
|
||||||
'/lan': {
|
'/lan': {
|
||||||
// target: "https://gsgate.cunwuyun.cn/",
|
// target: "https://gsgate.cunwuyun.cn/",
|
||||||
target: 'http://192.168.1.87:9000/',
|
// target: 'http://192.168.1.87:9000/',
|
||||||
// target: "http://192.168.1.113:9998/",
|
// target: "http://192.168.1.113:9998/",
|
||||||
// target: "http://192.168.1.245:9000/",
|
// target: "http://192.168.1.245:9000/",
|
||||||
// target: "http://192.168.1.34:19898/",
|
target: "http://192.168.1.34:19898",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
//地址重写
|
//地址重写
|
||||||
|
|||||||
Reference in New Issue
Block a user