Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
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
常超
founder_vue
Commits
7d2dfbbb
Commit
7d2dfbbb
authored
Feb 07, 2022
by
li_hongchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
逻辑分库工作队列和队列名称item的事件监听扩大范围
parent
935a4325
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
src/views/xtfkgl/XtfkAndGzlView.vue
+11
-7
No files found.
src/views/xtfkgl/XtfkAndGzlView.vue
View file @
7d2dfbbb
...
@@ -125,10 +125,11 @@
...
@@ -125,10 +125,11 @@
<div
v-for=
"(item,gindex) in getDlmcArr()"
<div
v-for=
"(item,gindex) in getDlmcArr()"
:class=
"
{'dui-lie-ming-cheng':true,'dui-lie-ming-cheng-bx':isBxCxdl(item.type)}"
:class=
"
{'dui-lie-ming-cheng':true,'dui-lie-ming-cheng-bx':isBxCxdl(item.type)}"
v-show="getDlmcArr()
&&
getDlmcArr().length > 0"
v-show="getDlmcArr()
&&
getDlmcArr().length > 0"
:style="{marginLeft: gindex===0?'0px':'20px'}">
:style="{marginLeft: gindex===0?'0px':'20px'}"
@click.stop="updateGzdl(item,gindex,true)">
<i
v-if=
"!isBxCxdl(item.type)"
<i
v-if=
"!isBxCxdl(item.type)"
class=
"el-icon-circle-plus icon"
style=
"color: #055fe7;"
class=
"el-icon-circle-plus icon"
style=
"color: #055fe7;"
@
click=
"updateGzdl(item,gindex,true)"
/>
@
click
.
stop
=
"updateGzdl(item,gindex,true)"
/>
<div
:key=
"item.type"
>
<div
:key=
"item.type"
>
{{
item
.
name
||
'-'
}}
{{
item
.
name
||
'-'
}}
<div
v-if=
"item.type === CXDL_TYPE"
>
<div
v-if=
"item.type === CXDL_TYPE"
>
...
@@ -136,7 +137,7 @@
...
@@ -136,7 +137,7 @@
<span
v-for=
"(child,cindex) in getDlmcCxdlArr()"
>
<span
v-for=
"(child,cindex) in getDlmcCxdlArr()"
>
<span
class=
"tag"
<span
class=
"tag"
:key=
"child.type"
:key=
"child.type"
@
click=
"updateCxdl(item,gindex,child,cindex,true)"
>
@
click
.
stop
=
"updateCxdl(item,gindex,child,cindex,true)"
>
{{
child
.
name
}}
{{
child
.
name
}}
</span>
</span>
</span>
</span>
...
@@ -165,7 +166,8 @@
...
@@ -165,7 +166,8 @@
<div
:key=
"item.type"
<div
:key=
"item.type"
class=
"itemBox"
class=
"itemBox"
:style=
"
{marginLeft: gindex===0?'16px':'0px'}">
:style=
"
{marginLeft: gindex===0?'16px':'0px'}"
@click.stop="updateGzdl(item,gindex)">
<div>
<div>
<img
class=
"dlIndexBg"
<img
class=
"dlIndexBg"
...
@@ -187,7 +189,7 @@
...
@@ -187,7 +189,7 @@
'daocha':child.type ===5,
'daocha':child.type ===5,
'chuancha':child.type ===4,
'chuancha':child.type ===4,
'zhengcha':child.type ===6}"
'zhengcha':child.type ===6}"
@click="updateCxdl(item,gindex,child,cindex)">
@click
.stop
="updateCxdl(item,gindex,child,cindex)">
{{
child
.
name
}}
{{
child
.
name
}}
</span>
</span>
</span>
</span>
...
@@ -196,7 +198,7 @@
...
@@ -196,7 +198,7 @@
</div>
</div>
<i
v-if=
"gindex !== 0"
class=
"el-icon-remove iconChuanXing"
<i
v-if=
"gindex !== 0"
class=
"el-icon-remove iconChuanXing"
@
click=
"updateGzdl(item,gindex)"
/>
@
click
.
stop
=
"updateGzdl(item,gindex)"
/>
</div>
</div>
...
@@ -218,7 +220,8 @@
...
@@ -218,7 +220,8 @@
<span
:class=
"
{'mid-line':true,'mid-line-hide': getGzdlArr().length ===1}" />
<span
:class=
"
{'mid-line':true,'mid-line-hide': getGzdlArr().length ===1}" />
<span
:class=
"
{'mid-circle':true,'mid-circle-hide': getGzdlArr().length ===1}" />
<span
:class=
"
{'mid-circle':true,'mid-circle-hide': getGzdlArr().length ===1}" />
<div
class=
"gong-zuo-dui-lie-bingxing"
>
<div
class=
"gong-zuo-dui-lie-bingxing"
@
click
.
stop=
"updateGzdl(item,gindex)"
>
<i
v-if=
"gindex !== 0"
class=
"el-icon-remove icon"
<i
v-if=
"gindex !== 0"
class=
"el-icon-remove icon"
@
click=
"updateGzdl(item,gindex)"
/>
@
click=
"updateGzdl(item,gindex)"
/>
<div
:class=
"
{dlNoSelect: isFirstItem(gindex)}">
<div
:class=
"
{dlNoSelect: isFirstItem(gindex)}">
...
@@ -424,6 +427,7 @@ export default {
...
@@ -424,6 +427,7 @@ export default {
this
.
isShowGzlView
=
!
this
.
isShowGzlView
this
.
isShowGzlView
=
!
this
.
isShowGzlView
},
},
updateGzdl
(
clickItem
,
index
,
isAdd
=
false
)
{
// 处理队列添加、取消逻辑
updateGzdl
(
clickItem
,
index
,
isAdd
=
false
)
{
// 处理队列添加、取消逻辑
if
(
this
.
isBxCxdl
(
clickItem
.
type
))
return
this
.
getCurGzl
().
updateGzdl
(
clickItem
,
index
,
isAdd
)
this
.
getCurGzl
().
updateGzdl
(
clickItem
,
index
,
isAdd
)
},
},
...
...
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