tijiao
This commit is contained in:
@@ -107,8 +107,24 @@
|
||||
},
|
||||
methods: {
|
||||
getData() {
|
||||
|
||||
|
||||
// 获取文章信息
|
||||
this.$api
|
||||
.post('api/Finalreview/getById', {
|
||||
'record_id': this.record_id,
|
||||
'record_id': 1,
|
||||
'reviewer_id': localStorage.getItem('U_id'),
|
||||
'reviewer_id': 486,
|
||||
|
||||
})
|
||||
.then(res => {
|
||||
console.log('res at line 119:', res)
|
||||
|
||||
|
||||
if(res.status==1){
|
||||
if(res.data.state==0){
|
||||
this.$api
|
||||
.post('api/Finalreview/view', {
|
||||
'record_id': this.record_id,
|
||||
'reviewer_id': localStorage.getItem('U_id'),
|
||||
@@ -165,6 +181,18 @@
|
||||
.catch(err => {
|
||||
this.$message.error(err);
|
||||
});
|
||||
}else{
|
||||
this.$router.push('/edit_per_text?Art_id=' + this.record_id);
|
||||
}
|
||||
}else{
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
|
||||
})
|
||||
.catch(err => {
|
||||
this.$message.error(err);
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user