本文介绍了vue树形结构获取键值的方法示例,分享给大家,具体如下:
把键值文件放入
引入控件
404_10@
点击搜索,打开弹窗
名称" placeholder="请选择机构" prop="orgName">
<el-input readonly type="text" v-model="form.orgName">
<el-button slot="append" icon="el-icon-search" @click="openDepartDialog()">
@H_404_10@打开控件事件,关闭控件事件
this.dialogDepartVisible = true
},closeDepartDialog(depart) {
console.log(depart)
this.form.orgName = depart.label
this.form.code = depart.id
this.form.departId = depart.id
this.dialogDepartVisible = false
},@H_404_10@
关闭弹窗按钮