|
@@ -1,6 +1,14 @@
|
|
|
<template>
|
|
|
<a-card :bordered="false">
|
|
|
- <div class="add"><a-button type="primary" icon="plus" class="addBtn" @click="showModal" id="bannerSetting-showModal">新增</a-button></div>
|
|
|
+ <div class="add">
|
|
|
+ <a-button
|
|
|
+ type="primary"
|
|
|
+ v-if="$hasPermissions('B_adBanner_new')"
|
|
|
+ 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="jumpType" style="display: none;" code="ADVERT_JUMP_TYPE"></v-select>
|
|
|
<v-select ref="location" style="display: none;" code="ADVERT_LOCATION"></v-select>
|
|
@@ -19,28 +27,33 @@
|
|
|
<template slot="location" slot-scope="text">{{ $refs.location.getNameByCode(text) }}</template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="sort" slot-scope="text, record, index">
|
|
|
- <a-icon
|
|
|
- title="下移"
|
|
|
- v-if="index != list.length-1"
|
|
|
- :style="{ fontSize: '18px', color: '#e29b29', cursor: 'pointer',padding:'0 10px' }"
|
|
|
- @click="changeSort(index,record,0)"
|
|
|
- type="arrow-down" />
|
|
|
- <a-icon
|
|
|
- title="上移"
|
|
|
- v-if="index != 0"
|
|
|
- :style="{ fontSize: '18px', color: '#e29b29',cursor: 'pointer', padding:'0 10px' }"
|
|
|
- @click="changeSort(index,record,1)"
|
|
|
- type="arrow-up" />
|
|
|
+ <div v-if="$hasPermissions('B_adBanner_sort')">
|
|
|
+ <a-icon
|
|
|
+ title="下移"
|
|
|
+ v-if="index != list.length-1"
|
|
|
+ :style="{ fontSize: '18px', color: '#e29b29', cursor: 'pointer',padding:'0 10px' }"
|
|
|
+ @click="changeSort(index,record,0)"
|
|
|
+ type="arrow-down" />
|
|
|
+ <a-icon
|
|
|
+ title="上移"
|
|
|
+ v-if="index != 0"
|
|
|
+ :style="{ fontSize: '18px', color: '#e29b29',cursor: 'pointer', padding:'0 10px' }"
|
|
|
+ @click="changeSort(index,record,1)"
|
|
|
+ type="arrow-up" />
|
|
|
+ </div>
|
|
|
+ <div v-else>--</div>
|
|
|
</template>
|
|
|
<span slot="action" slot-scope="text, record">
|
|
|
<a-icon
|
|
|
type="eye"
|
|
|
+ v-if="$hasPermissions('B_adBanner_view')"
|
|
|
id="bannerSetting-handleView"
|
|
|
title="查看"
|
|
|
class="actionBtn icon-green"
|
|
|
@click="handleEdit(record, 1)" />
|
|
|
<a-icon
|
|
|
type="edit"
|
|
|
+ v-if="$hasPermissions('B_adBanner_edit')"
|
|
|
id="bannerSetting-handleEdit"
|
|
|
v-if="record.state == '0'"
|
|
|
title="编辑"
|
|
@@ -48,6 +61,7 @@
|
|
|
@click="handleEdit(record, 0)" />
|
|
|
<a-icon
|
|
|
type="delete"
|
|
|
+ v-if="$hasPermissions('B_adBanner_del')"
|
|
|
id="bannerSetting-delect"
|
|
|
v-if="record.state == '0'"
|
|
|
title="删除"
|
|
@@ -59,6 +73,7 @@
|
|
|
checkedChildren="启用"
|
|
|
unCheckedChildren="禁用"
|
|
|
id="bannerSetting-changeFlagHandle"
|
|
|
+ v-if="$hasPermissions('B_adBanner_enable')"
|
|
|
v-model="record.state == 1 ? true : false"
|
|
|
@change="changeFlagHandle(text, record)"
|
|
|
/>
|