|
|
@@ -89,6 +89,7 @@
|
|
|
import ActionUtils from '@/utils/action'
|
|
|
import FixHeight from '@/mixins/height'
|
|
|
import { queryPaperOpRecod, removePaperOpRecod } from '@/api/business/general'
|
|
|
+import { getSetting } from '@/utils/query'
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
@@ -137,6 +138,7 @@ export default {
|
|
|
userId,
|
|
|
isSuper,
|
|
|
hasRole,
|
|
|
+ role,
|
|
|
userOption,
|
|
|
deptOption,
|
|
|
filterOption,
|
|
|
@@ -268,7 +270,14 @@ export default {
|
|
|
this.$refs.tree.filter(val)
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
+ async created() {
|
|
|
+ const ipccRoles = (await getSetting('PaperSystemRoles')) || []
|
|
|
+ if (ipccRoles.length > 0) {
|
|
|
+ this.hasEditRole = this.role.some((item) =>
|
|
|
+ ipccRoles.includes(item.alias)
|
|
|
+ )
|
|
|
+ this.listConfig.rowHandle.actions[0].hidden = !this.hasEditRole
|
|
|
+ }
|
|
|
this.pageKey = this.$route?.meta?.name
|
|
|
// 文件与记录-纸质运行记录列表页面不显示删除按钮
|
|
|
if (this.pageKey === 'ywyxjlsc' && !this.hasRole) {
|
|
|
@@ -408,7 +417,7 @@ export default {
|
|
|
/**
|
|
|
* 处理按钮事件
|
|
|
*/
|
|
|
- handleAction(command, position, selection, data, index, button) {
|
|
|
+ handleAction(command, position, selection, data, index, button) {
|
|
|
switch (command) {
|
|
|
case 'search': // 查询
|
|
|
ActionUtils.setFirstPagination(this.pagination)
|