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
735837f0
authored
Nov 13, 2024
by
GoldenZqqq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 优化审批详情页流程状态svg图标命名
parent
2bca7bb4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
12 deletions
+11
-12
src/assets/svgs/bpm/approve.svg
+0
-0
src/assets/svgs/bpm/cancel.svg
+0
-0
src/assets/svgs/bpm/reject.svg
+0
-0
src/assets/svgs/bpm/running.svg
+0
-0
src/views/bpm/processInstance/detail/index.vue
+11
-12
No files found.
src/assets/svgs/bpm/a
udit2
.svg
→
src/assets/svgs/bpm/a
pprove
.svg
View file @
735837f0
File moved
src/assets/svgs/bpm/
audit4
.svg
→
src/assets/svgs/bpm/
cancel
.svg
View file @
735837f0
File moved
src/assets/svgs/bpm/
audit3
.svg
→
src/assets/svgs/bpm/
reject
.svg
View file @
735837f0
File moved
src/assets/svgs/bpm/
audit1
.svg
→
src/assets/svgs/bpm/
running
.svg
View file @
735837f0
File moved
src/views/bpm/processInstance/detail/index.vue
View file @
735837f0
...
...
@@ -5,7 +5,7 @@
<img
class=
"position-absolute right-20px"
width=
"150"
:src=
"auditIcons[processInstance.status]"
:src=
"auditIcons
Map
[processInstance.status]"
alt=
""
/>
<div
class=
"text-#878c93 h-15px"
>
编号:
{{
id
}}
</div>
...
...
@@ -137,11 +137,11 @@ import ProcessInstanceTaskList from './ProcessInstanceTaskList.vue'
import
ProcessInstanceOperationButton
from
'./ProcessInstanceOperationButton.vue'
import
ProcessInstanceTimeline
from
'./ProcessInstanceTimeline.vue'
import
{
FieldPermissionType
}
from
'@/components/SimpleProcessDesignerV2/src/consts'
// TODO 代码优化,换个明确的 icon 名字
import
audit1
from
'@/assets/svgs/bpm/audit1
.svg'
import
a
udit2
from
'@/assets/svgs/bpm/audit2
.svg'
import
audit3
from
'@/assets/svgs/bpm/audit3
.svg'
import
audit4
from
'@/assets/svgs/bpm/audit4
.svg'
import
{
TaskStatusEnum
}
from
'@/api/bpm/task'
import
runningSvg
from
'@/assets/svgs/bpm/running
.svg'
import
a
pproveSvg
from
'@/assets/svgs/bpm/approve
.svg'
import
rejectSvg
from
'@/assets/svgs/bpm/reject
.svg'
import
cancelSvg
from
'@/assets/svgs/bpm/cancel
.svg'
defineOptions
({
name
:
'BpmProcessInstanceDetail'
})
const
props
=
defineProps
<
{
...
...
@@ -155,11 +155,11 @@ const processInstance = ref<any>({}) // 流程实例
const
processDefinition
=
ref
<
any
>
({})
// 流程定义
const
processModelView
=
ref
<
any
>
({})
// 流程模型视图
const
operationButtonRef
=
ref
()
// 操作按钮组件 ref
const
auditIcons
=
{
1
:
audit1
,
2
:
audit2
,
3
:
audit3
,
4
:
audit4
const
auditIcons
Map
=
{
[
TaskStatusEnum
.
RUNNING
]:
runningSvg
,
[
TaskStatusEnum
.
APPROVE
]:
approveSvg
,
[
TaskStatusEnum
.
REJECT
]:
rejectSvg
,
[
TaskStatusEnum
.
CANCEL
]:
cancelSvg
}
// ========== 申请信息 ==========
...
...
@@ -242,7 +242,6 @@ const getApprovalDetail = async () => {
/** 获取流程模型视图*/
const
getProcessModelView
=
async
()
=>
{
if
(
BpmModelType
.
BPMN
===
processDefinition
.
value
?.
modelType
)
{
// 重置,解决 BPMN 流程图刷新不会重新渲染问题
processModelView
.
value
=
{
...
...
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