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
2d3227c5
authored
Mar 01, 2023
by
gexinzhineng/gxzn27
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、发起流程页面 流程分类无法显示
2、邮箱校验统一 3、角色管理页面角色编号换成id字段(之前是序号,vue2版本为id,测试说容易和显示顺序搞混) 4、bpmnjs流转条件无法自动保存回显问题
parent
f0af1bf9
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
9 deletions
+46
-9
src/components/bpmnProcessDesigner/package/penal/flow-condition/FlowCondition.vue
+5
-3
src/views/bpm/processInstance/create.vue
+5
-0
src/views/bpm/processInstance/process.create.ts
+6
-1
src/views/system/dept/dept.data.ts
+9
-1
src/views/system/mail/account/account.data.ts
+11
-1
src/views/system/role/role.data.ts
+10
-3
No files found.
src/components/bpmnProcessDesigner/package/penal/flow-condition/FlowCondition.vue
View file @
2d3227c5
...
@@ -79,7 +79,7 @@ const resetFlowCondition = () => {
...
@@ -79,7 +79,7 @@ const resetFlowCondition = () => {
if
(
if
(
bpmnElementSourceRef
.
value
&&
bpmnElementSourceRef
.
value
&&
bpmnElementSourceRef
.
value
.
default
&&
bpmnElementSourceRef
.
value
.
default
&&
bpmnElementSourceRef
.
value
.
default
.
id
===
this
.
bpmnElement
.
id
bpmnElementSourceRef
.
value
.
default
.
id
===
bpmnElement
.
value
.
id
)
{
)
{
// 默认
// 默认
flowConditionForm
.
value
=
{
type
:
'default'
}
flowConditionForm
.
value
=
{
type
:
'default'
}
...
@@ -175,11 +175,13 @@ onBeforeUnmount(() => {
...
@@ -175,11 +175,13 @@ onBeforeUnmount(() => {
watch
(
watch
(
()
=>
props
.
businessObject
,
()
=>
props
.
businessObject
,
(
val
)
=>
{
(
val
)
=>
{
if
(
val
)
{
console
.
log
(
val
,
'val'
)
nextTick
(()
=>
{
nextTick
(()
=>
{
resetFlowCondition
()
resetFlowCondition
()
})
})
}
},
{
immediate
:
true
}
}
)
)
</
script
>
</
script
>
src/views/bpm/processInstance/create.vue
View file @
2d3227c5
...
@@ -3,6 +3,10 @@
...
@@ -3,6 +3,10 @@
<!-- 第一步,通过流程定义的列表,选择对应的流程 -->
<!-- 第一步,通过流程定义的列表,选择对应的流程 -->
<div
v-if=
"!selectProcessInstance"
>
<div
v-if=
"!selectProcessInstance"
>
<XTable
@
register=
"registerTable"
>
<XTable
@
register=
"registerTable"
>
<!-- 流程分类 -->
<template
#
category_default=
"
{ row }">
<DictTag
:type=
"DICT_TYPE.BPM_MODEL_CATEGORY"
:value=
"Number(row?.category)"
/>
</
template
>
<
template
#
version_default=
"{ row }"
>
<
template
#
version_default=
"{ row }"
>
<el-tag
v-if=
"row"
>
v
{{
row
.
version
}}
</el-tag>
<el-tag
v-if=
"row"
>
v
{{
row
.
version
}}
</el-tag>
</
template
>
</
template
>
...
@@ -56,6 +60,7 @@ import * as DefinitionApi from '@/api/bpm/definition'
...
@@ -56,6 +60,7 @@ import * as DefinitionApi from '@/api/bpm/definition'
import
*
as
ProcessInstanceApi
from
'@/api/bpm/processInstance'
import
*
as
ProcessInstanceApi
from
'@/api/bpm/processInstance'
import
{
setConfAndFields2
}
from
'@/utils/formCreate'
import
{
setConfAndFields2
}
from
'@/utils/formCreate'
import
{
ApiAttrs
}
from
'@form-create/element-ui/types/config'
import
{
ApiAttrs
}
from
'@form-create/element-ui/types/config'
import
{
DICT_TYPE
}
from
'@/utils/dict'
const
router
=
useRouter
()
// 路由
const
router
=
useRouter
()
// 路由
const
message
=
useMessage
()
// 消息
const
message
=
useMessage
()
// 消息
...
...
src/views/bpm/processInstance/process.create.ts
View file @
2d3227c5
...
@@ -14,7 +14,12 @@ const crudSchemas = reactive<VxeCrudSchema>({
...
@@ -14,7 +14,12 @@ const crudSchemas = reactive<VxeCrudSchema>({
title
:
'流程分类'
,
title
:
'流程分类'
,
field
:
'category'
,
field
:
'category'
,
dictType
:
DICT_TYPE
.
BPM_MODEL_CATEGORY
,
dictType
:
DICT_TYPE
.
BPM_MODEL_CATEGORY
,
dictClass
:
'number'
dictClass
:
'number'
,
table
:
{
slots
:
{
default
:
'category_default'
}
}
},
},
{
{
title
:
'流程版本'
,
title
:
'流程版本'
,
...
...
src/views/system/dept/dept.data.ts
View file @
2d3227c5
...
@@ -6,7 +6,15 @@ const { t } = useI18n() // 国际化
...
@@ -6,7 +6,15 @@ const { t } = useI18n() // 国际化
export
const
rules
=
reactive
({
export
const
rules
=
reactive
({
name
:
[
required
],
name
:
[
required
],
sort
:
[
required
],
sort
:
[
required
],
email
:
[
required
],
// email: [required],
email
:
[
{
required
:
true
,
message
:
t
(
'profile.rules.mail'
),
trigger
:
'blur'
},
{
type
:
'email'
,
message
:
t
(
'profile.rules.truemail'
),
trigger
:
[
'blur'
,
'change'
]
}
],
phone
:
[
phone
:
[
{
{
len
:
11
,
len
:
11
,
...
...
src/views/system/mail/account/account.data.ts
View file @
2d3227c5
import
type
{
VxeCrudSchema
}
from
'@/hooks/web/useVxeCrudSchemas'
import
type
{
VxeCrudSchema
}
from
'@/hooks/web/useVxeCrudSchemas'
const
{
t
}
=
useI18n
()
// 国际化
// 表单校验
// 表单校验
export
const
rules
=
reactive
({
export
const
rules
=
reactive
({
mail
:
[
required
],
// mail: [required],
mail
:
[
{
required
:
true
,
message
:
t
(
'profile.rules.mail'
),
trigger
:
'blur'
},
{
type
:
'email'
,
message
:
t
(
'profile.rules.truemail'
),
trigger
:
[
'blur'
,
'change'
]
}
],
username
:
[
required
],
username
:
[
required
],
password
:
[
required
],
password
:
[
required
],
host
:
[
required
],
host
:
[
required
],
...
...
src/views/system/role/role.data.ts
View file @
2d3227c5
...
@@ -9,13 +9,20 @@ export const rules = reactive({
...
@@ -9,13 +9,20 @@ export const rules = reactive({
})
})
// CrudSchema
// CrudSchema
const
crudSchemas
=
reactive
<
VxeCrudSchema
>
({
const
crudSchemas
=
reactive
<
VxeCrudSchema
>
({
primaryKey
:
'id'
,
//
primaryKey: 'id',
primaryTitle
:
'角色编号'
,
//
primaryTitle: '角色编号',
primaryType
:
'seq'
,
//
primaryType: 'seq',
action
:
true
,
action
:
true
,
actionWidth
:
'400px'
,
actionWidth
:
'400px'
,
columns
:
[
columns
:
[
{
{
title
:
'角色编号'
,
field
:
'id'
,
table
:
{
width
:
200
}
},
{
title
:
'角色名称'
,
title
:
'角色名称'
,
field
:
'name'
,
field
:
'name'
,
isSearch
:
true
isSearch
:
true
...
...
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