This commit is contained in:
xulu
2021-08-22 19:41:25 +08:00
parent 4d8c396790
commit 21e5fc549a
21 changed files with 602 additions and 360 deletions

View File

@@ -21,8 +21,17 @@
<el-table-column prop="realname" label="Name" align="center"></el-table-column>
<el-table-column prop="country" label="Country" align="center"></el-table-column>
<el-table-column prop="company" label="Affiliation" align="center"></el-table-column>
<el-table-column label="" width="220" align="center">
<el-table-column prop="title" label="Journal" align="center"></el-table-column>
<el-table-column prop="board" label="Youth editorial board" align="center">
<template slot-scope="scope">
<el-button icon="el-icon-check" type="text" style="color: #0fa31d" v-if="scope.row.is_yboard=='1'"></el-button>
<el-button icon="el-icon-close" type="text" style="color: #ff0000" v-if="scope.row.is_yboard=='0'"></el-button>
</template>
</el-table-column>
<el-table-column label="" width="350" align="center">
<template slot-scope="scope">
<el-button size="mini" type="success" plain icon="el-icon-sort-up" @click="gradeup(scope.row)" v-if="scope.row.is_yboard=='0'">Upgrade</el-button>
<el-button size="mini" type="warning" plain icon="el-icon-sort-down" @click="gradedown(scope.row)" v-if="scope.row.is_yboard=='1'">downgrade</el-button>
<el-button size="mini" type="primary" plain icon="el-icon-tickets" @click="showdetail(scope.row)">Detail</el-button>
<el-button size="mini" type="danger" plain icon="el-icon-delete" @click="showDelete(scope.row)">Delete</el-button>
</template>
@@ -114,6 +123,52 @@
this.$set(this.query, 'pageIndex', val);
this.getDate();
},
// 升级
gradeup(row) {
// 二次确认
this.$confirm('确定要升级'+row.account+'为青年编委吗?', '提示', {
type: 'warning'
})
.then(() => {
this.$api
.post('api/User/upReviewerToYboard', row)
.then(res => {
if (res.code == 0) {
this.$message.success('升级'+row.account+'为青年编委成功');
this.getDate();
} else {
this.$message.error(res.msg);
}
})
.catch(err => {
this.$message.error(err);
});
})
.catch(() => {});
},
// 降级
gradedown(row) {
// 二次确认
this.$confirm('确定要降级'+row.account+'为审稿人吗?', '提示', {
type: 'warning'
})
.then(() => {
this.$api
.post('api/User/downReviewerToYboard ', row)
.then(res => {
if (res.code == 0) {
this.$message.success('降级为'+row.account+'审稿人成功');
this.getDate();
} else {
this.$message.error(res.msg);
}
})
.catch(err => {
this.$message.error(err);
});
})
.catch(() => {});
},
// 查看详情
showdetail(row) {
this.$router.push({