Browse Source

修改弹窗

wangqin
Joe 1 year ago
parent
commit
ca13bb0662
  1. 3
      ruoyi-ui/src/views/JiHeExpressway/components/Dialog/index.vue
  2. 6
      ruoyi-ui/src/views/JiHeExpressway/components/Teleport.vue
  3. 4
      ruoyi-ui/src/views/JiHeExpressway/components/TimeLine/TimeLine1/index.vue

3
ruoyi-ui/src/views/JiHeExpressway/components/Dialog/index.vue

@ -80,6 +80,9 @@ export default {
} }
} }
}, },
beforeDestroy() {
this.modelVisible = false;
},
} }
</script> </script>

6
ruoyi-ui/src/views/JiHeExpressway/components/Teleport.vue

@ -18,12 +18,10 @@ export default {
this.queryParentDom = document.querySelector(this.to); this.queryParentDom = document.querySelector(this.to);
if (!this.queryParentDom) return; if (!this.queryParentDom) return;
this.queryParentDom.appendChild(this.addDom = this.$el); this.queryParentDom.appendChild(this.$el);
}, },
beforeDestroy() { beforeDestroy() {
if (!this.queryParentDom || !this.queryParentDom.contains(this.addDom)) return; this.$el?.remove?.()
this.queryParentDom.removeChild(this.addDom);
}, },
} }
</script> </script>

4
ruoyi-ui/src/views/JiHeExpressway/components/TimeLine/TimeLine1/index.vue

@ -141,10 +141,6 @@ export default {
immediate: true immediate: true
} }
}, },
mounted() {
// console.log()
console.log(this.$refs.nodeRefs[0].getBoundingClientRect())
},
methods: { methods: {
getBorderImageStyle(item) { getBorderImageStyle(item) {
const linearColor = item.isActive ? (this.lineActiveColor || `${this.activeColor}, ${this.activeColor}`) : (this.lineNormalColor || `${this.normalColor}, ${this.normalColor}`) const linearColor = item.isActive ? (this.lineActiveColor || `${this.activeColor}, ${this.activeColor}`) : (this.lineNormalColor || `${this.normalColor}, ${this.normalColor}`)

Loading…
Cancel
Save