1
1
<template >
2
2
<ContentWrap >
3
3
<!-- 列表 -->
4
- <XTable @register =" registerTable" >
4
+ <XTable @register =" registerTable" ref = " xGrid " >
5
5
<template #options_default =" { row } " >
6
6
<span :key =" option" v-for =" option in row.options" >
7
7
<el-tag >
@@ -145,11 +145,12 @@ import { listSimpleUserGroupsApi } from '@/api/bpm/userGroup'
145
145
import { listSimpleDeptApi } from ' @/api/system/dept'
146
146
import { DICT_TYPE , getDictOptions } from ' @/utils/dict'
147
147
import { handleTree , defaultProps } from ' @/utils/tree'
148
- import { allSchemas , rules } from ' ./taskAssignRule.data'
148
+ import { allSchemas , rules , idShowActionClick } from ' ./taskAssignRule.data'
149
149
150
150
const { t } = useI18n () // 国际化
151
151
const message = useMessage () // 消息弹窗
152
152
const { query } = useRoute ()
153
+ const xGrid = ref ()
153
154
154
155
// ========== 列表相关 ==========
155
156
@@ -165,6 +166,8 @@ const taskAssignScriptDictDatas = getDictOptions(DICT_TYPE.BPM_TASK_ASSIGN_SCRIP
165
166
const modelId = query .modelId
166
167
// 流程定义的编号。如果 processDefinitionId 非空,则用于流程定义的查看,不支持配置
167
168
const processDefinitionId = query .processDefinitionId
169
+ let isShow = idShowActionClick (modelId )
170
+
168
171
// 查询参数
169
172
const queryParams = reactive ({
170
173
modelId: modelId ,
@@ -346,5 +349,10 @@ onMounted(() => {
346
349
listSimpleUserGroupsApi ().then ((data ) => {
347
350
userGroupOptions .value .push (... data )
348
351
})
352
+ if (! isShow ) {
353
+ setTimeout (() => {
354
+ xGrid .value .Ref .hideColumn (' actionbtns' )
355
+ }, 100 )
356
+ }
349
357
})
350
358
</script >
0 commit comments