瀏覽代碼

修改弹窗引起的点击循环bug

yuhan 1 年之前
父節點
當前提交
cd304c559b

+ 2 - 1
src/views/modules_guAn/visualization/index.vue

@@ -95,7 +95,7 @@
           </a-row>
         </a-form>
       </div>
-      <yuzhi-curve v-if="title==='预制曲线'" :data="yuzhiData" :marks="yuzhiMarkData" ref="yuzhiCurve"></yuzhi-curve>
+      <yuzhi-curve v-if="title==='预制曲线'" :data="yuzhiData" :marks="yuzhiMarkData" ref="yuzhiCurveM"></yuzhi-curve>
       <real-time-curve v-if="title==='实时曲线'" :data="curveData"></real-time-curve>
       <full-curve-model v-if="title==='全程曲线'" :data="curveModelData" ref="fullCurveModel"></full-curve-model>
       <template slot="footer">
@@ -278,6 +278,7 @@ export default {
     // 点击循环时触发
     handleXunhuan(choose){
       this.$refs.yuzhiCurve.chooseXunhuan.circname = choose
+      // this.$refs.yuzhiCurveM.chooseXunhuan.circname = choose
     },
     // 弹窗
     showModal(title){

+ 3 - 2
src/views/modules_guAn/visualization/modules/YuzhiCurve.vue

@@ -97,6 +97,7 @@ export default {
     // },
     'chooseXunhuan.circname': {
       handler(newValue, oldValue){
+        // console.log('预制曲线循环', newValue, oldValue)
         if(newValue){
           this.changeXunhuan(newValue)
         }
@@ -445,7 +446,7 @@ export default {
     // 点击循环改变高亮
     changeXunhuan(data){
       var value = this.data.find(item => item.circname === data)
-      console.log(value)
+      // console.log(value)
       if(value){
         this.chooseXunhuan.circname = value.circname
         this.chooseXunhuan.begintime = value.begintime
@@ -455,7 +456,7 @@ export default {
         this.chooseXunhuan.begintime = ''
         this.chooseXunhuan.endtime = ''
       }
-      console.log(this.chooseXunhuan)
+      // console.log(this.chooseXunhuan)
       var _this = this
       this.uEcharts.setOption({
         series: [