Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
639bfc19
Commit
639bfc19
authored
Sep 04, 2022
by
huhaiqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复agent
parent
6e3467db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
seaProcess.vue
src/views/ecw/box/shippingSea/seaProcess.vue
+10
-5
No files found.
src/views/ecw/box/shippingSea/seaProcess.vue
View file @
639bfc19
...
...
@@ -2,16 +2,16 @@
<div
class=
"app-seaProcess"
>
<!-- 海运流程图 -->
<el-scrollbar
:vertical=
"true"
viewClass=
"shipping-chart"
>
<div
v-for=
"(nodes,index) in
seaBase
Data"
:key=
"index"
class=
"chart-nodes"
>
<div
v-for=
"(nodes,index) in
process
Data"
:key=
"index"
class=
"chart-nodes"
>
<div
class=
"node-area"
>
<div
v-for=
"node in nodes"
:key=
"node.title"
@
click=
"nodeClick(index, node)"
class=
"node-div"
>
<div
v-show=
"isShowAgent(node.type)"
>
<div>
<img
:src=
"getImgSrc(node)"
alt=
""
>
<p>
{{
node
.
title
}}
</p>
</div>
</div>
</div>
<div
class=
"arrow-area"
v-if=
"index !== (
seaBase
Data.length-1)"
>
<div
class=
"arrow-area"
v-if=
"index !== (
process
Data.length-1)"
>
<img
src=
"@/assets/images/shipping/jt-start.png"
alt=
""
v-if=
"index >= currIndex"
>
<img
src=
"@/assets/images/shipping/jt-end.png"
alt=
""
v-if=
"index
<
currIndex
"
>
</div>
...
...
@@ -90,10 +90,12 @@ export default {
currIndex
:
0
,
// 当前节点
currNode
:
{},
// 数据
processData
:
this
.
seaBaseData
,
};
},
created
()
{},
computed
:
{
/*
computed: {
isShowAgent() {
return (type) => {
if (type === "agent") {
...
...
@@ -106,7 +108,7 @@ export default {
return true;
};
},
},
},
*/
methods
:
{
/** 关闭弹窗 */
closeDialog
(
type
)
{
...
...
@@ -176,6 +178,7 @@ export default {
watch
:
{
/* 监听发货对象 */
shipmentObj
(
val
)
{
let
newNodes
=
[];
// 迭代每个节点
for
(
let
i
=
0
;
i
<
this
.
seaBaseData
.
length
;
i
++
)
{
const
nodes
=
this
.
seaBaseData
[
i
];
...
...
@@ -218,7 +221,9 @@ export default {
// 加1表示为已完成步骤后一步
this
.
currIndex
=
i
+
1
;
}
newNodes
.
push
(
nodes
);
}
this
.
processData
=
newNodes
;
},
},
};
...
...
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