This commit is contained in:
xulu
2021-09-08 09:39:17 +08:00
parent d115bd19dd
commit 4e5ff549c2
17 changed files with 1183 additions and 98 deletions

View File

@@ -21,6 +21,13 @@
<div class="container container_l">
<el-row :gutter="24">
<el-col :span="16">
<div v-if="this.query.journal_id==18||this.query.journal_id==16" style="line-height: 28px;font-size: 15px;color: #ff200d;font-weight: bold;">
{{qikna}}为预警期刊责令限期整改<br/>
时间: {{daojishi}}<br/>
倒计时: {{day}} {{hour}}:{{min}}:{{second}}<br/>
整改事项: <br/>
<p v-html="shixiang">{{shixiang}}</p>
</div>
<div class="ma_title">
<svg t="1629527802392" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1650"
width="20" height="20" style="margin-bottom: -3px;margin-right: 6px;">
@@ -111,7 +118,15 @@
},
link_Tota2: 0,
cate_title: [],
cate_jour: []
cate_jour: [],
curStartTime: '2019-07-31 08:00:00',
qikna: '',
shixiang: '',
daojishi: '',
day: '0',
hour: '00',
min: '00',
second: '00',
};
},
mounted() {
@@ -132,6 +147,8 @@
localStorage.setItem('U_id', res.data.user.user_id);
localStorage.setItem('U_relname', res.data.user.realname);
this.getTable();
this.curStartTime = '2021-10-01 00:00:00'
this.countTime();
} else {
this.$message.error(res.msg);
}
@@ -179,6 +196,22 @@
res.data.articles[i].ctime = Y + M + D;
}
this.tableData1 = res.data.articles;
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。<br/>2. 补充编委会栏目编委人数大于20人。<br/>3. 将每篇文章已出版文章配合适摘要图。<br/>4. 选择合适得期刊主题色。<br/>5. 12.20上线前10天文章online文章需要大于5篇。<br/>6. 2022年第一期不再实行页码编码改为文章编码。<br/><br>'
this.countTime();
}
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%<br/><br/>'
this.countTime();
}
} else {
this.$message.error(res.msg);
}
@@ -225,7 +258,45 @@
this.query.journal_id = command.journal_id;
this.TaBle2.journal_id = command.journal_id;
this.getData();
}
},
// 倒计时
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)
}
},
},
computed: {
onRoutes() {