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
4bddfbf9
authored
Aug 22, 2024
by
GoldenZqqq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 审批页面头部添加编号、流程名、发起人等信息展示
parent
d22a2933
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
src/views/bpm/processInstance/detail/index_new.vue
+22
-8
No files found.
src/views/bpm/processInstance/detail/index_new.vue
View file @
4bddfbf9
<
template
>
<
template
>
<ContentWrap>
<ContentWrap
:bodyStyle=
"
{ padding: '10px 20px' }">
<div
class=
"text-#878c93"
>
编号:
{{
id
}}
</div>
<el-divider
class=
"!my-8px"
/>
<div
class=
"flex items-center gap-5 mb-10px"
>
<div
class=
"text-26px font-bold mb-5px"
>
{{
processInstance
.
name
}}
</div>
<dict-tag
:type=
"DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS"
:value=
"processInstance.status"
/>
</div>
<div
class=
"flex items-center gap-5 mb-10px text-13px"
>
<div
class=
"bg-gray-100 h-35px rounded-3xl flex items-center p-8px gap-2"
>
<img
class=
"rounded-full h-28px"
src=
"@/assets/imgs/avatar.jpg"
alt=
""
/>
{{
processInstance
?.
startUser
?.
nickname
}}
</div>
<div
class=
"text-#878c93"
>
{{
dayjs
(
processInstance
.
startTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}}
提交
</div>
</div>
<el-tabs>
<el-tabs>
<!-- 表单信息 -->
<!-- 表单信息 -->
<el-tab-pane
label=
"表单信息"
>
<el-tab-pane
label=
"表单信息"
>
...
@@ -10,7 +27,6 @@
...
@@ -10,7 +27,6 @@
v-loading=
"processInstanceLoading"
v-loading=
"processInstanceLoading"
class=
"form-box border-1 border-solid border-[#ccc] p-20px flex flex-col mb-50px"
class=
"form-box border-1 border-solid border-[#ccc] p-20px flex flex-col mb-50px"
>
>
<div
class=
"mx-auto mb-10px text-22px font-bold"
>
{{
processInstance
.
name
}}
</div>
<!-- 情况一:流程表单 -->
<!-- 情况一:流程表单 -->
<el-col
<el-col
v-if=
"processInstance?.processDefinition?.formType === 10"
v-if=
"processInstance?.processDefinition?.formType === 10"
...
@@ -47,17 +63,14 @@
...
@@ -47,17 +63,14 @@
:rules=
"auditRule"
:rules=
"auditRule"
label-width=
"100px"
label-width=
"100px"
>
>
<el-form-item
v-if=
"processInstance && processInstance.name"
label=
"流程名"
>
{{
processInstance
.
name
}}
</el-form-item>
<el-form-item
<el-form-item
v-if=
"processInstance && processInstance.startUser"
v-if=
"processInstance && processInstance.startUser"
label=
"流程发起人"
label=
"流程发起人"
>
>
{{
processInstance
?.
startUser
.
nickname
}}
{{
processInstance
?.
startUser
.
nickname
}}
<el-tag
size=
"small"
type=
"info"
>
{{
<el-tag
size=
"small"
type=
"info"
class=
"ml-8px"
>
processInstance
?.
startUser
.
deptName
{{
processInstance
?.
startUser
.
deptName
}}
}}
</el-tag>
</el-tag>
</el-form-item>
</el-form-item>
<el-card
v-if=
"runningTasks[index].formId > 0"
class=
"mb-15px !-mt-10px"
>
<el-card
v-if=
"runningTasks[index].formId > 0"
class=
"mb-15px !-mt-10px"
>
<template
#
header
>
<template
#
header
>
...
@@ -196,6 +209,7 @@
...
@@ -196,6 +209,7 @@
</ContentWrap>
</ContentWrap>
</template>
</template>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
dayjs
from
'dayjs'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
useUserStore
}
from
'@/store/modules/user'
import
{
useUserStore
}
from
'@/store/modules/user'
import
{
setConfAndFields2
}
from
'@/utils/formCreate'
import
{
setConfAndFields2
}
from
'@/utils/formCreate'
...
...
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