|
|
@@ -66,7 +66,7 @@
|
|
|
type="primary"
|
|
|
size="mini"
|
|
|
plain
|
|
|
- v-if="row.status === 'FIRST_REVIEW_PASS'"
|
|
|
+ v-if="(row.status === 'FIRST_REVIEW_PASS') & display"
|
|
|
>分配专家组</el-button
|
|
|
>
|
|
|
<!-- <el-button @click="deleteRow(row)" type="danger" size="mini" plain>删除</el-button> -->
|
|
|
@@ -130,13 +130,18 @@ export default {
|
|
|
],
|
|
|
supervisor: [],
|
|
|
dialogVisible: false,
|
|
|
- rateId: ''
|
|
|
+ rateId: '',
|
|
|
+ display: false
|
|
|
};
|
|
|
},
|
|
|
+ created() {
|
|
|
+ this.getAdmin();
|
|
|
+ },
|
|
|
computed: {
|
|
|
selection() {
|
|
|
return this.$refs.table.selection.map(i => i.id);
|
|
|
- }
|
|
|
+ },
|
|
|
+ ...mapState(['userInfo'])
|
|
|
},
|
|
|
mounted() {
|
|
|
this.$http
|
|
|
@@ -166,7 +171,10 @@ export default {
|
|
|
return '';
|
|
|
},
|
|
|
beforeGetData() {
|
|
|
- return { search: this.search };
|
|
|
+ return {
|
|
|
+ search: this.search,
|
|
|
+ sort: 'createdAt,desc'
|
|
|
+ };
|
|
|
},
|
|
|
toggleMultipleMode(multipleMode) {
|
|
|
this.multipleMode = multipleMode;
|
|
|
@@ -284,6 +292,14 @@ export default {
|
|
|
this.$alert('专家打出的分数为:' + row.score, '分数', {
|
|
|
confirmButtonText: '确定'
|
|
|
});
|
|
|
+ },
|
|
|
+ getAdmin() {
|
|
|
+ let data = this.userInfo.authorities;
|
|
|
+ data.forEach(element => {
|
|
|
+ if (element.name === 'ROLE_ADMIN') {
|
|
|
+ this.display = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
};
|