From dc4d87a990942d0ce714c7f6005217608c31a7fa Mon Sep 17 00:00:00 2001 From: xulu Date: Fri, 18 Mar 2022 18:12:11 +0800 Subject: [PATCH] 1 --- src/assets/css/main.css | 10 +- src/assets/css/theme-green/index.css | 2 +- src/components/common/Sidebar.vue | 1 + src/components/page/articleDetailEditor_b.vue | 2 +- src/components/page/articleDetailEditor_e.vue | 2 +- src/components/page/articleDetailEditor_f.vue | 2 +- src/components/page/articleDetailEditor_g.vue | 2 +- src/components/page/articleList.vue | 250 +++++++++--- src/components/page/articleProcess.vue | 307 ++++++++++---- .../page/articleProcessRevision.vue | 275 ++++++++----- src/components/page/articleProcessSwitch.vue | 384 ++++++++++++++++++ src/router/index.js | 8 + 12 files changed, 995 insertions(+), 250 deletions(-) create mode 100644 src/components/page/articleProcessSwitch.vue diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 4240aad..16dd21f 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -277,7 +277,9 @@ a { } - +.el-submenu__title i { + color: #fff !important; +} /* 编辑分步骤稿件流程 */ @font-face { font-family: 'Helvetica Neue For Number'; @@ -341,7 +343,7 @@ a { .art_revlist>h3, .art_reviewer>h3, .art_state_btn>h3 { - font-size: 16px; + font-size: 18px; margin: 5px 0 30px 0; letter-spacing: -0.8px; } @@ -543,7 +545,9 @@ a { right: -65px; } -.art_file {} +.art_file { + +} diff --git a/src/assets/css/theme-green/index.css b/src/assets/css/theme-green/index.css index 752bfa3..7e83967 100644 --- a/src/assets/css/theme-green/index.css +++ b/src/assets/css/theme-green/index.css @@ -2174,7 +2174,7 @@ } .el-submenu__title i { - color: #909399 + color: #fff !important; } .el-submenu__title:focus, diff --git a/src/components/common/Sidebar.vue b/src/components/common/Sidebar.vue index 6682b89..4ba3e55 100644 --- a/src/components/common/Sidebar.vue +++ b/src/components/common/Sidebar.vue @@ -392,6 +392,7 @@ .el-submenu__title i { color: #fff !important; + top: 54%; } .el-menu-item i { diff --git a/src/components/page/articleDetailEditor_b.vue b/src/components/page/articleDetailEditor_b.vue index 8b623bf..9a22486 100644 --- a/src/components/page/articleDetailEditor_b.vue +++ b/src/components/page/articleDetailEditor_b.vue @@ -165,7 +165,7 @@ Feedback

-

+

No reviewer

diff --git a/src/components/page/articleDetailEditor_e.vue b/src/components/page/articleDetailEditor_e.vue index 1073056..28623bd 100644 --- a/src/components/page/articleDetailEditor_e.vue +++ b/src/components/page/articleDetailEditor_e.vue @@ -106,7 +106,7 @@ Feedback

-

+

No reviewer

diff --git a/src/components/page/articleDetailEditor_f.vue b/src/components/page/articleDetailEditor_f.vue index 47b84da..76c0a6e 100644 --- a/src/components/page/articleDetailEditor_f.vue +++ b/src/components/page/articleDetailEditor_f.vue @@ -159,7 +159,7 @@ Feedback

-

+

No reviewer

diff --git a/src/components/page/articleDetailEditor_g.vue b/src/components/page/articleDetailEditor_g.vue index 3f112b0..330b7bf 100644 --- a/src/components/page/articleDetailEditor_g.vue +++ b/src/components/page/articleDetailEditor_g.vue @@ -56,7 +56,7 @@ Feedback

-

+

No reviewer

diff --git a/src/components/page/articleList.vue b/src/components/page/articleList.vue index bcf7ef0..e16a2c6 100644 --- a/src/components/page/articleList.vue +++ b/src/components/page/articleList.vue @@ -48,13 +48,16 @@ -->
-

+

{{item.title}}

+

ID : {{item.accept_sn}} + Type : + {{item.type | ellipsis}}

-

{{item.title}}

- {{item.type | ellipsis}} + + Journal : {{item.journalname}}

@@ -70,20 +73,24 @@

- - My Manuscript + + Reviewers coment + + | + + My Manuscript +
- Latest Progress : + Current progress : {{item.state,'tst' | stateChange}} : click to - Major revision + Major revision
@@ -177,6 +184,7 @@ Uploader : {{item.username}} {{formatDate(item.ctime)}} +


@@ -188,6 +196,7 @@ Uploader : {{item.username}} {{formatDate(item.ctime)}} +


@@ -199,6 +208,7 @@ Uploader : {{item.username}} {{formatDate(item.ctime)}} +


@@ -210,13 +220,54 @@ Uploader : {{item.username}} {{formatDate(item.ctime)}} +


- - OK - + + + + + + + +
+

+ Does the title represent manuscript's contents? + {{item.qu9_contents}} +

+

+ Is the Abstract accurate and concise? + {{item.qu10_contents}} +

+

+ Are the approach/ methods properly described? + {{item.qu11_contents}} +

+

+ Are the conclusions and interpretations sound? + {{item.qu12_contents}} +

+

+ Are the references properly cited? + {{item.qu13_contents}} +

+

+ Comments for the Authors + {{item.comments}} +

+
+
+
+

No coment

@@ -248,9 +299,12 @@ picturesAndTablesFileList: [], totalpageFileList: [], manuscirptFileList: [], + comentDeploy: [], + activeComment: [1], authorList_name: '', editVisible: false, artextVisible: false, + comentVisible: false, Total: 0 }; }, @@ -327,6 +381,28 @@ } }); }, + // 点击稿件审稿意见 + esy_review(e) { + // 审稿人意见 + this.$api + .post('api/Article/getArticleDetail', { + articleId: e, + human: 'author' + }) + .then(res => { + // 弹出框 + this.comentDeploy = res.suggest + this.activeComment = [] + for (var i = 0; i < res.suggest.length; i++) { + this.activeComment.push(i) + } + this.comentVisible = true + }) + .catch(err => { + console.log(err); + }); + + }, // 点击稿件内容文件 esy_deta(e) { this.$api @@ -394,6 +470,13 @@ var s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds(); return Y + M + D + ' ' + h + ':' + m + ':' + s; }, + formatDate1(timestamp) { + var date = new Date(timestamp * 1000); //时间戳为10位需*1000,时间戳为13位的话不需乘1000 + var Y = date.getFullYear() + '-'; + var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'; + var D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate(); + return Y + M + D; + }, }, filters: { // 文章类型 @@ -401,61 +484,61 @@ let frag = ''; switch (value) { case "A": - frag = 'ARTICLE'; + frag = 'Article'; break; case 'B': - frag = 'REVIEW'; + frag = 'Review'; break; case 'C': - frag = 'CASE REPORT'; + frag = 'Case report'; break; case 'P': - frag = 'RESEARCH PROPOSAL'; + frag = 'Research proposal'; break; case 'N': - frag = 'NEWS'; + frag = 'News'; break; case 'T': - frag = 'COMMENT'; + frag = 'Comment'; break; case 'CT': - frag = 'CORRECTION'; + frag = 'Correction'; break; case 'HT': - frag = 'HYPOTHESIS'; + frag = 'Hypothesis'; break; case 'PF': - frag = 'PREFACE'; + frag = 'Preface'; break; case 'ET': - frag = 'EDITORIAL'; + frag = 'Editorial'; break; case 'RP': - frag = 'REPORT'; + frag = 'Report'; break; case 'EF': - frag = 'EMPIRICAL FORMULA'; + frag = 'Empirical formula'; break; case 'EM': - frag = 'EVIDENCE-BASED MEDICINE'; + frag = 'Evidence-based medicine'; break; case 'EC': - frag = 'EXPERT CONSENSUS'; + frag = 'Expert consensus'; break; case 'LTE': - frag = 'LETTER TO EDITOR'; + frag = 'Letter to editor'; break; case 'QI': - frag = 'QUESTIONNAIRE INVESTIGATION'; + frag = 'Questionnaire investigation'; break; case 'PT': - frag = 'PROTOCOL'; + frag = 'Protocol'; break; case 'CS': - frag = 'CASE SERIES'; + frag = 'Case Series'; break; default: - frag = 'OTHERS'; + frag = 'Others'; } return frag; }, @@ -470,71 +553,71 @@ switch (value) { case 0: str = '#e1b0271F;'; - sfr = '#e1b0270A;'; + sfr = '#e1b02705;'; sgr = '#e1b0274D;'; skr = '#e1b027;'; slr = 'Received'; break; case 1: str = '#5a90e11F;'; - sfr = '#5a90e10A;'; + sfr = '#5a90e105;'; sgr = '#5a90e14D;'; skr = '#5a90e1;'; slr = 'With editor'; break; case 2: str = '#5a90e11F;'; - sfr = '#5a90e10A;'; + sfr = '#5a90e105;'; sgr = '#5a90e14D;'; skr = '#5a90e1;'; slr = 'Under review'; break; case 3: str = '#8888881F;'; - sfr = '#8888880A;'; + sfr = '#88888805;'; sgr = '#8888884D;'; skr = '#888888;'; slr = 'Reject'; break; case 4: str = '#5a90e11F;'; - sfr = '#5a90e10A;'; + sfr = '#5a90e105;'; sgr = '#5a90e14D;'; skr = '#5a90e1;'; slr = 'Revision'; break; case 5: str = '#5fab3b1F;'; - sfr = '#5fab3b0A;'; + sfr = '#5fab3b05;'; sgr = '#5fab3b4D;'; skr = '#5fab3b;'; slr = 'Accepted'; break; case 6: str = '#5a90e11F;'; - sfr = '#5a90e10A;'; + sfr = '#5a90e105;'; sgr = '#5a90e14D;'; skr = '#5a90e1;'; slr = 'Fininal decision'; break; default: str = '#8888881F;'; - sfr = '#8888880A;'; + sfr = '#88888805;'; sgr = '#8888884D;'; skr = '#888888;'; slr = 'error!!'; } if (num == '1') { - return 'border-color:'+sgr; + return 'border-color:' + sgr; } if (num == '2') { - return 'background-color:'+sfr; + return 'background-color:' + sfr; } if (num == '3') { - return 'background-color:'+str; + return 'background-color:' + str + ';border-color:' + sgr; } if (num == '4') { - return 'color:'+skr; + return 'color:' + skr; } if (num == 'tst') { return slr; @@ -612,7 +695,7 @@ } .mangu_list .man_title { - margin: 10px 0 18px 0; + margin: 0 80px 10px 0; font-weight: bolder; letter-spacing: -0.5px; font-size: 16px; @@ -625,22 +708,14 @@ } .mangu_list .man_con { - margin: 0 0 12px 0; - } - - .mangu_list .man_con>span { - border-radius: 5px; - font-size: 12px; - margin: 0 25px 0 0; - color: #006699; - background-color: #e0edf3; - padding: 2px 8px; + margin: 0 0 10px 0; } .mangu_list .man_state { position: absolute; - right: 0; - top: 0; + right: -1px; + top: -1px; + border: 1px solid #fff; color: #fff; text-align: center; padding: 6px 18px; @@ -659,14 +734,29 @@ margin: 0 5px 0 0; } - .mangu_list .man_btn { + + .mangu_list .man_progess>a>b { + margin-left: 5px; + color: #5a90e1; + text-decoration: underline; + } + + .mangu_list .man_progess>a>b:hover { color: #006699; + } + + .mangu_list .man_btn { + /* color: #006699; */ position: absolute; bottom: 25px; right: 25px; font-size: 15px; } + .mangu_list .man_btn>span { + /* text-decoration: underline; */ + } + .mangu_list .man_btn>span:hover { text-decoration: underline; cursor: pointer; @@ -685,4 +775,52 @@ .art_state_message { margin: 0 20px 0 0; } + + .art_process_ { + border: 0; + padding: 0; + } + + .art_process_ .art_process_list:first-child { + padding-top: 0; + } + + .art_author_list { + margin: 0 0 0 5px; + } + + .art_author_list .com_shu { + background-color: #006699; + color: #fff; + display: inline-block; + width: 18px; + height: 18px; + line-height: 18px; + text-align: center; + margin: 0 10px 0 0; + } + + .el-collapse { + border-bottom: 0; + } + + + .art_author_coment {} + + .art_author_coment>p { + margin: 10px 0 0 28px; + line-height: 20px; + } + + .art_author_coment>p:first-child { + margin-top: 0; + } + + .art_author_coment>p>font { + display: block; + margin: 0 0 2px 0; + color: #888; + font-weight: bold; + letter-spacing: -0.5px; + } diff --git a/src/components/page/articleProcess.vue b/src/components/page/articleProcess.vue index e166237..b157218 100644 --- a/src/components/page/articleProcess.vue +++ b/src/components/page/articleProcess.vue @@ -11,70 +11,122 @@ -
-

- {{ellType(artMes.type)}} +

+

ID : {{artMes.accept_sn}}

+

+ {{artMes.title}}

-

Follow the progress of your submission.

+
This submission is {{statetostr(artMes.laststate)}} - at {{artMes.journalname}}. + at {{artMes.journalname}}.
+ + +
-

- - - -

Manuscript process

-
+ +

Manuscript process

+ +
+ + + +

+ {{ statetostr(item.state_to) }} + + + : First submitted to {{artMes.journalname}} + + + + : Submission checks complete + + + + : Editor assigned + + + + : + + Major revision + + + Major revision (Completed) + + + + + : Successfully received manuscript + +

+
+
+
+
+
+ + + + + +
+

+ Communication +

+
+
+

+ Editor : +

+ +

{{ item.ad_content }}

+
+ {{formatDate(item.ad_ctime)}} +
+
+

+ Author : +

+ +

{{ item.ad_content }}

+
+ {{formatDate(item.ad_ctime)}} +
+
+ +
+

+ +
+ Dear Author, through this window, you can have informal + Send +
+
-
- - - -

- {{ statetostr(item.state_to) }} - - - : First submitted to {{artMes.journalname}} - - - - : Submission checks complete - - - - : Editor assigned - - - - : - - Major revision - - - Major revision (Completed) - - - - - : Successfully received manuscript - -

-
-
-
-
@@ -101,7 +153,7 @@ articleId: this.$route.query.id, userName: localStorage.getItem('U_name'), loading: false, - reverse: true, + reverse: false, artMes: { articleId: this.$route.query.id }, @@ -110,7 +162,15 @@ article_id: this.$route.query.id, ad_content: '' }, + query_review: { + articleId: this.$route.query.id, + pageIndex: 1, + pageSize: 10 + }, prossMsgs: [], + talkMsgs: [], + review_Data: [], + editVisible: false, saveloading: false }; @@ -123,7 +183,6 @@ }, methods: { - //初始化文章信息 initarticle() { this.$api @@ -142,7 +201,7 @@ ftype: 0, }); for (let i = res.msg.length - 1; i >= 0; i--) { - if (res.msg[i].state_to == 4 && back_num == 0) { + if (res.msg[i].state_to == 4 && res.msg[i + 1] == undefined && back_num == 0) { res.msg[i].back = 1; back_num = 1 } else { @@ -176,12 +235,35 @@ this.artMes = res.article; this.artMes.laststate = res.msg[res.msg.length - 1].state_to; this.prossMsgs = res.msg; - console.log(this.prossMsgs) + }) + .catch((err) => { + console.log(err); + }); + + // 留言板列表 + this.$api + .post('api/Article/getArticleDialogs', { + article_id: this.$route.query.id + }) + .then((res) => { + this.talkMsgs = res.data.dialogs; + }) + .catch((err) => { + console.log(err); + }); + + // 获取编辑列表数据 + this.$api + .post('api/Article/getReviewerList', this.query_review) + .then((res) => { + this.review_Data = res.data; }) .catch((err) => { console.log(err); }); }, + + formatDate(timestamp) { var date = new Date(timestamp * 1000); //时间戳为10位需*1000,时间戳为13位的话不需乘1000 var Y = date.getFullYear() + '-'; @@ -197,19 +279,21 @@ authormsg() { this.editVisible = true; }, + // 保存留言 saveMsg() { - if (this.msgform.content == '') { + if (this.msgform.ad_content == '') { this.$message.error('Please input messages'); return false; } - this.saveloading = true; - this.$api.post('api/Article/authorMessage', this.msgform) + this.loading = true; + this.$api.post('api/Article/pushArticleDialog', this.msgform) .then((res) => { - this.saveloading = false; + this.loading = false; this.$message.success('Sent successfully'); - this.$router.go(0); + this.initarticle() }); }, + statetostr(mystate) { let str = ''; switch (mystate) { @@ -247,61 +331,61 @@ let frag = ''; switch (e) { case "A": - frag = 'ARTICLE'; + frag = 'Article'; break; case 'B': - frag = 'REVIEW'; + frag = 'Review'; break; case 'C': - frag = 'CASE REPORT'; + frag = 'Case report'; break; case 'P': - frag = 'RESEARCH PROPOSAL'; + frag = 'Research proposal'; break; case 'N': - frag = 'NEWS'; + frag = 'News'; break; case 'T': - frag = 'COMMENT'; + frag = 'Comment'; break; case 'CT': - frag = 'CORRECTION'; + frag = 'Correction'; break; case 'HT': - frag = 'HYPOTHESIS'; + frag = 'Hypothesis'; break; case 'PF': - frag = 'PREFACE'; + frag = 'Preface'; break; case 'ET': - frag = 'EDITORIAL'; + frag = 'Editorial'; break; case 'RP': - frag = 'REPORT'; + frag = 'Report'; break; case 'EF': - frag = 'EMPIRICAL FORMULA'; + frag = 'Empirical formula'; break; case 'EM': - frag = 'EVIDENCE-BASED MEDICINE'; + frag = 'Evidence-based medicine'; break; case 'EC': - frag = 'EXPERT CONSENSUS'; + frag = 'Expert consensus'; break; case 'LTE': - frag = 'LETTER TO EDITOR'; + frag = 'Letter to editor'; break; case 'QI': - frag = 'QUESTIONNAIRE INVESTIGATION'; + frag = 'Questionnaire investigation'; break; case 'PT': - frag = 'PROTOCOL'; + frag = 'Protocol'; break; case 'CS': - frag = 'CASE SERIES'; + frag = 'Case Series'; break; default: - frag = 'OTHERS'; + frag = 'Others'; } return frag; }, @@ -321,12 +405,15 @@ } .process_new { - color: #333; + border: 1px solid #dcdfe6; + padding: 20px; + background-color: #fff; + border-radius: 5px; } .art_type { - color: #fff; - background-color: #006699; + /* background-color: #ddeef7; */ + color: #006699; padding: 2px 5px; border-radius: 5px; font-size: 12px; @@ -338,8 +425,9 @@ border: 1px solid #EBEEF5; padding: 20px; font-size: 15px; - margin: 30px 0; - background-color: #fcfcfc; + margin: 20px 0 30px 0; + background-color: #fff; + /* background-color: #fcfcfc; */ } .tit_head b:nth-child(1) { @@ -356,6 +444,10 @@ margin: 40px 0 0 10px; } + .author_tree .el-timeline-item { + padding-bottom: 1px; + } + .author_tree .el-timeline-item__node--large { left: 155px; width: 30px; @@ -385,4 +477,49 @@ /* border-left: 2px solid #66a3c2; */ left: 168px; } + + .art_process_ { + margin-bottom: 30px; + border: 1px solid #dcdfe6; + padding: 20px; + background-color: #fff; + border-radius: 5px; + } + + .art_process_>h2 { + font-size: 18px; + margin: 0 0 2px 0; + letter-spacing: -0.8px; + } + + .art_process_list { + border-bottom: 1px solid #dcdfe6; + padding: 15px 0 25px 10px; + } + + .art_process_ .art_process_list:last-child { + border-bottom: 0; + padding-bottom: 5px; + } + + .art_process_list b { + background-color: #006699; + color: #fff; + display: inline-block; + width: 18px; + height: 18px; + line-height: 18px; + text-align: center; + margin: 0 10px 0 0; + + } + + .art_process_list span { + color: #888; + margin: 0 0 0 15px; + } + + .art_process_list p { + margin: 10px 0 0 28px; + } diff --git a/src/components/page/articleProcessRevision.vue b/src/components/page/articleProcessRevision.vue index 705965b..b46003f 100644 --- a/src/components/page/articleProcessRevision.vue +++ b/src/components/page/articleProcessRevision.vue @@ -21,33 +21,66 @@ Manuscript Detail

-

Coment from reviewers

-
- 1reviewers 202-50-60 -

reviewersreviewersreviewersreviewersreviewers

-
-
- 1reviewers 202-50-60 -

reviewersreviewersreviewersreviewersreviewers

-
+ + + +
+

+ Does the title represent manuscript's contents? + {{item.qu9_contents}} +

+

+ Is the Abstract accurate and concise? + {{item.qu10_contents}} +

+

+ Are the approach/ methods properly described? + {{item.qu11_contents}} +

+

+ Are the conclusions and interpretations sound? + {{item.qu12_contents}} +

+

+ Are the references properly cited? + {{item.qu13_contents}} +

+

+ Comments for the Authors + {{item.comments}} +

+
+
+
+

No coment

-

+

Coment from editor

- -
@@ -101,7 +134,7 @@


- Submit + Submit
@@ -112,25 +145,20 @@
-

- Editor : -

+

Editor :

{{ item.ad_content }}

{{formatDate(item.ad_ctime)}}
-

- Author : -

+

Author :

{{ item.ad_content }}

{{formatDate(item.ad_ctime)}}
-

@@ -142,7 +170,6 @@
-
@@ -286,6 +313,7 @@ userName: localStorage.getItem('U_name'), loading: false, Detailvisible: false, + activeComment: [0], activeNames: ['2'], authorList_name: '', artMes: { @@ -296,7 +324,9 @@ article_id: this.$route.query.id, ad_content: '' }, + comentDeploy: [], talkMsgs: [], + fileEditor: [], coverLetterFileList: [], picturesAndTablesFileList: [], totalpageFileList: [], @@ -363,12 +393,14 @@ } } this.authorList_name = "Author : " + alist_name.join(""); + + // 审稿人意见 + this.comentDeploy = res.suggest }) .catch((err) => { console.log(err); }); - //初始化filelist this.$api .post('api/Article/getFilelistByArticleID', { @@ -384,6 +416,17 @@ console.log(err); }); + // 编辑上传的文件 + this.$api + .post('api/Article/getArticleProposals', { + article_id: this.articleId + }) + .then(res => { + this.fileEditor = res.data.proposals; + }) + .catch(err => { + console.log(err); + }); // 留言板列表 this.$api @@ -414,6 +457,13 @@ var s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds(); return Y + M + D + ' ' + h + ':' + m + ':' + s; }, + formatDate1(timestamp) { + var date = new Date(timestamp * 1000); //时间戳为10位需*1000,时间戳为13位的话不需乘1000 + var Y = date.getFullYear() + '-'; + var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'; + var D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate(); + return Y + M + D; + }, // 保存留言 @@ -433,44 +483,39 @@ // 上传文件 onSubmit() { - this.$refs.articleform.validate((valid) => { - //验证文件 - // if (this.form.manuscirpt == '') { - // this.$message.error('Manuscirpt is required'); - // console.log('file up error'); - // return false; - // } - // //验证文章作者 - // var alist = this.form.authorList; - // for (var i in alist) { - // if (alist[i].author != '' && alist[i].isReport && alist[i].email == '') { - // this.$message.error("The corresponding author's email is required"); - // return false; - // } - // } - if (valid) { - this.loading = true; - this.$api - .post('api/Article/editArticle', this.form) - .then((res) => { - this.loading = false; - if (res.code == 0) { - this.$message.success('success'); - this.initarticle(); - } else { - this.$message.error('Failed to submit, please contact administrator!'); - console.log(res.msg); - } - }) - .catch((err) => { - console.log(err); - }); - } else { - this.$message.error('Failed to submit. Please ensure the integrity of the information'); - console.log('error submit!!'); + //验证文件 + if (this.msgform.totalpage == undefined || this.msgform.manuscirpt == undefined) { + this.$message.error( + 'Failed to submit. Please upload manuscirpt and title page,ensure the integrity of the information'); + return false; + } + + // //验证文章作者 + var alist = this.artMes.authorList; + for (var i in alist) { + if (alist[i].author != '' && alist[i].isReport && alist[i].email == '') { + this.$message.error("The corresponding author's email is required"); return false; } - }); + } + + this.loading = true; + this.$api + .post('api/Article/editArticle', this.msgform) + .then((res) => { + this.loading = false; + if (res.code == 0) { + this.$message.success('success'); + this.loading = false; + this.initarticle(); + } else { + this.$message.error('Failed to submit, please contact administrator!'); + console.log(res.msg); + } + }) + .catch((err) => { + console.log(err); + }); }, @@ -533,8 +578,6 @@ this.msgform.manuscirpt = ''; }, - - statetostr(mystate) { let str = ''; switch (mystate) { @@ -572,61 +615,61 @@ let frag = ''; switch (e) { case "A": - frag = 'ARTICLE'; + frag = 'Article'; break; case 'B': - frag = 'REVIEW'; + frag = 'Review'; break; case 'C': - frag = 'CASE REPORT'; + frag = 'Case report'; break; case 'P': - frag = 'RESEARCH PROPOSAL'; + frag = 'Research proposal'; break; case 'N': - frag = 'NEWS'; + frag = 'News'; break; case 'T': - frag = 'COMMENT'; + frag = 'Comment'; break; case 'CT': - frag = 'CORRECTION'; + frag = 'Correction'; break; case 'HT': - frag = 'HYPOTHESIS'; + frag = 'Hypothesis'; break; case 'PF': - frag = 'PREFACE'; + frag = 'Preface'; break; case 'ET': - frag = 'EDITORIAL'; + frag = 'Editorial'; break; case 'RP': - frag = 'REPORT'; + frag = 'Report'; break; case 'EF': - frag = 'EMPIRICAL FORMULA'; + frag = 'Empirical formula'; break; case 'EM': - frag = 'EVIDENCE-BASED MEDICINE'; + frag = 'Evidence-based medicine'; break; case 'EC': - frag = 'EXPERT CONSENSUS'; + frag = 'Expert consensus'; break; case 'LTE': - frag = 'LETTER TO EDITOR'; + frag = 'Letter to editor'; break; case 'QI': - frag = 'QUESTIONNAIRE INVESTIGATION'; + frag = 'Questionnaire investigation'; break; case 'PT': - frag = 'PROTOCOL'; + frag = 'Protocol'; break; case 'CS': - frag = 'CASE SERIES'; + frag = 'Case Series'; break; default: - frag = 'OTHERS'; + frag = 'Others'; } return frag; }, @@ -657,6 +700,7 @@ font-size: 16px; display: block; margin: 5px 0 0 0; + letter-spacing: -0.5px; } .art_suthor_message .det_cssep { @@ -668,6 +712,7 @@ border-radius: 5px; cursor: pointer; font-style: normal; + letter-spacing: 0; } .art_suthor_message .det_cssep:hover { @@ -689,11 +734,10 @@ } .art_author_list { - border-bottom: 1px solid #dcdfe6; - padding: 15px 0 25px 10px; + margin: 0 0 0 5px; } - .art_author_list b { + .art_author_list .com_shu { background-color: #006699; color: #fff; display: inline-block; @@ -702,35 +746,40 @@ line-height: 18px; text-align: center; margin: 0 10px 0 0; - - } - - .art_author_list span { - color: #888; - margin: 0 0 0 15px; - } - - .art_author_list p { - margin: 10px 0 0 28px; } .art_author_peng { - margin: 20px 0 10px 10px; + margin: 10px 0 0px 10px; line-height: 24px; + } + .art_author_peng>a { + color: #333; + } - .art_author_peng>img { + .art_author_peng>a:hover { + text-decoration: underline; + } + + .art_author_peng>a>img { width: 15px; vertical-align: text-bottom; - margin: 0 10px 0 0; + margin: 0 15px 0 0; } - .art_author_peng span { + .art_author_peng>a>span { color: #888; - margin: 0 0 0 15px; + margin: 0 0 0 30px; } + .art_author_peng>a>i { + font-weight: bold; + color: #75abf1; + margin: 0 0 0 18px; + } + + .art_author_btn>div { margin-bottom: 30px; color: #006699; @@ -738,8 +787,9 @@ .art_author_btn>h4 { float: left; - width: 110px; + width: 105px; padding: 8px 0 0 0; + letter-spacing: -0.5px; } .art_author_btn>p { @@ -750,4 +800,27 @@ .el-upload__tip { margin-left: 6px; } + + .el-collapse { + border-bottom: 0; + } + + .art_author_coment {} + + .art_author_coment>p { + margin: 10px 0 0 28px; + line-height: 20px; + } + + .art_author_coment>p:first-child { + margin-top: 0; + } + + .art_author_coment>p>font { + display: block; + margin: 0 0 2px 0; + color: #888; + font-weight: bold; + letter-spacing: -0.5px; + } diff --git a/src/components/page/articleProcessSwitch.vue b/src/components/page/articleProcessSwitch.vue new file mode 100644 index 0000000..1a33cbc --- /dev/null +++ b/src/components/page/articleProcessSwitch.vue @@ -0,0 +1,384 @@ + + + + + + diff --git a/src/router/index.js b/src/router/index.js index 132a9bb..33fc86e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -125,6 +125,14 @@ export default new Router({ }, hidden: true }, + { + path: '/articleProcessSwitch', + component: () => import('../components/page/articleProcessSwitch.vue'), + meta: { + title: 'Manuscript process switch', + }, + hidden: true + }, { path: '/articleProcessRevision', component: () => import('../components/page/articleProcessRevision.vue'),