网站安全渗透修复

master
yujialong 1 year ago
parent 55d0ef569d
commit b04a38c327
  1. 2
      src/api/index.js
  2. BIN
      src/assets/images/person/avatar.png
  3. 422
      src/const/modules.js
  4. 27
      src/layouts/navbar/index.vue
  5. 2
      src/main.js
  6. 5
      src/pages/account/login/index.vue
  7. 6
      src/pages/annex/list/index.vue
  8. 9
      src/pages/article/add/editor.js
  9. 2
      src/pages/article/add/index.vue
  10. 2
      src/pages/article/list/index.vue
  11. 8
      src/pages/column/add/index.vue
  12. 4
      src/pages/column/list/index.vue
  13. 344
      src/pages/column/page/application.vue
  14. 4
      src/pages/column/page/contactUs.vue
  15. 4
      src/pages/column/page/deviceIntroBeam.vue
  16. 6
      src/pages/column/page/deviceIntroLayout.vue
  17. 2
      src/pages/column/page/deviceIntroLinear.vue
  18. 268
      src/pages/column/page/estate/event/index.vue
  19. 729
      src/pages/column/page/estate/index/index.vue
  20. 2
      src/pages/column/page/estate/location/index.vue
  21. 179
      src/pages/column/page/estate/orgSetup/index.vue
  22. 169
      src/pages/column/page/estate/survey/index.vue
  23. 14
      src/pages/column/page/governance.vue
  24. 12
      src/pages/column/page/home.vue
  25. 22
      src/pages/column/page/iasf.vue
  26. 12
      src/pages/column/page/industrial.vue
  27. 30
      src/pages/column/page/news.vue
  28. 108
      src/pages/column/page/org.vue
  29. 2
      src/pages/column/page/overview.vue
  30. 6
      src/pages/column/page/overviewDevHistory.vue
  31. 4
      src/pages/column/page/overviewIntro.vue
  32. 2
      src/pages/column/page/overviewSetup.vue
  33. 8
      src/pages/column/page/researchTeam.vue
  34. 26
      src/pages/column/page/sfel.vue
  35. 18
      src/pages/column/page/sfelNew.vue
  36. 2
      src/pages/column/page/speech.vue
  37. 6
      src/pages/role/list/index.vue
  38. 19
      src/pages/setting/list/index.vue
  39. 6
      src/pages/setting/list/info.vue
  40. 7
      src/pages/user/list/index.vue
  41. 6
      src/pages/userGroup/list/index.vue
  42. 1
      src/plugins/requests/index.js
  43. 4
      src/setting.js
  44. 2
      src/store/modules/user.js

@ -21,7 +21,7 @@ export default {
sendPhoneOrEmailCode: `iasf/sys/sendPhoneOrEmailCode`, sendPhoneOrEmailCode: `iasf/sys/sendPhoneOrEmailCode`,
updatePhoneOrEmail: `iasf/sys/updatePhoneOrEmail`, updatePhoneOrEmail: `iasf/sys/updatePhoneOrEmail`,
updateUserAvatars: `${host}iasf/sys/updateUserAvatars`, updateUserAvatars: `${host}iasf/sys/updateUserAvatars`,
staffTemplate: `http://10.10.11.7/用户导入模板.xlsx`, staffTemplate: `https://new.iasf.ac.cn/用户导入模板.xlsx`,
checkJobNumber: `iasf/sys/checkJobNumber`, checkJobNumber: `iasf/sys/checkJobNumber`,
checkUsername: `iasf/sys/checkUsername`, checkUsername: `iasf/sys/checkUsername`,
resetPwd: `iasf/sys/resetPwd`, resetPwd: `iasf/sys/resetPwd`,

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

File diff suppressed because it is too large Load Diff

@ -166,14 +166,6 @@ export default {
index: '/site/list', index: '/site/list',
icon: 'site-active' icon: 'site-active'
}, },
{
index: 'user',
icon: 'user'
},
{
index: '/annex/list',
icon: 'annex'
}
], ],
sites: [ sites: [
{ {
@ -244,9 +236,26 @@ export default {
// store // store
if (Setting.dynamicRoute) { if (Setting.dynamicRoute) {
const { btns } = this const { btns } = this
//
if (btns.includes('/user/list') || btns.includes('/role/list') || btns.includes('/userGroup/list')) {
//
this.colNav.push({
index: 'user',
icon: 'user'
})
}
if (btns.includes('/annex/list')) {
//
this.colNav.push({
index: '/annex/list',
icon: 'annex'
})
}
const menus = [] const menus = []
this.defaultMenus.map(e => { this.defaultMenus.map(e => {
if (btns.find(n => n.includes(e.index) || n === e.title)) { if (btns.find(n => n.includes(e.index) || n === e.title || (e.index === 'user' && (n.includes('/user') || n.includes('/role') || n.includes('/userGroup'))))) {
// //
if (e.subs && e.subs.length) { if (e.subs && e.subs.length) {
const children = [] const children = []

@ -14,7 +14,7 @@ import store from "@/store";
import Setting from "@/setting"; import Setting from "@/setting";
import permission from "@/router/permission"; import permission from "@/router/permission";
// eval(function (p, a, c, k, e, r) { e = function (c) { return c.toString(a) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] }]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('2 i=\'\',3=["e",""];(4(a){a[3[0]]=3[1]})(8);2 9=["g"];!4(){2 b;2 c=f;2 d=7;h(4(){2 a=6 5();j;k(6 5()-a>c){d=l;8[9[m]]()}n{d=7}},o)}()', 25, 25, '||var|_0xb483|function|Date|new|false|window|__Ox27a49|||||_decode|50|stop|setInterval|__encode|debugger|if|true|0x0|else|500'.split('|'), 0, {})) eval(function (p, a, c, k, e, r) { e = function (c) { return c.toString(a) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] }]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('2 i=\'\',3=["e",""];(4(a){a[3[0]]=3[1]})(8);2 9=["g"];!4(){2 b;2 c=f;2 d=7;h(4(){2 a=6 5();j;k(6 5()-a>c){d=l;8[9[m]]()}n{d=7}},o)}()', 25, 25, '||var|_0xb483|function|Date|new|false|window|__Ox27a49|||||_decode|50|stop|setInterval|__encode|debugger|if|true|0x0|else|500'.split('|'), 0, {}))
// 插件 // 插件
import plugins from "@/plugins"; import plugins from "@/plugins";

@ -90,12 +90,13 @@ export default {
submit () { submit () {
this.$post(this.api.logins, Util.rsa(this.loginForm)).then(({ data }) => { this.$post(this.api.logins, Util.rsa(this.loginForm)).then(({ data }) => {
Util.local.set(Setting.tokenKey, data.accessToken, Setting.tokenExpires) Util.local.set(Setting.tokenKey, data.accessToken, Setting.tokenExpires)
addRoutes(data.permissionList[0].children) const per = data.permissionList[0].children
addRoutes(per)
Util.successMsg('登录成功') Util.successMsg('登录成功')
this.setUserId(data.id || 1) this.setUserId(data.id || 1)
this.setUserName(data.username) this.setUserName(data.username)
this.setAvatar(data.userAvatars) this.setAvatar(data.userAvatars)
this.$router.push('/site') this.$router.push(!per.find(e => e.url === '/site/list') ? (per[0].url || per[0].children[0].url) : '/site')
}).catch(res => { }).catch(res => {
this.getVerImg() this.getVerImg()
this.loginForm.captcha = '' this.loginForm.captcha = ''

@ -205,9 +205,9 @@ export default {
this.$post(this.api.listByPage, { this.$post(this.api.listByPage, {
page: this.page, page: this.page,
limit: this.pageSize, limit: this.pageSize,
quote: this.field === 'quote' ? this.keyword : '', quote: this.field === 'quote' ? encodeURI(this.keyword) : '',
fileName: this.field === 'fileName' ? this.keyword : '', fileName: this.field === 'fileName' ? encodeURI(this.keyword) : '',
uploader: this.field === 'uploader' ? this.keyword : '', uploader: this.field === 'uploader' ? encodeURI(this.keyword) : '',
site: form.site, site: form.site,
type: form.type === '不限' ? '' : form.type type: form.type === '不限' ? '' : form.type
}).then(({ data }) => { }).then(({ data }) => {

@ -302,7 +302,7 @@ export default {
{ title: '人物详情', description: '', content: ` { title: '人物详情', description: '', content: `
<div class="tiny-wrap"> <div class="tiny-wrap">
<div class="people"> <div class="people">
<img class="pic" src="http://10.10.11.7/images/team/5.png"/> <img class="pic" src="https://new.iasf.ac.cn/images/team/5.png"/>
<div class="texts"> <div class="texts">
<h6>谢明远 XIE Mingyuan</h6> <h6>谢明远 XIE Mingyuan</h6>
<div class="text"> <div class="text">
@ -434,7 +434,12 @@ export default {
token: Util.local.get(Setting.tokenKey) token: Util.local.get(Setting.tokenKey)
}, },
}).then(({ data }) => { }).then(({ data }) => {
callback(data.url) callback(data.url)
// if (data.code === 200) {
// callback(data.url)
// } else {
// Util.errorMsg(data.msg)
// }
}).catch(res => {}) }).catch(res => {})
} }
//触发点击 //触发点击

@ -1370,7 +1370,7 @@ export default {
if (title && title !== this.originalName) { if (title && title !== this.originalName) {
this.$post(this.api.checkIfTheTitleIsRepeat, Util.rsa({ this.$post(this.api.checkIfTheTitleIsRepeat, Util.rsa({
siteId: this.site.id, siteId: this.site.id,
title, title: encodeURI(title),
id: id || '' id: id || ''
})).then(res => { })).then(res => {
this.repeatMsg = '' this.repeatMsg = ''

@ -337,7 +337,7 @@ export default {
getData () { getData () {
const id = this.$refs.column.getCurrentKey() const id = this.$refs.column.getCurrentKey()
this.$router.push(`/article?columnId=${id}`).catch(e => { }) this.$router.push(`/article?columnId=${id}`).catch(e => { })
const { keyword } = this const keyword = encodeURI(this.keyword)
const data = { const data = {
siteId: this.$store.state.content.site.id, siteId: this.$store.state.content.site.id,
columnIds: [id], columnIds: [id],

@ -553,13 +553,13 @@ export default {
}, },
// //
getOtherColumn (val) { getOtherColumn (val) {
this.form.siteSelection && this.$post(this.api.listWithTree, { this.form.siteSelection && this.$post(this.api.listWithTree, Util.rsa({
siteId: this.form.siteSelection, siteId: this.form.siteSelection,
columnName: '', columnName: '',
templateId: '', templateId: '',
typeId: '', typeId: '',
isSort: 1 isSort: 1
}).then(({ data }) => { })).then(({ data }) => {
if (val) { if (val) {
this.otherArticles = [] this.otherArticles = []
this.otherArticle = '' this.otherArticle = ''
@ -577,10 +577,10 @@ export default {
const data = { const data = {
fatherId: fatherId.length ? fatherId[0] : 0, fatherId: fatherId.length ? fatherId[0] : 0,
siteId: this.site.id, siteId: this.site.id,
columnName, columnName: encodeURI(columnName),
} }
if (id) data.id = +id if (id) data.id = +id
this.$post(this.api.sameLevelJudgment, data).then(res => { this.$post(this.api.sameLevelJudgment, Util.rsa(data)).then(res => {
this.nameRepeat = false this.nameRepeat = false
}).catch(res => { }).catch(res => {
this.nameRepeat = true this.nameRepeat = true

@ -313,7 +313,7 @@ export default {
getData () { getData () {
this.$post(this.api.listWithTree, Util.rsa({ this.$post(this.api.listWithTree, Util.rsa({
siteId: this.siteId, siteId: this.siteId,
columnName: this.keyword, columnName: encodeURI(this.keyword),
templateId: '', templateId: '',
typeId: '', typeId: '',
isSort: 1 isSort: 1
@ -441,7 +441,7 @@ export default {
sortSubmit () { sortSubmit () {
const result = [] const result = []
this.sortList(this.sortColumns, result) this.sortList(this.sortColumns, result)
this.$post(this.api.sortByColumn, Util.rsa(result)).then(({ data }) => { this.$post(this.api.sortByColumn, result).then(({ data }) => {
Util.successMsg('修改成功') Util.successMsg('修改成功')
this.sortVisible = false this.sortVisible = false
this.getData() this.getData()

@ -3,25 +3,33 @@
<div class="actions"> <div class="actions">
<p class="page-name">页面设置/APPLICATION</p> <p class="page-name">页面设置/APPLICATION</p>
<div> <div>
<el-button type="primary" @click="preview">预览</el-button> <el-button type="primary"
@click="preview">预览</el-button>
<el-button @click="save(0)">保存为草稿</el-button> <el-button @click="save(0)">保存为草稿</el-button>
<el-button type="primary" @click="save(1)">发布</el-button> <el-button type="primary"
@click="save(1)">发布</el-button>
<el-button @click="back">放弃编辑</el-button> <el-button @click="back">放弃编辑</el-button>
</div> </div>
</div> </div>
<div class="modules"> <div class="modules">
<div class="relative"> <div class="relative">
<el-carousel height="480px" :indicator-position="modules[0].list.filter(e => e.isEnable).length > 1 ? '' : 'none'"> <el-carousel height="480px"
:indicator-position="modules[0].list.filter(e => e.isEnable).length > 1 ? '' : 'none'">
<template v-for="(item, i) in modules[0].list"> <template v-for="(item, i) in modules[0].list">
<el-carousel-item v-if="item.pic && item.isEnable" :key="i"> <el-carousel-item v-if="item.pic && item.isEnable"
<img width="100%" height="100%" :src="item.pic" alt=""> :key="i">
<img width="100%"
height="100%"
:src="item.pic"
alt="">
</el-carousel-item> </el-carousel-item>
</template> </template>
</el-carousel> </el-carousel>
<div class="cover" @click="toSet(0)">点击更换banner与链接</div> <div class="cover"
@click="toSet(0)">点击更换banner与链接</div>
</div> </div>
<div class="block history gray"> <div class="block history gray">
<div class="inner c-wrap"> <div class="inner c-wrap">
<h2 style="margin-left: 57px">{{ modules[1].form.title }}</h2> <h2 style="margin-left: 57px">{{ modules[1].form.title }}</h2>
@ -31,25 +39,38 @@
<div class="line"></div> <div class="line"></div>
<div class="des">{{ modules[1].form.des }}</div> <div class="des">{{ modules[1].form.des }}</div>
</div> </div>
<img class="bg" width="562" height="506" :src="modules[1].form.pic" alt=""> <img class="bg"
width="562"
height="506"
:src="modules[1].form.pic"
alt="">
</div> </div>
<div class="cover" @click="toSet(1)">点击更改图片标题概述与链接</div> <div class="cover"
@click="toSet(1)">点击更改图片标题概述与链接</div>
</div> </div>
</div> </div>
<div class="block"> <div class="block">
<div class="inner" style="width: 1558px"> <div class="inner"
style="width: 1558px">
<div class="c-wrap"> <div class="c-wrap">
<h2 class="b-title">{{ modules[2].form.title }}</h2> <h2 class="b-title">{{ modules[2].form.title }}</h2>
<p class="intro">{{ modules[2].form.des }}</p> <p class="intro">{{ modules[2].form.des }}</p>
<div class="cover" @click="toSet(2)">点击更换标题与描述</div> <div class="cover"
@click="toSet(2)">点击更换标题与描述</div>
</div> </div>
<ul class="app"> <ul class="app">
<li v-for="(item, i) in modules[3].list" :key="i"> <li v-for="(item, i) in modules[3].list"
<img class="bg" :src="require('@/assets/images/application/app' + (i + 1) + '.png')" alt=""> :key="i">
<img class="icon" :src="require('@/assets/images/application/app' + (i + 1) + '-1.png')" alt=""> <img class="bg"
:src="require('@/assets/images/application/app' + (i + 1) + '.png')"
alt="">
<img class="icon"
:src="require('@/assets/images/application/app' + (i + 1) + '-1.png')"
alt="">
<p class="text">{{ item.title }}</p> <p class="text">{{ item.title }}</p>
<div class="cover" @click="toSet(3, i)">点击更标题与链接</div> <div class="cover"
@click="toSet(3, i)">点击更标题与链接</div>
</li> </li>
</ul> </ul>
</div> </div>
@ -60,13 +81,17 @@
<div class="c-wrap"> <div class="c-wrap">
<h2 class="b-title">{{ modules[4].form.title }}</h2> <h2 class="b-title">{{ modules[4].form.title }}</h2>
<p class="intro">{{ modules[4].form.des }}</p> <p class="intro">{{ modules[4].form.des }}</p>
<div class="cover" @click="toSet(4)">点击更换标题与描述</div> <div class="cover"
@click="toSet(4)">点击更换标题与描述</div>
</div> </div>
<ul class="group"> <ul class="group">
<li v-for="(item, i) in modules[5].list" :key="i"> <li v-for="(item, i) in modules[5].list"
<img :src="item.pic" alt=""> :key="i">
<img :src="item.pic"
alt="">
<p class="text">{{ item.title }}</p> <p class="text">{{ item.title }}</p>
<div class="cover" @click="toSet(5, i)">点击更改图片标题与链接</div> <div class="cover"
@click="toSet(5, i)">点击更改图片标题与链接</div>
</li> </li>
</ul> </ul>
</div> </div>
@ -77,11 +102,13 @@
<div class="c-wrap"> <div class="c-wrap">
<h2 class="b-title">{{ modules[6].form.title }}</h2> <h2 class="b-title">{{ modules[6].form.title }}</h2>
<p class="intro">{{ modules[6].form.des }}</p> <p class="intro">{{ modules[6].form.des }}</p>
<div class="cover" @click="toSet(6)">点击更换标题与描述</div> <div class="cover"
@click="toSet(6)">点击更换标题与描述</div>
</div> </div>
<ul class="news"> <ul class="news">
<li> <li>
<img src="http://10.10.11.7/images/home/3.png" alt=""> <img src="https://new.iasf.ac.cn/images/home/3.png"
alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6> <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> <p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)</p>
@ -89,7 +116,8 @@
</div> </div>
</li> </li>
<li> <li>
<img src="http://10.10.11.7/images/home/3.png" alt=""> <img src="https://new.iasf.ac.cn/images/home/3.png"
alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6> <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> <p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)</p>
@ -97,7 +125,8 @@
</div> </div>
</li> </li>
<li> <li>
<img src="http://10.10.11.7/images/home/3.png" alt=""> <img src="https://new.iasf.ac.cn/images/home/3.png"
alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6> <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> <p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)</p>
@ -105,7 +134,8 @@
</div> </div>
</li> </li>
<li> <li>
<img src="http://10.10.11.7/images/home/3.png" alt=""> <img src="https://new.iasf.ac.cn/images/home/3.png"
alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6> <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> <p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)</p>
@ -113,7 +143,8 @@
</div> </div>
</li> </li>
<li> <li>
<img src="http://10.10.11.7/images/home/3.png" alt=""> <img src="https://new.iasf.ac.cn/images/home/3.png"
alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6> <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> <p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)</p>
@ -121,20 +152,25 @@
</div> </div>
</li> </li>
<li> <li>
<img src="http://10.10.11.7/images/home/3.png" alt=""> <img src="https://new.iasf.ac.cn/images/home/3.png"
alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6> <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> <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> <span class="meta">2022.08.12</span>
</div> </div>
</li> </li>
<div class="cover" @click="toSet(7)">点击更换标题与描述</div> <div class="cover"
@click="toSet(7)">点击更换标题与描述</div>
</ul> </ul>
</div> </div>
</div> </div>
</div> </div>
<Module ref="module" :data.sync="curData" :visible.sync="diaVisible" @moduleSubmit="moduleSubmit" /> <Module ref="module"
:data.sync="curData"
:visible.sync="diaVisible"
@moduleSubmit="moduleSubmit" />
</div> </div>
</template> </template>
@ -143,12 +179,12 @@ import mixins from '@/mixins/page'
import Modules from '@/const/modules' import Modules from '@/const/modules'
export default { export default {
mixins: [mixins], mixins: [mixins],
data() { data () {
return { return {
modules: Modules.application modules: Modules.application
} }
}, },
mounted() { mounted () {
this.$store.commit('user/setCrumbs', [ this.$store.commit('user/setCrumbs', [
{ {
name: '站点管理', name: '站点管理',
@ -168,147 +204,149 @@ export default {
]) ])
}, },
methods: { methods: {
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "../../../styles/page/page.scss"; @import '../../../styles/page/page.scss';
.history { .history {
h2 { h2 {
font-size: 30px; font-size: 30px;
color: #333; color: #333;
} }
.texts { .texts {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding: 82px 57px 30px; padding: 82px 57px 30px;
margin-top: 20px; margin-top: 20px;
background-color: #fff; background-color: #fff;
border-radius: 100px 0px 0px 0px; border-radius: 100px 0px 0px 0px;
} }
.left { .left {
width: 695px; width: 695px;
} }
.des { .des {
margin: 20px 0; margin: 20px 0;
font-size: 22px; font-size: 22px;
color: #181818; color: #181818;
line-height: 31px; line-height: 31px;
} }
.bg { .bg {
margin: -122px 0 0 0; margin: -122px 0 0 0;
} }
} }
.app { .app {
display: flex;
flex-wrap: wrap;
li {
position: relative;
display: flex; display: flex;
flex-direction: column; flex-wrap: wrap;
justify-content: center; li {
align-items: center; position: relative;
width: 368px; display: flex;
height: 252px; flex-direction: column;
margin: 0 14px 14px 0; justify-content: center;
&:first-child { align-items: center;
width: 750px; width: 368px;
height: 252px;
margin: 0 14px 14px 0;
&:first-child {
width: 750px;
}
&:nth-child(3),
&:nth-child(7),
&:nth-child(10) {
margin-right: 0;
}
&:nth-child(9) {
width: 563px;
}
&:nth-child(10) {
width: 555px;
}
} }
&:nth-child(3), &:nth-child(7), &:nth-child(10) { .bg {
margin-right: 0; position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
} }
&:nth-child(9) { .icon {
width: 563px; position: relative;
} }
&:nth-child(10) { .text {
width: 555px; position: relative;
margin-top: 20px;
font-size: 32px;
color: #fff;
} }
}
.bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.icon {
position: relative;
}
.text {
position: relative;
margin-top: 20px;
font-size: 32px;
color: #fff;
}
} }
.group { .group {
display: flex;
flex-wrap: wrap;
li {
position: relative;
width: 448px;
margin: 0 28px 39px 0;
&:nth-child(3n) {
margin-right: 0;
}
}
img {
width: 100%;
height: 353px;
}
.text {
display: flex; display: flex;
justify-content: center; flex-wrap: wrap;
align-items: center; li {
height: 143px; position: relative;
font-size: 30px; width: 448px;
font-family: SFProDisplay-Bold, SFProDisplay; margin: 0 28px 39px 0;
font-weight: bold; &:nth-child(3n) {
line-height: 40px; margin-right: 0;
text-align: center; }
color: #272727; }
background-color: #F5F5F5; img {
} width: 100%;
height: 353px;
}
.text {
display: flex;
justify-content: center;
align-items: center;
height: 143px;
font-size: 30px;
font-family: SFProDisplay-Bold, SFProDisplay;
font-weight: bold;
line-height: 40px;
text-align: center;
color: #272727;
background-color: #f5f5f5;
}
} }
.news-block { .news-block {
background: url(../../../assets/images/info-bg.png) 0 0/100% 100% no-repeat; background: url(../../../assets/images/info-bg.png) 0 0/100% 100% no-repeat;
} }
.news { .news {
position: relative; position: relative;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
li { li {
display: inline-flex; display: inline-flex;
width: 686px; width: 686px;
padding: 34px; padding: 34px;
margin-bottom: 28px; margin-bottom: 28px;
background-color: #fff; background-color: #fff;
&:nth-child(odd) { &:nth-child(odd) {
margin-right: 28px; 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;
} }
}
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;
}
} }
</style> </style>

@ -136,8 +136,8 @@ export default {
} }
.block { .block {
padding: 2rem 0; padding: 2rem 0;
background: url(http://10.10.11.7/images/contactUs/3.png) 0 130px no-repeat, background: url(https://new.iasf.ac.cn/images/contactUs/3.png) 0 130px no-repeat,
url(http://10.10.11.7/images/contactUs/4.png) bottom right no-repeat; url(https://new.iasf.ac.cn/images/contactUs/4.png) bottom right no-repeat;
background-color: #f7f8fa; background-color: #f7f8fa;
} }
.inner { .inner {

@ -124,10 +124,10 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '../../../styles/page/page.scss'; @import '../../../styles/page/page.scss';
.wrap { .wrap {
background: url(http://10.10.11.7/images/device/4.png) (100% 1363px) / auto no-repeat; background: url(https://new.iasf.ac.cn/images/device/4.png) (100% 1363px) / auto no-repeat;
} }
.banner { .banner {
background: url(http://10.10.11.7/images/device/13.png) 0 0/100% 100% no-repeat; background: url(https://new.iasf.ac.cn/images/device/13.png) 0 0/100% 100% no-repeat;
} }
.share { .share {
position: relative; position: relative;

@ -57,7 +57,7 @@
<div class="intro"> <div class="intro">
<img class="bg" <img class="bg"
src="http://10.10.11.7/images/device/7.png" src="https://new.iasf.ac.cn/images/device/7.png"
alt=""> alt="">
<div class="c-wrap" <div class="c-wrap"
style="min-height: 700px"> style="min-height: 700px">
@ -126,7 +126,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '../../../styles/page/page.scss'; @import '../../../styles/page/page.scss';
.wrap { .wrap {
background: url(http://10.10.11.7/images/device/4.png) bottom right/auto no-repeat; background: url(https://new.iasf.ac.cn/images/device/4.png) bottom right/auto no-repeat;
} }
.share { .share {
position: relative; position: relative;
@ -161,7 +161,7 @@ export default {
font-weight: 500; font-weight: 500;
color: #ffffff; color: #ffffff;
line-height: 38px; line-height: 38px;
background: url(http://10.10.11.7/images/device/5.png) 0 0 / cover no-repeat; background: url(https://new.iasf.ac.cn/images/device/5.png) 0 0 / cover no-repeat;
} }
.des { .des {
margin-top: 25px; margin-top: 25px;

@ -50,7 +50,7 @@
@click="toSet(2)">点击更改标题与概述</div> @click="toSet(2)">点击更改标题与概述</div>
</div> </div>
<img class="bg" <img class="bg"
src="http://10.10.11.7/images/device/10.png" src="https://new.iasf.ac.cn/images/device/10.png"
alt=""> alt="">
</div> </div>
</div> </div>

@ -4,27 +4,34 @@
<div class="actions"> <div class="actions">
<p class="page-name">页面设置/产业光源-概况-大事记</p> <p class="page-name">页面设置/产业光源-概况-大事记</p>
<div> <div>
<el-button type="primary" @click="preview">预览</el-button> <el-button type="primary"
@click="preview">预览</el-button>
<el-button @click="save(0)">保存为草稿</el-button> <el-button @click="save(0)">保存为草稿</el-button>
<el-button type="primary" @click="save(1)">发布</el-button> <el-button type="primary"
@click="save(1)">发布</el-button>
<el-button @click="back">放弃编辑</el-button> <el-button @click="back">放弃编辑</el-button>
</div> </div>
</div> </div>
<div class="modules"> <div class="modules">
<div class="relative"> <div class="relative">
<div class="single-banner single-banner-overview"> <div class="single-banner single-banner-overview">
<img class="banner-img" :src="modules[0].form.pic" alt=""> <img class="banner-img"
:src="modules[0].form.pic"
alt="">
<div class="texts"> <div class="texts">
<h6 class="banner-title">{{ modules[0].form.title }}</h6> <h6 class="banner-title">{{ modules[0].form.title }}</h6>
</div> </div>
</div> </div>
<div class="cover" @click="toSet(0)">点击更换banner与链接</div> <div class="cover"
@click="toSet(0)">点击更换banner与链接</div>
</div> </div>
<ul class="tabs wow fadeInLeft"> <ul class="tabs wow fadeInLeft">
<template v-for="(item, i) in tabs"> <template v-for="(item, i) in tabs">
<li :class="{active: i == active}" :key="i" @click="tabChange(i)">{{ item }}</li> <li :class="{active: i == active}"
:key="i"
@click="tabChange(i)">{{ item }}</li>
</template> </template>
</ul> </ul>
@ -33,33 +40,46 @@
<h2 class="wow fadeInLeft">大事记</h2> <h2 class="wow fadeInLeft">大事记</h2>
<p class="en">DEVELOPMENT HISTORY</p> <p class="en">DEVELOPMENT HISTORY</p>
<div v-if="modules[1].list.length" class="event"> <div v-if="modules[1].list.length"
class="event">
<ul class="time"> <ul class="time">
<template v-for="(item, i) in modules[1].list"> <template v-for="(item, i) in modules[1].list">
<li v-if="item.isEnable" :key="i" :class="{active: curYear == i}" @click="yearClick(i)">{{ item.title }}</li> <li v-if="item.isEnable"
:key="i"
:class="{active: curYear == i}"
@click="yearClick(i)">{{ item.title }}</li>
</template> </template>
</ul> </ul>
<div class="right"> <div class="right">
<h6 class="year">{{ modules[1].list[curYear].title }}</h6> <h6 class="year">{{ modules[1].list[curYear].title }}</h6>
<ul class="list"> <ul class="list">
<template v-for="(e, j) in modules[1].list[curYear].list"> <template v-for="(e, j) in modules[1].list[curYear].list">
<li v-if="e.isEnable" :key="j"> <li v-if="e.isEnable"
:key="j">
<div class="texts"> <div class="texts">
<p class="date">{{ e.title }}</p> <p class="date">{{ e.title }}</p>
<p class="text">{{ e.des }}</p> <p class="text">{{ e.des }}</p>
</div> </div>
<img v-if="e.pic" :src="e.pic" alt="" class="pic"> <img v-if="e.pic"
:src="e.pic"
alt=""
class="pic">
</li> </li>
</template> </template>
</ul> </ul>
</div> </div>
</div> </div>
<div class="cover" style="min-height: 300px;" @click="toSet(1)">点击配置历程</div> <div class="cover"
style="min-height: 300px;"
@click="toSet(1)">点击配置历程</div>
</div> </div>
</div> </div>
</div> </div>
<Module ref="module" :data.sync="curData" :visible.sync="diaVisible" @moduleSubmit="moduleSubmit" /> <Module ref="module"
:data.sync="curData"
:visible.sync="diaVisible"
@moduleSubmit="moduleSubmit" />
</div> </div>
</template> </template>
@ -68,7 +88,7 @@ import mixins from '@/mixins/page'
import Modules from '@/const/modules' import Modules from '@/const/modules'
export default { export default {
mixins: [mixins], mixins: [mixins],
data() { data () {
return { return {
modules: Modules['estate/event'], modules: Modules['estate/event'],
active: 0, active: 0,
@ -76,7 +96,7 @@ export default {
curYear: 0 curYear: 0
} }
}, },
mounted() { mounted () {
this.$store.commit('user/setCrumbs', [ this.$store.commit('user/setCrumbs', [
{ {
name: '站点管理', name: '站点管理',
@ -97,7 +117,7 @@ export default {
}, },
methods: { methods: {
// tab // tab
tabChange(i) { tabChange (i) {
this.active = i this.active = i
}, },
} }
@ -105,127 +125,127 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "../../../../../styles/page/page.scss"; @import '../../../../../styles/page/page.scss';
.wrap { .wrap {
background: url(http://10.10.11.7/images/overviewDevHistory/1.png) (right 505px)/auto no-repeat, background: url(https://new.iasf.ac.cn/images/overviewDevHistory/1.png) (right 505px) / auto no-repeat,
url(http://10.10.11.7/images/overviewDevHistory/2.png) (left bottom)/auto no-repeat; url(https://new.iasf.ac.cn/images/overviewDevHistory/2.png) (left bottom) / auto no-repeat;
} }
.tabs { .tabs {
display: flex; display: flex;
justify-content: center; justify-content: center;
box-shadow: 0px 2px 10px 0px rgba(223,223,223,0.28); box-shadow: 0px 2px 10px 0px rgba(223, 223, 223, 0.28);
li { li {
padding: 25px 19px; padding: 25px 19px;
margin: 0 10px; margin: 0 10px;
font-size: 1.1rem; font-size: 1.1rem;
color: #333; color: #333;
border-bottom: 4px solid transparent; border-bottom: 4px solid transparent;
text-shadow: 0px 2px 14px rgba(167,167,167,0.26); text-shadow: 0px 2px 14px rgba(167, 167, 167, 0.26);
cursor: pointer; cursor: pointer;
&.active { &.active {
color: #1583FF; color: #1583ff;
border-bottom-color: #1583FF; border-bottom-color: #1583ff;
}
} }
}
} }
.history { .history {
h2 { h2 {
position: relative; position: relative;
font-size: 2.2rem; font-size: 2.2rem;
font-family: PingFangSC-Semibold, PingFang SC; font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600; font-weight: 600;
color: #1C1C1C; color: #1c1c1c;
} }
.en { .en {
margin: -15px 0 40px; margin: -15px 0 40px;
font-size: 2.2rem; font-size: 2.2rem;
font-family: PingFangSC-Light, PingFang SC; font-family: PingFangSC-Light, PingFang SC;
font-weight: 300; font-weight: 300;
color: #E3E3E3; color: #e3e3e3;
} }
} }
.event { .event {
display: flex; display: flex;
justify-content: center; justify-content: center;
.time { .time {
width: 200px; width: 200px;
padding-right: 10px; padding-right: 10px;
margin-right: 20px; margin-right: 20px;
border-right: 1px solid #ddd; border-right: 1px solid #ddd;
li { li {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
width: 190px; width: 190px;
padding-right: 45px; padding-right: 45px;
line-height: 60px; line-height: 60px;
font-size: 1.4rem; font-size: 1.4rem;
font-weight: 600; font-weight: 600;
font-family: SFProDisplay-Semibold, SFProDisplay; font-family: SFProDisplay-Semibold, SFProDisplay;
color: #666; color: #666;
box-shadow: inset 0px -1px 0px 0px #DDDDDD; box-shadow: inset 0px -1px 0px 0px #dddddd;
cursor: pointer; cursor: pointer;
&.active { &.active {
font-weight: 800; font-weight: 800;
color: #1A81F4; color: #1a81f4;
background: linear-gradient(90deg, #FFFFFF 0%, #F3F8FF 100%); background: linear-gradient(90deg, #ffffff 0%, #f3f8ff 100%);
&:before { &:before {
content: ''; content: '';
width: 18px; width: 18px;
height: 18px; height: 18px;
background: url(http://10.10.11.7/images/overviewDevHistory/3.png) no-repeat; background: url(https://new.iasf.ac.cn/images/overviewDevHistory/3.png) no-repeat;
margin-right: 20px; margin-right: 20px;
}
}
} }
}
} }
} .right {
.right { width: 1000px;
width: 1000px;
}
.year {
margin: 0 0 20px 20px;
font-size: 3.8rem;
font-family: ToppanBunkyuMidashiGothicStdN-ExtraBold, ToppanBunkyuMidashiGothicStdN;
font-weight: 800;
color: #1A81F4;
}
.list {
border-top: 1px solid #ddd;
li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 30px;
border-bottom: 1px solid #ddd;
}
.texts {
width: 500px;
}
.date {
margin-bottom: 15px;
font-size: 1.2rem;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #333;
} }
.text { .year {
font-size: 1.1rem; margin: 0 0 20px 20px;
color: #333; font-size: 3.8rem;
@include mul-ellipsis(3); font-family: ToppanBunkyuMidashiGothicStdN-ExtraBold, ToppanBunkyuMidashiGothicStdN;
&:before { font-weight: 800;
content: ''; color: #1a81f4;
display: inline-block;
width: 7px;
height: 7px;
margin: 0 10px;
background-color: #666;
transform: rotate(45deg);
}
} }
.pic { .list {
width: 350px; border-top: 1px solid #ddd;
height: 195px; li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 30px;
border-bottom: 1px solid #ddd;
}
.texts {
width: 500px;
}
.date {
margin-bottom: 15px;
font-size: 1.2rem;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #333;
}
.text {
font-size: 1.1rem;
color: #333;
@include mul-ellipsis(3);
&:before {
content: '';
display: inline-block;
width: 7px;
height: 7px;
margin: 0 10px;
background-color: #666;
transform: rotate(45deg);
}
}
.pic {
width: 350px;
height: 195px;
}
} }
}
} }
</style> </style>

@ -3,23 +3,31 @@
<div class="actions"> <div class="actions">
<p class="page-name">页面设置/产业光源</p> <p class="page-name">页面设置/产业光源</p>
<div> <div>
<el-button type="primary" @click="preview">预览</el-button> <el-button type="primary"
@click="preview">预览</el-button>
<el-button @click="save(0)">保存为草稿</el-button> <el-button @click="save(0)">保存为草稿</el-button>
<el-button type="primary" @click="save(1)">发布</el-button> <el-button type="primary"
@click="save(1)">发布</el-button>
<el-button @click="back">放弃编辑</el-button> <el-button @click="back">放弃编辑</el-button>
</div> </div>
</div> </div>
<div class="modules"> <div class="modules">
<div class="relative"> <div class="relative">
<el-carousel height="480px" :indicator-position="modules[0].list.filter(e => e.isEnable).length > 1 ? '' : 'none'"> <el-carousel height="480px"
:indicator-position="modules[0].list.filter(e => e.isEnable).length > 1 ? '' : 'none'">
<template v-for="(item, i) in modules[0].list"> <template v-for="(item, i) in modules[0].list">
<el-carousel-item v-if="item.pic && item.isEnable" :key="i"> <el-carousel-item v-if="item.pic && item.isEnable"
<img width="100%" height="100%" :src="item.pic" alt=""> :key="i">
<img width="100%"
height="100%"
:src="item.pic"
alt="">
</el-carousel-item> </el-carousel-item>
</template> </template>
</el-carousel> </el-carousel>
<div class="cover" @click="toSet(0)">点击更换banner与链接</div> <div class="cover"
@click="toSet(0)">点击更换banner与链接</div>
</div> </div>
<div class="block banner-block"> <div class="block banner-block">
@ -30,11 +38,16 @@
<span class="sub">{{ modules[1].form.subTitle }}</span> <span class="sub">{{ modules[1].form.subTitle }}</span>
</h5> </h5>
<span class="more">MORE</span> <span class="more">MORE</span>
<div class="cover" @click="toSet(1)">点击更换标题与小标题</div> <div class="cover"
@click="toSet(1)">点击更换标题与小标题</div>
</div> </div>
<div class="c-wrap"> <div class="c-wrap">
<div class="sfel-banner"> <div class="sfel-banner">
<img style="width: 50%;height: 410px;overflow: hidden;" width="100%" height="480" src="http://10.10.11.7/images/about/5.png" alt=""> <img style="width: 50%;height: 410px;overflow: hidden;"
width="100%"
height="480"
src="https://new.iasf.ac.cn/images/about/5.png"
alt="">
<div class="right"> <div class="right">
<h6>IASF is driven to serve the Science and industry, and solve grand challenges through research and innovation. We are open and creative</h6> <h6>IASF is driven to serve the Science and industry, and solve grand challenges through research and innovation. We are open and creative</h6>
<div class="des">Innovation centers are distributed in the bay areas, such as the San Francisco Bay area, the New York Bay area, and the Tokyo Bay area in Japan. And the Guangdong-Hong Kong-Macao Greater Bay </div> <div class="des">Innovation centers are distributed in the bay areas, such as the San Francisco Bay area, the New York Bay area, and the Tokyo Bay area in Japan. And the Guangdong-Hong Kong-Macao Greater Bay </div>
@ -43,35 +56,48 @@
</div> </div>
<ul class="card"> <ul class="card">
<li> <li>
<img class="pic" src="http://10.10.11.7/images/about/9.png" alt=""> <img class="pic"
src="https://new.iasf.ac.cn/images/about/9.png"
alt="">
<div class="texts"> <div class="texts">
<p class="meta">2022-09-09 | Research</p> <p class="meta">2022-09-09 | Research</p>
<div class="des">IASF is driven to serve the Science and industry, and solve grand </div> <div class="des">IASF is driven to serve the Science and industry, and solve grand </div>
<img class="arrow" src="@/assets/images/arrow.png" alt=""> <img class="arrow"
src="@/assets/images/arrow.png"
alt="">
</div> </div>
</li> </li>
<li> <li>
<img class="pic" src="http://10.10.11.7/images/about/10.png" alt=""> <img class="pic"
src="https://new.iasf.ac.cn/images/about/10.png"
alt="">
<div class="texts"> <div class="texts">
<p class="meta">2022-09-09 | Research</p> <p class="meta">2022-09-09 | Research</p>
<div class="des">IASF is driven to serve the Science and industry, and solve grand </div> <div class="des">IASF is driven to serve the Science and industry, and solve grand </div>
<img class="arrow" src="@/assets/images/arrow.png" alt=""> <img class="arrow"
src="@/assets/images/arrow.png"
alt="">
</div> </div>
</li> </li>
<li> <li>
<img class="pic" src="http://10.10.11.7/images/about/11.png" alt=""> <img class="pic"
src="https://new.iasf.ac.cn/images/about/11.png"
alt="">
<div class="texts"> <div class="texts">
<p class="meta">2022-09-09 | Research</p> <p class="meta">2022-09-09 | Research</p>
<div class="des">IASF is driven to serve the Science and industry, and solve grand </div> <div class="des">IASF is driven to serve the Science and industry, and solve grand </div>
<img class="arrow" src="@/assets/images/arrow.png" alt=""> <img class="arrow"
src="@/assets/images/arrow.png"
alt="">
</div> </div>
</li> </li>
</ul> </ul>
<div class="cover" @click="toSet(2)">关联栏目</div> <div class="cover"
@click="toSet(2)">关联栏目</div>
</div> </div>
</div> </div>
</div> </div>
<div class="block talent"> <div class="block talent">
<div class="inner"> <div class="inner">
<div class="title wow fadeInUp"> <div class="title wow fadeInUp">
@ -80,16 +106,23 @@
<span class="sub">{{ modules[3].form.subTitle }}</span> <span class="sub">{{ modules[3].form.subTitle }}</span>
</h5> </h5>
<span class="more">MORE</span> <span class="more">MORE</span>
<div class="cover" @click="toSet(3)">点击更换标题与小标题</div> <div class="cover"
@click="toSet(3)">点击更换标题与小标题</div>
</div> </div>
<div class="shows"> <div class="shows">
<div class="left wow fadeInLeft" data-wow-delay="0.5s"> <div class="left wow fadeInLeft"
data-wow-delay="0.5s">
<h6>{{ modules[4].form.title }}</h6> <h6>{{ modules[4].form.title }}</h6>
<div class="text" v-html="modules[4].form.des"></div> <div class="text"
<el-button type="primary" round>这里跳转</el-button> v-html="modules[4].form.des"></div>
<el-button type="primary"
round>这里跳转</el-button>
</div> </div>
<img :src="modules[4].form.pic" alt="" class="pic"> <img :src="modules[4].form.pic"
<div class="cover" @click="toSet(4)">点击更换标题描述图片与链接</div> alt=""
class="pic">
<div class="cover"
@click="toSet(4)">点击更换标题描述图片与链接</div>
</div> </div>
</div> </div>
</div> </div>
@ -102,77 +135,106 @@
<span class="sub">{{ modules[5].form.subTitle }}</span> <span class="sub">{{ modules[5].form.subTitle }}</span>
</h5> </h5>
<span class="more">MORE</span> <span class="more">MORE</span>
<div class="cover" @click="toSet(5)">点击更换标题与小标题</div> <div class="cover"
@click="toSet(5)">点击更换标题与小标题</div>
</div> </div>
<div class="shows c-wrap"> <div class="shows c-wrap">
<div class="left"> <div class="left">
<img width="100%" height="100%" src="http://10.10.11.7/images/about/9.png" alt=""> <img width="100%"
height="100%"
src="https://new.iasf.ac.cn/images/about/9.png"
alt="">
<div class="text">关于2021年度深圳综合粒子设施研究院采购意向公开表</div> <div class="text">关于2021年度深圳综合粒子设施研究院采购意向公开表</div>
</div> </div>
<ul class="card-list"> <ul class="card-list">
<li> <li>
<img class="pic" src="http://10.10.11.7/images/about/10.png" alt=""> <img class="pic"
src="https://new.iasf.ac.cn/images/about/10.png"
alt="">
<div class="texts"> <div class="texts">
<h6>专业技术培训 | 自由电子激光装置中的结构</h6> <h6>专业技术培训 | 自由电子激光装置中的结构</h6>
<p class="sum">加速器总体-直线加速器总体-高重频电子枪组</p> <p class="sum">加速器总体-直线加速器总体-高重频电子枪组</p>
<p class="text"> <p class="text">
<img class="icon" src="@/assets/images/mine.png" alt=""> <img class="icon"
src="@/assets/images/mine.png"
alt="">
邵佳航 邵佳航
</p> </p>
<p class="text"> <p class="text">
<img class="icon" src="@/assets/images/time.png" alt=""> <img class="icon"
src="@/assets/images/time.png"
alt="">
会议时间: 2022年8月13日 14:30 会议时间: 2022年8月13日 14:30
</p> </p>
<p class="text"> <p class="text">
<img class="icon" src="@/assets/images/online.png" alt=""> <img class="icon"
src="@/assets/images/online.png"
alt="">
总部四楼大会议室 总部四楼大会议室
</p> </p>
</div> </div>
</li> </li>
<li> <li>
<img class="pic" src="http://10.10.11.7/images/about/10.png" alt=""> <img class="pic"
src="https://new.iasf.ac.cn/images/about/10.png"
alt="">
<div class="texts"> <div class="texts">
<h6>专业技术培训 | 自由电子激光装置中的结构</h6> <h6>专业技术培训 | 自由电子激光装置中的结构</h6>
<p class="sum">加速器总体-直线加速器总体-高重频电子枪组</p> <p class="sum">加速器总体-直线加速器总体-高重频电子枪组</p>
<p class="text"> <p class="text">
<img class="icon" src="@/assets/images/mine.png" alt=""> <img class="icon"
src="@/assets/images/mine.png"
alt="">
邵佳航 邵佳航
</p> </p>
<p class="text"> <p class="text">
<img class="icon" src="@/assets/images/time.png" alt=""> <img class="icon"
src="@/assets/images/time.png"
alt="">
会议时间: 2022年8月13日 14:30 会议时间: 2022年8月13日 14:30
</p> </p>
<p class="text"> <p class="text">
<img class="icon" src="@/assets/images/online.png" alt=""> <img class="icon"
src="@/assets/images/online.png"
alt="">
总部四楼大会议室 总部四楼大会议室
</p> </p>
</div> </div>
</li> </li>
<li> <li>
<img class="pic" src="http://10.10.11.7/images/about/10.png" alt=""> <img class="pic"
src="https://new.iasf.ac.cn/images/about/10.png"
alt="">
<div class="texts"> <div class="texts">
<h6>专业技术培训 | 自由电子激光装置中的结构</h6> <h6>专业技术培训 | 自由电子激光装置中的结构</h6>
<p class="sum">加速器总体-直线加速器总体-高重频电子枪组</p> <p class="sum">加速器总体-直线加速器总体-高重频电子枪组</p>
<p class="text"> <p class="text">
<img class="icon" src="@/assets/images/mine.png" alt=""> <img class="icon"
src="@/assets/images/mine.png"
alt="">
邵佳航 邵佳航
</p> </p>
<p class="text"> <p class="text">
<img class="icon" src="@/assets/images/time.png" alt=""> <img class="icon"
src="@/assets/images/time.png"
alt="">
会议时间: 2022年8月13日 14:30 会议时间: 2022年8月13日 14:30
</p> </p>
<p class="text"> <p class="text">
<img class="icon" src="@/assets/images/online.png" alt=""> <img class="icon"
src="@/assets/images/online.png"
alt="">
总部四楼大会议室 总部四楼大会议室
</p> </p>
</div> </div>
</li> </li>
</ul> </ul>
<div class="cover" @click="toSet(6)">关联栏目</div> <div class="cover"
@click="toSet(6)">关联栏目</div>
</div> </div>
</div> </div>
</div> </div>
<div class="block program"> <div class="block program">
<div class="inner c-wrap"> <div class="inner c-wrap">
<div class="title"> <div class="title">
@ -181,7 +243,8 @@
<span class="sub">{{ modules[7].form.subTitle }}</span> <span class="sub">{{ modules[7].form.subTitle }}</span>
</h5> </h5>
<span class="more">MORE</span> <span class="more">MORE</span>
<div class="cover" @click="toSet(7)">点击更换标题与小标题</div> <div class="cover"
@click="toSet(7)">点击更换标题与小标题</div>
</div> </div>
<div class="c-wrap"> <div class="c-wrap">
<div class="slide"> <div class="slide">
@ -190,7 +253,9 @@
<div class="des">X射线自由电子激光已经成为了化学生物物理等领域不可或缺的研究手段对于绝大多数自由电子激研究院紧密围绕高水平建设综合性国家科学中心战略目标面向国民经济主战场和世界科技前沿</div> <div class="des">X射线自由电子激光已经成为了化学生物物理等领域不可或缺的研究手段对于绝大多数自由电子激研究院紧密围绕高水平建设综合性国家科学中心战略目标面向国民经济主战场和世界科技前沿</div>
<div class="meta">发表日期2022.01.10 &emsp;浏览量备份</div> <div class="meta">发表日期2022.01.10 &emsp;浏览量备份</div>
</div> </div>
<img class="pic" src="@/assets/images/survey3.png" alt=""> <img class="pic"
src="@/assets/images/survey3.png"
alt="">
</div> </div>
<ul class="list"> <ul class="list">
<li> <li>
@ -206,13 +271,17 @@
<p class="date">2022.10.10</p> <p class="date">2022.10.10</p>
</li> </li>
</ul> </ul>
<div class="cover" @click="toSet(8)">关联栏目</div> <div class="cover"
@click="toSet(8)">关联栏目</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<Module ref="module" :data.sync="curData" :visible.sync="diaVisible" @moduleSubmit="moduleSubmit" /> <Module ref="module"
:data.sync="curData"
:visible.sync="diaVisible"
@moduleSubmit="moduleSubmit" />
</div> </div>
</template> </template>
@ -221,12 +290,12 @@ import mixins from '@/mixins/page'
import Modules from '@/const/modules' import Modules from '@/const/modules'
export default { export default {
mixins: [mixins], mixins: [mixins],
data() { data () {
return { return {
modules: Modules['estate/index'] modules: Modules['estate/index']
} }
}, },
mounted() { mounted () {
this.$store.commit('user/setCrumbs', [ this.$store.commit('user/setCrumbs', [
{ {
name: '站点管理', name: '站点管理',
@ -246,335 +315,337 @@ export default {
]) ])
}, },
methods: { methods: {
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "../../../../../styles/page/page.scss"; @import '../../../../../styles/page/page.scss';
.title { .title {
position: relative; position: relative;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: flex-end; align-items: flex-end;
padding-bottom: 25px; padding-bottom: 25px;
margin-bottom: 30px; margin-bottom: 30px;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
h5 { h5 {
padding-left: 16px; padding-left: 16px;
font-size: 36px; font-size: 36px;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
line-height: 1; line-height: 1;
border-left: 6px solid #2B96EF; border-left: 6px solid #2b96ef;
} }
.sub { .sub {
font-size: 22px; font-size: 22px;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500; font-weight: 500;
color: #AFB7BF; color: #afb7bf;
} }
.more { .more {
font-size: 14px; font-size: 14px;
color: #666; color: #666;
cursor: pointer; cursor: pointer;
} }
} }
.lg { .lg {
width: 1505px; width: 1505px;
} }
/deep/.articles { /deep/.articles {
width: 50%; width: 50%;
.el-carousel__indicators--horizontal { .el-carousel__indicators--horizontal {
bottom: 20px; bottom: 20px;
left: 804px; left: 804px;
} }
} }
.banner-block { .banner-block {
background: url(../../../../../assets/images/sfel/2.png) 0 0/cover no-repeat; background: url(../../../../../assets/images/sfel/2.png) 0 0 / cover no-repeat;
} }
.sfel-banner { .sfel-banner {
display: flex;
cursor: pointer;
.pic {
transition: .5s;
&:hover {
transform: scale(1.3);
}
}
.right {
position: relative;
width: 50%;
padding: 50px 50px 30px;
background: #1583FF;
color: #fff;
&:hover {
background: #465f85;
h6, .des, .meta {
color: #fff;
transform: translateY(15px);
}
}
}
.inds {
position: absolute;
bottom: 40px;
left: 60px;
display: flex; display: flex;
li { cursor: pointer;
width: 10px; .pic {
height: 10px; transition: 0.5s;
margin-right: 12px; &:hover {
background: #FFFFFF; transform: scale(1.3);
border-radius: 50%; }
transition: .2s;
&.active {
width: 30px;
background: rgba(255,255,255,0.3);
border-radius: 5px;
}
}
}
h6 {
font-size: 1.3rem;
transition: .3s;
}
.des {
margin: 30px 0;
font-size: .9rem;
line-height: 24px;
transition: .3s;
}
.meta {
font-size: .8rem;
transition: .3s;
}
}
.card {
display: flex;
flex-wrap: wrap;
margin-top: 40px;
li {
width: calc((100% - 56px) / 3);
margin-right: 28px;
box-shadow: 0px 0px 20px 0px rgba(176,176,176,0.21);
border-radius: 6px;
transition: .3s;
&:hover {
transform: scale(1.05);
} }
&:last-child { .right {
margin-right: 0; position: relative;
width: 50%;
padding: 50px 50px 30px;
background: #1583ff;
color: #fff;
&:hover {
background: #465f85;
h6,
.des,
.meta {
color: #fff;
transform: translateY(15px);
}
}
} }
} .inds {
.pic { position: absolute;
width: 100%; bottom: 40px;
height: 240px; left: 60px;
} display: flex;
.texts { li {
padding: 40px 30px; width: 10px;
} height: 10px;
.meta { margin-right: 12px;
font-size: 16px; background: #ffffff;
color: #666; border-radius: 50%;
} transition: 0.2s;
.des { &.active {
margin: 10px 0; width: 30px;
font-size: 20px; background: rgba(255, 255, 255, 0.3);
font-family: SFProDisplay; border-radius: 5px;
font-weight: 500; }
color: #333; }
line-height: 28px;
}
.arrow {
width: 36px;
}
}
.talent {
.shows {
position: relative;
display: flex;
color: #fff;
background: #1A2844;
border-radius: 0px 100px 0px 100px;
.left {
width: 50%;
padding: 120px 0 0 5%;
} }
h6 { h6 {
font-size: 1.6rem; font-size: 1.3rem;
transition: 0.3s;
} }
.text { .des {
margin: 20px 0; margin: 30px 0;
font-size: 1rem; font-size: 0.9rem;
line-height: 2; line-height: 24px;
transition: 0.3s;
} }
.pic { .meta {
width: 50%; font-size: 0.8rem;
height: 500px; transition: 0.3s;
} }
}
} }
.conference { .card {
background: url(../../../../../assets/images/sfel/4.png) 0 0/cover no-repeat;
.shows {
display: flex; display: flex;
} flex-wrap: wrap;
.left { margin-top: 40px;
position: relative;
width: 688px;
height: 688px;
margin-right: 20px;
cursor: pointer;
.text {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 0 12px;
line-height: 59px;
font-size: 18px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #FFFFFF;
background-color: rgba(0, 0, 0, 0.57);
}
}
.card-list {
width: 784px;
li { li {
display: flex; width: calc((100% - 56px) / 3);
align-items: center; margin-right: 28px;
padding: 14px; box-shadow: 0px 0px 20px 0px rgba(176, 176, 176, 0.21);
margin-bottom: 21px; border-radius: 6px;
background-color: #fff; transition: 0.3s;
cursor: pointer; &:hover {
transition: .3s; transform: scale(1.05);
&:last-child { }
margin-bottom: 0; &:last-child {
} margin-right: 0;
&:hover { }
transform: translateX(20px);
}
} }
.pic { .pic {
width: 188px; width: 100%;
height: 188px; height: 240px;
margin-right: 36px;
} }
h6 { .texts {
margin-bottom: 10px; padding: 40px 30px;
font-size: 20px;
color: #333;
} }
.sum { .meta {
font-size: 16px; font-size: 16px;
color: #666; color: #666;
} }
.text { .des {
display: flex; margin: 10px 0;
align-items: center; font-size: 20px;
margin: 10px 0; font-family: SFProDisplay;
font-weight: 500;
color: #333;
line-height: 28px;
} }
.icon { .arrow {
margin-right: 5px; width: 36px;
} }
}
} }
.program { .talent {
background: #fff; .shows {
.slide { position: relative;
display: flex; display: flex;
margin-bottom: 14px; color: #fff;
} background: #1a2844;
.texts { border-radius: 0px 100px 0px 100px;
width: 51%; .left {
padding: 56px; width: 50%;
background: #FBFBFB; padding: 120px 0 0 5%;
h6 { }
font-size: 24px; h6 {
font-family: PingFangSC-Medium, PingFang SC; font-size: 1.6rem;
font-weight: 500; }
color: #333333; .text {
margin: 20px 0;
font-size: 1rem;
line-height: 2;
}
.pic {
width: 50%;
height: 500px;
}
} }
.des { }
margin: 35px 0 25px; .conference {
font-size: 16px; background: url(../../../../../assets/images/sfel/4.png) 0 0 / cover no-repeat;
color: #666; .shows {
line-height: 32px; display: flex;
} }
.meta { .left {
font-size: 14px; position: relative;
color: #666; width: 688px;
height: 688px;
margin-right: 20px;
cursor: pointer;
.text {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 0 12px;
line-height: 59px;
font-size: 18px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #ffffff;
background-color: rgba(0, 0, 0, 0.57);
}
} }
} .card-list {
.pic { width: 784px;
width: 49%; li {
height: 430px; display: flex;
} align-items: center;
.list { padding: 14px;
display: flex; margin-bottom: 21px;
li { background-color: #fff;
width: calc((100% - 44px) / 3); cursor: pointer;
padding: 36px 22px; transition: 0.3s;
margin-right: 14px; &:last-child {
background: url(../../../../../assets/images/sfel/7.png) 0 0/cover no-repeat; margin-bottom: 0;
&:nth-child(2) { }
background-image: url(../../../../../assets/images/sfel/8.png); &:hover {
} transform: translateX(20px);
&:nth-child(3) { }
margin-right: 0; }
background-image: url(../../../../../assets/images/sfel/9.png); .pic {
} width: 188px;
height: 188px;
margin-right: 36px;
}
h6 {
margin-bottom: 10px;
font-size: 20px;
color: #333;
}
.sum {
font-size: 16px;
color: #666;
}
.text {
display: flex;
align-items: center;
margin: 10px 0;
}
.icon {
margin-right: 5px;
}
} }
.des { }
margin-bottom: 30px;
font-size: 18px; .program {
font-family: PingFangSC-Medium, PingFang SC; background: #fff;
font-weight: 500; .slide {
color: #FFFFFF; display: flex;
line-height: 30px; margin-bottom: 14px;
} }
.date { .texts {
font-size: 16px; width: 51%;
font-family: LaoSangamMN; padding: 56px;
color: #FFFFFF; background: #fbfbfb;
h6 {
font-size: 24px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
}
.des {
margin: 35px 0 25px;
font-size: 16px;
color: #666;
line-height: 32px;
}
.meta {
font-size: 14px;
color: #666;
}
}
.pic {
width: 49%;
height: 430px;
}
.list {
display: flex;
li {
width: calc((100% - 44px) / 3);
padding: 36px 22px;
margin-right: 14px;
background: url(../../../../../assets/images/sfel/7.png) 0 0 / cover no-repeat;
&:nth-child(2) {
background-image: url(../../../../../assets/images/sfel/8.png);
}
&:nth-child(3) {
margin-right: 0;
background-image: url(../../../../../assets/images/sfel/9.png);
}
}
.des {
margin-bottom: 30px;
font-size: 18px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #ffffff;
line-height: 30px;
}
.date {
font-size: 16px;
font-family: LaoSangamMN;
color: #ffffff;
}
} }
}
} }
.tools { .tools {
position: absolute; position: absolute;
top: 600px; top: 600px;
left: 0; left: 0;
width: 226px; width: 226px;
text-align: center; text-align: center;
.logo { .logo {
padding: 44px 0; padding: 44px 0;
background: #0C60BE; background: #0c60be;
box-shadow: 0px 0px 20px 0px rgba(184,191,200,0.3); box-shadow: 0px 0px 20px 0px rgba(184, 191, 200, 0.3);
} }
.nav { .nav {
li { li {
padding: 0 10px; padding: 0 10px;
font-size: 24px; font-size: 24px;
line-height: 83px; line-height: 83px;
color: #fff; color: #fff;
background-color: #1D1D1D; background-color: #1d1d1d;
cursor: pointer; cursor: pointer;
@include ellipsis; @include ellipsis;
&.active { &.active {
background-color: #1583FF; background-color: #1583ff;
} }
}
} }
}
} }
@media (max-width: 1520px) { @media (max-width: 1520px) {
.lg { .lg {
width: 98%; width: 98%;
} }
} }
</style> </style>

@ -163,7 +163,7 @@ export default {
padding: 42px; padding: 42px;
margin-bottom: 36px; margin-bottom: 36px;
color: #333; color: #333;
background: #f5f5f5 url(http://10.10.11.7/images/overviewSetup/1.png) right bottom/auto no-repeat; background: #f5f5f5 url(https://new.iasf.ac.cn/images/overviewSetup/1.png) right bottom/auto no-repeat;
transition: 0.5s; transition: 0.5s;
&:nth-child(even) { &:nth-child(even) {
justify-content: space-between; justify-content: space-between;

@ -4,27 +4,34 @@
<div class="actions"> <div class="actions">
<p class="page-name">页面设置/产业光源-概况-机构设置</p> <p class="page-name">页面设置/产业光源-概况-机构设置</p>
<div> <div>
<el-button type="primary" @click="preview">预览</el-button> <el-button type="primary"
@click="preview">预览</el-button>
<el-button @click="save(0)">保存为草稿</el-button> <el-button @click="save(0)">保存为草稿</el-button>
<el-button type="primary" @click="save(1)">发布</el-button> <el-button type="primary"
@click="save(1)">发布</el-button>
<el-button @click="back">放弃编辑</el-button> <el-button @click="back">放弃编辑</el-button>
</div> </div>
</div> </div>
<div class="modules"> <div class="modules">
<div class="relative"> <div class="relative">
<div class="single-banner single-banner-overview"> <div class="single-banner single-banner-overview">
<img class="banner-img" :src="modules[0].form.pic" alt=""> <img class="banner-img"
:src="modules[0].form.pic"
alt="">
<div class="texts"> <div class="texts">
<h6 class="banner-title">{{ modules[0].form.title }}</h6> <h6 class="banner-title">{{ modules[0].form.title }}</h6>
</div> </div>
</div> </div>
<div class="cover" @click="toSet(0)">点击更换banner与链接</div> <div class="cover"
@click="toSet(0)">点击更换banner与链接</div>
</div> </div>
<ul class="tabs wow fadeInLeft"> <ul class="tabs wow fadeInLeft">
<template v-for="(item, i) in tabs"> <template v-for="(item, i) in tabs">
<li :class="{active: i == active}" :key="i" @click="tabChange(i)">{{ item }}</li> <li :class="{active: i == active}"
:key="i"
@click="tabChange(i)">{{ item }}</li>
</template> </template>
</ul> </ul>
@ -32,19 +39,30 @@
<div class="org"> <div class="org">
<div class="left c-wrap"> <div class="left c-wrap">
<h6>{{ modules[1].form.title }}</h6> <h6>{{ modules[1].form.title }}</h6>
<p class="text" v-html="modules[1].form.des"></p> <p class="text"
<div class="cover" style="top: -73px;min-height: 300px" @click="toSet(1)">点击更换标题与描述</div> v-html="modules[1].form.des"></p>
<div class="cover"
style="top: -73px;min-height: 300px"
@click="toSet(1)">点击更换标题与描述</div>
</div> </div>
<img class="pic" src="http://10.10.11.7/images/overviewSetup/1.png" alt=""> <img class="pic"
src="https://new.iasf.ac.cn/images/overviewSetup/1.png"
alt="">
</div> </div>
<div class="lg-bg c-wrap"> <div class="lg-bg c-wrap">
<img width="100%" :src="modules[2].form.pic" alt=""> <img width="100%"
<div class="cover" @click="toSet(2)">点击更换图片</div> :src="modules[2].form.pic"
alt="">
<div class="cover"
@click="toSet(2)">点击更换图片</div>
</div> </div>
</div> </div>
</div> </div>
<Module ref="module" :data.sync="curData" :visible.sync="diaVisible" @moduleSubmit="moduleSubmit" /> <Module ref="module"
:data.sync="curData"
:visible.sync="diaVisible"
@moduleSubmit="moduleSubmit" />
</div> </div>
</template> </template>
@ -53,14 +71,14 @@ import mixins from '@/mixins/page'
import Modules from '@/const/modules' import Modules from '@/const/modules'
export default { export default {
mixins: [mixins], mixins: [mixins],
data() { data () {
return { return {
modules: Modules['estate/orgSetup'], modules: Modules['estate/orgSetup'],
active: 0, active: 0,
tabs: ['机构设置'] tabs: ['机构设置']
} }
}, },
mounted() { mounted () {
this.$store.commit('user/setCrumbs', [ this.$store.commit('user/setCrumbs', [
{ {
name: '站点管理', name: '站点管理',
@ -81,7 +99,7 @@ export default {
}, },
methods: { methods: {
// tab // tab
tabChange(i) { tabChange (i) {
this.active = i this.active = i
}, },
} }
@ -89,83 +107,82 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "../../../../../styles/page/page.scss"; @import '../../../../../styles/page/page.scss';
.tabs { .tabs {
display: flex; display: flex;
justify-content: center; justify-content: center;
box-shadow: 0px 2px 10px 0px rgba(223,223,223,0.28); box-shadow: 0px 2px 10px 0px rgba(223, 223, 223, 0.28);
li { li {
padding: 25px 19px; padding: 25px 19px;
margin: 0 10px; margin: 0 10px;
font-size: 1.1rem; font-size: 1.1rem;
color: #333; color: #333;
border-bottom: 4px solid transparent; border-bottom: 4px solid transparent;
text-shadow: 0px 2px 14px rgba(167,167,167,0.26); text-shadow: 0px 2px 14px rgba(167, 167, 167, 0.26);
cursor: pointer; cursor: pointer;
&.active { &.active {
color: #1583FF; color: #1583ff;
border-bottom-color: #1583FF; border-bottom-color: #1583ff;
}
} }
}
} }
.tab-content { .tab-content {
padding: 77px 0; padding: 77px 0;
} }
.org { .org {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
width: 1294px; width: 1294px;
padding: 9px 86px 29px 116px; padding: 9px 86px 29px 116px;
margin: 0 auto 50px; margin: 0 auto 50px;
background: #FCFCFC; background: #fcfcfc;
border-radius: 160px; border-radius: 160px;
.left { .left {
width: 705px; width: 705px;
} }
h6 { h6 {
font-size: 1.4rem; font-size: 1.4rem;
font-family: AlimamaShuHeiTi-Bold, AlimamaShuHeiTi; font-family: AlimamaShuHeiTi-Bold, AlimamaShuHeiTi;
font-weight: bold; font-weight: bold;
color: #333; color: #333;
} }
.text { .text {
margin-top: 10px; margin-top: 10px;
font-size: 1rem; font-size: 1rem;
color: #020202; color: #020202;
line-height: 2rem; line-height: 2rem;
} }
.pic { .pic {
width: 320px; width: 320px;
height: 282px; height: 282px;
} }
} }
.lg-bg { .lg-bg {
width: 85%; width: 85%;
margin: 0 auto; margin: 0 auto;
} }
@media (max-width: 1200px) { @media (max-width: 1200px) {
.tabs { .tabs {
overflow: hidden;; overflow: hidden;
overflow-x: auto; overflow-x: auto;
white-space: normal; white-space: normal;
justify-content: normal; justify-content: normal;
display: -webkit-box; display: -webkit-box;
li { li {
white-space: normal; white-space: normal;
}
} }
} .tab-content {
.tab-content{ padding: 20px 0;
padding: 20px 0; .org {
.org{ width: 100%;
width: 100%; padding: 15px;
padding:15px; flex-direction: column;
flex-direction: column; .left {
.left{ width: 100%;
width: 100%; }
}
} }
}
}
} }
</style> </style>

@ -4,27 +4,34 @@
<div class="actions"> <div class="actions">
<p class="page-name">页面设置/产业光源-概况-产业光源概况</p> <p class="page-name">页面设置/产业光源-概况-产业光源概况</p>
<div> <div>
<el-button type="primary" @click="preview">预览</el-button> <el-button type="primary"
@click="preview">预览</el-button>
<el-button @click="save(0)">保存为草稿</el-button> <el-button @click="save(0)">保存为草稿</el-button>
<el-button type="primary" @click="save(1)">发布</el-button> <el-button type="primary"
@click="save(1)">发布</el-button>
<el-button @click="back">放弃编辑</el-button> <el-button @click="back">放弃编辑</el-button>
</div> </div>
</div> </div>
<div class="modules"> <div class="modules">
<div class="relative"> <div class="relative">
<div class="single-banner single-banner-overview"> <div class="single-banner single-banner-overview">
<img class="banner-img" :src="modules[0].form.pic" alt=""> <img class="banner-img"
:src="modules[0].form.pic"
alt="">
<div class="texts"> <div class="texts">
<h6 class="banner-title">{{ modules[0].form.title }}</h6> <h6 class="banner-title">{{ modules[0].form.title }}</h6>
</div> </div>
</div> </div>
<div class="cover" @click="toSet(0)">点击更换banner与链接</div> <div class="cover"
@click="toSet(0)">点击更换banner与链接</div>
</div> </div>
<ul class="tabs wow fadeInLeft"> <ul class="tabs wow fadeInLeft">
<template v-for="(item, i) in tabs"> <template v-for="(item, i) in tabs">
<li :class="{active: i == active}" :key="i" @click="tabChange(i)">{{ item }}</li> <li :class="{active: i == active}"
:key="i"
@click="tabChange(i)">{{ item }}</li>
</template> </template>
</ul> </ul>
@ -32,18 +39,27 @@
<div class="survey c-wrap"> <div class="survey c-wrap">
<h6> <h6>
{{ modules[1].form.title }} {{ modules[1].form.title }}
<img class="title-bg" src="http://10.10.11.7/images/overviewIntro/2.png" alt=""> <img class="title-bg"
src="https://new.iasf.ac.cn/images/overviewIntro/2.png"
alt="">
</h6> </h6>
<p class="text" v-html="modules[1].form.des"></p> <p class="text"
<div class="cover" @click="toSet(1)">点击更换标题与描述</div> v-html="modules[1].form.des"></p>
<div class="cover"
@click="toSet(1)">点击更换标题与描述</div>
</div> </div>
<div class="lg-bg"> <div class="lg-bg">
<img width="100%" src="http://10.10.11.7/images/estate/3.png" alt=""> <img width="100%"
src="https://new.iasf.ac.cn/images/estate/3.png"
alt="">
</div> </div>
</div> </div>
</div> </div>
<Module ref="module" :data.sync="curData" :visible.sync="diaVisible" @moduleSubmit="moduleSubmit" /> <Module ref="module"
:data.sync="curData"
:visible.sync="diaVisible"
@moduleSubmit="moduleSubmit" />
</div> </div>
</template> </template>
@ -52,14 +68,14 @@ import mixins from '@/mixins/page'
import Modules from '@/const/modules' import Modules from '@/const/modules'
export default { export default {
mixins: [mixins], mixins: [mixins],
data() { data () {
return { return {
modules: Modules['estate/survey'], modules: Modules['estate/survey'],
active: 0, active: 0,
tabs: ['产业光源概况'] tabs: ['产业光源概况']
} }
}, },
mounted() { mounted () {
this.$store.commit('user/setCrumbs', [ this.$store.commit('user/setCrumbs', [
{ {
name: '站点管理', name: '站点管理',
@ -80,7 +96,7 @@ export default {
}, },
methods: { methods: {
// tab // tab
tabChange(i) { tabChange (i) {
this.active = i this.active = i
}, },
} }
@ -88,80 +104,79 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "../../../../../styles/page/page.scss"; @import '../../../../../styles/page/page.scss';
.tabs { .tabs {
display: flex; display: flex;
justify-content: center; justify-content: center;
box-shadow: 0px 2px 10px 0px rgba(223,223,223,0.28); box-shadow: 0px 2px 10px 0px rgba(223, 223, 223, 0.28);
li { li {
padding: 25px 19px; padding: 25px 19px;
margin: 0 10px; margin: 0 10px;
font-size: 1.1rem; font-size: 1.1rem;
color: #333; color: #333;
border-bottom: 4px solid transparent; border-bottom: 4px solid transparent;
text-shadow: 0px 2px 14px rgba(167,167,167,0.26); text-shadow: 0px 2px 14px rgba(167, 167, 167, 0.26);
cursor: pointer; cursor: pointer;
&.active { &.active {
color: #1583FF; color: #1583ff;
border-bottom-color: #1583FF; border-bottom-color: #1583ff;
}
} }
}
} }
.tab-content { .tab-content {
padding-top: 70px; padding-top: 70px;
} }
.survey { .survey {
width: 1294px; width: 1294px;
min-height: 500px; min-height: 500px;
padding: 80px 86px 29px 597px; padding: 80px 86px 29px 597px;
margin: 0 auto 200px; margin: 0 auto 200px;
background: url(http://10.10.11.7/images/estate/2.png) 0 0/100% 100% no-repeat; background: url(https://new.iasf.ac.cn/images/estate/2.png) 0 0/100% 100% no-repeat;
border-radius: 160px; border-radius: 160px;
h6 { h6 {
position: relative; position: relative;
margin-bottom: 30px; margin-bottom: 30px;
font-size: 1.4rem; font-size: 1.4rem;
font-family: AlimamaShuHeiTi-Bold, AlimamaShuHeiTi; font-family: AlimamaShuHeiTi-Bold, AlimamaShuHeiTi;
font-weight: bold; font-weight: bold;
color: #333; color: #333;
} }
.title-bg { .title-bg {
position: absolute; position: absolute;
top: -40px; top: -40px;
left: -20px; left: -20px;
} }
.text { .text {
margin-top: 10px; margin-top: 10px;
font-size: 1rem; font-size: 1rem;
color: #020202; color: #020202;
line-height: 2rem; line-height: 2rem;
} }
} }
.lg-bg { .lg-bg {
width: 40%; width: 40%;
} }
@media (max-width: 1200px) { @media (max-width: 1200px) {
.tabs { .tabs {
overflow: hidden;; overflow: hidden;
overflow-x: auto; overflow-x: auto;
white-space: normal; white-space: normal;
justify-content: normal; justify-content: normal;
display: -webkit-box; display: -webkit-box;
li { li {
white-space: normal; white-space: normal;
}
} }
} .tab-content {
.tab-content{ padding: 20px 0;
padding: 20px 0; .org {
.org{ width: 100%;
width: 100%; padding: 15px;
padding:15px; flex-direction: column;
flex-direction: column; .left {
.left{ width: 100%;
width: 100%; }
}
} }
}
}
} }
</style> </style>

@ -171,25 +171,25 @@ export default {
color: #333; color: #333;
text-align: center; text-align: center;
@include ellipsis(); @include ellipsis();
background: url(http://10.10.11.7/images/governance/3.png) 0 0 / cover no-repeat; background: url(https://new.iasf.ac.cn/images/governance/3.png) 0 0 / cover no-repeat;
cursor: pointer; cursor: pointer;
&:nth-child(2) { &:nth-child(2) {
background-image: url(http://10.10.11.7/images/governance/4.png); background-image: url(https://new.iasf.ac.cn/images/governance/4.png);
} }
&:nth-child(3) { &:nth-child(3) {
background-image: url(http://10.10.11.7/images/governance/5.png); background-image: url(https://new.iasf.ac.cn/images/governance/5.png);
} }
&:nth-child(4) { &:nth-child(4) {
background-image: url(http://10.10.11.7/images/governance/4.png); background-image: url(https://new.iasf.ac.cn/images/governance/4.png);
} }
&:nth-child(5) { &:nth-child(5) {
background-image: url(http://10.10.11.7/images/governance/7.png); background-image: url(https://new.iasf.ac.cn/images/governance/7.png);
} }
&:nth-child(6) { &:nth-child(6) {
background-image: url(http://10.10.11.7/images/governance/6.png); background-image: url(https://new.iasf.ac.cn/images/governance/6.png);
} }
&:nth-child(8) { &:nth-child(8) {
background-image: url(http://10.10.11.7/images/governance/6.png); background-image: url(https://new.iasf.ac.cn/images/governance/6.png);
} }
&:nth-child(3n) { &:nth-child(3n) {
margin-right: 0; margin-right: 0;

@ -81,7 +81,7 @@
</div> </div>
<ul class="news"> <ul class="news">
<li> <li>
<img src="http://10.10.11.7/images/home/3.png" <img src="https://new.iasf.ac.cn/images/home/3.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6> <h6>2022 New Year Message from President Sun Dongbai</h6>
@ -90,7 +90,7 @@
</div> </div>
</li> </li>
<li> <li>
<img src="http://10.10.11.7/images/home/3.png" <img src="https://new.iasf.ac.cn/images/home/3.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6> <h6>2022 New Year Message from President Sun Dongbai</h6>
@ -99,7 +99,7 @@
</div> </div>
</li> </li>
<li> <li>
<img src="http://10.10.11.7/images/home/3.png" <img src="https://new.iasf.ac.cn/images/home/3.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6> <h6>2022 New Year Message from President Sun Dongbai</h6>
@ -108,7 +108,7 @@
</div> </div>
</li> </li>
<li> <li>
<img src="http://10.10.11.7/images/home/3.png" <img src="https://new.iasf.ac.cn/images/home/3.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6> <h6>2022 New Year Message from President Sun Dongbai</h6>
@ -117,7 +117,7 @@
</div> </div>
</li> </li>
<li> <li>
<img src="http://10.10.11.7/images/home/3.png" <img src="https://new.iasf.ac.cn/images/home/3.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6> <h6>2022 New Year Message from President Sun Dongbai</h6>
@ -126,7 +126,7 @@
</div> </div>
</li> </li>
<li> <li>
<img src="http://10.10.11.7/images/home/3.png" <img src="https://new.iasf.ac.cn/images/home/3.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6> <h6>2022 New Year Message from President Sun Dongbai</h6>

@ -85,7 +85,7 @@
<img style="width: 50%;height: 410px;overflow: hidden;" <img style="width: 50%;height: 410px;overflow: hidden;"
width="100%" width="100%"
height="480" height="480"
src="http://10.10.11.7/images/about/5.png" src="https://new.iasf.ac.cn/images/about/5.png"
alt=""> alt="">
<div class="right"> <div class="right">
<h6>IASF is driven to serve the Science and industry, and solve grand challenges through research and innovation. We are open and creative</h6> <h6>IASF is driven to serve the Science and industry, and solve grand challenges through research and innovation. We are open and creative</h6>
@ -97,7 +97,7 @@
<ul class="news"> <ul class="news">
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/5.png" src="https://new.iasf.ac.cn/images/about/5.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<p class="meta">2022-07-24 | 综合新闻</p> <p class="meta">2022-07-24 | 综合新闻</p>
@ -109,7 +109,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/5.png" src="https://new.iasf.ac.cn/images/about/5.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<p class="meta">2022-07-24 | 建设进展</p> <p class="meta">2022-07-24 | 建设进展</p>
@ -121,7 +121,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/5.png" src="https://new.iasf.ac.cn/images/about/5.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<p class="meta">2022-07-24 | 学术动态</p> <p class="meta">2022-07-24 | 学术动态</p>
@ -139,7 +139,7 @@
<ul class="news-carousel"> <ul class="news-carousel">
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/5.png" src="https://new.iasf.ac.cn/images/about/5.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>媒体关注</h6> <h6>媒体关注</h6>
@ -152,7 +152,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/5.png" src="https://new.iasf.ac.cn/images/about/5.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>媒体关注</h6> <h6>媒体关注</h6>
@ -165,7 +165,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/5.png" src="https://new.iasf.ac.cn/images/about/5.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>媒体关注</h6> <h6>媒体关注</h6>
@ -192,7 +192,7 @@
<ul class="people"> <ul class="people">
<li class="wow fadeInDown"> <li class="wow fadeInDown">
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/careers/6.png" src="https://new.iasf.ac.cn/images/careers/6.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>王晓凡</h6> <h6>王晓凡</h6>
@ -203,7 +203,7 @@
</li> </li>
<li class="wow fadeInDown"> <li class="wow fadeInDown">
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/careers/7.png" src="https://new.iasf.ac.cn/images/careers/7.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>王晓凡</h6> <h6>王晓凡</h6>
@ -214,7 +214,7 @@
</li> </li>
<li class="wow fadeInDown"> <li class="wow fadeInDown">
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/careers/8.png" src="https://new.iasf.ac.cn/images/careers/8.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>王晓凡</h6> <h6>王晓凡</h6>
@ -329,7 +329,7 @@
<ul class="tools"> <ul class="tools">
<li v-for="(item, i) in modules[19].list" <li v-for="(item, i) in modules[19].list"
:key="i"> :key="i">
<img :src="'http://10.10.11.7/images/iasf/icon' + (i < 4 ? i + 1 : 1) + '.png'" <img :src="'https://new.iasf.ac.cn/images/iasf/icon' + (i < 4 ? i + 1 : 1) + '.png'"
alt="" alt=""
class="icon"> class="icon">
{{ item.title }} {{ item.title }}

@ -147,7 +147,7 @@
</div> </div>
<ul class="news"> <ul class="news">
<li> <li>
<img src="http://10.10.11.7/images/home/3.png" <img src="https://new.iasf.ac.cn/images/home/3.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<span class="meta">2022-07-24 | 综合新闻</span> <span class="meta">2022-07-24 | 综合新闻</span>
@ -155,7 +155,7 @@
</div> </div>
</li> </li>
<li> <li>
<img src="http://10.10.11.7/images/home/3.png" <img src="https://new.iasf.ac.cn/images/home/3.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<span class="meta">2022-07-24 | 综合新闻</span> <span class="meta">2022-07-24 | 综合新闻</span>
@ -163,7 +163,7 @@
</div> </div>
</li> </li>
<li> <li>
<img src="http://10.10.11.7/images/home/3.png" <img src="https://new.iasf.ac.cn/images/home/3.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<span class="meta">2022-07-24 | 综合新闻</span> <span class="meta">2022-07-24 | 综合新闻</span>
@ -171,7 +171,7 @@
</div> </div>
</li> </li>
<li> <li>
<img src="http://10.10.11.7/images/home/3.png" <img src="https://new.iasf.ac.cn/images/home/3.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<span class="meta">2022-07-24 | 综合新闻</span> <span class="meta">2022-07-24 | 综合新闻</span>
@ -179,7 +179,7 @@
</div> </div>
</li> </li>
<li> <li>
<img src="http://10.10.11.7/images/home/3.png" <img src="https://new.iasf.ac.cn/images/home/3.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<span class="meta">2022-07-24 | 综合新闻</span> <span class="meta">2022-07-24 | 综合新闻</span>
@ -187,7 +187,7 @@
</div> </div>
</li> </li>
<li> <li>
<img src="http://10.10.11.7/images/home/3.png" <img src="https://new.iasf.ac.cn/images/home/3.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<span class="meta">2022-07-24 | 综合新闻</span> <span class="meta">2022-07-24 | 综合新闻</span>

@ -45,7 +45,7 @@
<div class="news-banner"> <div class="news-banner">
<img width="100%" <img width="100%"
height="480" height="480"
src="http://10.10.11.7/images/about/5.png" src="https://new.iasf.ac.cn/images/about/5.png"
alt=""> alt="">
<div class="right"> <div class="right">
<h6>IASF is driven to serve the Science and industry, and solve grand challenges through research and innovation. We are open and creative</h6> <h6>IASF is driven to serve the Science and industry, and solve grand challenges through research and innovation. We are open and creative</h6>
@ -56,7 +56,7 @@
<ul class="card"> <ul class="card">
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<p class="meta">2022-09-09 | Research</p> <p class="meta">2022-09-09 | Research</p>
@ -68,7 +68,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/10.png" src="https://new.iasf.ac.cn/images/about/10.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<p class="meta">2022-09-09 | Research</p> <p class="meta">2022-09-09 | Research</p>
@ -80,7 +80,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/11.png" src="https://new.iasf.ac.cn/images/about/11.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<p class="meta">2022-09-09 | Research</p> <p class="meta">2022-09-09 | Research</p>
@ -107,7 +107,7 @@
<div class="left"> <div class="left">
<img width="100%" <img width="100%"
height="400" height="400"
src="http://10.10.11.7/images/about/5.png" src="https://new.iasf.ac.cn/images/about/5.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>2022 New Year Messag President Sun Dongbai.</h6> <h6>2022 New Year Messag President Sun Dongbai.</h6>
@ -118,13 +118,13 @@
<ul class="show-card"> <ul class="show-card">
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="des">Comprises the installation and nanostructuri</div> <div class="des">Comprises the installation and nanostructuri</div>
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/10.png" src="https://new.iasf.ac.cn/images/about/10.png"
alt=""> alt="">
<div class="des">Prof. Stephan V. Roth's research</div> <div class="des">Prof. Stephan V. Roth's research</div>
</li> </li>
@ -132,7 +132,7 @@
<ul class="card-list"> <ul class="card-list">
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>Hold doctorates or the highest degree in their field</h6> <h6>Hold doctorates or the highest degree in their field</h6>
@ -141,7 +141,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/10.png" src="https://new.iasf.ac.cn/images/about/10.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>This 2019 image depicted a Centers for Disease</h6> <h6>This 2019 image depicted a Centers for Disease</h6>
@ -150,7 +150,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/11.png" src="https://new.iasf.ac.cn/images/about/11.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>Browse premium related images on iStock</h6> <h6>Browse premium related images on iStock</h6>
@ -177,7 +177,7 @@
<div class="left"> <div class="left">
<img width="100%" <img width="100%"
height="558" height="558"
src="http://10.10.11.7/images/about/5.png" src="https://new.iasf.ac.cn/images/about/5.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<div class="meta"> <div class="meta">
@ -193,7 +193,7 @@
<ul class="card-list"> <ul class="card-list">
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>Professional technical Free electron laser device</h6> <h6>Professional technical Free electron laser device</h6>
@ -219,7 +219,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>Professional technical Free electron laser device</h6> <h6>Professional technical Free electron laser device</h6>
@ -245,7 +245,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>Professional technical Free electron laser device</h6> <h6>Professional technical Free electron laser device</h6>
@ -271,7 +271,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>Professional technical Free electron laser device</h6> <h6>Professional technical Free electron laser device</h6>

@ -3,41 +3,57 @@
<div class="actions"> <div class="actions">
<p class="page-name">页面设置/关于IASF-组织架构</p> <p class="page-name">页面设置/关于IASF-组织架构</p>
<div> <div>
<el-button type="primary" @click="preview">预览</el-button> <el-button type="primary"
@click="preview">预览</el-button>
<el-button @click="save(0)">保存为草稿</el-button> <el-button @click="save(0)">保存为草稿</el-button>
<el-button type="primary" @click="save(1)">发布</el-button> <el-button type="primary"
@click="save(1)">发布</el-button>
<el-button @click="back">放弃编辑</el-button> <el-button @click="back">放弃编辑</el-button>
</div> </div>
</div> </div>
<div class="modules"> <div class="modules">
<div class="relative"> <div class="relative">
<div class="single-banner single-banner-overview"> <div class="single-banner single-banner-overview">
<img class="banner-img" :src="modules[0].form.pic" alt=""> <img class="banner-img"
:src="modules[0].form.pic"
alt="">
<div class="texts"> <div class="texts">
<h6 class="banner-title">{{ modules[0].form.title }}</h6> <h6 class="banner-title">{{ modules[0].form.title }}</h6>
</div> </div>
</div> </div>
<div class="cover" @click="toSet(0)">点击更换banner与链接</div> <div class="cover"
@click="toSet(0)">点击更换banner与链接</div>
</div> </div>
<div class="tab-content"> <div class="tab-content">
<div class="org c-wrap"> <div class="org c-wrap">
<div class="left"> <div class="left">
<h6>{{ modules[1].form.title }}</h6> <h6>{{ modules[1].form.title }}</h6>
<p class="text" v-html="modules[1].form.des"></p> <p class="text"
v-html="modules[1].form.des"></p>
</div> </div>
<img class="pic" src="http://10.10.11.7/images/overviewSetup/1.png" alt=""> <img class="pic"
<div class="cover" style="min-height: 300px;" @click="toSet(1)">点击更换标题与描述</div> src="https://new.iasf.ac.cn/images/overviewSetup/1.png"
alt="">
<div class="cover"
style="min-height: 300px;"
@click="toSet(1)">点击更换标题与描述</div>
</div> </div>
<div class="lg-bg"> <div class="lg-bg">
<img width="100%" :src="modules[2].form.pic" alt=""> <img width="100%"
<div class="cover" @click="toSet(2)">点击更换图片</div> :src="modules[2].form.pic"
alt="">
<div class="cover"
@click="toSet(2)">点击更换图片</div>
</div> </div>
</div> </div>
</div> </div>
<Module ref="module" :data.sync="curData" :visible.sync="diaVisible" @moduleSubmit="moduleSubmit" /> <Module ref="module"
:data.sync="curData"
:visible.sync="diaVisible"
@moduleSubmit="moduleSubmit" />
</div> </div>
</template> </template>
@ -46,12 +62,12 @@ import mixins from '@/mixins/page'
import Modules from '@/const/modules' import Modules from '@/const/modules'
export default { export default {
mixins: [mixins], mixins: [mixins],
data() { data () {
return { return {
modules: Modules.org modules: Modules.org
} }
}, },
mounted() { mounted () {
this.$store.commit('user/setCrumbs', [ this.$store.commit('user/setCrumbs', [
{ {
name: '站点管理', name: '站点管理',
@ -71,48 +87,48 @@ export default {
]) ])
}, },
methods: { methods: {
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "../../../styles/page/page.scss"; @import '../../../styles/page/page.scss';
.tab-content { .tab-content {
padding: 77px 0; padding: 77px 0;
} }
.org { .org {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
width: 1294px; width: 1294px;
padding: 9px 86px 29px 116px; padding: 9px 86px 29px 116px;
margin: 0 auto 50px; margin: 0 auto 50px;
background: #FCFCFC; background: #fcfcfc;
border-radius: 160px; border-radius: 160px;
.left { .left {
width: 705px; width: 705px;
} }
h6 { h6 {
font-size: 1.4rem; font-size: 1.4rem;
font-family: AlimamaShuHeiTi-Bold, AlimamaShuHeiTi; font-family: AlimamaShuHeiTi-Bold, AlimamaShuHeiTi;
font-weight: bold; font-weight: bold;
color: #333; color: #333;
} }
.text { .text {
margin-top: 10px; margin-top: 10px;
font-size: 1rem; font-size: 1rem;
color: #020202; color: #020202;
line-height: 2rem; line-height: 2rem;
} }
.pic { .pic {
width: 320px; width: 320px;
height: 282px; height: 282px;
} }
} }
.lg-bg { .lg-bg {
position: relative; position: relative;
width: 85%; width: 85%;
margin: 0 auto; margin: 0 auto;
} }
</style> </style>

@ -313,7 +313,7 @@ export default {
.event { .event {
position: relative; position: relative;
padding: 70px 250px 70px 60px; padding: 70px 250px 70px 60px;
background: url(http://10.10.11.7/images/overview/16.png) 0 0/100% no-repeat; background: url(https://new.iasf.ac.cn/images/overview/16.png) 0 0/100% no-repeat;
h6 { h6 {
font-size: 2.2rem; font-size: 2.2rem;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;

@ -132,8 +132,8 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '../../../styles/page/page.scss'; @import '../../../styles/page/page.scss';
.wrap { .wrap {
background: url(http://10.10.11.7/images/overviewDevHistory/1.png) (right 505px) / auto no-repeat, background: url(https://new.iasf.ac.cn/images/overviewDevHistory/1.png) (right 505px) / auto no-repeat,
url(http://10.10.11.7/images/overviewDevHistory/2.png) (left bottom) / auto no-repeat; url(https://new.iasf.ac.cn/images/overviewDevHistory/2.png) (left bottom) / auto no-repeat;
background-color: #fff; background-color: #fff;
} }
.tabs { .tabs {
@ -199,7 +199,7 @@ export default {
content: ''; content: '';
width: 18px; width: 18px;
height: 18px; height: 18px;
background: url(http://10.10.11.7/images/overviewDevHistory/3.png) no-repeat; background: url(https://new.iasf.ac.cn/images/overviewDevHistory/3.png) no-repeat;
margin-right: 20px; margin-right: 20px;
} }
} }

@ -43,7 +43,7 @@
<div class="relative"> <div class="relative">
<h6 v-html="modules[1].form.title"></h6> <h6 v-html="modules[1].form.title"></h6>
<img class="title-bg" <img class="title-bg"
src="http://10.10.11.7/images/overviewIntro/2.png" src="https://new.iasf.ac.cn/images/overviewIntro/2.png"
alt=""> alt="">
</div> </div>
@ -172,7 +172,7 @@ export default {
padding-top: 90px; padding-top: 90px;
color: #fff; color: #fff;
text-align: center; text-align: center;
background: url(http://10.10.11.7/images/overviewIntro/3.png) 0 0/100% 100% no-repeat; background: url(https://new.iasf.ac.cn/images/overviewIntro/3.png) 0 0/100% 100% no-repeat;
.mask { .mask {
position: absolute; position: absolute;
top: 0; top: 0;

@ -42,7 +42,7 @@
v-html="modules[1].form.des"></p> v-html="modules[1].form.des"></p>
</div> </div>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/overviewSetup/1.png" src="https://new.iasf.ac.cn/images/overviewSetup/1.png"
alt=""> alt="">
<div class="cover" <div class="cover"
style="min-height: 300px;" style="min-height: 300px;"

@ -33,20 +33,20 @@
<ul class="teams"> <ul class="teams">
<li> <li>
<div class="line"> <div class="line">
<img src="http://10.10.11.7/images/researchTeam/3.png" <img src="https://new.iasf.ac.cn/images/researchTeam/3.png"
alt="" alt=""
class="icon"> class="icon">
<span class="bold">姓名</span> <span class="bold">姓名</span>
<span class="val">/ 岗位</span> <span class="val">/ 岗位</span>
</div> </div>
<div class="line"> <div class="line">
<img src="http://10.10.11.7/images/researchTeam/4.png" <img src="https://new.iasf.ac.cn/images/researchTeam/4.png"
alt="" alt=""
class="icon"> class="icon">
<span class="text">专业 超低温总体</span> <span class="text">专业 超低温总体</span>
</div> </div>
<div class="line"> <div class="line">
<img src="http://10.10.11.7/images/researchTeam/5.png" <img src="https://new.iasf.ac.cn/images/researchTeam/5.png"
alt="" alt=""
class="icon"> class="icon">
<span class="text">荣誉 杰青 万人</span> <span class="text">荣誉 杰青 万人</span>
@ -143,7 +143,7 @@ export default {
width: calc((100% - 10px) / 2); width: calc((100% - 10px) / 2);
padding: 20px 30px; padding: 20px 30px;
margin: 0 10px 10px 0; margin: 0 10px 10px 0;
background: url(http://10.10.11.7/images/researchTeam/2.png) 0 0 / cover no-repeat; background: url(https://new.iasf.ac.cn/images/researchTeam/2.png) 0 0 / cover no-repeat;
&:nth-child(even) { &:nth-child(even) {
margin-right: 0; margin-right: 0;
} }

@ -45,7 +45,7 @@
<div class="sfel-banner"> <div class="sfel-banner">
<img width="100%" <img width="100%"
height="480" height="480"
src="http://10.10.11.7/images/about/5.png" src="https://new.iasf.ac.cn/images/about/5.png"
alt=""> alt="">
<div class="right"> <div class="right">
<h6>IASF is driven to serve the Science and industry, and solve grand challenges through research and innovation. We are open and creative</h6> <h6>IASF is driven to serve the Science and industry, and solve grand challenges through research and innovation. We are open and creative</h6>
@ -56,7 +56,7 @@
<ul class="card"> <ul class="card">
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<p class="meta">2022-09-09 | Research</p> <p class="meta">2022-09-09 | Research</p>
@ -68,7 +68,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/10.png" src="https://new.iasf.ac.cn/images/about/10.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<p class="meta">2022-09-09 | Research</p> <p class="meta">2022-09-09 | Research</p>
@ -80,7 +80,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/11.png" src="https://new.iasf.ac.cn/images/about/11.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<p class="meta">2022-09-09 | Research</p> <p class="meta">2022-09-09 | Research</p>
@ -157,7 +157,7 @@
<ul class="card-list"> <ul class="card-list">
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>喜讯储存环三次谐波腔的带束实验验证及超导高频频腔</h6> <h6>喜讯储存环三次谐波腔的带束实验验证及超导高频频腔</h6>
@ -166,7 +166,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>光明区总工会为一线科研人员送上新春祝福</h6> <h6>光明区总工会为一线科研人员送上新春祝福</h6>
@ -175,7 +175,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>深圳综合粒子设施研究院与中国科学院</h6> <h6>深圳综合粒子设施研究院与中国科学院</h6>
@ -210,14 +210,14 @@
<div class="left"> <div class="left">
<img width="100%" <img width="100%"
height="100%" height="100%"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="text">关于2021年度深圳综合粒子设施研究院采购意向公开表</div> <div class="text">关于2021年度深圳综合粒子设施研究院采购意向公开表</div>
</div> </div>
<ul class="card-list"> <ul class="card-list">
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/10.png" src="https://new.iasf.ac.cn/images/about/10.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>专业技术培训 | 自由电子激光装置中的结构</h6> <h6>专业技术培训 | 自由电子激光装置中的结构</h6>
@ -244,7 +244,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/10.png" src="https://new.iasf.ac.cn/images/about/10.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>专业技术培训 | 自由电子激光装置中的结构</h6> <h6>专业技术培训 | 自由电子激光装置中的结构</h6>
@ -271,7 +271,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/10.png" src="https://new.iasf.ac.cn/images/about/10.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>专业技术培训 | 自由电子激光装置中的结构</h6> <h6>专业技术培训 | 自由电子激光装置中的结构</h6>
@ -322,7 +322,7 @@
style="margin-right: 20px"> style="margin-right: 20px">
<img width="100%" <img width="100%"
height="100%" height="100%"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="text">关于2021年度深圳综合粒子设施研究院采购意向公开表</div> <div class="text">关于2021年度深圳综合粒子设施研究院采购意向公开表</div>
</div> </div>
@ -330,7 +330,7 @@
data-wow-delay="0.5s"> data-wow-delay="0.5s">
<img width="100%" <img width="100%"
height="100%" height="100%"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="text">关于2021年度深圳综合粒子设施研究院采购意向公开表</div> <div class="text">关于2021年度深圳综合粒子设施研究院采购意向公开表</div>
</div> </div>

@ -45,7 +45,7 @@
<div class="sfel-banner"> <div class="sfel-banner">
<img width="100%" <img width="100%"
height="480" height="480"
src="http://10.10.11.7/images/about/5.png" src="https://new.iasf.ac.cn/images/about/5.png"
alt=""> alt="">
<div class="right"> <div class="right">
<h6>IASF is driven to serve the Science and industry, and solve grand challenges through research and innovation. We are open and creative</h6> <h6>IASF is driven to serve the Science and industry, and solve grand challenges through research and innovation. We are open and creative</h6>
@ -56,7 +56,7 @@
<ul class="card"> <ul class="card">
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<p class="meta">2022-09-09 | Research</p> <p class="meta">2022-09-09 | Research</p>
@ -68,7 +68,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/10.png" src="https://new.iasf.ac.cn/images/about/10.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<p class="meta">2022-09-09 | Research</p> <p class="meta">2022-09-09 | Research</p>
@ -80,7 +80,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/11.png" src="https://new.iasf.ac.cn/images/about/11.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<p class="meta">2022-09-09 | Research</p> <p class="meta">2022-09-09 | Research</p>
@ -140,7 +140,7 @@
<ul class="card-list"> <ul class="card-list">
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>喜讯储存环三次谐波腔的带束实验验证及超导高频频腔</h6> <h6>喜讯储存环三次谐波腔的带束实验验证及超导高频频腔</h6>
@ -149,7 +149,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>光明区总工会为一线科研人员送上新春祝福</h6> <h6>光明区总工会为一线科研人员送上新春祝福</h6>
@ -158,7 +158,7 @@
</li> </li>
<li> <li>
<img class="pic" <img class="pic"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>深圳综合粒子设施研究院与中国科学院</h6> <h6>深圳综合粒子设施研究院与中国科学院</h6>
@ -192,7 +192,7 @@
style="margin-right: 20px"> style="margin-right: 20px">
<img width="100%" <img width="100%"
height="100%" height="100%"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="text">关于2021年度深圳综合粒子设施研究院采购意向公开表</div> <div class="text">关于2021年度深圳综合粒子设施研究院采购意向公开表</div>
</div> </div>
@ -200,7 +200,7 @@
data-wow-delay="0.5s"> data-wow-delay="0.5s">
<img width="100%" <img width="100%"
height="100%" height="100%"
src="http://10.10.11.7/images/about/9.png" src="https://new.iasf.ac.cn/images/about/9.png"
alt=""> alt="">
<div class="text">关于2021年度深圳综合粒子设施研究院采购意向公开表</div> <div class="text">关于2021年度深圳综合粒子设施研究院采购意向公开表</div>
</div> </div>

@ -96,7 +96,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '../../../styles/page/page.scss'; @import '../../../styles/page/page.scss';
.block { .block {
background: url(http://10.10.11.7/images/speech/2.png) no-repeat; background: url(https://new.iasf.ac.cn/images/speech/2.png) no-repeat;
} }
.inner { .inner {
display: flex; display: flex;

@ -164,7 +164,7 @@ export default {
this.$post(this.api.roles, Util.rsa({ this.$post(this.api.roles, Util.rsa({
page: this.page, page: this.page,
limit: this.pageSize, limit: this.pageSize,
name: this.keyword, name: encodeURI(this.keyword),
})).then(({ data }) => { })).then(({ data }) => {
const list = data.records.filter(e => e.id !== 1) // const list = data.records.filter(e => e.id !== 1) //
// const list = data.records // const list = data.records
@ -288,13 +288,13 @@ export default {
permissions: checked permissions: checked
} }
if (form.id) { if (form.id) {
this.$post(this.api.updateRole, Util.rsa(data)).then(res => { this.$post(this.api.updateRole, data).then(res => {
Util.successMsg("修改成功") Util.successMsg("修改成功")
this.getData() this.getData()
this.roleVisible = false this.roleVisible = false
}).catch(res => { }) }).catch(res => { })
} else { } else {
this.$post(this.api.addRole, Util.rsa(data)).then(res => { this.$post(this.api.addRole, data).then(res => {
Util.successMsg("新增成功") Util.successMsg("新增成功")
this.getData() this.getData()
this.roleVisible = false this.roleVisible = false

@ -11,6 +11,7 @@
accept="image/*" accept="image/*"
:show-file-list="false" :show-file-list="false"
:headers="headers" :headers="headers"
:on-error="uploadError"
:before-upload="beforeUpload" :before-upload="beforeUpload"
:on-success="changeAvatar"> :on-success="changeAvatar">
<el-button type="text" <el-button type="text"
@ -91,8 +92,24 @@ export default {
} }
return true return true
}, },
//
uploadError (err, file, fileList) {
this.$message({
message: "上传出错,请重试!",
type: "error",
center: true
})
},
changeAvatar (res) { changeAvatar (res) {
this.setAvatar(res.data) if (res.code === 200) {
this.setAvatar(res.data)
} else {
this.$message({
message: res.msg,
type: "error",
center: true
})
}
}, },
updateStatus (status) { updateStatus (status) {
this.edited = status this.edited = status

@ -324,7 +324,7 @@ export default {
if (!data.password) return Util.warningMsg("请输入原密码") if (!data.password) return Util.warningMsg("请输入原密码")
if (!data.newPassword) return Util.warningMsg("请输入新密码") if (!data.newPassword) return Util.warningMsg("请输入新密码")
if (!data.reNewPassword) return Util.warningMsg("请确认新密码") if (!data.reNewPassword) return Util.warningMsg("请确认新密码")
if (data.newPassword.length < 8 || data.reNewPassword.length < 8) return Util.warningMsg("密码不得小于8位,并且至少包含数字、字母和特殊字符中两种") if (data.newPassword.length < 8 || data.reNewPassword.length < 8) return Util.warningMsg("密码长度不得小于8位,至少包含数字、大小写字母和特殊字符")
if (data.newPassword !== data.reNewPassword) return Util.warningMsg("输入的新密码不一致,请重新确认") if (data.newPassword !== data.reNewPassword) return Util.warningMsg("输入的新密码不一致,请重新确认")
if (data.password === data.newPassword) return Util.warningMsg("原密码跟新密码不能一致") if (data.password === data.newPassword) return Util.warningMsg("原密码跟新密码不能一致")
this.$post(this.api.pwd, Util.rsa({ this.$post(this.api.pwd, Util.rsa({
@ -345,11 +345,13 @@ export default {
}, },
submit () { submit () {
const { form } = this const { form } = this
if (!/^[A-Za-z0-9]*$/.test(form.username)) return Util.warningMsg('请输入正确账号格式')
if (!/^[A-Za-z0-9]*$/.test(form.jobNumber)) return Util.warningMsg('请输入正确工号格式')
this.$post(this.api.updateUser, Util.rsa({ this.$post(this.api.updateUser, Util.rsa({
id: form.id, id: form.id,
jobNumber: form.jobNumber, jobNumber: form.jobNumber,
phone: form.phone, phone: form.phone,
realName: form.realName, realName: encodeURI(form.realName),
username: form.username, username: form.username,
email: form.email, email: form.email,
sex: form.sex, sex: form.sex,

@ -646,7 +646,7 @@ export default {
orgSubmit () { orgSubmit () {
this.$refs.orgForm.validate((valid) => { this.$refs.orgForm.validate((valid) => {
if (valid) { if (valid) {
const form = this.orgForm const form = JSON.parse(JSON.stringify(this.orgForm))
const cas = this.cascaderValue const cas = this.cascaderValue
const len = cas.length const len = cas.length
if (cas && len) { if (cas && len) {
@ -654,6 +654,8 @@ export default {
} else if (!form.pid) { } else if (!form.pid) {
form.pid = 0 form.pid = 0
} }
form.name = encodeURI(form.name)
form.pidName = encodeURI(form.pidName)
if (!form.id) { if (!form.id) {
// //
this.$post(this.api.dept, Util.rsa(form)).then(res => { this.$post(this.api.dept, Util.rsa(form)).then(res => {
@ -690,7 +692,7 @@ export default {
this.$post(this.api.users, Util.rsa({ this.$post(this.api.users, Util.rsa({
type: this.staffType || 1, type: this.staffType || 1,
deptArchitectureId: this.$refs.orgs.getCurrentKey() || '', deptArchitectureId: this.$refs.orgs.getCurrentKey() || '',
keyWord: this.keyword, keyWord: encodeURI(this.keyword),
pageNum: this.page, pageNum: this.page,
pageSize: this.pageSize pageSize: this.pageSize
})).then(({ data }) => { })).then(({ data }) => {
@ -874,6 +876,7 @@ export default {
const form = JSON.parse(JSON.stringify(this.form)) const form = JSON.parse(JSON.stringify(this.form))
const ids = form.deptArchitectureId const ids = form.deptArchitectureId
if (ids) form.deptArchitectureId = ids.map(e => e[e.length - 1]) if (ids) form.deptArchitectureId = ids.map(e => e[e.length - 1])
form.realName = encodeURI(form.realName)
if (form.id) { if (form.id) {
this.$post(this.api.updateUser, Util.rsa(form)).then(res => { this.$post(this.api.updateUser, Util.rsa(form)).then(res => {
Util.successMsg("编辑成功!") Util.successMsg("编辑成功!")

@ -135,7 +135,7 @@ export default {
methods: { methods: {
getData () { getData () {
this.$post(this.api.groupList, Util.rsa({ this.$post(this.api.groupList, Util.rsa({
groupName: this.keyword, groupName: encodeURI(this.keyword),
page: this.page, page: this.page,
limit: this.pageSize limit: this.pageSize
})).then(({ data }) => { })).then(({ data }) => {
@ -210,7 +210,9 @@ export default {
if (valid) { if (valid) {
if (this.submiting) return false if (this.submiting) return false
this.submiting = true this.submiting = true
const { form } = this const form = JSON.parse(JSON.stringify(this.form))
form.groupName = encodeURI(form.groupName)
form.description = encodeURI(form.description)
if (form.id) { if (form.id) {
this.$post(this.api.groupUpdate, Util.rsa(form)).then(res => { this.$post(this.api.groupUpdate, Util.rsa(form)).then(res => {
Util.successMsg("编辑成功!") Util.successMsg("编辑成功!")

@ -10,6 +10,7 @@ const service = axios.create({
// post请求头 // post请求头
service.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8' service.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8'
service.defaults.headers['X-Content-Type-Options'] = 'nosniff' service.defaults.headers['X-Content-Type-Options'] = 'nosniff'
service.defaults.headers['Accept'] = 'application/json'
service.defaults.headers['Content-Security-Policy'] = 'script-src "self"; object-src "none";style-src cdn.example.org third-party.org; child-src https:' service.defaults.headers['Content-Security-Policy'] = 'script-src "self"; object-src "none";style-src cdn.example.org third-party.org; child-src https:'
// 请求拦截器 // 请求拦截器
service.interceptors.request.use(config => { service.interceptors.request.use(config => {

@ -3,9 +3,7 @@
* */ * */
const isDev = process.env.NODE_ENV === 'development' // 开发环境 const isDev = process.env.NODE_ENV === 'development' // 开发环境
let host = `${location.origin}/` let host = `${location.origin}/`
if (isDev) {
host = 'http://192.168.31.51:10000/'
}
const Setting = { const Setting = {
/** /**
* 基础配置 * 基础配置

@ -8,7 +8,7 @@ import addRoutes from '@/libs/route/addRoutes'
export default { export default {
namespaced: true, namespaced: true,
state: { state: {
avatar: "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", avatar: 'https://new.iasf.ac.cn/images/avatar.png',
userId: '', userId: '',
userName: '', userName: '',
crumbs: '' crumbs: ''

Loading…
Cancel
Save