You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
145 lines
3.4 KiB
145 lines
3.4 KiB
<template> |
|
<div class="wrap"> |
|
<div class="actions"> |
|
<p class="page-name">页面设置/SFEL-概况-机构设置</p> |
|
<div> |
|
<el-button type="primary" @click="preview">预览</el-button> |
|
<el-button @click="save(0)">保存为草稿</el-button> |
|
<el-button type="primary" @click="save(1)">发布</el-button> |
|
<el-button @click="back">放弃编辑</el-button> |
|
</div> |
|
</div> |
|
|
|
<div class="modules"> |
|
<div class="relative"> |
|
<div class="single-banner single-banner-overview"> |
|
<img class="banner-img" :src="modules[0].form.pic" alt=""> |
|
<div class="texts"> |
|
<h6 class="banner-title">{{ modules[0].form.title }}</h6> |
|
</div> |
|
</div> |
|
<div class="cover" @click="toSet(0)">点击更换banner与链接</div> |
|
</div> |
|
|
|
<ul class="tabs wow fadeInLeft"> |
|
<template v-for="(item, i) in tabs"> |
|
<li :class="{active: i == active}" :key="i" @click="tabChange(i)">{{ item }}</li> |
|
</template> |
|
</ul> |
|
|
|
<div class="tab-content"> |
|
<div class="org c-wrap"> |
|
<div class="left"> |
|
<h6>{{ modules[1].form.title }}</h6> |
|
<p class="text" v-html="modules[1].form.des"></p> |
|
</div> |
|
<img class="pic" src="http://10.10.11.7/images/overviewSetup/1.png" alt=""> |
|
<div class="cover" style="min-height: 300px;" @click="toSet(1)">点击更换标题与描述</div> |
|
</div> |
|
<div class="lg-bg"> |
|
<img width="100%" src="http://10.10.11.7/images/overviewSetup/2.png" alt=""> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<Module ref="module" :data.sync="curData" :visible.sync="diaVisible" @moduleSubmit="moduleSubmit" /> |
|
</div> |
|
</template> |
|
|
|
<script> |
|
import mixins from '@/mixins/page' |
|
import Modules from '@/const/modules' |
|
export default { |
|
mixins: [mixins], |
|
data() { |
|
return { |
|
modules: Modules.overviewSetup, |
|
active: 0, |
|
tabs: ['机构设置'] |
|
} |
|
}, |
|
mounted() { |
|
this.$store.commit('user/setCrumbs', [ |
|
{ |
|
name: '站点管理', |
|
route: '/site' |
|
}, |
|
{ |
|
name: '内容管理', |
|
route: '/column' |
|
}, |
|
{ |
|
name: '栏目管理', |
|
route: '/column' |
|
}, |
|
{ |
|
name: '概况-机构设置' |
|
} |
|
]) |
|
}, |
|
methods: { |
|
// tab回调 |
|
tabChange(i) { |
|
this.active = i |
|
}, |
|
} |
|
}; |
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
@import "../../../styles/page/page.scss"; |
|
.tabs { |
|
display: flex; |
|
justify-content: center; |
|
box-shadow: 0px 2px 10px 0px rgba(223,223,223,0.28); |
|
li { |
|
padding: 25px 19px; |
|
margin: 0 10px; |
|
font-size: 1.1rem; |
|
color: #333; |
|
border-bottom: 4px solid transparent; |
|
text-shadow: 0px 2px 14px rgba(167,167,167,0.26); |
|
cursor: pointer; |
|
&.active { |
|
color: #1583FF; |
|
border-bottom-color: #1583FF; |
|
} |
|
} |
|
} |
|
.tab-content { |
|
padding: 77px 0; |
|
} |
|
.org { |
|
display: flex; |
|
justify-content: space-between; |
|
align-items: center; |
|
width: 1294px; |
|
padding: 9px 86px 29px 116px; |
|
margin: 0 auto 50px; |
|
background: #FCFCFC; |
|
border-radius: 160px; |
|
.left { |
|
width: 705px; |
|
} |
|
h6 { |
|
font-size: 1.4rem; |
|
font-family: AlimamaShuHeiTi-Bold, AlimamaShuHeiTi; |
|
font-weight: bold; |
|
color: #333; |
|
} |
|
.text { |
|
margin-top: 10px; |
|
font-size: 1rem; |
|
color: #020202; |
|
line-height: 2rem; |
|
} |
|
.pic { |
|
width: 320px; |
|
height: 282px; |
|
} |
|
} |
|
.lg-bg { |
|
width: 85%; |
|
margin: 0 auto; |
|
} |
|
</style> |