yujialong 2 years ago
parent b959369fab
commit 0d452dcd3e
  1. 2
      src/api/index.js
  2. 130
      src/const/modules.js
  3. 46
      src/mixins/page/index.js
  4. 58
      src/pages/article/add/index.vue
  5. 2
      src/pages/article/list/index.vue
  6. 2
      src/pages/column/add/index.vue
  7. 2
      src/pages/column/list/index.vue
  8. 2
      src/pages/column/page/about.vue
  9. 14
      src/pages/column/page/application.vue
  10. 2
      src/pages/column/page/careers.vue
  11. 2
      src/pages/column/page/edu.vue
  12. 14
      src/pages/column/page/home.vue
  13. 32
      src/pages/column/page/news.vue
  14. 2
      src/pages/column/page/newsPress.vue
  15. 2
      src/pages/column/page/newsProcurement.vue
  16. 2
      src/pages/column/page/research.vue
  17. 2
      src/setting.js

@ -17,7 +17,7 @@ export default {
sendPhoneOrEmailCode: `iasf/sys/sendPhoneOrEmailCode`,
updatePhoneOrEmail: `iasf/sys/updatePhoneOrEmail`,
updateUserAvatars: `${host}iasf/sys/updateUserAvatars`,
staffTemplate: `https://31k70639y6.zicp.fun/用户导入模板.xlsx`,
staffTemplate: `http://192.168.31.136/用户导入模板.xlsx`,
checkJobNumber: `iasf/sys/checkJobNumber`,
checkUsername: `iasf/sys/checkUsername`,
resetPwd: `iasf/sys/resetPwd`,

@ -43,7 +43,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/about/1.png',
pic: 'http://192.168.31.136/images/about/1.png',
title: 'ABOUT',
link: {
linkName: '无',
@ -92,7 +92,7 @@ export default {
}
],
form: {
pic: 'https://31k70639y6.zicp.fun/images/about/2.png',
pic: 'http://192.168.31.136/images/about/2.png',
title: 'Our History',
subTitle: 'Throughout the world, most of the top science and technology innovation centers are distributed',
link: {
@ -446,7 +446,7 @@ export default {
}
],
form: {
pic: 'https://31k70639y6.zicp.fun/images/about/5.png',
pic: 'http://192.168.31.136/images/about/5.png',
title: 'Strategic Plan',
link: {
linkName: '无',
@ -533,7 +533,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/about/6.png',
pic: 'http://192.168.31.136/images/about/6.png',
title: 'Sun Dongbai',
subTitle: 'Founder and 1st PRESIDENT OF THE INSTITUTE OF ADVANCED SCIENCE FACILITIES, SHENZHEN',
link: {
@ -551,7 +551,7 @@ export default {
isEnable: 1
},
{
pic: 'https://31k70639y6.zicp.fun/images/about/7.png',
pic: 'http://192.168.31.136/images/about/7.png',
title: 'Yang Xueming',
subTitle: 'Vice President of the Institute of Advanced Scienc, Shenzhen',
link: {
@ -569,7 +569,7 @@ export default {
isEnable: 1
},
{
pic: 'https://31k70639y6.zicp.fun/images/about/8.png',
pic: 'http://192.168.31.136/images/about/8.png',
title: 'Ulf KALSSON',
subTitle: 'The Chairman of Science and Technology Advisory Committee',
link: {
@ -635,7 +635,7 @@ export default {
}
],
form: {
pic: 'https://31k70639y6.zicp.fun/images/about/9.png',
pic: 'http://192.168.31.136/images/about/9.png',
title: 'Science and Technology',
subTitle: '',
link: {
@ -679,7 +679,7 @@ export default {
}
],
form: {
pic: 'https://31k70639y6.zicp.fun/images/about/10.png',
pic: 'http://192.168.31.136/images/about/10.png',
title: 'User Committee',
subTitle: '',
link: {
@ -723,7 +723,7 @@ export default {
}
],
form: {
pic: 'https://31k70639y6.zicp.fun/images/about/11.png',
pic: 'http://192.168.31.136/images/about/11.png',
title: 'Industry Advancement Committee',
subTitle: '',
link: {
@ -787,7 +787,7 @@ export default {
}
],
form: {
pic: 'https://31k70639y6.zicp.fun/images/about/12.png',
pic: 'http://192.168.31.136/images/about/12.png',
title: 'Throughout the world, most of the top science and technology innovation centers are distributed',
subTitle: '',
link: {
@ -845,7 +845,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/careers/1.png',
pic: 'http://192.168.31.136/images/careers/1.png',
title: 'CAREERS',
link: {
linkName: '无',
@ -889,7 +889,7 @@ export default {
}
],
form: {
pic: 'https://31k70639y6.zicp.fun/images/careers/2.png',
pic: 'http://192.168.31.136/images/careers/2.png',
title: 'Research',
link: {
linkName: '无',
@ -932,7 +932,7 @@ export default {
}
],
form: {
pic: 'https://31k70639y6.zicp.fun/images/careers/3.png',
pic: 'http://192.168.31.136/images/careers/3.png',
title: 'Engineering',
link: {
linkName: '无',
@ -975,7 +975,7 @@ export default {
}
],
form: {
pic: 'https://31k70639y6.zicp.fun/images/careers/4.png',
pic: 'http://192.168.31.136/images/careers/4.png',
title: 'Management Staff',
link: {
linkName: '无',
@ -1018,7 +1018,7 @@ export default {
}
],
form: {
pic: 'https://31k70639y6.zicp.fun/images/careers/5.png',
pic: 'http://192.168.31.136/images/careers/5.png',
title: 'Post-doc Programs',
link: {
linkName: '无',
@ -1098,7 +1098,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/careers/6.png',
pic: 'http://192.168.31.136/images/careers/6.png',
title: 'IASF started its journey to chase light, push the boundaries forward, and discover the unknown.',
link: {
linkName: '无',
@ -1115,7 +1115,7 @@ export default {
isEnable: 1
},
{
pic: 'https://31k70639y6.zicp.fun/images/careers/7.png',
pic: 'http://192.168.31.136/images/careers/7.png',
title: 'IASF started its journey to chase light, push the boundaries forward, and discover the unknown.',
link: {
linkName: '无',
@ -1132,7 +1132,7 @@ export default {
isEnable: 1
},
{
pic: 'https://31k70639y6.zicp.fun/images/careers/8.png',
pic: 'http://192.168.31.136/images/careers/8.png',
title: 'IASF started its journey to chase light, push the boundaries forward, and discover the unknown.',
link: {
linkName: '无',
@ -1200,7 +1200,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/careers/9.png',
pic: 'http://192.168.31.136/images/careers/9.png',
title: 'Benefits',
subTitle: 'YOU ARE IN GOOD HANDS',
link: {
@ -1218,7 +1218,7 @@ export default {
isEnable: 1
},
{
pic: 'https://31k70639y6.zicp.fun/images/careers/10.png',
pic: 'http://192.168.31.136/images/careers/10.png',
title: 'Traineeships',
subTitle: 'YOUR FUTURE STARTS HERE',
link: {
@ -1236,7 +1236,7 @@ export default {
isEnable: 1
},
{
pic: 'https://31k70639y6.zicp.fun/images/careers/11.png',
pic: 'http://192.168.31.136/images/careers/11.png',
title: 'Programs',
subTitle: 'YOUR INSPIRATION HAS GREAT SUPPORTS',
link: {
@ -1296,7 +1296,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/edu/1.png',
pic: 'http://192.168.31.136/images/edu/1.png',
title: 'EDUCATION & COLLABORATION',
link: {
linkName: '无',
@ -1340,7 +1340,7 @@ export default {
}
],
form: {
pic: 'https://31k70639y6.zicp.fun/images/edu/2.png',
pic: 'http://192.168.31.136/images/edu/2.png',
title: 'Partnership',
link: {
linkName: '无',
@ -1383,7 +1383,7 @@ export default {
}
],
form: {
pic: 'https://31k70639y6.zicp.fun/images/edu/2.png',
pic: 'http://192.168.31.136/images/edu/2.png',
title: 'Programs',
link: {
linkName: '无',
@ -1469,7 +1469,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/edu/3.png',
pic: 'http://192.168.31.136/images/edu/3.png',
title: 'community service',
subTitle: 'IASF is driven to serve the Science and industry, and solve grand challenges.',
link: {
@ -1487,7 +1487,7 @@ export default {
isEnable: 1
},
{
pic: 'https://31k70639y6.zicp.fun/images/edu/4.png',
pic: 'http://192.168.31.136/images/edu/4.png',
title: 'community service',
subTitle: 'IASF is driven to serve the Science and industry, and solve grand challenges.',
link: {
@ -1505,7 +1505,7 @@ export default {
isEnable: 1
},
{
pic: 'https://31k70639y6.zicp.fun/images/edu/5.png',
pic: 'http://192.168.31.136/images/edu/5.png',
title: 'community service',
subTitle: 'IASF is driven to serve the Science and industry, and solve grand challenges.',
link: {
@ -1565,7 +1565,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/home/1.png',
pic: 'http://192.168.31.136/images/home/1.png',
title: 'HOME',
link: {
linkName: '无',
@ -1629,7 +1629,7 @@ export default {
}
],
form: {
pic: 'https://31k70639y6.zicp.fun/images/home/2.png',
pic: 'http://192.168.31.136/images/home/2.png',
title: 'Shenzhen Innovation Lightsource Facility',
link: {
linkName: '无',
@ -1672,7 +1672,7 @@ export default {
}
],
form: {
pic: 'https://31k70639y6.zicp.fun/images/home/3.png',
pic: 'http://192.168.31.136/images/home/3.png',
title: 'Shenzhen Soft X-ray Superconducting Free-electron Laser Facility ',
link: {
linkName: '无',
@ -1788,7 +1788,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/careers/6.png',
pic: 'http://192.168.31.136/images/careers/6.png',
title: 'SHAO Jiahang, PH.D.',
subTitle: '',
link: {
@ -1806,7 +1806,7 @@ export default {
des: '“..., The new facility (S3FEL) will provide the brightest soft X-ray laser to both scientific and industrial users worldwide, enabling applications that are beyond imagination, ...”…'
},
{
pic: 'https://31k70639y6.zicp.fun/images/careers/7.png',
pic: 'http://192.168.31.136/images/careers/7.png',
title: 'PENG Ziling, Ph.D.',
subTitle: '',
link: {
@ -1824,7 +1824,7 @@ export default {
des: '“..., With so many young, professional, and passionate workmates, I treasure the moments we spent on fruitful discussions, brainstorming, teamworking, and the leisure activities on the Guangming farm just next to our worksite, ...”…'
},
{
pic: 'https://31k70639y6.zicp.fun/images/careers/8.png',
pic: 'http://192.168.31.136/images/careers/8.png',
title: 'CHEN Rikun, M.S.',
subTitle: '',
link: {
@ -2061,7 +2061,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/news/1.png',
pic: 'http://192.168.31.136/images/news/1.png',
title: 'NEWS & EVENTS',
link: {
linkName: '无',
@ -2241,7 +2241,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/news/1.png',
pic: 'http://192.168.31.136/images/news/1.png',
title: 'NEWS & EVENTS',
link: {
linkName: '无',
@ -2308,7 +2308,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/newsPress/1.png',
pic: 'http://192.168.31.136/images/newsPress/1.png',
title: 'Reports',
subTitle: 'IASF is driven to serve the Science and industry, and solve grand challenges.',
link: {
@ -2326,7 +2326,7 @@ export default {
isEnable: 1
},
{
pic: 'https://31k70639y6.zicp.fun/images/newsPress/2.png',
pic: 'http://192.168.31.136/images/newsPress/2.png',
title: 'Brochures',
subTitle: 'IASF is driven to serve the Science and industry, and solve grand challenges.',
link: {
@ -2344,7 +2344,7 @@ export default {
isEnable: 1
},
{
pic: 'https://31k70639y6.zicp.fun/images/newsPress/3.png',
pic: 'http://192.168.31.136/images/newsPress/3.png',
title: 'Gallery',
subTitle: 'IASF is driven to serve the Science and industry, and solve grand challenges.',
link: {
@ -2404,7 +2404,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/news/1.png',
pic: 'http://192.168.31.136/images/news/1.png',
title: 'NEWS & EVENTS',
link: {
linkName: '无',
@ -2471,7 +2471,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/newsProcurement/1.png',
pic: 'http://192.168.31.136/images/newsProcurement/1.png',
title: 'Project ',
subTitle: 'IASF is driven to serve the Science and industry, and solve grand challenges.',
link: {
@ -2489,7 +2489,7 @@ export default {
isEnable: 1
},
{
pic: 'https://31k70639y6.zicp.fun/images/newsProcurement/2.png',
pic: 'http://192.168.31.136/images/newsProcurement/2.png',
title: 'Goods',
subTitle: 'IASF is driven to serve the Science and industry, and solve grand challenges.',
link: {
@ -2507,7 +2507,7 @@ export default {
isEnable: 1
},
{
pic: 'https://31k70639y6.zicp.fun/images/newsProcurement/3.png',
pic: 'http://192.168.31.136/images/newsProcurement/3.png',
title: 'Service',
subTitle: 'IASF is driven to serve the Science and industry, and solve grand challenges.',
link: {
@ -2567,7 +2567,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/research/1.png',
pic: 'http://192.168.31.136/images/research/1.png',
title: 'RESEARCH',
link: {
linkName: '无',
@ -2648,7 +2648,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/research/res1.png',
pic: 'http://192.168.31.136/images/research/res1.png',
title: 'Physics',
link: {
linkName: '无',
@ -2664,7 +2664,7 @@ export default {
des: 'Research Field Description',
},
{
pic: 'https://31k70639y6.zicp.fun/images/research/res2.png',
pic: 'http://192.168.31.136/images/research/res2.png',
title: 'Chemistry',
link: {
linkName: '无',
@ -2680,7 +2680,7 @@ export default {
des: 'Research Field Description',
},
{
pic: 'https://31k70639y6.zicp.fun/images/research/res3.png',
pic: 'http://192.168.31.136/images/research/res3.png',
title: 'Biology',
link: {
linkName: '无',
@ -2696,7 +2696,7 @@ export default {
des: 'Research Field Description',
},
{
pic: 'https://31k70639y6.zicp.fun/images/research/res4.png',
pic: 'http://192.168.31.136/images/research/res4.png',
title: 'Advanced Materials ',
link: {
linkName: '无',
@ -2712,7 +2712,7 @@ export default {
des: 'Research Field Description',
},
{
pic: 'https://31k70639y6.zicp.fun/images/research/res5.png',
pic: 'http://192.168.31.136/images/research/res5.png',
title: 'Advanced Manufacturing',
link: {
linkName: '无',
@ -2787,7 +2787,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/research/3.png',
pic: 'http://192.168.31.136/images/research/3.png',
title: 'Accelerator',
link: {
linkName: '无',
@ -2802,7 +2802,7 @@ export default {
}
},
{
pic: 'https://31k70639y6.zicp.fun/images/research/4.png',
pic: 'http://192.168.31.136/images/research/4.png',
title: 'Physics',
link: {
linkName: '无',
@ -2817,7 +2817,7 @@ export default {
}
},
{
pic: 'https://31k70639y6.zicp.fun/images/research/5.png',
pic: 'http://192.168.31.136/images/research/5.png',
title: 'Mechanical Engineering',
link: {
linkName: '无',
@ -2832,7 +2832,7 @@ export default {
}
},
{
pic: 'https://31k70639y6.zicp.fun/images/research/6.png',
pic: 'http://192.168.31.136/images/research/6.png',
title: 'Digital Light-source',
link: {
linkName: '无',
@ -2847,7 +2847,7 @@ export default {
}
},
{
pic: 'https://31k70639y6.zicp.fun/images/research/7.png',
pic: 'http://192.168.31.136/images/research/7.png',
title: 'Beam Lines',
link: {
linkName: '无',
@ -2862,7 +2862,7 @@ export default {
}
},
{
pic: 'https://31k70639y6.zicp.fun/images/research/8.png',
pic: 'http://192.168.31.136/images/research/8.png',
title: 'End Stations',
link: {
linkName: '无',
@ -2943,7 +2943,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/research/12.png',
pic: 'http://192.168.31.136/images/research/12.png',
title: '这里是标题一句话标题',
link: {
linkName: '无',
@ -2959,7 +2959,7 @@ export default {
des: 'Online single-shot characterization of ultrafast pulses from high-gain free-electron lasers, Li Zeng,Chao Feng,Duan Gu,Xiaofan Wang,Kaiqing Zhang,Bo Liu,Zhentang Zhao,Fundamental Research',
},
{
pic: 'https://31k70639y6.zicp.fun/images/research/13.png',
pic: 'http://192.168.31.136/images/research/13.png',
title: '这里是标题一句话标题',
link: {
linkName: '无',
@ -2979,7 +2979,7 @@ export default {
`,
},
{
pic: 'https://31k70639y6.zicp.fun/images/research/14.png',
pic: 'http://192.168.31.136/images/research/14.png',
title: '这里是标题一句话标题',
link: {
linkName: '无',
@ -3039,7 +3039,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/application/1.png',
pic: 'http://192.168.31.136/images/application/1.png',
title: 'APPLICATION',
link: {
linkName: '无',
@ -3088,7 +3088,7 @@ export default {
}
],
form: {
pic: 'https://31k70639y6.zicp.fun/images/research/2.png',
pic: 'http://192.168.31.136/images/research/2.png',
title: 'Why IASF?',
subTitle: `IASF started its journey to chase light,
The one that can drive innovation,
@ -3357,7 +3357,7 @@ export default {
},
list: [
{
pic: 'https://31k70639y6.zicp.fun/images/research/3.png',
pic: 'http://192.168.31.136/images/application/3.png',
title: 'Accelerator',
link: {
linkName: '无',
@ -3372,7 +3372,7 @@ export default {
}
},
{
pic: 'https://31k70639y6.zicp.fun/images/research/4.png',
pic: 'http://192.168.31.136/images/application/4.png',
title: 'Physics',
link: {
linkName: '无',
@ -3387,7 +3387,7 @@ export default {
}
},
{
pic: 'https://31k70639y6.zicp.fun/images/research/5.png',
pic: 'http://192.168.31.136/images/application/5.png',
title: 'Mechanical Engineering',
link: {
linkName: '无',
@ -3402,7 +3402,7 @@ export default {
}
},
{
pic: 'https://31k70639y6.zicp.fun/images/research/6.png',
pic: 'http://192.168.31.136/images/application/6.png',
title: 'Digital Light-source',
link: {
linkName: '无',
@ -3417,7 +3417,7 @@ export default {
}
},
{
pic: 'https://31k70639y6.zicp.fun/images/research/7.png',
pic: 'http://192.168.31.136/images/application/7.png',
title: 'Beam Lines',
link: {
linkName: '无',
@ -3432,7 +3432,7 @@ export default {
}
},
{
pic: 'https://31k70639y6.zicp.fun/images/research/8.png',
pic: 'http://192.168.31.136/images/application/8.png',
title: 'End Stations',
link: {
linkName: '无',

@ -1,7 +1,6 @@
import Module from '@/components/modules/module'
import Setting from '@/setting'
import Util from '@/libs/util'
import ColumnConst from '@/const/column'
import { Loading } from 'element-ui'
export default {
data() {
@ -10,15 +9,33 @@ export default {
site: this.$store.state.content.site,
columnId: +this.$route.query.id,
id: '',
originModules: [],
diaVisible: false,
curModule: 0,
curListIndex: 0,
curData: {},
pass: false,
}
},
components: {
Module,
},
// 页面离开的时候如果没有保存则提示
beforeRouteLeave(to, from, next) {
// 更改了信息才需要提示
if (!this.pass && this.originModules !== JSON.stringify(this.modules)) {
this.$confirm(`所填写内容暂未保存,是否保存?`, '提示', {
type: 'warning'
}).then(() => {
this.save(1, 1)
next()
}).catch(() => {
next()
})
} else {
next()
}
},
mounted() {
this.getInfo()
},
@ -49,7 +66,9 @@ export default {
if (data.length) {
const json = data[0]
this.id = json.id
this.modules = JSON.parse(json[json.state ? 'theEditedJson' : 'jsonBeforeEditing'])
const str = json[json.state ? 'theEditedJson' : 'jsonBeforeEditing']
this.originModules = str // 原始json,用以页面离开的时候判断是否需要提示保存
this.modules = JSON.parse(str)
console.log("🚀 ~ file: index.js ~ line 53 ~ this.$post ~ this.modules", this.modules)
}
}).catch(err => {})
@ -101,13 +120,13 @@ export default {
json: this.handleJson()
}).then(res => {
load.close()
window.open((Setting.isDev ? `http://${location.hostname}:8095` : 'https://31k70639y6.zicp.fun/front') + `/#/${this.$route.query.path}?id=${this.columnId}&preview=1&siteId=${this.$route.query.siteId}`)
window.open((Setting.isDev ? `http://${location.hostname}:8095` : 'http://192.168.31.136/front') + `/#/${this.$route.query.path}?id=${this.columnId}&preview=1&siteId=${this.$route.query.siteId}`)
}).catch(err => {
load.close()
})
},
// 保存
save(state) {
save(state, leave) {
const json = this.handleJson()
const data = {
id: this.id,
@ -120,9 +139,26 @@ export default {
}
if (state) data.theEditedJson = json
this.$post(this.api[this.id ? 'updatePage' : 'savePage'], data).then(res => {
this.originModules = json
Util.successMsg((state ? '发布' : '保存') + '成功')
this.$router.back()
leave || this.$router.back()
}).catch(err => {})
},
// 返回
back() {
this.pass = true
// 更改了信息才需要提示
if (this.originModules !== JSON.stringify(this.modules)) {
this.$confirm(`所填写内容暂未保存,是否保存?`, '提示', {
type: 'warning'
}).then(() => {
this.save(1)
}).catch(() => {
this.$router.back()
})
} else {
this.$router.back()
}
},
}
};

@ -174,7 +174,7 @@
<el-select style="width: 234px;" v-model="form.classificationId">
<template v-for="item in classifications">
<el-option
v-if="item.classificationName"
v-if="item.id"
:key="item.id"
:label="item.classificationName"
:value="item.id">
@ -187,7 +187,7 @@
<el-select style="width: 234px;" v-model="form.lableId" multiple>
<template v-for="item in labels">
<el-option
v-if="item.labelName"
v-if="item.id"
:key="item.id"
:label="item.labelName"
:value="item.id">
@ -317,7 +317,7 @@
@upload="customUpload" />
</el-dialog>
<el-dialog title="所属分类设置" :visible.sync="classVisible" width="500px" :close-on-click-modal="false" class="manage-dia">
<el-dialog title="所属分类设置" :visible.sync="classVisible" width="500px" :close-on-click-modal="false" class="manage-dia" :before-close="closeClass">
<div class="plus">
<i class="el-icon-circle-plus-outline" @click="addClass"></i>
</div>
@ -345,11 +345,11 @@
</el-table-column>
</el-table>
<span slot="footer">
<el-button @click="classVisible = false">返回</el-button>
<el-button @click="closeClass">返回</el-button>
</span>
</el-dialog>
<el-dialog title="主题标签设置" :visible.sync="labelVisible" width="500px" :close-on-click-modal="false" class="manage-dia">
<el-dialog title="主题标签设置" :visible.sync="labelVisible" width="500px" :close-on-click-modal="false" class="manage-dia" :before-close="closeLabel">
<div class="plus">
<i class="el-icon-circle-plus-outline" @click="addLabel"></i>
</div>
@ -377,7 +377,7 @@
</el-table-column>
</el-table>
<span slot="footer">
<el-button @click="labelVisible = false">返回</el-button>
<el-button @click="closeLabel">返回</el-button>
</span>
</el-dialog>
</div>
@ -716,7 +716,7 @@ export default {
}
},
//
submitClass(row) {
submitClass(row, showMsg = 1) {
if (!row.classificationName) return util.errorMsg('请输入分类名称')
this.$post(`${this.api.checkClassif}?classificationName=${row.classificationName}&siteId=${this.site.id}&classificationId=${row.id}`).then(res => {
this.$post(this.api[row.id ? 'updateClassif' : 'saveClassif'], {
@ -727,11 +727,29 @@ export default {
editorId: this.userId,
founderId: this.userId
}).then(res => {
util.successMsg((row.id ? '修改' : '新增') + '成功')
showMsg && util.successMsg((row.id ? '修改' : '新增') + '成功')
this.getClassification()
}).catch(res => {})
}).catch(res => {})
},
//
closeClass() {
const list = this.classifications
if (list.find(e => e.edit && e.classificationName)) {
this.$confirm('所填写内容暂未保存,是否保存?', '提示', {
type: 'warning'
}).then(() => {
list.map(e => {
e.edit && e.classificationName && this.submitClass(e, 0)
})
this.classVisible = false
}).catch(() => {
this.classVisible = false
})
} else {
this.classVisible = false
}
},
//
@ -772,7 +790,7 @@ export default {
}
},
//
submitLabel(row) {
submitLabel(row, showMsg = 1) {
if (!row.labelName) return util.errorMsg('请输入主题名称')
this.$post(`${this.api.checkLabel}?labelName=${row.labelName}&siteId=${this.site.id}&labelId=${row.id}`).then(res => {
this.$post(this.api[row.id ? 'updateLabel' : 'saveLabel'], {
@ -782,11 +800,29 @@ export default {
editorId: this.userId,
founderId: this.userId
}).then(res => {
util.successMsg((row.id ? '修改' : '新增') + '成功')
showMsg && util.successMsg((row.id ? '修改' : '新增') + '成功')
this.getLabel()
}).catch(res => {})
}).catch(res => {})
},
//
closeLabel() {
const list = this.labels
if (list.find(e => e.edit && e.labelName)) {
this.$confirm('所填写内容暂未保存,是否保存?', '提示', {
type: 'warning'
}).then(() => {
list.map(e => {
e.edit && e.labelName && this.submitLabel(e, 0)
})
this.labelVisible = false
}).catch(() => {
this.labelVisible = false
})
} else {
this.labelVisible = false
}
},
//
nameChange(){
@ -933,7 +969,7 @@ export default {
},
//
preview() {
window.open((Setting.isDev ? `http://${location.hostname}:8095` : 'https://31k70639y6.zicp.fun/front') + `/#/article?id=${this.form.id}&siteId=${this.form.siteId}`)
window.open((Setting.isDev ? `http://${location.hostname}:8095` : 'http://192.168.31.136/front') + `/#/article?articleId=${this.form.id}&siteId=${this.form.siteId}&id=${this.form.columnId}`)
},
//
back() {

@ -289,7 +289,7 @@ export default {
},
//
preview(row) {
window.open((Setting.isDev ? `http://${location.hostname}:8095` : 'https://31k70639y6.zicp.fun/front') + `/#/article?id=${row.id}&siteId=${this.$refs.column.getCurrentNode().siteId}`)
window.open((Setting.isDev ? `http://${location.hostname}:8095` : 'http://192.168.31.136/front') + `/#/article?articleId=${row.id}&siteId=${this.$refs.column.getCurrentNode().siteId}&id=${row.columnId}`)
},
//
edit(row) {

@ -195,7 +195,7 @@
</ul>
</el-form-item>
</template>
<el-form-item v-show="form.typeId === 4" prop="showWithDetails" label="只有一篇文章时,以详情方式展示" label-width="240px">
<el-form-item v-show="form.typeId === 1 || form.typeId === 4" prop="showWithDetails" label="只有一篇文章时,以详情方式展示" label-width="240px">
<el-switch
v-model="form.showWithDetails"
:active-value="1"

@ -294,7 +294,7 @@ export default {
const item = this.pageStyle.find(e => e.id == row.listStyleId)
if (item) path = item.path
}
window.open((Setting.isDev ? `http://${location.hostname}:8095` : 'https://31k70639y6.zicp.fun/front') + `/#/${row.typeId === 3 ? row.path : 'column'}?id=${row.id}&siteId=${row.siteId}`)
window.open((Setting.isDev ? `http://${location.hostname}:8095` : 'http://192.168.31.136/front') + `/#/${row.typeId === 3 ? row.path : 'column'}?id=${row.id}&siteId=${row.siteId}`)
},
//
page(row) {

@ -6,7 +6,7 @@
<el-button type="primary" @click="preview">预览</el-button>
<el-button @click="save(0)">保存为草稿</el-button>
<el-button type="primary" @click="save(1)">发布</el-button>
<el-button @click="$router.back()">放弃编辑</el-button>
<el-button @click="back">放弃编辑</el-button>
</div>
</div>

@ -6,7 +6,7 @@
<el-button type="primary" @click="preview">预览</el-button>
<el-button @click="save(0)">保存为草稿</el-button>
<el-button type="primary" @click="save(1)">发布</el-button>
<el-button @click="$router.back()">放弃编辑</el-button>
<el-button @click="back">放弃编辑</el-button>
</div>
</div>
@ -81,7 +81,7 @@
</div>
<ul class="news">
<li>
<img src="https://31k70639y6.zicp.fun/images/home/3.png" alt="">
<img src="http://192.168.31.136/images/home/3.png" alt="">
<div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6>
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)</p>
@ -89,7 +89,7 @@
</div>
</li>
<li>
<img src="https://31k70639y6.zicp.fun/images/home/3.png" alt="">
<img src="http://192.168.31.136/images/home/3.png" alt="">
<div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6>
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)</p>
@ -97,7 +97,7 @@
</div>
</li>
<li>
<img src="https://31k70639y6.zicp.fun/images/home/3.png" alt="">
<img src="http://192.168.31.136/images/home/3.png" alt="">
<div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6>
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)</p>
@ -105,7 +105,7 @@
</div>
</li>
<li>
<img src="https://31k70639y6.zicp.fun/images/home/3.png" alt="">
<img src="http://192.168.31.136/images/home/3.png" alt="">
<div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6>
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)</p>
@ -113,7 +113,7 @@
</div>
</li>
<li>
<img src="https://31k70639y6.zicp.fun/images/home/3.png" alt="">
<img src="http://192.168.31.136/images/home/3.png" alt="">
<div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6>
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)</p>
@ -121,7 +121,7 @@
</div>
</li>
<li>
<img src="https://31k70639y6.zicp.fun/images/home/3.png" alt="">
<img src="http://192.168.31.136/images/home/3.png" alt="">
<div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6>
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)</p>

@ -6,7 +6,7 @@
<el-button type="primary" @click="preview">预览</el-button>
<el-button @click="save(0)">保存为草稿</el-button>
<el-button type="primary" @click="save(1)">发布</el-button>
<el-button @click="$router.back()">放弃编辑</el-button>
<el-button @click="back">放弃编辑</el-button>
</div>
</div>

@ -6,7 +6,7 @@
<el-button type="primary" @click="preview">预览</el-button>
<el-button @click="save(0)">保存为草稿</el-button>
<el-button type="primary" @click="save(1)">发布</el-button>
<el-button @click="$router.back()">放弃编辑</el-button>
<el-button @click="back">放弃编辑</el-button>
</div>
</div>

@ -6,7 +6,7 @@
<el-button type="primary" @click="preview">预览</el-button>
<el-button @click="save(0)">保存为草稿</el-button>
<el-button type="primary" @click="save(1)">发布</el-button>
<el-button @click="$router.back()">放弃编辑</el-button>
<el-button @click="back">放弃编辑</el-button>
</div>
</div>
@ -61,7 +61,7 @@
</div>
<ul class="news">
<li>
<img src="https://31k70639y6.zicp.fun/images/home/3.png" alt="">
<img src="http://192.168.31.136/images/home/3.png" alt="">
<div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6>
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)</p>
@ -69,7 +69,7 @@
</div>
</li>
<li>
<img src="https://31k70639y6.zicp.fun/images/home/3.png" alt="">
<img src="http://192.168.31.136/images/home/3.png" alt="">
<div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6>
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)</p>
@ -77,7 +77,7 @@
</div>
</li>
<li>
<img src="https://31k70639y6.zicp.fun/images/home/3.png" alt="">
<img src="http://192.168.31.136/images/home/3.png" alt="">
<div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6>
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)</p>
@ -85,7 +85,7 @@
</div>
</li>
<li>
<img src="https://31k70639y6.zicp.fun/images/home/3.png" alt="">
<img src="http://192.168.31.136/images/home/3.png" alt="">
<div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6>
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)</p>
@ -93,7 +93,7 @@
</div>
</li>
<li>
<img src="https://31k70639y6.zicp.fun/images/home/3.png" alt="">
<img src="http://192.168.31.136/images/home/3.png" alt="">
<div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6>
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)</p>
@ -101,7 +101,7 @@
</div>
</li>
<li>
<img src="https://31k70639y6.zicp.fun/images/home/3.png" alt="">
<img src="http://192.168.31.136/images/home/3.png" alt="">
<div class="texts">
<h6>2022 New Year Message from President Sun Dongbai</h6>
<p class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)</p>

@ -6,7 +6,7 @@
<el-button type="primary" @click="preview">预览</el-button>
<el-button @click="save(0)">保存为草稿</el-button>
<el-button type="primary" @click="save(1)">发布</el-button>
<el-button @click="$router.back()">放弃编辑</el-button>
<el-button @click="back">放弃编辑</el-button>
</div>
</div>
@ -32,7 +32,7 @@
<div class="block">
<div class="inner">
<div class="banner">
<img width="100%" height="480" src="https://31k70639y6.zicp.fun/images/about/5.png" alt="">
<img width="100%" height="480" src="http://192.168.31.136/images/about/5.png" alt="">
<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>
<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>
@ -41,7 +41,7 @@
</div>
<ul class="card">
<li>
<img class="pic" src="https://31k70639y6.zicp.fun/images/about/9.png" alt="">
<img class="pic" src="http://192.168.31.136/images/about/9.png" alt="">
<div class="texts">
<p class="meta">2022-09-09 | Research</p>
<div class="des">IASF is driven to serve the Science and industry, and solve grand </div>
@ -49,7 +49,7 @@
</div>
</li>
<li>
<img class="pic" src="https://31k70639y6.zicp.fun/images/about/10.png" alt="">
<img class="pic" src="http://192.168.31.136/images/about/10.png" alt="">
<div class="texts">
<p class="meta">2022-09-09 | Research</p>
<div class="des">IASF is driven to serve the Science and industry, and solve grand </div>
@ -57,7 +57,7 @@
</div>
</li>
<li>
<img class="pic" src="https://31k70639y6.zicp.fun/images/about/11.png" alt="">
<img class="pic" src="http://192.168.31.136/images/about/11.png" alt="">
<div class="texts">
<p class="meta">2022-09-09 | Research</p>
<div class="des">IASF is driven to serve the Science and industry, and solve grand </div>
@ -78,7 +78,7 @@
</div>
<div class="shop-shows">
<div class="left">
<img width="100%" height="400" src="https://31k70639y6.zicp.fun/images/about/5.png" alt="">
<img width="100%" height="400" src="http://192.168.31.136/images/about/5.png" alt="">
<div class="texts">
<h6>2022 New Year Messag President Sun Dongbai.</h6>
<div class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)</div>
@ -87,31 +87,31 @@
<div class="right">
<ul class="show-card">
<li>
<img class="pic" src="https://31k70639y6.zicp.fun/images/about/9.png" alt="">
<img class="pic" src="http://192.168.31.136/images/about/9.png" alt="">
<div class="des">Comprises the installation and nanostructuri</div>
</li>
<li>
<img class="pic" src="https://31k70639y6.zicp.fun/images/about/10.png" alt="">
<img class="pic" src="http://192.168.31.136/images/about/10.png" alt="">
<div class="des">Prof. Stephan V. Roth's research</div>
</li>
</ul>
<ul class="card-list">
<li>
<img class="pic" src="https://31k70639y6.zicp.fun/images/about/9.png" alt="">
<img class="pic" src="http://192.168.31.136/images/about/9.png" alt="">
<div class="texts">
<h6>Hold doctorates or the highest degree in their field</h6>
<div class="des">Characterization in Fibre and Polymer Technology, KTH Royal Institute of Technology.Characteriza Royal Institute of technology.</div>
</div>
</li>
<li>
<img class="pic" src="https://31k70639y6.zicp.fun/images/about/10.png" alt="">
<img class="pic" src="http://192.168.31.136/images/about/10.png" alt="">
<div class="texts">
<h6>This 2019 image depicted a Centers for Disease</h6>
<div class="des">laboratory technician, dressed in personal protective equipment (PPE), in thelaboratory technician, dressed in personal in the</div>
</div>
</li>
<li>
<img class="pic" src="https://31k70639y6.zicp.fun/images/about/11.png" alt="">
<img class="pic" src="http://192.168.31.136/images/about/11.png" alt="">
<div class="texts">
<h6>Browse premium related images on iStock</h6>
<div class="des">which would undergo analysis, here, in this laboratory environment.which would undergo analysis, here, in this laboratory environment.</div>
@ -133,7 +133,7 @@
</div>
<div class="shows">
<div class="left">
<img width="100%" height="558" src="https://31k70639y6.zicp.fun/images/about/5.png" alt="">
<img width="100%" height="558" src="http://192.168.31.136/images/about/5.png" alt="">
<div class="texts">
<div class="meta">
<p class="date">09</p>
@ -147,7 +147,7 @@
</div>
<ul class="card-list">
<li>
<img class="pic" src="https://31k70639y6.zicp.fun/images/about/9.png" alt="">
<img class="pic" src="http://192.168.31.136/images/about/9.png" alt="">
<div class="texts">
<h6>Professional technical Free electron laser device</h6>
<p class="text">
@ -165,7 +165,7 @@
</div>
</li>
<li>
<img class="pic" src="https://31k70639y6.zicp.fun/images/about/9.png" alt="">
<img class="pic" src="http://192.168.31.136/images/about/9.png" alt="">
<div class="texts">
<h6>Professional technical Free electron laser device</h6>
<p class="text">
@ -183,7 +183,7 @@
</div>
</li>
<li>
<img class="pic" src="https://31k70639y6.zicp.fun/images/about/9.png" alt="">
<img class="pic" src="http://192.168.31.136/images/about/9.png" alt="">
<div class="texts">
<h6>Professional technical Free electron laser device</h6>
<p class="text">
@ -201,7 +201,7 @@
</div>
</li>
<li>
<img class="pic" src="https://31k70639y6.zicp.fun/images/about/9.png" alt="">
<img class="pic" src="http://192.168.31.136/images/about/9.png" alt="">
<div class="texts">
<h6>Professional technical Free electron laser device</h6>
<p class="text">

@ -6,7 +6,7 @@
<el-button type="primary" @click="preview">预览</el-button>
<el-button @click="save(0)">保存为草稿</el-button>
<el-button type="primary" @click="save(1)">发布</el-button>
<el-button @click="$router.back()">放弃编辑</el-button>
<el-button @click="back">放弃编辑</el-button>
</div>
</div>

@ -6,7 +6,7 @@
<el-button type="primary" @click="preview">预览</el-button>
<el-button @click="save(0)">保存为草稿</el-button>
<el-button type="primary" @click="save(1)">发布</el-button>
<el-button @click="$router.back()">放弃编辑</el-button>
<el-button @click="back">放弃编辑</el-button>
</div>
</div>

@ -6,7 +6,7 @@
<el-button type="primary" @click="preview">预览</el-button>
<el-button @click="save(0)">保存为草稿</el-button>
<el-button type="primary" @click="save(1)">发布</el-button>
<el-button @click="$router.back()">放弃编辑</el-button>
<el-button @click="back">放弃编辑</el-button>
</div>
</div>

@ -6,7 +6,7 @@ const isDev = process.env.NODE_ENV === 'development' // 开发环境
let host = `${location.origin}/`
if (isDev) {
host = 'http://192.168.31.136:10000/' // 测试服
// host = 'https://31k70639y6.zicp.fun/' // 测试服
// host = 'http://192.168.31.136/' // 测试服
// host = 'http://192.168.31.51:10000/' // 榕
// host = 'http://192.168.31.116:10000/' // 赓
}

Loading…
Cancel
Save