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
Unverified
Commit
265302d7
authored
Mar 01, 2023
by
芋道源码
Committed by
Gitee
Mar 01, 2023
Browse files
Options
Browse Files
Download
Plain Diff
!6 修改测试出的多项bug
Merge pull request !6 from 周建/master
parents
4153a702
f0af1bf9
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
82 additions
and
27 deletions
+82
-27
src/components/XModal/src/XModal.vue
+3
-1
src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue
+6
-6
src/views/bpm/definition/definition.data.ts
+17
-11
src/views/bpm/definition/index.vue
+29
-3
src/views/bpm/group/index.vue
+1
-1
src/views/bpm/model/index.vue
+9
-0
src/views/bpm/model/model.data.ts
+6
-1
src/views/bpm/processInstance/index.vue
+1
-1
src/views/bpm/taskAssignRule/index.vue
+2
-2
src/views/system/user/user.data.ts
+8
-1
No files found.
src/components/XModal/src/XModal.vue
View file @
265302d7
...
...
@@ -12,7 +12,9 @@ const props = defineProps({
height
:
propTypes
.
string
,
minWidth
:
propTypes
.
string
.
def
(
'460'
),
minHeight
:
propTypes
.
string
.
def
(
'320'
),
showFooter
:
propTypes
.
bool
.
def
(
true
)
showFooter
:
propTypes
.
bool
.
def
(
true
),
maskClosable
:
propTypes
.
bool
.
def
(
false
),
escClosable
:
propTypes
.
bool
.
def
(
false
)
})
const
getBindValue
=
computed
(()
=>
{
...
...
src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue
View file @
265302d7
...
...
@@ -190,12 +190,12 @@
</div>
<XModal
title=
"预览"
width=
"80%"
height=
"90%"
v-model=
"previewModelVisible"
destroy-on-close
>
<!-- append-to-body -->
<
pre
v-highlight
>
<code
class=
"hljs"
>
<!-- 高亮代码块 -->
{{ previewResult }}
</code>
</pre
>
<
div
v-highlight
>
<code
class=
"hljs"
>
<!-- 高亮代码块 -->
{{ previewResult }}
</code>
</div
>
<!-- <pre>
<code class="hljs" v-html="highlightedCode(previewType, previewResult)"></code>
</pre> -->
...
...
src/views/bpm/definition/definition.data.ts
View file @
265302d7
...
...
@@ -17,23 +17,29 @@ const crudSchemas = reactive<VxeCrudSchema>({
title
:
'定义名称'
,
field
:
'name'
,
table
:
{
width
:
120
,
//
width: 120,
slots
:
{
default
:
'name_default'
}
}
},
{
title
:
'
流程
分类'
,
title
:
'
定义
分类'
,
field
:
'category'
,
dictType
:
DICT_TYPE
.
BPM_MODEL_CATEGORY
,
dictClass
:
'number'
// dictType: DICT_TYPE.BPM_MODEL_CATEGORY,
// dictClass: 'number',
table
:
{
// width: 120,
slots
:
{
default
:
'category_default'
}
}
},
{
title
:
'表单信息'
,
field
:
'formId'
,
table
:
{
width
:
12
0
,
// width: 20
0,
slots
:
{
default
:
'formId_default'
}
...
...
@@ -43,7 +49,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
title
:
'流程版本'
,
field
:
'version'
,
table
:
{
width
:
80
,
//
width: 80,
slots
:
{
default
:
'version_default'
}
...
...
@@ -53,7 +59,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
title
:
'激活状态'
,
field
:
'suspensionState'
,
table
:
{
width
:
80
,
//
width: 80,
slots
:
{
default
:
'suspensionState_default'
}
...
...
@@ -63,10 +69,10 @@ const crudSchemas = reactive<VxeCrudSchema>({
title
:
'部署时间'
,
field
:
'deploymentTime'
,
isForm
:
false
,
formatter
:
'formatDate'
,
table
:
{
width
:
180
}
formatter
:
'formatDate'
//
table: {
//
width: 180
//
}
}
]
})
...
...
src/views/bpm/definition/index.vue
View file @
265302d7
...
...
@@ -6,6 +6,10 @@
<template
#
name_default=
"
{ row }">
<XTextButton
:title=
"row.name"
@
click=
"handleBpmnDetail(row.id)"
/>
</
template
>
<!-- 流程分类 -->
<
template
#
category_default=
"{ row }"
>
<DictTag
:type=
"DICT_TYPE.BPM_MODEL_CATEGORY"
:value=
"Number(row?.category)"
/>
</
template
>
<!-- 表单信息 -->
<
template
#
formId_default=
"{ row }"
>
<XTextButton
...
...
@@ -43,6 +47,16 @@
v-if=
"formDetailVisible"
/>
</XModal>
<!-- 流程模型图的预览 -->
<XModal
title=
"流程图"
v-model=
"showBpmnOpen"
width=
"80%"
height=
"90%"
>
<my-process-viewer
key=
"designer"
v-model=
"bpmnXML"
:value=
"bpmnXML"
v-bind=
"bpmnControlForm"
:prefix=
"bpmnControlForm.prefix"
/>
</XModal>
</ContentWrap>
</template>
<
script
setup
lang=
"ts"
>
...
...
@@ -51,8 +65,14 @@ import * as DefinitionApi from '@/api/bpm/definition'
// import * as ModelApi from '@/api/bpm/model'
import
{
allSchemas
}
from
'./definition.data'
import
{
setConfAndFields2
}
from
'@/utils/formCreate'
import
{
DICT_TYPE
}
from
'@/utils/dict'
const
message
=
useMessage
()
// 消息弹窗
const
bpmnXML
=
ref
(
null
)
const
showBpmnOpen
=
ref
(
false
)
const
bpmnControlForm
=
ref
({
prefix
:
'flowable'
})
// const message = useMessage() // 消息弹窗
const
router
=
useRouter
()
// 路由
const
{
query
}
=
useRoute
()
// 查询参数
...
...
@@ -89,7 +109,13 @@ const handleFormDetail = async (row) => {
const
handleBpmnDetail
=
(
row
)
=>
{
// TODO 芋艿:流程组件开发中
console
.
log
(
row
)
message
.
success
(
'流程组件开发中,预计 2 月底完成'
)
DefinitionApi
.
getProcessDefinitionBpmnXMLApi
(
row
).
then
((
response
)
=>
{
console
.
log
(
response
,
'response'
)
bpmnXML
.
value
=
response
// 弹窗打开
showBpmnOpen
.
value
=
true
})
// message.success('流程组件开发中,预计 2 月底完成')
}
// 点击任务分配按钮
...
...
@@ -97,7 +123,7 @@ const handleAssignRule = (row) => {
router
.
push
({
name
:
'BpmTaskAssignRuleList'
,
query
:
{
model
Id
:
row
.
id
processDefinition
Id
:
row
.
id
}
})
}
...
...
src/views/bpm/group/index.vue
View file @
265302d7
...
...
@@ -43,7 +43,7 @@
</XTable>
</ContentWrap>
<XModal
v-model=
"dialogVisible"
:title=
"dialogTitle"
>
<XModal
v-model=
"dialogVisible"
:title=
"dialogTitle"
:mask-closable=
"false"
>
<!-- 对话框(添加 / 修改) -->
<Form
v-if=
"['create', 'update'].includes(actionType)"
...
...
src/views/bpm/model/index.vue
View file @
265302d7
...
...
@@ -24,6 +24,10 @@
<
template
#
name_default=
"{ row }"
>
<XTextButton
:title=
"row.name"
@
click=
"handleBpmnDetail(row.id)"
/>
</
template
>
<!-- 流程分类 -->
<
template
#
category_default=
"{ row }"
>
<DictTag
:type=
"DICT_TYPE.BPM_MODEL_CATEGORY"
:value=
"Number(row?.category)"
/>
</
template
>
<!-- 表单信息 -->
<
template
#
formId_default=
"{ row }"
>
<XTextButton
...
...
@@ -429,6 +433,11 @@ const handleUpdate = async (rowId: number) => {
await
setDialogTile
(
'edit'
)
// 设置数据
saveForm
.
value
=
await
ModelApi
.
getModelApi
(
rowId
)
if
(
saveForm
.
value
.
category
==
null
)
{
saveForm
.
value
.
category
=
1
}
else
{
saveForm
.
value
.
category
=
Number
(
saveForm
.
value
.
category
)
}
}
// 提交按钮
...
...
src/views/bpm/model/model.data.ts
View file @
265302d7
...
...
@@ -44,7 +44,12 @@ const crudSchemas = reactive<VxeCrudSchema>({
field
:
'category'
,
dictType
:
DICT_TYPE
.
BPM_MODEL_CATEGORY
,
dictClass
:
'number'
,
isSearch
:
true
isSearch
:
true
,
table
:
{
slots
:
{
default
:
'category_default'
}
}
},
{
title
:
'表单信息'
,
...
...
src/views/bpm/processInstance/index.vue
View file @
265302d7
...
...
@@ -7,7 +7,7 @@
<XButton
type=
"primary"
preIcon=
"ep:zoom-in"
title=
"
新建
流程"
title=
"
发起
流程"
v-hasPermi=
"['bpm:process-instance:query']"
@
click=
"handleCreate"
/>
...
...
src/views/bpm/taskAssignRule/index.vue
View file @
265302d7
...
...
@@ -45,9 +45,9 @@
<el-select
v-model=
"formData.roleIds"
multiple
clearable
style=
"width: 100%"
>
<el-option
v-for=
"item in roleOptions"
:key=
"
parseInt(item.id)
"
:key=
"
item.id
"
:label=
"item.name"
:value=
"
parseInt(item.id)
"
:value=
"
item.id
"
/>
</el-select>
</el-form-item>
...
...
src/views/system/user/user.data.ts
View file @
265302d7
...
...
@@ -5,7 +5,14 @@ const { t } = useI18n()
export
const
rules
=
reactive
({
username
:
[
required
],
nickname
:
[
required
],
email
:
[
required
],
email
:
[
{
required
:
true
,
message
:
t
(
'profile.rules.mail'
),
trigger
:
'blur'
},
{
type
:
'email'
,
message
:
t
(
'profile.rules.truemail'
),
trigger
:
[
'blur'
,
'change'
]
}
],
status
:
[
required
],
mobile
:
[
{
...
...
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