|
@@ -14,9 +14,9 @@
|
|
:data="loadData"
|
|
:data="loadData"
|
|
bordered>
|
|
bordered>
|
|
<!-- 广告图位置 -->
|
|
<!-- 广告图位置 -->
|
|
- <!-- <span slot="position" slot-scope="text,record">
|
|
|
|
|
|
+ <span slot="position" slot-scope="text,record">
|
|
{{ $refs.position.getNameByCode(text) }}
|
|
{{ $refs.position.getNameByCode(text) }}
|
|
- </span> -->
|
|
|
|
|
|
+ </span>
|
|
<span slot="action" slot-scope="text, record">
|
|
<span slot="action" slot-scope="text, record">
|
|
<template>
|
|
<template>
|
|
<a-icon type="eye" :style="{ fontSize: '20px', color: '#e29e14', padding: '0 10px' }" @click="handleEdit(record, 1)" />
|
|
<a-icon type="eye" :style="{ fontSize: '20px', color: '#e29e14', padding: '0 10px' }" @click="handleEdit(record, 1)" />
|
|
@@ -50,15 +50,16 @@
|
|
:disabled="disabled"
|
|
:disabled="disabled"
|
|
placeholder="请输入轮播图名称32个字以内" />
|
|
placeholder="请输入轮播图名称32个字以内" />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
- <!-- <a-form-item required label="广告图位置" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
|
|
|
|
|
|
+ <a-form-item label="广告图位置" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
|
|
<v-select
|
|
<v-select
|
|
ref="position"
|
|
ref="position"
|
|
code="ADVERT_POSITION"
|
|
code="ADVERT_POSITION"
|
|
v-model="formData.position"
|
|
v-model="formData.position"
|
|
allowClear
|
|
allowClear
|
|
placeholder="请选择广告图位置"
|
|
placeholder="请选择广告图位置"
|
|
- :disabled="disabled"></v-select>
|
|
|
|
- </a-form-item> -->
|
|
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ v-decorator="['formData.position', { initialValue:formData.position,rules: [{ required: true, message: '请选择广告图位置!' }] }]"></v-select>
|
|
|
|
+ </a-form-item>
|
|
<a-form-item label="跳转链接" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
|
|
<a-form-item label="跳转链接" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
|
|
<a-input
|
|
<a-input
|
|
v-decorator="['formData.url', { initialValue:formData.url,rules: [{ required: false, message: '请填写跳转链接!' }] }]"
|
|
v-decorator="['formData.url', { initialValue:formData.url,rules: [{ required: false, message: '请填写跳转链接!' }] }]"
|
|
@@ -144,15 +145,15 @@ export default {
|
|
minWidth: '40',
|
|
minWidth: '40',
|
|
align: 'center'
|
|
align: 'center'
|
|
},
|
|
},
|
|
- // {
|
|
|
|
- // title: '广告图位置',
|
|
|
|
- // minWidth: '100',
|
|
|
|
- // dataIndex: 'position',
|
|
|
|
- // align: 'center',
|
|
|
|
- // scopedSlots: {
|
|
|
|
- // customRender: 'position'
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
|
|
+ {
|
|
|
|
+ title: '广告图位置',
|
|
|
|
+ minWidth: '100',
|
|
|
|
+ dataIndex: 'position',
|
|
|
|
+ align: 'center',
|
|
|
|
+ scopedSlots: {
|
|
|
|
+ customRender: 'position'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
{
|
|
{
|
|
title: '名称',
|
|
title: '名称',
|
|
minWidth: '100',
|
|
minWidth: '100',
|
|
@@ -225,7 +226,7 @@ export default {
|
|
url: '', // 图片路径
|
|
url: '', // 图片路径
|
|
status: '', // 状态
|
|
status: '', // 状态
|
|
sort: '', // 排序
|
|
sort: '', // 排序
|
|
- // position: '' // 广告图位置
|
|
|
|
|
|
+ position: '', // 广告图位置
|
|
photoBasePath: '', // 图片基础路径
|
|
photoBasePath: '', // 图片基础路径
|
|
photoPath: '' // 图片路径
|
|
photoPath: '' // 图片路径
|
|
},
|
|
},
|
|
@@ -286,7 +287,7 @@ export default {
|
|
this.formData.url = ''
|
|
this.formData.url = ''
|
|
this.formData.status = ''
|
|
this.formData.status = ''
|
|
this.formData.sort = ''
|
|
this.formData.sort = ''
|
|
- // this.formData.position = ''
|
|
|
|
|
|
+ this.formData.position = ''
|
|
this.formData.photoBasePath = ''
|
|
this.formData.photoBasePath = ''
|
|
this.formData.photoPath = ''
|
|
this.formData.photoPath = ''
|
|
this.title = '新增'
|
|
this.title = '新增'
|