flat: 广告管理修改
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="title">{{menuDetail.menuName}}</div>
|
||||
<!-- <div class="title">{{menuDetail.menuName}}</div>-->
|
||||
<avue-crud
|
||||
:option="option"
|
||||
:table-loading="loading"
|
||||
@@ -38,7 +38,8 @@
|
||||
</avue-crud>
|
||||
|
||||
<el-drawer :title="drawerTitle" :visible.sync="viewDrawer" size="60%">
|
||||
<avue-form :option="formOption" :upload-before="uploadBefore" v-model="formDrawer" @submit="handleSubmit" ref="form">
|
||||
<avue-form :option="formOption" :upload-before="uploadBefore" v-model="formDrawer" @submit="handleSubmit"
|
||||
ref="form">
|
||||
</avue-form>
|
||||
</el-drawer>
|
||||
|
||||
@@ -57,6 +58,7 @@
|
||||
getCarouselMovedown,
|
||||
getCarouselMoveFirst,
|
||||
} from '@/api/help/advertisement/advertisementBody'
|
||||
|
||||
const wxStatus = process.env.VUE_APP_SITE
|
||||
|
||||
export default {
|
||||
@@ -381,11 +383,9 @@ export default {
|
||||
move(type, row) {
|
||||
if (type === 'up') {
|
||||
this.moveUp(JSON.stringify(row))
|
||||
} else
|
||||
if (type === 'down') {
|
||||
} else if (type === 'down') {
|
||||
this.moveDown(JSON.stringify(row))
|
||||
} else
|
||||
if (type === 'first') {
|
||||
} else if (type === 'first') {
|
||||
this.moveFirst(JSON.stringify(row))
|
||||
}
|
||||
},
|
||||
@@ -417,8 +417,7 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
}
|
||||
computed: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1,25 +1,27 @@
|
||||
<template>
|
||||
<div>
|
||||
<basic-container>
|
||||
<div style="border-bottom: 1px solid #1890FF;">
|
||||
<button class="btn" v-for="item in titleList" :key="item.name" :class="item.select ? 'primary' : ''" @click="titleActive(item)">{{item.name}}</button>
|
||||
</div>
|
||||
<div style="height: 23px;"></div>
|
||||
<!-- <div style="border-bottom: 1px solid #1890FF;">-->
|
||||
<!-- <button class="btn" v-for="item in titleList" :key="item.name" :class="item.select ? 'primary' : ''"-->
|
||||
<!-- @click="titleActive(item)">{{ item.name }}-->
|
||||
<!-- </button>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div style="height: 23px;"></div>-->
|
||||
<div class="recommendBody">
|
||||
<div v-if="status" class="leftBox">
|
||||
<!-- <menuLeft :menu="menu" :loading="leftLoading" @change="menuVal"></menuLeft> -->
|
||||
<el-menu>
|
||||
<el-menu-item v-for="(item, index) in menuList" :key="index" :index="index +1" @click="menuVal(item)">
|
||||
<div slot="title" style="display: flex;justify-content: space-between;align-items: center;">
|
||||
<span>{{item.name}}</span>
|
||||
<!-- <el-switch v-model="item.status"></el-switch>-->
|
||||
</div>
|
||||
</el-menu-item>
|
||||
</el-menu>
|
||||
</div>
|
||||
<div v-else class="leftBox">
|
||||
|
||||
</div>
|
||||
<!-- <div v-if="status" class="leftBox">-->
|
||||
<!-- <!– <menuLeft :menu="menu" :loading="leftLoading" @change="menuVal"></menuLeft> –>-->
|
||||
<!-- <el-menu>-->
|
||||
<!-- <el-menu-item v-for="(item, index) in menuList" :key="index" :index="index +1" @click="menuVal(item)">-->
|
||||
<!-- <div slot="title" style="display: flex;justify-content: space-between;align-items: center;">-->
|
||||
<!-- <span>{{item.name}}</span>-->
|
||||
<!-- <!– <el-switch v-model="item.status"></el-switch>–>-->
|
||||
<!-- </div>-->
|
||||
<!-- </el-menu-item>-->
|
||||
<!-- </el-menu>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div v-else class="leftBox">-->
|
||||
<!-- -->
|
||||
<!-- </div>-->
|
||||
|
||||
<div class="containerWrap">
|
||||
<advertisement-body ref="advertisementBody" :menuDetail="menuDetail"></advertisement-body>
|
||||
@@ -119,16 +121,19 @@
|
||||
display: flex;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.containerWrap {
|
||||
padding-top: 0 !important;
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.leftBox {
|
||||
width: 260px;
|
||||
background: #FAFAFA;
|
||||
margin-right: 23px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
width: 144px;
|
||||
height: 32px;
|
||||
@@ -143,6 +148,7 @@
|
||||
|
||||
margin-right: 16px;
|
||||
}
|
||||
|
||||
.primary {
|
||||
background-color: #1890FF !important;
|
||||
color: #FFFFFF !important;
|
||||
|
||||
Reference in New Issue
Block a user