This commit is contained in:
2025-11-17 17:00:14 +08:00
parent a4eaf0d5cb
commit ef0e8e83e0
40 changed files with 10582 additions and 3381 deletions

View File

@@ -18,9 +18,9 @@
<!-- <img src="../../assets/img/icon_5.png" alt="" class="icon_img"> -->
Final Decision
</h2>
In this column, the manuscripts that currently need your comments are displayed. You can click
<!-- In this column, the manuscripts that currently need your comments are displayed. You can click
detail to review
or change your comments.
or change your comments. -->
</div>
<ul class="ta1_uli ta1_ulicad">
<li v-for="(item,index) in tableData1">
@@ -51,7 +51,68 @@
</ul>
</el-col>
<el-col :span="24" v-if="tableData2!=''">
<div style="background-color: #ccc;height: 2px;width: 100%;margin:20px 0 35px 0;"></div>
<!-- <el-card class="box-card"> -->
<div class="ma_title" style="margin-bottom: 5px;">
<h2>
<!-- <img src="../../assets/img/icon_1.png" alt="" class="icon_img"> -->
Invitation for Final Decision
</h2>
This list will show you the manuscript that the editor invited you to Final Decision. You can click on
the details to
check the content and then decide whether to Final Decision the manuscript. In addtion, you can also
refuse to Final Decision
the manuscript.
</div>
<ul class="ta1_uli ta1_ulicad">
<li v-for="(item,index) in tableData2">
<div>
<!-- a_id=6348&r_id=1 -->
<router-link :to="{path:'/edit_per_text_yq',query:{a_id:item.article_id,r_id:item.id}}">
<h3><span
style="margin-right: 6px;color: #006699;">{{index+1}}.</span>{{item.title}}
</h3>
<el-button type="primary" plain style="float: right;">Detail</el-button>
</router-link>
</div>
<h4>
<span>
<font style="color: #006699;">Journal : </font>{{item.journal_name}}.
</span>
<span>
<font style="color: #006699;">Type : </font>{{item.article_type_name}}
</span>
<span style="margin-left: 20px;">
<font style="color: #006699;">Invitation Time : </font> {{item.ctime}}
</span><br>
<span v-if="item.abstrart!=''" style="max-width: 1000px;">
<font style="color: #006699;">Abstract : </font>{{item.abstrart | ellipsis}}
</span>
</h4>
<div style="margin-top: 10px;">
<el-button
type="success"
size="mini"
@click="saveNow(item)"
>I agree to conduct the final review
</el-button>
<el-button
type="danger"
size="mini"
@click="saveRef(item)"
>I decline to conduct the final review
</el-button>
</div>
</li>
</ul>
<!-- </el-card> -->
</el-col>
<!-- <el-col :span="24">
<div style="background-color: #ccc;height: 2px;width: 100%;margin: 30px 0 5px 0;"></div>
@@ -142,6 +203,63 @@
this.getData();
},
methods: {
saveNow(data) {
// 二次确认
this.$confirm('Are you sure you want to agree?', 'Tips', {
type: 'warning'
})
.then(() => {
this.$api
.post('api/Finalreview/review', {
article_id: data.article_id,
record_id: data.id,
reviewer_id: localStorage.getItem('U_id'),
state: 0
})
.then((res) => {
if (res.status == 1) {
this.$message.success('Review now successfully!');
this.$router.push('/edit_per_text?Art_id=' + data.id);
} else {
this.$message.error(res.msg);
}
})
.catch((err) => {
this.$message.error(err);
});
})
.catch(() => {});
},
// 拒绝
saveRef(data) {
// 二次确认
this.$confirm('Are you sure you want to refuse?', 'Tips', {
type: 'warning'
})
.then(() => {
this.$api
.post('api/Finalreview/review', {
article_id: data.article_id,
record_id: data.id,
reviewer_id: localStorage.getItem('U_id'),
state: 4
})
.then((res) => {
if (res.status == 1) {
this.loading = true;
this.getTable();
// this.$router.push('/edit_per_text?Art_id=' + this.record_id);
} else {
this.$message.error(res.msg);
}
})
.catch((err) => {
this.$message.error(err);
});
})
.catch(() => {});
},
// 获取数据
getData() {
this.$api
@@ -166,7 +284,29 @@
this.$message.error(err);
});
this.$api
.post('api/Finalreview/lists', {...this.query,state:5})
.then(res => {
if (res.status == 1) {
for (let i = 0; i < res.data.lists.length; i++) {
let date = new Date(parseInt(res.data.lists[i].invited_time) * 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.lists[i].ctime = Y + M + D;
}
this.tableData2 = res.data.lists;
} else {
// this.$message.error(res.msg);
this.tableData2 =[]
}
})
.catch(err => {
this.$message.error(err);
this.tableData2=[]
});
},