Commit 7d2dfbbb by li_hongchao

逻辑分库工作队列和队列名称item的事件监听扩大范围

parent 935a4325
......@@ -125,10 +125,11 @@
<div v-for="(item,gindex) in getDlmcArr()"
:class="{'dui-lie-ming-cheng':true,'dui-lie-ming-cheng-bx':isBxCxdl(item.type)}"
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)"
class="el-icon-circle-plus icon" style="color: #055fe7;"
@click="updateGzdl(item,gindex,true)" />
@click.stop="updateGzdl(item,gindex,true)" />
<div :key="item.type">
{{ item.name || '-'}}
<div v-if="item.type === CXDL_TYPE">
......@@ -136,7 +137,7 @@
<span v-for="(child,cindex) in getDlmcCxdlArr()">
<span class="tag"
:key="child.type"
@click="updateCxdl(item,gindex,child,cindex,true)">
@click.stop="updateCxdl(item,gindex,child,cindex,true)">
{{ child.name}}
</span>
</span>
......@@ -165,7 +166,8 @@
<div :key="item.type"
class="itemBox"
:style="{marginLeft: gindex===0?'16px':'0px'}">
:style="{marginLeft: gindex===0?'16px':'0px'}"
@click.stop="updateGzdl(item,gindex)">
<div>
<img class="dlIndexBg"
......@@ -187,7 +189,7 @@
'daocha':child.type ===5,
'chuancha':child.type ===4,
'zhengcha':child.type ===6}"
@click="updateCxdl(item,gindex,child,cindex)">
@click.stop="updateCxdl(item,gindex,child,cindex)">
{{ child.name }}
</span>
</span>
......@@ -196,7 +198,7 @@
</div>
<i v-if="gindex !== 0" class="el-icon-remove iconChuanXing"
@click="updateGzdl(item,gindex)" />
@click.stop="updateGzdl(item,gindex)" />
</div>
......@@ -218,7 +220,8 @@
<span :class="{'mid-line':true,'mid-line-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"
@click="updateGzdl(item,gindex)" />
<div :class="{dlNoSelect: isFirstItem(gindex)}">
......@@ -424,6 +427,7 @@ export default {
this.isShowGzlView = !this.isShowGzlView
},
updateGzdl(clickItem, index, isAdd = false) {// 处理队列添加、取消逻辑
if (this.isBxCxdl(clickItem.type)) return
this.getCurGzl().updateGzdl(clickItem, index, isAdd)
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment