明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jt_front
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
jt_front
Commits
5cf73d4f
Commit
5cf73d4f
authored
May 14, 2026
by
zhanghan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理简单流程和复杂流程的提交
parent
662dde01
Pipeline
#111335
passed with stage
in 20 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
11 deletions
+18
-11
ProcessFlowChart.vue
src/components/common/ProcessFlowChart.vue
+3
-3
routerBack.vue
src/components/common/routerBack.vue
+8
-2
user.js
src/stores/user.js
+7
-6
No files found.
src/components/common/ProcessFlowChart.vue
View file @
5cf73d4f
...
@@ -101,11 +101,11 @@ const complexBiIndices = new Set([1, 3]);
...
@@ -101,11 +101,11 @@ const complexBiIndices = new Set([1, 3]);
const
simpleNodes
=
[
const
simpleNodes
=
[
{
label
:
"开始"
,
type
:
"terminal"
},
{
label
:
"开始"
,
type
:
"terminal"
},
{
label
:
"投管部员工发起"
},
{
label
:
"投管部员工发起"
},
{
label
:
"投管部正副职审核"
,
annotation
:
"提交/退回"
,
returnTo
:
1
},
{
label
:
"投管部正副职审核"
},
{
label
:
"结束"
,
type
:
"terminal"
},
{
label
:
"结束"
,
type
:
"terminal"
},
];
];
const
simpleBiIndices
=
new
Set
();
const
simpleBiIndices
=
new
Set
(
[
1
]
);
const
complexLevelMap
=
{
const
complexLevelMap
=
{
1
:
2
,
1
:
2
,
...
@@ -347,7 +347,7 @@ watch(
...
@@ -347,7 +347,7 @@ watch(
.bi-arrow
{
.bi-arrow
{
position
:
absolute
;
position
:
absolute
;
left
:
calc
(
50%
+
-
4
px
);
left
:
calc
(
50%
+
-
5
px
);
top
:
0
;
top
:
0
;
bottom
:
0
;
bottom
:
0
;
display
:
flex
;
display
:
flex
;
...
...
src/components/common/routerBack.vue
View file @
5cf73d4f
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
</div>
</div>
<div
class=
"process-right"
>
<div
class=
"process-right"
>
<ProcessFlowChart
<ProcessFlowChart
:flow-type=
"
f
lowType"
:flow-type=
"
effectiveF
lowType"
:current-state=
"currentState"
:current-state=
"currentState"
/>
/>
</div>
</div>
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
</div>
</div>
</template>
</template>
<
script
setup
>
<
script
setup
>
import
{
ref
}
from
"vue"
;
import
{
ref
,
computed
}
from
"vue"
;
import
{
useRouter
,
useRoute
}
from
"vue-router"
;
import
{
useRouter
,
useRoute
}
from
"vue-router"
;
import
ProcessFlowChart
from
"./ProcessFlowChart.vue"
;
import
ProcessFlowChart
from
"./ProcessFlowChart.vue"
;
...
@@ -153,6 +153,12 @@ const emit = defineEmits(["save", "back", "export", "process"]);
...
@@ -153,6 +153,12 @@ const emit = defineEmits(["save", "back", "export", "process"]);
const
route
=
useRoute
();
const
route
=
useRoute
();
const
router
=
useRouter
();
const
router
=
useRouter
();
const
effectiveFlowType
=
computed
(()
=>
{
const
hasInvestmentManagement
=
props
.
processData
.
some
((
record
)
=>
record
.
creator
?.
departs
?.
some
((
dept
)
=>
dept
.
parentIds
?.
includes
(
"41"
)),
);
return
hasInvestmentManagement
?
"simple"
:
"complex"
;
});
const
processDialogVisible
=
ref
(
false
);
const
processDialogVisible
=
ref
(
false
);
...
...
src/stores/user.js
View file @
5cf73d4f
import
{
defineStore
}
from
"pinia"
;
import
{
defineStore
}
from
"pinia"
;
export
const
useUserStore
=
defineStore
(
'user'
,
{
export
const
useUserStore
=
defineStore
(
"user"
,
{
state
:
()
=>
({
state
:
()
=>
({
userInfo
:
null
,
userInfo
:
null
,
authToken
:
""
authToken
:
""
,
}),
}),
actions
:
{
actions
:
{
setUseInfo
(
data
)
{
setUseInfo
(
data
)
{
this
.
userInfo
=
data
;
this
.
userInfo
=
data
;
this
.
authToken
=
data
.
token
;
this
.
authToken
=
data
.
token
;
sessionStorage
.
setItem
(
"authToken"
,
data
.
token
);
sessionStorage
.
setItem
(
"authToken"
,
data
.
token
);
sessionStorage
.
setItem
(
"userInfo"
,
JSON
.
stringify
(
data
));
sessionStorage
.
setItem
(
"userInfo"
,
JSON
.
stringify
(
data
));
},
},
clearUserInfo
()
{
clearUserInfo
()
{
this
.
userInfo
=
null
;
this
.
userInfo
=
null
;
this
.
authToken
=
""
;
this
.
authToken
=
""
;
sessionStorage
.
removeItem
(
"authToken"
);
sessionStorage
.
removeItem
(
"authToken"
);
sessionStorage
.
removeItem
(
"userInfo"
);
sessionStorage
.
removeItem
(
"userInfo"
);
}
},
}
},
})
});
\ No newline at end of file
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