1
This commit is contained in:
@@ -177,6 +177,7 @@
|
||||
this.query.journal_id = this.cate_jour[0].journal_id;
|
||||
|
||||
this.getData();
|
||||
this.getPete();
|
||||
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
@@ -230,6 +231,28 @@
|
||||
this.$message.error(err);
|
||||
});
|
||||
},
|
||||
|
||||
getPete() {
|
||||
this.$api
|
||||
.post('api/Board/getBoardPendArticle', 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.tableData3 = res.data.articles;
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
this.$message.error(err);
|
||||
});
|
||||
},
|
||||
|
||||
// 分页导航
|
||||
handlePageChange2(val) {
|
||||
@@ -245,7 +268,7 @@
|
||||
localStorage.setItem('journal_id', command.journal_id);
|
||||
this.head_line = command.title;
|
||||
this.query.journal_id = command.journal_id;
|
||||
this.getData();
|
||||
this.getPete();
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
Reference in New Issue
Block a user