|
@@ -130,7 +130,11 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div class="part-filter-form-action">
|
|
|
- <el-button type="primary" icon="icon icon-clean" @click="cleanUnread"
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ icon="icon icon-clean"
|
|
|
+ @click="cleanUnread"
|
|
|
+ v-if="!IS_ADMIN"
|
|
|
>清除未阅</el-button
|
|
|
>
|
|
|
<!-- <el-button type="danger" icon="icon icon-warning" @click="batchAction"
|
|
@@ -250,6 +254,12 @@ export default {
|
|
|
IS_INVIGILATE() {
|
|
|
return this.user.roleCodes.includes("INVIGILATE");
|
|
|
},
|
|
|
+ IS_ADMIN() {
|
|
|
+ return (
|
|
|
+ this.user.roleCodes.includes("ADMIN") ||
|
|
|
+ this.user.roleCodes.includes("SUPER_ADMIN")
|
|
|
+ );
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
this.initData();
|