diff --git a/src/api/index.js b/src/api/index.js
index 08ef546..6fecad1 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -47,6 +47,7 @@ export default {
articleEnableOrDisable: `iasf/sysContent/articleEnableOrDisable`,
saveArticle: `iasf/sysContent/save`,
updateArticle: `iasf/sysContent/update`,
+ modifiedSort: `iasf/sysContent/modifiedSort`,
longPageColumnList: `iasf/pageManagement/longPageColumnList`,
searchAllBySite: `iasf/sysNavigationStyle/searchAllBySite`,
updateStyle: `iasf/sysNavigationStyle/update`,
diff --git a/src/components/modules/content.vue b/src/components/modules/content.vue
index 3348652..4be4910 100644
--- a/src/components/modules/content.vue
+++ b/src/components/modules/content.vue
@@ -4,7 +4,7 @@
S³FEL是光明科学城大科学装置集群的重要成员,建设地点位于深圳市光明区北片区,毗邻莲塘水库,占地面积约40万平方米,其中S³FEL装置的主体建筑总长约1800米。
` } @@ -4761,4 +4857,90 @@ export default { } }, ], + deviceIntroLinear: [ + { + type: 'form', + forms: [ + { + type: 'input', + prop: 'title', + label: '标题', + required: true + }, + { + type: 'textarea', + prop: 'des', + label: '描述' + } + ], + form: { + title: 'S³FEL的光阴极注入器/电子枪利用光电效应产生高亮度电子束团,并将其加速到90 MeV。', + des: `主加速器基于超导连续波工作模式,采用三级加速、两级压缩的结构,将电子束团能量提高到2.5 GeV;同时在保持横向发射度不变的情况下,将电子束长度从几皮秒压缩到几十飞秒,峰值流强提升到800 A以上。相比基于常温加速技术的高增益FEL,超导直线加速器技术可以有效提高电子束流的重复频率,实现最高每秒106脉冲输出(常温加速技术为~102脉冲/秒),进而大幅度提高FEL激光的平均功率。` + } + }, + ], + overviewSetup: [ + { + type: 'form', + forms: [ + { + type: 'upload', + prop: 'pic', + label: '图片', + required: true + }, + { + type: 'input', + prop: 'title', + label: '标题', + required: true + }, + { + type: 'link', + prop: 'link', + label: '链接' + }, + { + type: 'textarea', + prop: 'des', + label: '描述' + } + ], + form: { + pic: 'http://10.10.11.7/images/survey/1.png', + title: 'S³FEL概况', + link: { + linkName: '无', + connectionType: 1, + columnId: [], + articleId: '', + linkAddress : '', + site: '', + otherColumnId: [], + otherArticleId: '', + isOpen: 1 + } + } + }, + { + type: 'form', + forms: [ + { + type: 'input', + prop: 'title', + label: '标题', + required: true + }, + { + type: 'textarea', + prop: 'des', + label: '描述' + } + ], + form: { + title: '组织架构', + des: ` 根据《深圳综合粒子设施理事会章程》有关规定,研究院实行理事会领导下的院长负责制,理事长由市长担任,副理事长由分管发改、科创副市长,以及中山大学、南方科技大学校长担任,理事成员包括市政府秘书长、相关副秘书长及政府部门、高等院校、科研机构、龙头企业相关负责同志。` + } + }, + ] } \ No newline at end of file diff --git a/src/mixins/page/index.js b/src/mixins/page/index.js index 3938b1d..605afff 100644 --- a/src/mixins/page/index.js +++ b/src/mixins/page/index.js @@ -24,7 +24,7 @@ export default { // 页面离开的时候如果没有保存则提示 beforeRouteLeave(to, from, next) { // 更改了信息才需要提示 - if (!this.pass && this.originModules !== JSON.stringify(this.modules)) { + if (!this.pass && this.modules.length && this.originModules !== JSON.stringify(this.modules)) { this.$confirm(`所填写内容暂未保存,是否保存?`, '提示', { type: 'warning' }).then(() => { diff --git a/src/pages/article/add/index.vue b/src/pages/article/add/index.vue index 6aea652..454f84c 100644 --- a/src/pages/article/add/index.vue +++ b/src/pages/article/add/index.vue @@ -711,6 +711,8 @@ export default { // 获取栏目 getList() { this.$post(this.api.listWithTree, { + role: 1, + isadmin: false, siteId: this.site.id, columnName: '', templateId: '', @@ -867,6 +869,8 @@ export default { // 获取指定站点的栏目列表 getOtherColumn(val) { this.$post(this.api.listWithTree, { + role: 1, + isadmin: false, siteId: this.form.siteSelection, columnName: '', templateId: '', @@ -1112,10 +1116,19 @@ export default { token: Util.local.get(Setting.tokenKey) }, }).then(({ data }) => { + if (data.code === 401) { + Util.errorMsg(data.msg) + setTimeout(() => { + this.$store.dispatch('user/logout') + }, 1000) + return false + } let url = this.form[this.isBanner ? 'bannerImg' : 'titleImg'] url && this.$del(this.api.delFile, [url.split('/').pop()]).then(res => {}).catch(e => {}) // 删除替换掉的图片 this.form[this.isBanner ? 'bannerImg' : 'titleImg'] = data.url - }).catch(res => {}) + }).catch(res => { + console.log(11, res) + }) this.$refs.cropper.isDisabled = false this.isUpload = false this.cropperModel = false @@ -1184,7 +1197,7 @@ export default { }, // 预览 preview() { - window.open((Setting.isDev ? `http://${location.hostname}:8095` : this.$store.state.content.site.domainName) + `/#/article?articleId=${this.form.id}&siteId=${this.form.siteId}&id=${this.form.columnId}`) + window.open((Setting.isDev ? `http://${location.hostname}:8095` : this.$store.state.content.site.domainName) + `#/article?articleId=${this.form.id}&siteId=${this.form.siteId}&id=${this.form.columnId}`) }, // 返回 back() { diff --git a/src/pages/article/list/index.vue b/src/pages/article/list/index.vue index f235943..fddd070 100644 --- a/src/pages/article/list/index.vue +++ b/src/pages/article/list/index.vue @@ -39,7 +39,20 @@页面设置/装置介绍
+Superconducting linac -1
-Superconducting linac -1
+页面设置/RESEARCH
+页面设置/SFEL