diff --git a/src/api/index.js b/src/api/index.js index 46801a4..1974b87 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -7,8 +7,8 @@ import qs from 'qs' // axios全局配置 axios.defaults.timeout = 10000 // 超时时间 axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8' // 配置请求头 -axios.defaults.baseURL = 'http://www.tougao.com/' -// axios.defaults.baseURL = '/' +// axios.defaults.baseURL = 'http://www.tougao.com/' +axios.defaults.baseURL = '/' // 添加响应拦截器,统一处理服务器响应和异常 axios.interceptors.response.use( diff --git a/src/components/common/Header.vue b/src/components/common/Header.vue index 2c07d29..7772f9b 100644 --- a/src/components/common/Header.vue +++ b/src/components/common/Header.vue @@ -9,6 +9,9 @@ {{ $t('system.title') }} +
+ 本刊为预警期刊,责令限期整改 时间{{daojishi}} 倒计时: {{day}}天 {{hour}}:{{min}}:{{second}} +
@@ -30,13 +33,13 @@
- - + + View as : - Author + Author @@ -45,18 +48,18 @@ Editor-in-Chief - + Editorial board member Reviewer - + - +
@@ -94,6 +97,7 @@ message: 2, hasorcie: false, link_path: '', + user_id: localStorage.getItem('U_id'), user_cap: localStorage.getItem('U_role'), orcid: '', orcidLink: 'https://orcid.org/oauth/authorize?client_id=APP-PKF0BGRP6DWM6FUB&response_type=code&scope=/authenticate&redirect_uri=https://submission.tmrjournals.com/orcidBind', @@ -105,11 +109,27 @@ value: 'en', label: 'English' } - ] + ], + curStartTime: '2019-07-31 08:00:00', + daojishi: '', + day: '0', + hour: '00', + min: '00', + second: '00', }; }, created() { this.initORCID(); + if (this.user_id == 24) { + this.daojishi = '2021.9.3 - 2021.9.30' + this.curStartTime = '2021-10-01 00:00:00' + this.countTime(); + } + if (this.user_id == 25) { + this.daojishi = '2021.9.6 - 2021.12.31' + this.curStartTime = '2022-01-01 00:00:00' + this.countTime(); + } }, computed: { username() { @@ -202,7 +222,46 @@ }, skip_check() { location.href = this.orcidLink; - } + }, + + + // 倒计时 + countTime() { + // 获取当前时间 + let date = new Date() + let now = date.getTime() + // 设置截止时间 + let endDate = new Date(this.curStartTime) // this.curStartTime需要倒计时的日期 + let end = endDate.getTime() + // 时间差 + let leftTime = end - now + // 定义变量 d,h,m,s保存倒计时的时间 + if (leftTime >= 0) { + // 天 + this.day = Math.floor(leftTime / 1000 / 60 / 60 / 24) + // 时 + let h = Math.floor(leftTime / 1000 / 60 / 60 % 24) + this.hour = h < 10 ? '0' + h : h + // 分 + let m = Math.floor(leftTime / 1000 / 60 % 60) + this.min = m < 10 ? '0' + m : m + // 秒 + let s = Math.floor(leftTime / 1000 % 60) + this.second = s < 10 ? '0' + s : s + } else { + this.day = 0 + this.hour = '00' + this.min = '00' + this.second = '00' + } + // 等于0的时候不调用 + if (Number(this.hour) === 0 && Number(this.day) === 0 && Number(this.min) === 0 && Number(this.second) === 0) { + return + } else { + // 递归每秒调用countTime方法,显示动态时间效果, + setTimeout(this.countTime, 1000) + } + }, }, mounted() { if (document.body.clientWidth < 1000) { @@ -322,4 +381,13 @@ #colgreen { color: rgb(142, 150, 74); } + + .xq_time { + float: left; + line-height: 70px; + vertical-align: middle; + color: #ff200d; + margin-left: 20px; + font-size: 20px; + } diff --git a/src/components/common/Lead.vue b/src/components/common/Lead.vue index 8e3290e..5172e66 100644 --- a/src/components/common/Lead.vue +++ b/src/components/common/Lead.vue @@ -5,7 +5,7 @@
- Window for manucripts
of Traditional Medicine Research + Window for manucripts
of Traditional Medicine Research
@@ -16,18 +16,18 @@ Editor-in-Chief : Editorial board member : Reviewer : - + Young scientist member : {{user_name}}
- View as : + View as : Editor-in-Chief Editorial board member Reviewer - + Young scientist member @@ -37,15 +37,15 @@ Editor-in-Chief - + Editorial board member Reviewer - + @@ -92,7 +92,7 @@ }, methods: { getData() { - + } }, mounted() {}, diff --git a/src/components/common/Sidebar.vue b/src/components/common/Sidebar.vue index 58818e4..646a3ab 100644 --- a/src/components/common/Sidebar.vue +++ b/src/components/common/Sidebar.vue @@ -117,7 +117,7 @@ }, { index: 'reviewerAdd', - title: this.$t('sidebar.reviewer4') + title: this.$t('sidebar.reviewer5') } ] } diff --git a/src/components/common/common.vue b/src/components/common/common.vue index 9ee107f..c4b2ba2 100644 --- a/src/components/common/common.vue +++ b/src/components/common/common.vue @@ -1,8 +1,8 @@ + + diff --git a/src/components/page/you_text.vue b/src/components/page/you_text.vue new file mode 100644 index 0000000..6fbb39f --- /dev/null +++ b/src/components/page/you_text.vue @@ -0,0 +1,498 @@ + + + + + diff --git a/src/components/page/you_thed.vue b/src/components/page/you_thed.vue index c334135..33f5165 100644 --- a/src/components/page/you_thed.vue +++ b/src/components/page/you_thed.vue @@ -19,6 +19,38 @@
+ + +
+ + + + + + + + Final review in progress. +
+
    +
  • +
    {{item.type}}
    + +

    {{item.article_title}}

    +
    +

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

    +
  • +

    No historical articles

    +
+
+



+
@@ -38,11 +70,10 @@
  • {{item.type}}
    - -

    {{item.title}}

    + +

    {{item.article_title}}

    -
    {{item.author}}
    -

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

    +

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

  • No article

@@ -63,29 +94,17 @@
  • {{item.type}}
    - -

    {{item.title}}

    + +

    {{item.article_title}}

    -
    {{item.author}}
    -

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

    +

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

  • No historical articles

- @@ -105,7 +124,9 @@ }, tableData1: [], tableData2: [], + tableData3: [], TaBle2: { + user_id: localStorage.getItem('U_id'), pageIndex: 1, pageSize: 10 }, @@ -122,7 +143,7 @@ this.getTable(); } else { this.$api - .post('api/Chief/autoLoginForChief ', { + .post('api/Chief/autoLoginForChief', { 'code': this.Direct_log }) .then(res => { @@ -145,7 +166,7 @@ // 获取数据 getTable() { this.$api - .post('api/Chief/getJournalsFromChief', this.query) + .post('api/Board/getYboardJournals', this.query) .then(res => { if (res.code == 0) { this.cate_jour = res.data.journals @@ -154,10 +175,9 @@ 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.getData(); - + } else { this.$message.error(res.msg); } @@ -166,19 +186,20 @@ this.$message.error(err); }); }, + getData() { this.$api - .post('api/Chief/getPArticlesForChief', this.query) + .post('api/Reviewer/getReviewerListPending', 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); + for (let i = 0; i < res.data.lists.length; i++) { + let date = new Date(parseInt(res.data.lists[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; + res.data.lists[i].ctime = Y + M + D; } - this.tableData1 = res.data.articles; + this.tableData1 = res.data.lists; } else { this.$message.error(res.msg); } @@ -187,19 +208,19 @@ this.$message.error(err); }); this.$api - .post('api/Chief/getHArticlesForChief', this.TaBle2) + .post('api/Reviewer/getReviewerListHistory', this.TaBle2) .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); + if (res.data.lists != '') { + for (let i = 0; i < res.data.lists.length; i++) { + let date = new Date(parseInt(res.data.lists[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; + res.data.lists[i].ctime = Y + M + D; } } - this.tableData2 = res.data.articles; + this.tableData2 = res.data.lists; this.link_Tota2 = res.data.count || 0; } else { this.$message.error(res.msg); @@ -216,6 +237,7 @@ this.getData(); }, + // 期刊下拉菜单点击 handlejournal(command) { this.cate_title = command.title; @@ -223,7 +245,6 @@ localStorage.setItem('journal_id', command.journal_id); this.head_line = command.title; this.query.journal_id = command.journal_id; - this.TaBle2.journal_id = command.journal_id; this.getData(); } }, diff --git a/src/router/index.js b/src/router/index.js index f8b2662..dfdad2a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -313,7 +313,7 @@ export default new Router({ path: '/edit_text', component: () => import( /* webpackChunkName: "编委文章详情" */ '../components/page/edit_text'), meta: { - title: 'Editorial board member' + title: 'Editorial board member article details' } }, { path: '/peerewer', @@ -325,7 +325,7 @@ export default new Router({ path: '/per_text', component: () => import( /* webpackChunkName: "审稿人文章详情" */ '../components/page/per_text'), meta: { - title: 'Reviewer' + title: 'Reviewer article details' } }, { path: '/youthed', @@ -333,6 +333,18 @@ export default new Router({ meta: { title: 'Young scientist member' } + }, { + path: '/you_text', + component: () => import( /* webpackChunkName: "青年编委-审稿详情" */ '../components/page/you_text'), + meta: { + title: 'Young scientist member article details' + } + }, { + path: '/you_taxt', + component: () => import( /* webpackChunkName: "青年编委-编委详情" */ '../components/page/you_taxt'), + meta: { + title: 'Young scientist member article details' + } }, { path: '/watrial', component: () => import( /* webpackChunkName: "待审稿件" */ '../components/page/wat_rial'),