diff --git a/package.json b/package.json index c661e84..2e6ca63 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "dependencies": { "axios": "^0.18.0", "babel-polyfill": "^6.26.0", + "echarts": "^5.2.0", "element-ui": "^2.11.0", "mavon-editor": "^2.6.17", "vue": "^2.6.10", diff --git a/src/components/common/Header.vue b/src/components/common/Header.vue index 7772f9b..bb8cb5e 100644 --- a/src/components/common/Header.vue +++ b/src/components/common/Header.vue @@ -36,7 +36,7 @@ - View as : + diff --git a/src/components/common/Lead.vue b/src/components/common/Lead.vue index 5172e66..c2e6a21 100644 --- a/src/components/common/Lead.vue +++ b/src/components/common/Lead.vue @@ -13,8 +13,8 @@ Editorial board Reviewer Youth editorial board --> - Editor-in-Chief : - Editorial board member : + Editor-in-Chief : + Editorial board member : Reviewer : Young scientist member : {{user_name}} @@ -24,8 +24,8 @@ View as : - Editor-in-Chief - Editorial board member + Editor-in-Chief + Editorial board member Reviewer Young scientist member diff --git a/src/components/common/Sidebar.vue b/src/components/common/Sidebar.vue index 646a3ab..a2659db 100644 --- a/src/components/common/Sidebar.vue +++ b/src/components/common/Sidebar.vue @@ -25,6 +25,55 @@ + + + + + + + + @@ -213,16 +262,16 @@ title: this.$t('sidebar.author2') } ] - }, - { - icon: 'el-icon-user', - index: '2', - title: this.$t('sidebar.reviewerArticle'), - subs: [{ - index: 'reviewerArticleList', - title: this.$t('sidebar.reviewerArticle1') - }] } + // ,{ + // icon: 'el-icon-user', + // index: '2', + // title: this.$t('sidebar.reviewerArticle'), + // subs: [{ + // index: 'reviewerArticleList', + // title: this.$t('sidebar.reviewerArticle1') + // }] + // } ] }; diff --git a/src/components/common/common.vue b/src/components/common/common.vue index c4b2ba2..9ee107f 100644 --- a/src/components/common/common.vue +++ b/src/components/common/common.vue @@ -1,8 +1,8 @@ + + diff --git a/src/components/page/man_aging.vue b/src/components/page/man_aging.vue index b25a5de..79582d2 100644 --- a/src/components/page/man_aging.vue +++ b/src/components/page/man_aging.vue @@ -15,6 +15,16 @@ {{this.head_line}} + + + + + + Statistical Analysis + @@ -22,10 +32,10 @@
- {{qikna}}为预警期刊,责令限期整改
- 时间: {{daojishi}}
- 倒计时: {{day}}天 {{hour}}:{{min}}:{{second}}
- 整改事项:
+ {{qikna}}为预警期刊,责令限期整改
+ 时间: {{daojishi}}
+ 倒计时: {{day}}天 {{hour}}:{{min}}:{{second}}
+ 整改事项:

{{shixiang}}

@@ -75,7 +85,7 @@
{{item.author}}

{{head_line}}.
- Submitted time: {{item.ctime}}{{item.accept_sn}}

+ Submitted time: {{item.ctime}}{{item.accept_sn}}

No historical articles

@@ -91,8 +101,8 @@ --> @@ -172,9 +182,9 @@ this.head_line = this.cate_jour[0].title; this.query.journal_id = this.cate_jour[0].journal_id; this.TaBle2.journal_id = this.cate_jour[0].journal_id; - + this.getData(); - + } else { this.$message.error(res.msg); } @@ -196,22 +206,23 @@ res.data.articles[i].ctime = Y + M + D; } this.tableData1 = res.data.articles; - - if(this.query.journal_id==18){ + + if (this.query.journal_id == 18) { this.qikna = 'TMR Theory and Hypothesis' this.daojishi = '2021.9.3 - 2021.9.30' this.curStartTime = '2021-10-01 00:00:00' - this.shixiang = '1. 底栏政策需要完善,标准,细节要求同TMR。
2. 补充编委会栏目,编委人数大于20人。
3. 将每篇文章已出版文章配合适摘要图。
4. 选择合适得期刊主题色。
5. 12.20上线前10天,文章online文章需要大于5篇。
6. 2022年第一期不再实行页码编码,改为文章编码。

' + this.shixiang = + '1. 底栏政策需要完善,标准,细节要求同TMR。
2. 补充编委会栏目,编委人数大于20人。
3. 将每篇文章已出版文章配合适摘要图。
4. 选择合适得期刊主题色。
5. 12.20上线前10天,文章online文章需要大于5篇。
6. 2022年第一期不再实行页码编码,改为文章编码。

' this.countTime(); } - if(this.query.journal_id==16){ + if (this.query.journal_id == 16) { this.qikna = 'TMR Modern Herbal Medicine' this.daojishi = '2021.9.6 - 2021.12.31' this.curStartTime = '2022-01-01 00:00:00' this.shixiang = '1. 编委国际化水平应达到50%

' this.countTime(); } - + } else { this.$message.error(res.msg); } @@ -259,7 +270,7 @@ this.TaBle2.journal_id = command.journal_id; this.getData(); }, - + // 倒计时 countTime() { // 获取当前时间 diff --git a/src/components/page/man_report.vue b/src/components/page/man_report.vue new file mode 100644 index 0000000..eb77656 --- /dev/null +++ b/src/components/page/man_report.vue @@ -0,0 +1,778 @@ + + + + + diff --git a/src/components/page/man_text.vue b/src/components/page/man_text.vue index 732461c..f49426b 100644 --- a/src/components/page/man_text.vue +++ b/src/components/page/man_text.vue @@ -50,17 +50,13 @@

I want to invite the following editorial board members to get more opinions for the manuscript.

-
    + + Add +
    • - {{item.account}} ( {{item.realname}} , {{item.email}} ) + {{item.account}} ({{item.realname}} , {{item.email}})
    - - - - Choose
@@ -100,6 +96,29 @@

No comment

+ + + + + + + + + + + + + + + + + + @@ -137,11 +156,18 @@ }, head_line: '', Art_id: this.$route.query.Art_id, - tableData1: [], + tableData: [], fileList: [], faceList: [], + addVisible: false, + qEdit: { + journal_id: localStorage.getItem('journal_id'), + pageIndex: 1, + pageSize: 10 + }, + Total: 0, Editard_list: [], - Edit_Chi: [], + // Edit_Chi: [], rules: {} } }, @@ -176,24 +202,11 @@ // 获取文章编委池子 this.$api - .post('api/Chief/getAllArticleBoards', { - 'journal_id': localStorage.getItem('journal_id') - }) + .post('api/Chief/getAllArticleBoards', this.qEdit) .then(res => { if (res.code == 0) { - this.Edit_Chi = res.data.boards; - for (let i = 0; i < this.Edit_Chi.length; i++) { - for (let r = 0; r < this.Editard_list.length; r++) { - if (this.Edit_Chi[i].user_id == this.Editard_list[r].user_id) { - this.Edit_Chi.splice(i, 1); - if (i == 0) { - i = 0 - } else { - i = i - 1 - } - } - } - } + this.tableData = res.data.boards; + this.Total = res.data.count || 0; } else { this.$message.error(res.msg); } @@ -252,27 +265,38 @@ }, - // 保存添加编委 + // 添加编委-弹出框 add_Editer() { - if (this.select_edit.board_id == '') { - this.$message.error('Please select the editorial board!'); - } else { - this.$api - .post('api/Chief/addArticleBoard', this.select_edit) - .then(res => { - if (res.code == 0) { - this.$message.success('Editorial board of newly added articles succeeded!'); - this.getdate(); - } else { - this.$message.error(res.msg); - } - }) - .catch(err => { - this.$message.error(err); - }); - } + this.addVisible = true; }, + + // 保存添加编委 + handleChoose(index, row) { + this.select_edit.board_id = row.user_id; + this.$api + .post('api/Chief/addArticleBoard', this.select_edit) + .then(res => { + if (res.code == 0) { + this.$message.success('Editorial board of newly added articles succeeded!'); + this.addVisible = false; + this.getdate(); + } else { + this.$message.error(res.msg); + } + }) + .catch(err => { + this.$message.error(err); + }); + }, + + // 分页导航 + handlePageChange(val) { + this.$set(this.qEdit, 'pageIndex', val); + this.getData(); + }, + + // 删除编委 handleDelete(item) { // 二次确认删除 diff --git a/src/components/page/per_ewer.vue b/src/components/page/per_ewer.vue index 3f911f7..16875be 100644 --- a/src/components/page/per_ewer.vue +++ b/src/components/page/per_ewer.vue @@ -36,6 +36,34 @@ +
+ + + + + List of pending articles. +
+
    +
  • +
    {{item.type}}
    + +

    {{item.title}}

    +
    +

    {{item.journal_title}}.
    + Submitted time: {{item.ctime}}{{item.accept_sn}}

    +
  • +

    No pending articles

    +
+ +

+
@@ -60,8 +88,8 @@

No historical articles

@@ -79,12 +107,20 @@ }, tableData1: [], tableData2: [], + tableData3: [], TaBle2: { user_id: localStorage.getItem('U_id'), pageIndex: 1, - pageSize: 10 + pageSize: 5 }, - link_Tota2: 0 + TaBle3: { + user_id: localStorage.getItem('U_id'), + journal_id: 0, + pageIndex: 1, + pageSize: 5 + }, + link_Tota2: 0, + link_Tota3: 0, }; }, mounted() { @@ -151,13 +187,39 @@ .catch(err => { this.$message.error(err); }); + this.$api + .post('api/Reviewer/getAllReviewerList', this.TaBle3) + .then(res => { + if (res.code == 0) { + if (res.data.articles != '') { + for (let i = 0; i < res.data.articles.length; i++) { + let date = new Date(parseInt(res.data.articles[i].ctime) * 1000); + let Y = date.getFullYear() + '-'; + let M = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) + '-' : date.getMonth() + 1 + '-'; + let D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate(); + res.data.articles[i].ctime = Y + M + D; + } + } + this.tableData3 = res.data.articles; + this.link_Tota3 = res.data.count || 0; + } else { + this.$message.error(res.msg); + } + }) + .catch(err => { + this.$message.error(err); + }); }, // 分页导航 handlePageChange2(val) { this.$set(this.TaBle2, 'pageIndex', val); this.getData(); - } + }, + handlePageChange3(val) { + this.$set(this.TaBle3, 'pageIndex', val); + this.getData(); + }, }, computed: { onRoutes() { diff --git a/src/components/page/per_text.vue b/src/components/page/per_text.vue index d53aee4..5254cee 100644 --- a/src/components/page/per_text.vue +++ b/src/components/page/per_text.vue @@ -10,8 +10,8 @@
-
+

{{txt_mess.article_title}}

{{txt_mess.title}}>> Manuscript ID: {{txt_mess.accept_sn}}
@@ -249,6 +249,14 @@
+ +

You are not a reviewer of the article yet.
Apply to be a reviewer of the article.

+ + OK + +
+ +
@@ -302,15 +310,28 @@ confident: '', comment: '' }, + addVisible: false, rules: {} } }, created() { if (this.Direct_log == null) { - this.getData(); + this.$api + .post('api/Reviewer/checkUserForReviewer', this.add_edit) + .then(res => { + if (res.code == 0) { + this.getData(); + } else { + this.getData(); + this.addVisible = true; + } + }) + .catch(err => { + this.$message.error(err); + }); } else { this.$api - .post('api/Chief/autoLoginForChief ', { + .post('api/Chief/autoLoginForChief', { 'code': this.Direct_log }) .then(res => { @@ -439,11 +460,27 @@ }); }, + saveAdd() { + this.$api + .post('api/Reviewer/addArticleReviewer', { + articleId: this.Art_id, + uid: localStorage.getItem('U_id') + }) + .then(res => { + this.addVisible = false; + this.$message.success('success!!'); + this.getData(); + }) + .catch(err => { + this.$message.error(err); + }); + } }, mounted() { }, + } diff --git a/src/components/page/reviewerList.vue b/src/components/page/reviewerList.vue index 655ef4c..2e795bd 100644 --- a/src/components/page/reviewerList.vue +++ b/src/components/page/reviewerList.vue @@ -19,6 +19,7 @@ + diff --git a/src/components/page/you_thed.vue b/src/components/page/you_thed.vue index aa7b7b8..e46c539 100644 --- a/src/components/page/you_thed.vue +++ b/src/components/page/you_thed.vue @@ -1,7 +1,7 @@