This commit is contained in:
xulu
2021-09-14 09:52:04 +08:00
parent 956fe04d16
commit ae37533b0e

View File

@@ -62,8 +62,14 @@
<a :href='mediaUrl+item.file_url' target="_blank" class="txt_pdf">{{item.type_name}} <span style="margin-left: 50px;color: #888;font-size: 13px;">{{item.ctime}}</span></a><br> <a :href='mediaUrl+item.file_url' target="_blank" class="txt_pdf">{{item.type_name}} <span style="margin-left: 50px;color: #888;font-size: 13px;">{{item.ctime}}</span></a><br>
</div> </div>
</div> </div>
<div class="ques_tion" v-if="this.add_apply == 1">
You are not a reviewer of the article yet.
Apply to be a reviewer of the article.
<el-button type="warning" @click="saveAdd()" style="margin-left: 20px;">Apply</el-button>
</div>
<div class="ques_tion"> <div class="ques_tion" v-if="this.add_apply == 0">
<el-form :model="questionform" :rules="rules" ref="question" label-width="300px" label-position="top"> <el-form :model="questionform" :rules="rules" ref="question" label-width="300px" label-position="top">
<el-divider content-position="center">REFEREE'S ASSESSMENT</el-divider> <el-divider content-position="center">REFEREE'S ASSESSMENT</el-divider>
<el-form-item label="1.Originality of the topic"> <el-form-item label="1.Originality of the topic">
@@ -248,15 +254,6 @@
</el-form> </el-form>
</div> </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>
</div> </div>
@@ -310,7 +307,7 @@
confident: '', confident: '',
comment: '' comment: ''
}, },
addVisible: false, add_apply: 1,
rules: {} rules: {}
} }
}, },
@@ -319,11 +316,11 @@
this.$api this.$api
.post('api/Reviewer/checkUserForReviewer', this.add_edit) .post('api/Reviewer/checkUserForReviewer', this.add_edit)
.then(res => { .then(res => {
this.getData();
if (res.code == 0) { if (res.code == 0) {
this.getData(); this.add_apply = 0;
} else { } else {
this.getData(); this.add_apply = 1;
this.addVisible = true;
} }
}) })
.catch(err => { .catch(err => {
@@ -467,8 +464,8 @@
uid: localStorage.getItem('U_id') uid: localStorage.getItem('U_id')
}) })
.then(res => { .then(res => {
this.addVisible = false; this.add_apply = 0;
this.$message.success('success!!'); this.$message.success('Successful application!');
this.getData(); this.getData();
}) })
.catch(err => { .catch(err => {