11<template >
22 <ContentWrap >
33 <!-- 列表 -->
4- <XTable @register =" registerTable" >
4+ <XTable @register =" registerTable" ref = " xGrid " >
55 <template #options_default =" { row } " >
66 <span :key =" option" v-for =" option in row.options" >
77 <el-tag >
@@ -145,11 +145,12 @@ import { listSimpleUserGroupsApi } from '@/api/bpm/userGroup'
145145import { listSimpleDeptApi } from ' @/api/system/dept'
146146import { DICT_TYPE , getDictOptions } from ' @/utils/dict'
147147import { handleTree , defaultProps } from ' @/utils/tree'
148- import { allSchemas , rules } from ' ./taskAssignRule.data'
148+ import { allSchemas , rules , idShowActionClick } from ' ./taskAssignRule.data'
149149
150150const { t } = useI18n () // 国际化
151151const message = useMessage () // 消息弹窗
152152const { query } = useRoute ()
153+ const xGrid = ref ()
153154
154155// ========== 列表相关 ==========
155156
@@ -165,6 +166,8 @@ const taskAssignScriptDictDatas = getDictOptions(DICT_TYPE.BPM_TASK_ASSIGN_SCRIP
165166const modelId = query .modelId
166167// 流程定义的编号。如果 processDefinitionId 非空,则用于流程定义的查看,不支持配置
167168const processDefinitionId = query .processDefinitionId
169+ let isShow = idShowActionClick (modelId )
170+
168171// 查询参数
169172const queryParams = reactive ({
170173 modelId: modelId ,
@@ -346,5 +349,10 @@ onMounted(() => {
346349 listSimpleUserGroupsApi ().then ((data ) => {
347350 userGroupOptions .value .push (... data )
348351 })
352+ if (! isShow ) {
353+ setTimeout (() => {
354+ xGrid .value .Ref .hideColumn (' actionbtns' )
355+ }, 100 )
356+ }
349357})
350358 </script >
0 commit comments