tijiao
This commit is contained in:
@@ -36,6 +36,13 @@
|
||||
<b v-if="scope.row.astate == 6">Pre-accept</b>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="State" align="center" width="120">
|
||||
<template slot-scope="scope">
|
||||
<span style="font-size: 16px;"v-html="revstate(scope.row)"></span>
|
||||
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="Recommendation" width="160" align="center">
|
||||
<template slot-scope="scope">
|
||||
<b v-if="scope.row.recommend == 1||scope.row.recommend == 2">Accept</b>
|
||||
@@ -114,6 +121,29 @@
|
||||
this.getTable();
|
||||
},
|
||||
methods: {
|
||||
revstate(row, column, cellValue, index) {
|
||||
let frag = '';
|
||||
if (row.state == 0) {
|
||||
frag = 'With reviewer';
|
||||
} else if (row.state == 1) {
|
||||
// 大修
|
||||
frag = 'Major revision';
|
||||
|
||||
// frag = 'Revision';
|
||||
} else if (row.state == 2) {
|
||||
frag = 'Reject';
|
||||
} else if (row.state == 3) {
|
||||
//小修
|
||||
// frag = 'Accept';
|
||||
frag = 'Minor revision';
|
||||
} else if (row.state == 4) {
|
||||
frag = '<text style="color:#aaa">invalid</text>';
|
||||
} else if (row.state == 5) {
|
||||
frag = 'invitation';
|
||||
}
|
||||
|
||||
return frag;
|
||||
},
|
||||
// 获取数据
|
||||
getTable() {
|
||||
this.$api
|
||||
|
||||
Reference in New Issue
Block a user