|
@@ -38,8 +38,8 @@
|
|
|
<el-table-column prop="grade" label="等级">
|
|
<el-table-column prop="grade" label="等级">
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
|
<span v-if="row.grade == 'EXCELLENT'"><el-tag type="success">优秀</el-tag></span>
|
|
<span v-if="row.grade == 'EXCELLENT'"><el-tag type="success">优秀</el-tag></span>
|
|
|
- <span v-else-if="row.grade == 'ELIGIBLE'"><el-tag type="success">合格</el-tag></span>
|
|
|
|
|
- <span v-else-if="row.grade == 'NOT_ELIGIBLE'"><el-tag type="success">不合格</el-tag></span>
|
|
|
|
|
|
|
+ <span v-else-if="row.grade == 'ELIGIBLE'"><el-tag type="warning">合格</el-tag></span>
|
|
|
|
|
+ <span v-else-if="row.grade == 'NOT_ELIGIBLE'"><el-tag type="danger">不合格</el-tag></span>
|
|
|
<span v-else><el-tag type="info">审核中</el-tag></span>
|
|
<span v-else><el-tag type="info">审核中</el-tag></span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -76,6 +76,14 @@
|
|
|
v-if="(row.status === 'ASSIGN_EXPERT') & display"
|
|
v-if="(row.status === 'ASSIGN_EXPERT') & display"
|
|
|
>分配专家组</el-button
|
|
>分配专家组</el-button
|
|
|
>
|
|
>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-if="row.status === 'SUBMIT_PAPER_MATERIALS'"
|
|
|
|
|
+ type="success"
|
|
|
|
|
+ plain
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ @click="saveComplete(row)"
|
|
|
|
|
+ >完成</el-button
|
|
|
|
|
+ >
|
|
|
<el-button @click="editRow(row)" type="primary" size="mini" plain>查看附件</el-button>
|
|
<el-button @click="editRow(row)" type="primary" size="mini" plain>查看附件</el-button>
|
|
|
<!-- <el-button @click="deleteRow(row)" type="danger" size="mini" plain>删除</el-button> -->
|
|
<!-- <el-button @click="deleteRow(row)" type="danger" size="mini" plain>删除</el-button> -->
|
|
|
</template>
|
|
</template>
|
|
@@ -148,24 +156,17 @@
|
|
|
<script>
|
|
<script>
|
|
|
import { mapState } from 'vuex';
|
|
import { mapState } from 'vuex';
|
|
|
import pageableTable from '@/mixins/pageableTable';
|
|
import pageableTable from '@/mixins/pageableTable';
|
|
|
|
|
+import rateStatus from '@/mixins/rateStatus';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'RateList',
|
|
name: 'RateList',
|
|
|
- mixins: [pageableTable],
|
|
|
|
|
|
|
+ mixins: [pageableTable, rateStatus],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
multipleMode: false,
|
|
multipleMode: false,
|
|
|
search: '',
|
|
search: '',
|
|
|
url: '/rate/all2',
|
|
url: '/rate/all2',
|
|
|
downloading: false,
|
|
downloading: false,
|
|
|
- statusOptions: [
|
|
|
|
|
- { label: '等待初审', value: 'FIRST_REVIEW_PENDING' },
|
|
|
|
|
- { label: '待分配专家组', value: 'ASSIGN_EXPERT' },
|
|
|
|
|
- { label: '待专家组考察', value: 'REVIEW_PENDING' },
|
|
|
|
|
- { label: '初审驳回', value: 'FIRST_REVIEW_DENY' },
|
|
|
|
|
- { label: '最终评审', value: 'SUBMIT_GRADE' },
|
|
|
|
|
- { label: '待提交纸质材料', value: 'SUBMIT_PAPER_MATERIALS' }
|
|
|
|
|
- ],
|
|
|
|
|
supervisor: [],
|
|
supervisor: [],
|
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
|
rateId: '',
|
|
rateId: '',
|
|
@@ -196,14 +197,6 @@ export default {
|
|
|
.post('/user/authority', { authorityName: 'ROLE_EXPERT' })
|
|
.post('/user/authority', { authorityName: 'ROLE_EXPERT' })
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
this.supervisor = res;
|
|
this.supervisor = res;
|
|
|
- // if (res.length > 0) {
|
|
|
|
|
- // res.forEach(item => {
|
|
|
|
|
- // this.supervisor.push({
|
|
|
|
|
- // label: item.nickname,
|
|
|
|
|
- // value: item.id
|
|
|
|
|
- // });
|
|
|
|
|
- // });
|
|
|
|
|
- // }
|
|
|
|
|
})
|
|
})
|
|
|
.catch(e => {
|
|
.catch(e => {
|
|
|
console.log(e);
|
|
console.log(e);
|
|
@@ -218,13 +211,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
return '';
|
|
return '';
|
|
|
},
|
|
},
|
|
|
- statusFormatter(row, column, cellValue, index) {
|
|
|
|
|
- let selectedOption = this.statusOptions.find(i => i.value === cellValue);
|
|
|
|
|
- if (selectedOption) {
|
|
|
|
|
- return selectedOption.label;
|
|
|
|
|
- }
|
|
|
|
|
- return '';
|
|
|
|
|
- },
|
|
|
|
|
beforeGetData() {
|
|
beforeGetData() {
|
|
|
// return {
|
|
// return {
|
|
|
// search: this.search,
|
|
// search: this.search,
|
|
@@ -390,7 +376,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
openScore(row) {
|
|
openScore(row) {
|
|
|
this.dialogScore = true;
|
|
this.dialogScore = true;
|
|
|
- this.sorceInfo = row;
|
|
|
|
|
|
|
+ this.scoreInfo = row;
|
|
|
},
|
|
},
|
|
|
saveScore() {
|
|
saveScore() {
|
|
|
this.scoreInfo.status = 'SUBMIT_PAPER_MATERIALS';
|
|
this.scoreInfo.status = 'SUBMIT_PAPER_MATERIALS';
|
|
@@ -405,7 +391,26 @@ export default {
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
this.$message.success('OK');
|
|
this.$message.success('OK');
|
|
|
this.dialogScore = false;
|
|
this.dialogScore = false;
|
|
|
- this.scoreInfo = '';
|
|
|
|
|
|
|
+ // this.scoreInfo = '';
|
|
|
|
|
+ this.getData();
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(e => {
|
|
|
|
|
+ console.log(e);
|
|
|
|
|
+ this.$message.error(e.error);
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ saveComplete(row) {
|
|
|
|
|
+ row.status = 'COMPLETE';
|
|
|
|
|
+ this.$http
|
|
|
|
|
+ .post(
|
|
|
|
|
+ '/rate/save',
|
|
|
|
|
+ {
|
|
|
|
|
+ ...row
|
|
|
|
|
+ },
|
|
|
|
|
+ { body: 'json' }
|
|
|
|
|
+ )
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ this.$message.success('OK');
|
|
|
this.getData();
|
|
this.getData();
|
|
|
})
|
|
})
|
|
|
.catch(e => {
|
|
.catch(e => {
|