This commit is contained in:
xulu
2021-09-14 09:22:48 +08:00
parent 2fb8c7e04e
commit 709110f7e9
18 changed files with 1849 additions and 100 deletions

View File

@@ -10,8 +10,8 @@
</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div class="container container_l" v-loading="loading"
element-loading-text="Loading..." element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.8)">
<div class="container container_l" v-loading="loading" element-loading-text="Loading..." element-loading-spinner="el-icon-loading"
element-loading-background="rgba(0, 0, 0, 0.8)">
<div class="tet_list" :model="txt_mess">
<h4>{{txt_mess.article_title}}</h4>
<h5>{{txt_mess.title}}<span style="margin: 0 10px;">>></span> Manuscript ID: {{txt_mess.accept_sn}}</h5>
@@ -249,6 +249,14 @@
</div>
<el-dialog title=" " :visible.sync="addVisible" width="30%" :close-on-click-modal='false' :show-close="false">
<p>You are not a reviewer of the article yet.<br /> Apply to be a reviewer of the article.</p>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="saveAdd()">OK</el-button>
</span>
</el-dialog>
</div>
</div>
@@ -302,15 +310,28 @@
confident: '',
comment: ''
},
addVisible: false,
rules: {}
}
},
created() {
if (this.Direct_log == null) {
this.getData();
this.$api
.post('api/Reviewer/checkUserForReviewer', this.add_edit)
.then(res => {
if (res.code == 0) {
this.getData();
} else {
this.getData();
this.addVisible = true;
}
})
.catch(err => {
this.$message.error(err);
});
} else {
this.$api
.post('api/Chief/autoLoginForChief ', {
.post('api/Chief/autoLoginForChief', {
'code': this.Direct_log
})
.then(res => {
@@ -439,11 +460,27 @@
});
},
saveAdd() {
this.$api
.post('api/Reviewer/addArticleReviewer', {
articleId: this.Art_id,
uid: localStorage.getItem('U_id')
})
.then(res => {
this.addVisible = false;
this.$message.success('success!!');
this.getData();
})
.catch(err => {
this.$message.error(err);
});
}
},
mounted() {
},
}
</script>