Commit 400f0489 by li_hongchao

1、逻辑分库,人员和案件列表切换后,显示更多数据用户组/用户有的时候不显示

2、显示数据用户组/用户显示后,鼠标移开页面不消失问题
3、案件逻辑分库新增时,报未知异常问题排查
parent 6d688c61
......@@ -38,7 +38,6 @@
</div>
</div>
<el-tooltip
:ref="'ryTooltipP'+scope.row.logicId"
class="item"
......@@ -50,7 +49,8 @@
v-if="scope.row.groups && scope.row.groups.length > 4">
<span style="margin-left: 5px"
@mouseenter.stop="showMoreYhView(scope.$index)">...</span>
@mouseenter.stop="showMoreYhView(scope.$index)"
@mouseout.stop="showMoreYhView(scope.$index,true)">...</span>
<div slot="content" class="tooTipBtn" @mouseover="showMoreYhView(scope.$index)"
@mouseleave="hideMoreYhView()">
......@@ -215,13 +215,14 @@ export default {
this.width6 = (this.width6 * w2) / w1
// this.initTestData()
this.getList()
// this.getList()
},
mounted() {
let _that = this
document.addEventListener('click', function (e) {
_that.hideMoreYhView(false)
})
this.getList()
},
methods: {
moveChildView() {
......@@ -231,7 +232,8 @@ export default {
this.isInChildView = false
this.hideMoreYhView()
},
showMoreYhView(index) {
showMoreYhView(index, openTimeOut = false) {
var _that = this
this.isInParentView = true
// logger.info('tooltipParentEnter', 'tooltipParentEnter-' + index)
if (this.curMoreYhViewIndex !== index && this.curMoreYhViewIndex >= 0) {
......@@ -239,7 +241,20 @@ export default {
}
this.tableDate[index].disabled = true
this.curMoreYhViewIndex = index
// logger.info('showMoreYhView-tableDate', this.tableDate)
if (openTimeOut) {
this.isInParentView = false
setTimeout(function () {
if (_that.isInChildView || _that.isInParentView) {
return
}
if (_that.curMoreYhViewIndex >= 0) {
_that.tableDate[_that.curMoreYhViewIndex].disabled = false
}
this.curMoreYhViewIndex = -1
_that.isInParentView = false
_that.isInChildView = false
}, 200)
}
},
hideMoreYhView(isDelay = true) {
let _that = this
......
......@@ -30,14 +30,14 @@
<!-- 人员逻辑库 -->
<ry-xtljfk-view
ref="ryXtfk"
v-show="isPerson"
v-if="isPerson"
@openBj="openBj"
@openGzl="openGzl"
@openSjgl="openSjgl" />
<!-- 案件逻辑库 -->
<aj-xtljfk-view
ref="ajXtfk"
v-show="!isPerson"
v-if="!isPerson"
@openBj="openBj"
@openGzl="openGzl"
@openSjgl="openSjgl" />
......@@ -85,11 +85,11 @@ export default {
methods: {
toggleView(state) {// true: 显示人员逻辑分库 false :显示案件逻辑分库
this.isPerson = state
if (this.isPerson) {
this.$refs.ryXtfk.loadData()
} else {
this.$refs.ajXtfk.loadData()
}
// if (this.isPerson) {
// this.$refs.ryXtfk.loadData()
// } else {
// this.$refs.ajXtfk.loadData()
// }
},
addFk() { // 新增分库
this.isAddFk = true
......
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