Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c5cb59f4
authored
Mar 02, 2023
by
gexinzhineng/gxzn27
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务分配规则页面vxe操作栏显示隐藏bug
parent
31505ae3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
src/views/bpm/taskAssignRule/index.vue
+10
-2
src/views/bpm/taskAssignRule/taskAssignRule.data.ts
+8
-0
No files found.
src/views/bpm/taskAssignRule/index.vue
View file @
c5cb59f4
<
template
>
<ContentWrap>
<!-- 列表 -->
<XTable
@
register=
"registerTable"
>
<XTable
@
register=
"registerTable"
ref=
"xGrid"
>
<template
#
options_default=
"
{ row }">
<span
:key=
"option"
v-for=
"option in row.options"
>
<el-tag>
...
...
@@ -145,11 +145,12 @@ import { listSimpleUserGroupsApi } from '@/api/bpm/userGroup'
import
{
listSimpleDeptApi
}
from
'@/api/system/dept'
import
{
DICT_TYPE
,
getDictOptions
}
from
'@/utils/dict'
import
{
handleTree
,
defaultProps
}
from
'@/utils/tree'
import
{
allSchemas
,
rules
}
from
'./taskAssignRule.data'
import
{
allSchemas
,
rules
,
idShowActionClick
}
from
'./taskAssignRule.data'
const
{
t
}
=
useI18n
()
// 国际化
const
message
=
useMessage
()
// 消息弹窗
const
{
query
}
=
useRoute
()
const
xGrid
=
ref
()
// ========== 列表相关 ==========
...
...
@@ -165,6 +166,8 @@ const taskAssignScriptDictDatas = getDictOptions(DICT_TYPE.BPM_TASK_ASSIGN_SCRIP
const
modelId
=
query
.
modelId
// 流程定义的编号。如果 processDefinitionId 非空,则用于流程定义的查看,不支持配置
const
processDefinitionId
=
query
.
processDefinitionId
let
isShow
=
idShowActionClick
(
modelId
)
// 查询参数
const
queryParams
=
reactive
({
modelId
:
modelId
,
...
...
@@ -346,5 +349,10 @@ onMounted(() => {
listSimpleUserGroupsApi
().
then
((
data
)
=>
{
userGroupOptions
.
value
.
push
(...
data
)
})
if
(
!
isShow
)
{
setTimeout
(()
=>
{
xGrid
.
value
.
Ref
.
hideColumn
(
'actionbtns'
)
},
100
)
}
})
</
script
>
src/views/bpm/taskAssignRule/taskAssignRule.data.ts
View file @
c5cb59f4
...
...
@@ -43,4 +43,12 @@ const crudSchemas = reactive<VxeCrudSchema>({
}
]
})
export
const
idShowActionClick
=
(
modelId
?:
any
)
=>
{
if
(
modelId
)
{
return
true
}
else
{
return
false
}
}
export
const
{
allSchemas
}
=
useVxeCrudSchemas
(
crudSchemas
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment