Commit d7186fe4 authored by 李苏's avatar 李苏 💬

库位看板调整

parent f5507dc5
<template> <template>
<DefaultDialog :appendToBody='false' :app='app'> <DefaultDialog :appendToBody='false' :app='app'>
<div slot="form" class="min_full" style="height: 60vh;"> <div slot="form" class="min_full" style="height: 60vh;">
<div id='infoCar' ref="infoCar" class="infoCar"> <div ref="infoBox" class="infoCar">
</div> </div>
<svgComponent st ref="svgComponent" /> <svgComponent st ref="svgComponent" />
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
}, },
mounted() { mounted() {
this.$nextTick(()=>{ this.$nextTick(()=>{
var infoBox = this.$refs.infoCar; var infoBox = this.$refs.infoBox;
console.log(this.$refs.svgComponent) console.log(this.$refs.svgComponent)
$(this.$refs.svgComponent.$el).find("[TAGID]").attr("fill", 'red').each((index, element)=> { $(this.$refs.svgComponent.$el).find("[TAGID]").attr("fill", 'red').each((index, element)=> {
element.addEventListener('mouseover', function(event) { element.addEventListener('mouseover', function(event) {
...@@ -56,10 +56,6 @@ ...@@ -56,10 +56,6 @@
// 隐藏信息框 // 隐藏信息框
infoBox.style.display = 'none'; infoBox.style.display = 'none';
}); });
element.addEventListener('click', (event)=>{
// 隐藏信息框
this.showDialog=true
});
}); });
}) })
}, },
......
<template> <template>
<div id='lxylkwkb01' class="min_full dbAllBody "> <div ref='lxylkwkb01' class="min_full dbAllBody ">
<Dialog :svgComponent='svgComponent' :app='this' v-if="showDialog" /> <Dialog :svgComponent='svgComponent' :app='this' v-if="showDialog" />
<!-- 绝对定位展示框--> <!-- 绝对定位展示框-->
<div id='infoCar' class="infoCar"> <div ref="infoBox" class="infoCar">
</div> </div>
<!-- 日期内容--> <!-- 日期内容-->
<span class='kbtime'>{{newTime}}</span> <span class='kbtime'>{{newTime}}</span>
...@@ -681,11 +681,11 @@ ...@@ -681,11 +681,11 @@
this.getzbt() this.getzbt()
$('#lxylkwkb01').dblclick(() => { $(this.$refs.lxylkwkb01).dblclick(() => {
fullScreen(document.getElementById('lxylkwkb01')); fullScreen(this.$refs.lxylkwkb01);
}) })
/* 改变触摸事件*/ /* 改变触摸事件*/
var infoBox = document.getElementById('infoCar'); var infoBox = this.$refs.infoBox
$(this.$refs.svg).find("[TAGID]").attr("fill", 'red').each((index, element) => { $(this.$refs.svg).find("[TAGID]").attr("fill", 'red').each((index, element) => {
element.addEventListener('mouseover', function(event) { element.addEventListener('mouseover', function(event) {
...@@ -716,6 +716,7 @@ ...@@ -716,6 +716,7 @@
if( hjsvg[$(element).attr('HJ')]){ if( hjsvg[$(element).attr('HJ')]){
this.svgComponent = hjsvg[$(element).attr('HJ')] this.svgComponent = hjsvg[$(element).attr('HJ')]
// 隐藏信息框 // 隐藏信息框
// this.DialogTitle= $(element).attr('TAGID')+'货架详情'
this.showDialog = true this.showDialog = true
}else{ }else{
this.$warning('暂未配置货架点位') this.$warning('暂未配置货架点位')
......
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