|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<a-card :bordered="false">
|
|
|
<div class="add"><a-button type="primary" icon="plus" class="addBtn" @click="showModal" id="bannerSetting-showModal">新增</a-button></div>
|
|
|
- <v-select ref="position" style="display: none;" code="ADVERT_TYPE"></v-select>
|
|
|
+ <!-- <v-select ref="position" style="display: none;" code="ADVERT_TYPE"></v-select> -->
|
|
|
<v-select ref="jumpType" style="display: none;" code="ADVERT_JUMP_TYPE"></v-select>
|
|
|
<v-select ref="location" style="display: none;" code="ADVERT_LOCATION"></v-select>
|
|
|
<!-- table列表 -->
|
|
@@ -14,7 +14,7 @@
|
|
|
:data="loadData"
|
|
|
bordered>
|
|
|
<!-- 广告图位置 -->
|
|
|
- <template slot="position" slot-scope="text">{{ $refs.position.getNameByCode(text) }}</template>
|
|
|
+ <!-- <template slot="position" slot-scope="text">{{ $refs.position.getNameByCode(text) }}</template> -->
|
|
|
<template slot="jumpType" slot-scope="text">{{ $refs.jumpType.getNameByCode(text) }}</template>
|
|
|
<template slot="location" slot-scope="text">{{ $refs.location.getNameByCode(text) }}</template>
|
|
|
<!-- 操作 -->
|
|
@@ -90,7 +90,7 @@
|
|
|
allowClear
|
|
|
/>
|
|
|
</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">
|
|
|
<v-select
|
|
|
code="ADVERT_TYPE"
|
|
|
allowClear
|
|
@@ -99,7 +99,7 @@
|
|
|
:disabled="disabled"
|
|
|
v-decorator="['formData.type', { initialValue: formData.type, rules: [{ required: true, message: '请选择推广位类型!' }] }]"
|
|
|
></v-select>
|
|
|
- </a-form-item>
|
|
|
+ </a-form-item> -->
|
|
|
<a-form-item label="显示位置" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
|
|
|
<v-select
|
|
|
code="ADVERT_LOCATION"
|
|
@@ -208,15 +208,15 @@ export default {
|
|
|
dataIndex: 'title',
|
|
|
align: 'center'
|
|
|
},
|
|
|
- {
|
|
|
- title: '推广位类型',
|
|
|
- width: 100,
|
|
|
- dataIndex: 'type',
|
|
|
- align: 'center',
|
|
|
- scopedSlots: {
|
|
|
- customRender: 'position'
|
|
|
- }
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // title: '推广位类型',
|
|
|
+ // width: 100,
|
|
|
+ // dataIndex: 'type',
|
|
|
+ // align: 'center',
|
|
|
+ // scopedSlots: {
|
|
|
+ // customRender: 'position'
|
|
|
+ // }
|
|
|
+ // },
|
|
|
{
|
|
|
title: '显示位置',
|
|
|
width: 120,
|
|
@@ -301,7 +301,7 @@ export default {
|
|
|
formData: {
|
|
|
title: '', // 标题
|
|
|
state: '', // 状态
|
|
|
- type: '', // 广告图类型
|
|
|
+ type: 'banner', // 广告图类型
|
|
|
location: '', // 显示位置
|
|
|
image: '', // banner地址
|
|
|
createDate: '', // 创建时间
|
|
@@ -379,7 +379,7 @@ export default {
|
|
|
this.formData.image = row.image
|
|
|
this.formData.jumpUrl = row.jumpUrl
|
|
|
this.formData.state = row.state
|
|
|
- this.formData.type = row.type
|
|
|
+ this.formData.type = row.type || 'banner'
|
|
|
this.formData.location = row.location
|
|
|
this.formData.jumpType = row.jumpType
|
|
|
this.formData.remarks = row.remarks
|