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
eed7bb2e
authored
Mar 24, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BPM:流程模型的 icon 维护
parent
cc14963b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
src/views/bpm/model/ModelForm.vue
+7
-1
src/views/bpm/model/index.vue
+5
-0
src/views/bpm/processInstance/create/index.vue
+1
-5
No files found.
src/views/bpm/model/ModelForm.vue
View file @
eed7bb2e
...
...
@@ -50,6 +50,9 @@
/>
</el-select>
</el-form-item>
<el-form-item
v-if=
"formData.id"
label=
"流程图标"
prop=
"icon"
>
<UploadImg
v-model=
"formData.icon"
:limit=
"1"
height=
"128px"
width=
"128px"
/>
</el-form-item>
<el-form-item
label=
"流程描述"
prop=
"description"
>
<el-input
v-model=
"formData.description"
clearable
type=
"textarea"
/>
</el-form-item>
...
...
@@ -141,15 +144,17 @@ const formData = ref({
formType
:
10
,
name
:
''
,
category
:
undefined
,
icon
:
undefined
,
description
:
''
,
formId
:
''
,
formCustomCreatePath
:
''
,
formCustomViewPath
:
''
})
const
formRules
=
reactive
({
category
:
[{
required
:
true
,
message
:
'参数分类不能为空'
,
trigger
:
'blur'
}],
name
:
[{
required
:
true
,
message
:
'参数名称不能为空'
,
trigger
:
'blur'
}],
key
:
[{
required
:
true
,
message
:
'参数键名不能为空'
,
trigger
:
'blur'
}],
category
:
[{
required
:
true
,
message
:
'参数分类不能为空'
,
trigger
:
'blur'
}],
icon
:
[{
required
:
true
,
message
:
'参数图标不能为空'
,
trigger
:
'blur'
}],
value
:
[{
required
:
true
,
message
:
'参数键值不能为空'
,
trigger
:
'blur'
}],
visible
:
[{
required
:
true
,
message
:
'是否可见不能为空'
,
trigger
:
'blur'
}]
})
...
...
@@ -223,6 +228,7 @@ const resetForm = () => {
formType
:
10
,
name
:
''
,
category
:
undefined
,
icon
:
''
,
description
:
''
,
formId
:
''
,
formCustomCreatePath
:
''
,
...
...
src/views/bpm/model/index.vue
View file @
eed7bb2e
...
...
@@ -72,6 +72,11 @@
</el-button>
</
template
>
</el-table-column>
<el-table-column
label=
"流程图标"
align=
"center"
prop=
"icon"
width=
"100"
>
<
template
#
default=
"scope"
>
<el-image
:src=
"scope.row.icon"
class=
"w-32px h-32px"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"流程分类"
align=
"center"
prop=
"categoryName"
width=
"100"
/>
<el-table-column
label=
"表单信息"
align=
"center"
prop=
"formType"
width=
"200"
>
<
template
#
default=
"scope"
>
...
...
src/views/bpm/processInstance/create/index.vue
View file @
eed7bb2e
...
...
@@ -23,11 +23,7 @@
>
<template
#
default
>
<div
class=
"flex"
>
<!-- TODO 芋艿:流程图,增加 icon -->
<el-image
src=
"http://test.yudao.iocoder.cn/96c787a2ce88bf6d0ce3cd8b6cf5314e80e7703cd41bf4af8cd2e2909dbd6b6d.png"
class=
"w-32px h-32px"
/>
<el-image
:src=
"definition.icon"
class=
"w-32px h-32px"
/>
<el-text
class=
"!ml-10px"
size=
"large"
>
{{
definition
.
name
}}
</el-text>
</div>
</
template
>
...
...
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