Before Width: | Height: | Size: 2.4 MiB After Width: | Height: | Size: 2.4 MiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 1.8 MiB After Width: | Height: | Size: 1.8 MiB |
Before Width: | Height: | Size: 466 KiB After Width: | Height: | Size: 466 KiB |
Before Width: | Height: | Size: 602 KiB After Width: | Height: | Size: 602 KiB |
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 562 KiB After Width: | Height: | Size: 562 KiB |
@ -1,397 +0,0 @@ |
||||
<template> |
||||
<div class="wrap"> |
||||
<div class="actions"> |
||||
<el-button type="primary">预览</el-button> |
||||
<el-button>保存为草稿</el-button> |
||||
<el-button type="primary">发布</el-button> |
||||
<el-button @click="$router.back()">放弃编辑</el-button> |
||||
</div> |
||||
|
||||
<div class="relative"> |
||||
<img width="100%" height="500" src="@/assets/images/channel/channel-bg.png" alt=""> |
||||
<div class="cover" @click="toSet">点击更换banner与链接</div> |
||||
</div> |
||||
|
||||
<div class="block"> |
||||
<div class="inner"> |
||||
<h2 class="b-title">OUR FACILITIES</h2> |
||||
<p class="intro">IASF will carry a world-class light source research park by operating a synchrotron radiation facility and a soft X-ray Superconducting free-electron laser facility.</p> |
||||
<ul class="card"> |
||||
<li> |
||||
<img width="100%" src="@/assets/images/channel/channel1.png" alt=""> |
||||
<div class="texts"> |
||||
<h6>Shenzhen Innovation Lightsource Facility </h6> |
||||
<p class="des">The Shenzhen synchrotron radiation facility has a fourth-generation diffraction-limited storage ring with an electron energy of 3 GeV at a low emittance of 50-150 pm·rad, and it provides photons with broad range energy from 4 meV to 160 keV.</p> |
||||
<img class="arrow" src="@/assets/images/channel/arrow.png" alt=""> |
||||
</div> |
||||
</li> |
||||
<li> |
||||
<img width="100%" src="@/assets/images/channel/channel2.png" alt=""> |
||||
<div class="texts"> |
||||
<h6>Shenzhen Innovation Lightsource Facility </h6> |
||||
<p class="des">The Shenzhen synchrotron radiation facility has a fourth-generation diffraction-limited storage ring with an electron energy of 3 GeV at a low emittance of 50-150 pm·rad, and it provides photons with broad range energy from 4 meV to 160 keV.</p> |
||||
<img class="arrow" src="@/assets/images/channel/arrow.png" alt=""> |
||||
</div> |
||||
</li> |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="block news-block"> |
||||
<div class="inner"> |
||||
<h2 class="b-title">Latest information</h2> |
||||
<p class="intro">Keep up with what happen with IASF</p> |
||||
<ul class="news"> |
||||
<li> |
||||
<img src="@/assets/images/channel/channel1.png" alt=""> |
||||
<div class="texts"> |
||||
<h6>2022 New Year Message from President Sun Dongbai</h6> |
||||
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)…</p> |
||||
<span class="meta">2022.08.12</span> |
||||
</div> |
||||
</li> |
||||
<li> |
||||
<img src="@/assets/images/channel/channel1.png" alt=""> |
||||
<div class="texts"> |
||||
<h6>2022 New Year Message from President Sun Dongbai</h6> |
||||
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)…</p> |
||||
<span class="meta">2022.08.12</span> |
||||
</div> |
||||
</li> |
||||
<li> |
||||
<img src="@/assets/images/channel/channel1.png" alt=""> |
||||
<div class="texts"> |
||||
<h6>2022 New Year Message from President Sun Dongbai</h6> |
||||
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)…</p> |
||||
<span class="meta">2022.08.12</span> |
||||
</div> |
||||
</li> |
||||
<li> |
||||
<img src="@/assets/images/channel/channel1.png" alt=""> |
||||
<div class="texts"> |
||||
<h6>2022 New Year Message from President Sun Dongbai</h6> |
||||
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)…</p> |
||||
<span class="meta">2022.08.12</span> |
||||
</div> |
||||
</li> |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="block"> |
||||
<div class="inner"> |
||||
<h2 class="b-title">Light Chasers' Home at IASF</h2> |
||||
<p class="intro">Keep up with what happen with IASF</p> |
||||
<ul class="people"> |
||||
<li> |
||||
<img class="pic" src="@/assets/images/channel/channel1.png" alt=""> |
||||
<div class="texts"> |
||||
<h6>Shenzhen Innovation Lightsource Facility </h6> |
||||
<p class="des">The Shenzhen synchrotron radiation facility has a fourth-generation diffraction-limited storage ring with an electron energy of 3 GeV at a low emittance of 50-150 pm·rad, and it provides photons with broad range energy from 4 meV to 160 keV.</p> |
||||
<img class="arrow" src="@/assets/images/channel/arrow.png" alt=""> |
||||
</div> |
||||
</li> |
||||
<li> |
||||
<div class="texts"> |
||||
<h6>Shenzhen Innovation Lightsource Facility </h6> |
||||
<p class="des">The Shenzhen synchrotron radiation facility has a fourth-generation diffraction-limited storage ring with an electron energy of 3 GeV at a low emittance of 50-150 pm·rad, and it provides photons with broad range energy from 4 meV to 160 keV.</p> |
||||
<img class="arrow" src="@/assets/images/channel/arrow.png" alt=""> |
||||
</div> |
||||
<img class="pic" src="@/assets/images/channel/channel2.png" alt=""> |
||||
</li> |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="about"> |
||||
<div class="inner"> |
||||
<img src="@/assets/images/channel/about.png" alt=""> |
||||
<div class="line"></div> |
||||
<div class="text">ABOUT</div> |
||||
<div class="des"> |
||||
<p>The Institute of Advanced Science Facilities in Shenzhen, China is home to world-class science, world-class facilities, and world-class people. Located 25 miles east of Shenzhen city center, on a 1.2 acre campus, IASF has over three hundred researchers and support staff.…</p> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="block" style="padding-bottom: 0"> |
||||
<div class="inner"> |
||||
<h2 class="glance">IASF at a glance</h2> |
||||
<ul class="stat"> |
||||
<li> |
||||
<p class="num">2020</p> |
||||
<p class="text">The year IASF was founded</p> |
||||
</li> |
||||
<li> |
||||
<p class="num">2</p> |
||||
<p class="text">Facility projects</p> |
||||
</li> |
||||
<li> |
||||
<p class="num">240</p> |
||||
<p class="text">Employees</p> |
||||
</li> |
||||
<li> |
||||
<p class="num">10</p> |
||||
<p class="text">Academicians</p> |
||||
</li> |
||||
<li> |
||||
<p class="num">45%</p> |
||||
<p class="text">Hold doctorates or the highest degree in their field</p> |
||||
</li> |
||||
<li> |
||||
<p class="num">$32B+</p> |
||||
<p class="text">Facility construction need-based grant aid provided </p> |
||||
</li> |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
|
||||
<el-dialog title="Banner模块管理" :visible.sync="moduleVisible" width="600px" :close-on-click-modal="false"> |
||||
|
||||
<span slot="footer" class="dialog-footer"> |
||||
<el-button @click="moduleVisible = false">取消</el-button> |
||||
<el-button type="primary" @click="moduleSubmit">确定</el-button> |
||||
</span> |
||||
</el-dialog> |
||||
</div> |
||||
</template> |
||||
|
||||
<script> |
||||
import Setting from '@/setting' |
||||
import Util from '@/libs/util' |
||||
export default { |
||||
data() { |
||||
return { |
||||
id: this.$route.query.id, |
||||
form: {}, |
||||
moduleVisible: false |
||||
} |
||||
}, |
||||
watch: { |
||||
'$route'() { |
||||
this.id = this.$route.query.id |
||||
// this.getInfo() |
||||
} |
||||
}, |
||||
mounted() { |
||||
|
||||
}, |
||||
methods: { |
||||
// 获取文章详情 |
||||
getInfo() { |
||||
this.$post(`${this.api.findArticle}?id=${this.id}`).then(({ data }) => { |
||||
this.form = data |
||||
this.columnId = data.columnId |
||||
}).catch(err => {}) |
||||
}, |
||||
// 展开模块设置 |
||||
toSet() { |
||||
this.moduleVisible = true |
||||
}, |
||||
// 模块设置提交 |
||||
moduleSubmit() { |
||||
|
||||
} |
||||
} |
||||
}; |
||||
</script> |
||||
|
||||
<style lang="scss" scoped> |
||||
.actions { |
||||
margin-bottom: 20px; |
||||
text-align: right; |
||||
} |
||||
.block { |
||||
padding: 118px 0; |
||||
.b-title { |
||||
position: relative; |
||||
margin-bottom: 50px; |
||||
font-size: 50px; |
||||
line-height: 59px; |
||||
text-align: center; |
||||
color: #1F1F1F; |
||||
&:after { |
||||
content: ''; |
||||
position: absolute; |
||||
top: 70px; |
||||
left: 50%; |
||||
width: 136px; |
||||
height: 4px; |
||||
transform: translateX(-50%); |
||||
background: #1583FF; |
||||
} |
||||
} |
||||
.intro { |
||||
margin-bottom: 80px; |
||||
font-size: 30px; |
||||
text-align: center; |
||||
color: #5B5B5E; |
||||
line-height: 40px; |
||||
} |
||||
.card { |
||||
display: flex; |
||||
justify-content: space-between; |
||||
li { |
||||
width: 660px; |
||||
} |
||||
.texts { |
||||
padding-left: 22px; |
||||
margin-top: 60px; |
||||
border-left: 2px solid #DFE4E9; |
||||
} |
||||
h6 { |
||||
margin-bottom: 25px; |
||||
font-size: 24px; |
||||
color: #333; |
||||
} |
||||
.des { |
||||
font-size: 18px; |
||||
color: #222; |
||||
line-height: 30px; |
||||
} |
||||
.arrow { |
||||
cursor: pointer; |
||||
} |
||||
} |
||||
|
||||
&.news-block { |
||||
background: url(../../../assets/images/channel/info-bg.png) 0 0/100% 100% no-repeat; |
||||
} |
||||
.news { |
||||
display: flex; |
||||
flex-wrap: wrap; |
||||
li { |
||||
display: inline-flex; |
||||
width: 686px; |
||||
padding: 34px; |
||||
margin-bottom: 28px; |
||||
background-color: #fff; |
||||
&:nth-child(odd) { |
||||
margin-right: 28px; |
||||
} |
||||
} |
||||
img { |
||||
width: 237px; |
||||
height: 167px; |
||||
} |
||||
.texts { |
||||
margin-left: 34px; |
||||
} |
||||
h6 { |
||||
font-size: 18px; |
||||
color: #0648A8; |
||||
} |
||||
.des { |
||||
margin: 14px 0; |
||||
font-size: 16px; |
||||
color: #333; |
||||
line-height: 22px; |
||||
} |
||||
.meta { |
||||
font-size: 16px; |
||||
color: #999; |
||||
} |
||||
} |
||||
|
||||
.people { |
||||
li { |
||||
display: flex; |
||||
justify-content: space-between; |
||||
margin-bottom: 126px; |
||||
} |
||||
.pic { |
||||
width: 660px; |
||||
height: 465px; |
||||
} |
||||
.texts { |
||||
width: 680px; |
||||
padding-top: 150px; |
||||
} |
||||
h6 { |
||||
font-size: 40px; |
||||
} |
||||
.des { |
||||
font-size: 18px; |
||||
color: #020202; |
||||
line-height: 30px; |
||||
} |
||||
} |
||||
|
||||
.glance { |
||||
padding-bottom: 50px; |
||||
font-size: 45px; |
||||
border-bottom: 1px solid #DEDEDE; |
||||
} |
||||
.stat { |
||||
display: flex; |
||||
justify-content: space-around; |
||||
flex-wrap: wrap; |
||||
margin-top: 60px; |
||||
li { |
||||
width: 30%; |
||||
margin-bottom: 50px; |
||||
} |
||||
.num { |
||||
margin-bottom: 10px; |
||||
font-size: 60px; |
||||
font-weight: 800; |
||||
color: #035CE1; |
||||
line-height: 49px; |
||||
} |
||||
.text { |
||||
font-size: 24px; |
||||
} |
||||
} |
||||
} |
||||
.inner { |
||||
width: 1400px; |
||||
margin: 0 auto; |
||||
} |
||||
.about { |
||||
padding: 77px 0 198px; |
||||
background: url(../../../assets/images/channel/about-bg.png) 0 0/100% 100% no-repeat; |
||||
.line { |
||||
display: flex; |
||||
align-items: center; |
||||
margin: 50px 0 30px; |
||||
width: 88px; |
||||
height: 6px; |
||||
background-color: #fff; |
||||
&:after { |
||||
content: ''; |
||||
width: 6px; |
||||
height: 6px; |
||||
} |
||||
} |
||||
.text { |
||||
font-size: 30px; |
||||
color: #fff; |
||||
} |
||||
.des { |
||||
padding: 38px 60px; |
||||
margin-top: 84px; |
||||
font-size: 30px; |
||||
color: #fff; |
||||
line-height: 42px; |
||||
text-align: center; |
||||
background: rgba(111, 69, 36, .56); |
||||
border-radius: 17px; |
||||
} |
||||
} |
||||
.cover { |
||||
position: absolute; |
||||
top: 0; |
||||
right: 0; |
||||
bottom: 0; |
||||
left: 0; |
||||
display: flex; |
||||
justify-content: center; |
||||
align-items: center; |
||||
color: #fff; |
||||
background-color: rgba(0, 0, 0, .5); |
||||
cursor: pointer; |
||||
&:hover { |
||||
background-color: rgba(0, 0, 0, .7); |
||||
} |
||||
} |
||||
</style> |
@ -1,179 +0,0 @@ |
||||
<template> |
||||
<div class="page"> |
||||
<div class="tool"> |
||||
<p class="page-name">页面列表</p> |
||||
<div style="display: inline-flex;align-items: center;"> |
||||
<el-dropdown class="setting" trigger="click" :hide-on-click="false"> |
||||
<img class="icon" src="@/assets/images/setting.png" alt=""> |
||||
<el-dropdown-menu> |
||||
<el-dropdown-item> |
||||
<el-button @click="resetColumns" type="text">列重置</el-button> |
||||
</el-dropdown-item> |
||||
<el-dropdown-item v-for="(column, i) in settings" :key="i" :divided="i === 0"> |
||||
<el-checkbox v-model="column.show">{{ column.name }}</el-checkbox> |
||||
</el-dropdown-item> |
||||
</el-dropdown-menu> |
||||
</el-dropdown> |
||||
<div class="search-wrap"> |
||||
<el-select v-model="field" @change="initData"> |
||||
<el-option |
||||
v-for="(item, i) in keywords" |
||||
:key="i" |
||||
:label="item.name" |
||||
:value="item.id"> |
||||
</el-option> |
||||
</el-select> |
||||
<el-input class="keyword" :placeholder="'请输入' + keywords.find(e => e.id === field).name" v-model.trim="keyword" clearable></el-input> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<el-table ref="table" :data="list" default-expand-all class="table" header-align="center" row-key="id"> |
||||
<el-table-column type="index" width="60" label="序号" align="center"></el-table-column> |
||||
<el-table-column v-if="settings[0].show" prop="columnName" label="长页栏目名称" align="center"></el-table-column> |
||||
<el-table-column v-if="settings[1].show" prop="articleTemplate" label="模板名称" align="center"></el-table-column> |
||||
<el-table-column v-if="settings[2].show" prop="columnName" label="上级栏目" align="center"> |
||||
<template slot-scope="scope"> |
||||
{{ scope.row.parents }} |
||||
</template> |
||||
</el-table-column> |
||||
<el-table-column v-if="settings[3].show" prop="createTime" label="创建时间" align="center"></el-table-column> |
||||
<el-table-column v-if="settings[4].show" prop="updateTime" label="最近编辑" align="center"></el-table-column> |
||||
<el-table-column v-if="settings[5].show" prop="editorName" label="编辑人" align="center"></el-table-column> |
||||
<el-table-column v-if="settings[6].show" label="操作" width="170" align="center"> |
||||
<template slot-scope="scope"> |
||||
<el-button v-auth="'/site/list:' + site.siteName + ':内容管理:页面管理:预览'" type="text" @click="preview(scope.row)">预览</el-button> |
||||
<el-button v-auth="'/site/list:' + site.siteName + ':内容管理:页面管理:编辑'" type="text" @click="edit(scope.row)">编辑</el-button> |
||||
<el-button v-auth="'/site/list:' + site.siteName + ':内容管理:页面管理:删除'" type="text" @click="start(scope.row)">删除</el-button> |
||||
</template> |
||||
</el-table-column> |
||||
</el-table> |
||||
</div> |
||||
</template> |
||||
|
||||
<script> |
||||
import Setting from '@/setting' |
||||
export default { |
||||
data() { |
||||
return { |
||||
site: this.$store.state.content.site, |
||||
field: 'programName', |
||||
keywords: [ |
||||
{ |
||||
id: 'programName', |
||||
name: '栏目名称' |
||||
}, |
||||
{ |
||||
id: 'templateName', |
||||
name: '模板名称' |
||||
} |
||||
], |
||||
keyword: '', |
||||
list: [], |
||||
originSettings: [], |
||||
settings: [ |
||||
{ |
||||
name: '长页栏目名称', |
||||
show: true |
||||
}, |
||||
{ |
||||
name: '模板名称', |
||||
show: true |
||||
}, |
||||
{ |
||||
name: '上级栏目', |
||||
show: true |
||||
}, |
||||
{ |
||||
name: '创建日期', |
||||
show: true |
||||
}, |
||||
{ |
||||
name: '最近编辑', |
||||
show: true |
||||
}, |
||||
{ |
||||
name: '编辑人', |
||||
show: true |
||||
}, |
||||
{ |
||||
name: '操作', |
||||
show: true |
||||
} |
||||
] |
||||
}; |
||||
}, |
||||
watch: { |
||||
keyword: function(val) { |
||||
clearTimeout(this.searchTimer) |
||||
this.searchTimer = setTimeout(() => { |
||||
this.initData() |
||||
}, 500) |
||||
} |
||||
}, |
||||
mounted() { |
||||
this.$store.commit('user/setCrumbs', [ |
||||
{ |
||||
name: '站点管理', |
||||
route: '/site' |
||||
}, |
||||
{ |
||||
name: '内容管理' |
||||
}, |
||||
{ |
||||
name: '页面管理' |
||||
} |
||||
]) |
||||
this.originSettings = JSON.parse(JSON.stringify(this.settings)) |
||||
this.getData() |
||||
}, |
||||
methods: { |
||||
// 列表 |
||||
getData() { |
||||
this.$post(this.api.longPageColumnList, { |
||||
siteId: this.site.id, |
||||
pageNum: this.page, |
||||
pageSize: this.pageSize, |
||||
programName: this.field === 'programName' ? this.keyword : '', |
||||
templateName: this.field === 'templateName' ? this.keyword : '' |
||||
}).then(({ data }) => { |
||||
data.map(e => { |
||||
// 上级栏目 |
||||
e.parents = e.superiorColumn ? |
||||
e.superiorColumn.map(n => n.columnName).join(' / ') : |
||||
'--' |
||||
}) |
||||
this.list = data |
||||
}).catch(err => {}) |
||||
}, |
||||
initData() { |
||||
this.page = 1 |
||||
this.getData() |
||||
}, |
||||
// 重置栏位筛选 |
||||
resetColumns() { |
||||
this.settings = JSON.parse(JSON.stringify(this.originSettings)) |
||||
}, |
||||
handleCurrentChange(val) { |
||||
this.page = val |
||||
this.getData() |
||||
}, |
||||
// 预览 |
||||
preview(row) { |
||||
window.open(`http://192.168.31.${Setting.isDev ? 126 : 136}:8095/#/channel?id=` + row.id) |
||||
}, |
||||
edit(row) { |
||||
this.$router.push(`add?id=${row.id}`) |
||||
} |
||||
} |
||||
}; |
||||
</script> |
||||
|
||||
<style lang="scss" scoped> |
||||
.el-radio-group { |
||||
white-space: nowrap; |
||||
} |
||||
.el-radio.is-bordered + .el-radio.is-bordered { |
||||
margin-left: 0; |
||||
} |
||||
</style> |