Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
482 views
in Technique[技术] by (71.8m points)

Element如何实现点击树形控件子结点时,selector选择器自动与其同步???

12.png

上面是我登录界面时初始化的数据,selector也是初始化设置为GSL2,
当我点击CORS4_LD2时,如何才能让selector同时显示CORS4_LD2,有大佬能指点一下嘛??????????

当我点击selector下选框时,
13.png

Tree控件的点击函数如下:

// item是当前树节点对应的数据(站点信息)
handleTreeClicked(item, node) {
  // 点击父站点,不作处理
  if (item.children && item.children.length > 0) {
    return
  }

  if (this.currentTab === 'tab1') {
    this.loadingTab1Data(item.id)
  } else if (this.currentTab === 'tab2') {
    this.loadingTab2Data(item.id)
  }
},### 问题描述

问题出现的环境背景及自己尝试过哪些方法

相关代码

粘贴代码文本(请勿用截图)

你期待的结果是什么?实际看到的错误信息又是什么?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

点击数节点的时候取其值,赋值给select选择器


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...