diff --git a/src/assets/css/main.css b/src/assets/css/main.css index a8cba3f..98a08dc 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -61,7 +61,7 @@ a { .content_l .link_jour { position: fixed; - top: 65px; + top: 72px; right: 50%; margin-right: -640px; font-weight: bold; diff --git a/src/assets/img/login-bg.jpg b/src/assets/img/login-bg.jpg index bd2ba25..799022f 100644 Binary files a/src/assets/img/login-bg.jpg and b/src/assets/img/login-bg.jpg differ diff --git a/src/assets/img/login-bg1.jpg b/src/assets/img/login-bg1.jpg new file mode 100644 index 0000000..bd2ba25 Binary files /dev/null and b/src/assets/img/login-bg1.jpg differ diff --git a/src/components/common/Header.vue b/src/components/common/Header.vue index e5db16f..2c07d29 100644 --- a/src/components/common/Header.vue +++ b/src/components/common/Header.vue @@ -1,258 +1,325 @@ diff --git a/src/components/common/Lead.vue b/src/components/common/Lead.vue index a25b887..8e3290e 100644 --- a/src/components/common/Lead.vue +++ b/src/components/common/Lead.vue @@ -3,33 +3,31 @@
Window for manucripts
of Traditional Medicine Research
+
+ + Editor-in-Chief : + Editorial board member : + Reviewer : + + {{user_name}} +
View as : - Chief editor - Editorial board - Reviewer - Youth editorial board + Editor-in-Chief + Editorial board member + Reviewer + @@ -37,17 +35,17 @@ Author - Chief editor + Editor-in-Chief - Editorial board + Editorial board member Reviewer - - Youth editorial board - + @@ -73,7 +71,7 @@ user_id: localStorage.getItem('U_id') }, link_path: '', - user_name: localStorage.getItem('U_name'), + user_name: localStorage.getItem('U_relname'), user_cap: localStorage.getItem('U_role'), cate_role: [] @@ -161,7 +159,9 @@ margin-top: 20px; } - .header-user-con {} + .header-user-con { + text-align: right; + } .link_role { font-weight: bold; diff --git a/src/components/common/Sidebar.vue b/src/components/common/Sidebar.vue index 3e0bdd9..d41b274 100644 --- a/src/components/common/Sidebar.vue +++ b/src/components/common/Sidebar.vue @@ -1,299 +1,274 @@ diff --git a/src/components/common/langs/en.js b/src/components/common/langs/en.js index 3a5d1ba..dc93775 100644 --- a/src/components/common/langs/en.js +++ b/src/components/common/langs/en.js @@ -3,7 +3,7 @@ const en = { system: { title: 'Submission System', repassword: 'Forgot your password?', - register: 'Not registered yet? Register now.', + register: 'Register', orcidlogin: 'Login with your ORCID iD', login: 'Log in', forgetpwd: 'Find Your Password', @@ -51,7 +51,7 @@ const en = { chief2: 'Journal list', editmber: 'Editorial management', editmber1: 'Editorial board list', - editmber2: 'Journal List' + editmber2: 'Matching pattern' }, home: { authortop: 'Author guide', diff --git a/src/components/common/langs/zh.js b/src/components/common/langs/zh.js index c8db648..37168d5 100644 --- a/src/components/common/langs/zh.js +++ b/src/components/common/langs/zh.js @@ -51,7 +51,7 @@ const zh = { chief2: '期刊列表', editmber: '编委管理', editmber1: '编委列表', - editmber2: '期刊列表' + editmber2: '编委匹配' }, home: { authortop: '用户指南', diff --git a/src/components/page/Dashboard.vue b/src/components/page/Dashboard.vue index 045f538..64d22c0 100644 --- a/src/components/page/Dashboard.vue +++ b/src/components/page/Dashboard.vue @@ -2,7 +2,7 @@
- + + +
diff --git a/src/components/page/Login.vue b/src/components/page/Login.vue index 07e135d..d9913ac 100644 --- a/src/components/page/Login.vue +++ b/src/components/page/Login.vue @@ -15,24 +15,104 @@ + - - {{ $t('system.repassword') }} + + {{ $t('system.repassword') }} - - {{ $t('system.register') }} + + {{ $t('system.register') }} - - {{$t('system.orcidlogin')}} + + {{$t('system.orcidlogin')}}
+ + +

+ + + + + + Author

+

+ + + + + + + Editor-in-Chief

+

+ + + + + + + + Editorial board member

+

+ + + + + + + + Reviewer

+

+ + + + + + + Young scientist member

+
@@ -40,11 +120,18 @@ export default { data: function() { return { + baseUrl: this.Common.baseUrl, aa: localStorage.getItem('ms_journal'), orcidLink: 'https://orcid.org/oauth/authorize?client_id=APP-PKF0BGRP6DWM6FUB&response_type=code&scope=/authenticate&redirect_uri=https://submission.tmrjournals.com/orcidLink', + roleVisible: false, + showCLO: false, + user_cap: '', param: { username: '', - password: '' + password: '', + // code: '', + // image: '', + // random_num: '' }, rules: { username: [{ @@ -56,10 +143,18 @@ required: true, message: 'Please input a password', trigger: 'blur' + }], + code: [{ + required: true, + message: 'Please enter the captcha.', + trigger: 'blur' }] } }; }, + created: function() { + this.getCaptcha(); + }, methods: { submitForm() { //登录操作 @@ -68,7 +163,6 @@ this.$api .post('api/User/checkLogin', this.param) .then((res) => { - console.log(res); if (res.code == 1) { this.$message.error('Login failed, user name or password error!'); return false; @@ -80,30 +174,82 @@ localStorage.setItem('U_role', 'superadmin'); localStorage.setItem('U_name', res.userinfo.account); localStorage.setItem('U_id', res.userinfo.user_id); + this.$router.push('/'); } else if (res.data.roles.includes('editor')) { localStorage.setItem('U_status', '1'); //编辑 localStorage.setItem('U_role', res.data.roles); localStorage.setItem('U_name', res.data.userinfo.account); localStorage.setItem('U_id', res.data.userinfo.user_id); + this.$router.push('/'); } else { localStorage.setItem('U_status', '2'); //其余的身份 localStorage.setItem('U_role', res.data.roles); localStorage.setItem('U_name', res.data.userinfo.account); localStorage.setItem('U_id', res.data.userinfo.user_id); + localStorage.setItem('U_relname', res.data.userinfo.realname); + this.roleVisible = true; + this.user_cap = res.data.roles; } - this.$router.push('/'); + } }) .catch((err) => { - console.log(err); + this.$message.error(err); }); } else { this.$message.error('Please enter the correct account and password'); - console.log('error submit!!'); + this.$message.error('error submit!!'); return false; } }); }, + + // 分角色登录 + Auth() { //作者 + if (this.user_cap.includes('author')) { + this.$router.push('/'); + } else { + this.$message.error("Sorry, you can not login as Author, please contact publisher@tmrjournals.com."); + } + }, + Chie() { //主编 + if (this.user_cap.includes('chief')) { + this.$router.push('/managing'); + } else { + this.$message.error("Sorry, you can not login as Editor-in-Chief, please contact publisher@tmrjournals.com."); + } + }, + Edit() { //编委 + if (this.user_cap.includes('board')) { + this.$router.push('/editorial'); + } else { + this.$message.error("Sorry, you can not login as Editorial board member, please contact publisher@tmrjournals.com."); + } + }, + Revi() { //审稿人 + if (this.user_cap.includes('reviewer')) { + this.$router.push('/peerewer'); + } else { + this.$message.error("Sorry, you can not login as Reviewer, please contact publisher@tmrjournals.com."); + } + }, + Yout() { //青年编委 + if (this.user_cap.includes('yboard')) { + this.$message.error('!') + // this.$router.push('/youthed'); + } else { + this.$message.error("Sorry, you can not login as Young scientist member, please contact publisher@tmrjournals.com."); + } + }, + + // 验证码 + refreshCode() { + this.getCaptcha(); + }, + getCaptcha() { + this.param.random_num = Math.random(); + this.param.image = this.baseUrl + 'api/User/retrieveCaptcha?a=' + this.param.random_num; + }, doRegister() { //注册页面 this.$router.push({ @@ -130,16 +276,16 @@ width: 100%; height: 100%; background-image: url(../../assets/img/login-bg.jpg); - background-size: 100%; + background-size: cover; } .ms-title { width: 100%; - line-height: 50px; + line-height: 70px; text-align: center; font-size: 20px; - color: #fff; - border-bottom: 1px solid #ddd; + color: #000; + /* border-bottom: 1px solid #ddd; */ } .ms-login { @@ -149,12 +295,13 @@ width: 350px; margin: -190px 0 0 -175px; border-radius: 5px; - background: rgba(255, 255, 255, 0.3); + background: #fff; + /* background: rgba(255, 255, 255, 0.3); */ overflow: hidden; } .ms-content { - padding: 30px 30px; + padding: 0px 30px 30px 30px; } .login-btn { @@ -178,4 +325,20 @@ width: 15px; height: 15px; } + + .captchaimg { + margin-top: 2px; + margin-left: 4px; + } + + .show_CLO p { + color: #000; + cursor: pointer; + font-size: 18px; + margin-bottom: 20px; + } + + .show_CLO p:hover { + text-decoration: underline; + } diff --git a/src/components/page/Register.vue b/src/components/page/Register.vue index 648eab1..7c45d60 100644 --- a/src/components/page/Register.vue +++ b/src/components/page/Register.vue @@ -1,72 +1,40 @@ \ No newline at end of file + .login-wrap { + position: relative; + width: 100%; + height: 100%; + background-image: url(../../assets/img/login-bg.jpg); + background-size: cover; + } + + .ms-title { + width: 100%; + line-height: 70px; + text-align: center; + font-size: 20px; + color: #000; + /* border-bottom: 1px solid #ddd; */ + } + + .ms-login { + position: absolute; + left: 50%; + top: 50%; + width: 500px; + margin: -240px 0 0 -250px; + border-radius: 5px; + background: #fff; + /* background: rgba(255, 255, 255, 0.3); */ + overflow: hidden; + } + + .ms-content { + padding: 0 30px 30px 30px; + } + + .login-btn { + text-align: center; + } + + .login-btn button { + width: 100%; + height: 36px; + margin-bottom: 10px; + } + + .login-tips { + font-size: 12px; + line-height: 30px; + color: #fff; + } + + .register-submit { + margin: auto; + } + + .rebacklogin { + padding-top: 13px; + } + + .captchaimg { + margin-top: 2px; + margin-left: 8px; + } + diff --git a/src/components/page/Retrieve.vue b/src/components/page/Retrieve.vue index 6e0415d..b2dee29 100644 --- a/src/components/page/Retrieve.vue +++ b/src/components/page/Retrieve.vue @@ -1,205 +1,207 @@ \ No newline at end of file + .login-wrap { + position: relative; + width: 100%; + height: 100%; + background-image: url(../../assets/img/login-bg.jpg); + background-size: 100% 100%; + } + + .ms-title { + width: 100%; + line-height: 70px; + text-align: center; + font-size: 20px; + color: #000; + /* border-bottom: 1px solid #ddd; */ + } + + .ms-login { + position: absolute; + left: 50%; + top: 50%; + width: 350px; + margin: -190px 0 0 -175px; + border-radius: 5px; + background: #fff; + overflow: hidden; + } + + .ms-content { + padding: 30px 30px; + } + + .login-btn { + text-align: center; + } + + .login-btn button { + width: 40%; + height: 36px; + margin-bottom: 10px; + } + + .login-tips { + font-size: 12px; + line-height: 30px; + color: #fff; + } + + .captchaimg { + margin-top: 2px; + margin-left: 4px; + } + + .backlink { + text-align: left; + padding-top: 12px; + } + diff --git a/src/components/page/Retrieveact.vue b/src/components/page/Retrieveact.vue index 986456b..f6b9203 100644 --- a/src/components/page/Retrieveact.vue +++ b/src/components/page/Retrieveact.vue @@ -1,158 +1,170 @@ \ No newline at end of file + .login-wrap { + position: relative; + width: 100%; + height: 100%; + background-image: url(../../assets/img/login-bg.jpg); + background-size: 100%; + } + + .ms-title { + width: 100%; + line-height: 50px; + text-align: center; + font-size: 20px; + color: #fff; + border-bottom: 1px solid #ddd; + } + + .ms-login { + position: absolute; + left: 50%; + top: 50%; + width: 350px; + margin: -190px 0 0 -175px; + border-radius: 5px; + background: rgba(255, 255, 255, 0.3); + overflow: hidden; + } + + .ms-content { + padding: 30px 30px; + } + + .login-btn { + text-align: center; + } + + .login-btn button { + width: 40%; + height: 36px; + margin-bottom: 10px; + } + + .login-tips { + font-size: 12px; + line-height: 30px; + color: #fff; + } + + .captchaimg { + margin-top: 2px; + margin-left: 4px; + } + + .backlink { + text-align: left; + padding-top: 12px; + } + diff --git a/src/components/page/articleReviewer.vue b/src/components/page/articleReviewer.vue index 81656b5..13f425c 100644 --- a/src/components/page/articleReviewer.vue +++ b/src/components/page/articleReviewer.vue @@ -1,555 +1,533 @@ diff --git a/src/components/page/chiefeditor.vue b/src/components/page/chiefeditor.vue index 14aeb4b..6988fc8 100644 --- a/src/components/page/chiefeditor.vue +++ b/src/components/page/chiefeditor.vue @@ -11,18 +11,28 @@
add
- +
+ + + + +
+ - + +
@@ -34,6 +44,12 @@ + + + + + @@ -53,29 +69,32 @@ - - - - - + + + + + + {{oldForm.account}} - - + + {{oldForm.email}} - - + + + + - - + + {{oldForm.realname}} + + + {{oldForm.phone}} - Cancel - OK + Cancel + OK @@ -87,14 +106,20 @@ data() { return { tableData: [], - editVisible: false, + df_jour: [], addVisible: false, + oldVisible: false, + addForm: {}, + oldForm: {}, aid: -1, - idx: -1, id: -1, btn_alert: false, - addForm: {}, - editForm: {}, + Total: 0, + query: { + journal_id: 0, + pageIndex: 1, + pageSize: 10 + }, rules: { account: [{ required: true, @@ -115,6 +140,11 @@ }, trigger: "blur" }], + journal_id: [{ + required: true, + message: 'Please select a responsible Journal', + trigger: 'blur' + }], password: [{ required: true, message: 'Please input password', @@ -132,16 +162,41 @@ this.getdate(); }, methods: { - // 获取编辑列表数据 getdate() { + // 获取主编列表数据 this.$api - .post('api/Chief/getChiefList') + .post('api/Chief/getChiefList',this.query) .then(res => { this.tableData = res.data.chiefs; + this.Total = res.data.count || 0; }) .catch(err => { this.$message.error(err); }); + // 获取全部期刊 + this.$api + .post('api/Chief/getAllJournals') + .then(res => { + if (res.code == 0) { + this.df_jour = res.data.journals; + } else { + this.$message.error(res.msg); + } + }) + .catch(err => { + this.$message.error(err); + }); + }, + + // 下拉分类搜索 + chan_id(event) { + this.getdate(); + }, + + // 分页导航 + handlePageChange(val) { + this.$set(this.query, 'pageIndex', val); + this.getdate(); }, // 添加操作 @@ -160,21 +215,14 @@ .then(res => { if (res.code == 0) { if (res.data.user_info != null) { - this.$confirm('该账户已存在,是否将该账户新增主编身份?', '提示', { + this.$confirm('This user already exists, do you want to add this user as journal editor?', 'Tips', { type: 'warning' }) .then(() => { this.addVisible = false; this.$refs.add_Form.resetFields(); - this.$api - .post('api/Chief/addChief', res.data.user_info) - .then(res => { - this.$message.success(`添加成功`); - this.getdate(); - }) - .catch(err => { - this.$message.error(err); - }); + this.oldVisible = true; + this.oldForm = res.data.user_info; }) .catch(() => {}); this.btn_alert = true @@ -200,21 +248,14 @@ .then(res => { if (res.code == 0) { if (res.data.user_info != null) { - this.$confirm('该账户已存在,是否将该账户新增主编身份?', '提示', { + this.$confirm('This user already exists, do you want to add this user as journal editor?', 'Tips', { type: 'warning' }) .then(() => { this.addVisible = false; this.$refs.add_Form.resetFields(); - this.$api - .post('api/Chief/addChief', res.data.user_info) - .then(res => { - this.$message.success(`添加成功`); - this.getdate(); - }) - .catch(err => { - this.$message.error(err); - }); + this.oldVisible = true; + this.oldForm = res.data.user_info; }) .catch(() => {}); this.btn_alert = true @@ -243,7 +284,7 @@ if (res.code == 0) { this.addVisible = false; this.$refs.add_Form.resetFields(); - this.$message.success(`添加成功`); + this.$message.success(`Added successfully!`); this.getdate(); } else { this.$message.error(res.msg); @@ -257,26 +298,21 @@ } }); } else { - this.$message.error("两次新密码输入不一致"); + this.$message.error("The two passwords are inconsistent!"); } - }, - // 编辑操作 - handleEdit(index, row) { - this.idx = index; - this.editForm = Object.assign({}, row); - this.editVisible = true; - }, - // 保存编辑 - saveEdit(editForm) { - this.$refs.edit_Form.validate((valid) => { + + // 保存old添加 + saveOld(oldForm) { + this.$refs.old_Form.validate((valid) => { if (valid) { this.$api - .post('api/Chief/editChief', this.editForm) + .post('api/Chief/addJournalBoardHas', this.oldForm) .then(res => { if (res.code == 0) { - this.editVisible = false; - this.$message.success(`更改第 ${this.idx + 1} 行成功`); + this.oldVisible = false; + this.$refs.old_Form.resetFields(); + this.$message.success(`Added successfully!`); this.getdate(); } else { this.$message.error(res.msg); @@ -286,11 +322,34 @@ this.$message.error(err); }); } else { - this.$message.error('error submit!!'); return false; } }); }, + + // 删除操作 + handleDelete(index, row) { + // 二次确认删除 + this.$confirm('Are you sure you want to delete?', 'Tips', { + type: 'warning' + }) + .then(() => { + this.$api + .post('api/Chief/delChiefToJournal ', row) + .then(res => { + if (res.code == 0) { + this.$message.success('Delete succeeded'); + this.getdate(); + } else { + this.$message.error(res.msg); + } + }) + .catch(err => { + this.$message.error(err); + }); + }) + .catch(() => {}); + } } }; @@ -304,4 +363,8 @@ width: 100%; font-size: 14px; } + + .red { + color: #ff0000; + } diff --git a/src/components/page/edit_ial.vue b/src/components/page/edit_ial.vue new file mode 100644 index 0000000..957b06c --- /dev/null +++ b/src/components/page/edit_ial.vue @@ -0,0 +1,268 @@ + + + + + diff --git a/src/components/page/edit_text.vue b/src/components/page/edit_text.vue new file mode 100644 index 0000000..563114e --- /dev/null +++ b/src/components/page/edit_text.vue @@ -0,0 +1,408 @@ + + + + + diff --git a/src/components/page/editmbereditor.vue b/src/components/page/editmbereditor.vue index c871187..43e065f 100644 --- a/src/components/page/editmbereditor.vue +++ b/src/components/page/editmbereditor.vue @@ -30,7 +30,7 @@
- + @@ -59,13 +59,13 @@ Cancel - OK + OK - + {{oldForm.account}} @@ -108,6 +108,7 @@ oldForm: {}, aid: -1, id: -1, + btn_alert: false, query: { journal_id: 0, }, @@ -162,7 +163,7 @@ this.tableData = res.data.boards; }) .catch(err => { - console.log(err); + this.$message.error(err); }); }, @@ -181,7 +182,7 @@ this.tableData = res.data.boards; }) .catch(err => { - console.log(err); + this.$message.error(err); }); } else { this.$message.error(res.msg); @@ -213,7 +214,7 @@ .then(res => { if (res.code == 0) { if (res.data.user_info != null) { - this.$confirm('该账户已存在,是否在该账户下操作?', '提示', { + this.$confirm('this account already exists. Do you want to operate under this account?', 'Tips', { type: 'warning' }) .then(() => { @@ -224,6 +225,9 @@ this.oldForm = res.data.user_info; }) .catch(() => {}); + this.btn_alert = true + } else { + this.btn_alert = false } } else { this.$message.error(res.msg); @@ -244,7 +248,7 @@ .then(res => { if (res.code == 0) { if (res.data.user_info != null) { - this.$confirm('该账户已存在,是否在该账户下操作?', '提示', { + this.$confirm('this account already exists. Do you want to operate under this account?', 'Tips', { type: 'warning' }) .then(() => { @@ -255,6 +259,9 @@ this.oldForm = res.data.user_info; }) .catch(() => {}); + this.btn_alert = true + } else { + this.btn_alert = false } } else { this.$message.error(res.msg); @@ -277,7 +284,7 @@ if (res.code == 0) { this.addVisible = false; this.$refs.add_Form.resetFields(); - this.$message.success(`添加成功`); + this.$message.success(`Added successfully!`); this.getdate(); } else { this.$message.error(res.msg); @@ -291,7 +298,7 @@ } }); } else { - this.$message.error("两次新密码输入不一致"); + this.$message.error("The two passwords are inconsistent!"); } }, // 保存old添加 @@ -304,7 +311,7 @@ if (res.code == 0) { this.oldVisible = false; this.$refs.old_Form.resetFields(); - this.$message.success(`添加成功`); + this.$message.success(`Added successfully!`); this.getdate(); } else { this.$message.error(res.msg); @@ -321,7 +328,7 @@ // 删除操作 handleDelete(index, row) { // 二次确认删除 - this.$confirm('确定要删除吗?', '提示', { + this.$confirm('Are you sure you want to delete?', 'Tips', { type: 'warning' }) .then(() => { @@ -329,7 +336,7 @@ .post('api/Chief/delJournalBoard', row) .then(res => { if (res.code == 0) { - this.$message.success('删除成功'); + this.$message.success('Delete succeeded'); this.getdate(); } else { this.$message.error(res.msg); diff --git a/src/components/page/editmbereditormoshi.vue b/src/components/page/editmbereditormoshi.vue new file mode 100644 index 0000000..73ceef0 --- /dev/null +++ b/src/components/page/editmbereditormoshi.vue @@ -0,0 +1,292 @@ + + + + + diff --git a/src/components/page/man_aging.vue b/src/components/page/man_aging.vue index 654a34c..c334135 100644 --- a/src/components/page/man_aging.vue +++ b/src/components/page/man_aging.vue @@ -33,7 +33,7 @@ - The manuscripts ready to be reviewed. + The manuscripts are ready to get final decisions.
@@ -58,7 +58,7 @@ - List of historical manuscripts. + Accepted manuscripts. @@ -83,7 +84,7 @@ --> @@ -129,6 +130,7 @@ localStorage.setItem('U_role', res.data.roles); localStorage.setItem('U_name', res.data.user.account); localStorage.setItem('U_id', res.data.user.user_id); + localStorage.setItem('U_relname', res.data.user.realname); this.getTable(); } else { this.$message.error(res.msg); @@ -148,50 +150,14 @@ if (res.code == 0) { this.cate_jour = res.data.journals this.cate_title = this.cate_jour[0].title - this.head_line = localStorage.getItem('journal_title'); localStorage.setItem('journal_title', this.cate_jour[0].title); localStorage.setItem('journal_id', this.cate_jour[0].journal_id); + 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.$api - .post('api/Chief/getPArticlesForChief', this.query) - .then(res => { - if (res.code == 0) { - 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.tableData1 = res.data.articles; - } else { - this.$message.error(res.msg); - } - }) - .catch(err => { - this.$message.error(err); - }); - this.$api - .post('api/Chief/getHArticlesForChief', this.TaBle2) - .then(res => { - if (res.code == 0) { - 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.tableData2 = res.data.articles; - this.link_Tota2 = res.data.articles.length || 0; - } else { - this.$message.error(res.msg); - } - }) - .catch(err => { - this.$message.error(err); - }); + + this.getData(); + } else { this.$message.error(res.msg); } @@ -234,7 +200,7 @@ } } this.tableData2 = res.data.articles; - this.link_Tota2 = res.data.articles.length || 0; + this.link_Tota2 = res.data.count || 0; } else { this.$message.error(res.msg); } diff --git a/src/components/page/man_text.vue b/src/components/page/man_text.vue index 01603de..732461c 100644 --- a/src/components/page/man_text.vue +++ b/src/components/page/man_text.vue @@ -15,7 +15,7 @@

{{txt_mess.title}}

-
{{this.head_line}}>> DOI:{{txt_mess.accept_sn}}
+
{{this.head_line}}>> Manuscript ID: {{txt_mess.accept_sn}}

{{txt_mess.author}}

-
+

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

  • - {{item.realname==''?item.account:(item.realname!=''?item.account+' ('+item.realname+')':'')}} + {{item.account}} ( {{item.realname}} , {{item.email}} ) +
  • +
+
+
+

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

+
    +
  • + {{item.account}} ( {{item.realname}} , {{item.email}} )
- - + + - Choice + Choose
-

Add my comment. ( Who joined to review this manuscript can - view this comment: editor, editorial board members, young sciencists, reviewers.)

+

Add my comment (The comment will be showed to : editor, + editorial board members, young sciencists member.)

@@ -83,12 +92,11 @@ @keyup.enter.native="sendInfo">
- Submit + Save
-

All comments: editor, editorial board members, young sciencists, - reviewers

+

All comments

No comment

@@ -117,6 +125,7 @@ commentData: [], txt_mess: {}, txt_peop: {}, + txt_state: '', add_edit: { article_id: this.$route.query.Art_id, user_id: localStorage.getItem('U_id'), @@ -152,7 +161,8 @@ if (res.data.article.file != "") { localStorage.setItem('journal_title', res.data.article.journal.title); localStorage.setItem('journal_id', res.data.article.journal.journal_id); - this.head_line = localStorage.getItem('journal_title') + this.head_line = res.data.article.journal.title; + this.txt_state = res.data.article.state; let file_down = res.data.article.file; for (var i = 0; i < file_down.length; i++) { let date = new Date(parseInt(file_down[i].ctime) * 1000); @@ -246,7 +256,7 @@ add_Editer() { if (this.select_edit.board_id == '') { this.$message.error('Please select the editorial board!'); - }else{ + } else { this.$api .post('api/Chief/addArticleBoard', this.select_edit) .then(res => { @@ -409,6 +419,10 @@ width: 100px; } + .red { + color: #ff0000; + } + /* 表情包 */ .el-popover { height: 200px; diff --git a/src/components/page/per_ewer.vue b/src/components/page/per_ewer.vue new file mode 100644 index 0000000..39de720 --- /dev/null +++ b/src/components/page/per_ewer.vue @@ -0,0 +1,231 @@ + + + + + diff --git a/src/components/page/per_text.vue b/src/components/page/per_text.vue new file mode 100644 index 0000000..d53aee4 --- /dev/null +++ b/src/components/page/per_text.vue @@ -0,0 +1,498 @@ + + + + + diff --git a/src/components/page/reviewerArticleDetail.vue b/src/components/page/reviewerArticleDetail.vue index 362aad6..25d8563 100644 --- a/src/components/page/reviewerArticleDetail.vue +++ b/src/components/page/reviewerArticleDetail.vue @@ -1,107 +1,59 @@ \ No newline at end of file + .dwnbtn { + margin-bottom: 5px; + } + + .container { + min-width: 1000px; + } + + .tree_box { + padding: 15px 10px; + box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); + } + + h2 { + text-align: center; + } + + .sectitle { + font-size: 15px; + font-weight: 500; + /* line-height: 25px; */ + } + diff --git a/src/components/page/reviewerArticleList.vue b/src/components/page/reviewerArticleList.vue index 7a8f2fb..48bddd3 100644 --- a/src/components/page/reviewerArticleList.vue +++ b/src/components/page/reviewerArticleList.vue @@ -70,9 +70,6 @@ export default { }; }, created() { - if(this.userrole!='reviewer'){ - this.$router.push('/authorApplyReviewer'); - } this.getdate(); }, methods: { diff --git a/src/components/page/wat_rial.vue b/src/components/page/wat_rial.vue new file mode 100644 index 0000000..1209163 --- /dev/null +++ b/src/components/page/wat_rial.vue @@ -0,0 +1,287 @@ + + + + + diff --git a/src/components/page/you_thed.vue b/src/components/page/you_thed.vue new file mode 100644 index 0000000..c334135 --- /dev/null +++ b/src/components/page/you_thed.vue @@ -0,0 +1,298 @@ + + + + + diff --git a/src/router/index.js b/src/router/index.js index f9543db..4e1728d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -249,6 +249,14 @@ export default new Router({ }, hidden: true }, + { + path: '/editmbereditormoshi', + component: () => import('../components/page/editmbereditormoshi.vue'), + meta: { + title: 'Matching pattern' + }, + hidden: true + }, { path: '/404', component: () => import( /* webpackChunkName: "404" */ '../components/page/404.vue'), @@ -280,31 +288,49 @@ export default new Router({ path: '/managing', component: () => import( /* webpackChunkName: "主编" */ '../components/page/man_aging'), meta: { - title: 'Chief editor' + title: 'Editor-in-Chief' } }, { path: '/man_text', component: () => import( /* webpackChunkName: "主编文章详情" */ '../components/page/man_text'), meta: { - title: 'Editor in chief article details' + title: 'Editor-in-Chief article details' } },{ path: '/editorial', - component: () => import( /* webpackChunkName: "编委" */ '../components/page/man_aging'), + component: () => import( /* webpackChunkName: "编委" */ '../components/page/edit_ial'), meta: { - title: 'Editorial board' + title: 'Editorial board member' + } + },{ + path: '/edit_text', + component: () => import( /* webpackChunkName: "编委文章详情" */ '../components/page/edit_text'), + meta: { + title: 'Editorial board member' } }, { path: '/peerewer', - component: () => import( /* webpackChunkName: "审稿人" */ '../components/page/man_aging'), + component: () => import( /* webpackChunkName: "审稿人" */ '../components/page/per_ewer'), + meta: { + title: 'Reviewer' + } + }, { + path: '/per_text', + component: () => import( /* webpackChunkName: "审稿人文章详情" */ '../components/page/per_text'), meta: { title: 'Reviewer' } }, { path: '/youthed', - component: () => import( /* webpackChunkName: "青年编委" */ '../components/page/man_aging'), + component: () => import( /* webpackChunkName: "青年编委" */ '../components/page/you_thed'), meta: { - title: 'Youth editorial board' + title: 'Young scientist member' + } + }, { + path: '/watrial', + component: () => import( /* webpackChunkName: "待审稿件" */ '../components/page/wat_rial'), + meta: { + title: 'Manuscript to be reviewed' } }] },