zoukankan      html  css  js  c++  java
  • vue树形结构获取键值

    把键值文件放入

    引入控件

      import { getTypeValue } from '@/api/dict/dictValue/index';
    

      

    点击搜索,打开弹窗

            <el-form-item label="机构名称" placeholder="请选择机构" prop="orgName">
              <el-input readonly type="text" v-model="form.orgName">
                <el-button slot="append" icon="el-icon-search" @click="openDepartDialog()"></el-button>
              </el-input>
            </el-form-item>
    

      

     打开控件事件,关闭控件事件

          openDepartDialog() {
            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
          },
    

      

     

    关闭弹窗按钮

        <el-dialog title="选择机构" width="30%" :visible.sync="dialogDepartVisible">
          <depart-selector @closeDepartDialog="closeDepartDialog" ref="departSelector"></depart-selector>
          <span slot="footer" class="dialog-footer">
            <el-button class="filter-item"  style="margin-left: 10px;" @click="handlerAddDepart" type="primary" icon="edit">添加</el-button>
          </span>
        </el-dialog>
    

      

     

  • 相关阅读:
    staticmethod & classmethod
    stanford Python
    LD_LIBRARY_PATH
    Centos7.2 errors
    theano profile
    电梯开关量GPIO配置记录
    定时器配置 中断配置 GPIO
    电梯开发进度贴
    Makefile编写学习摘要
    数据挖掘聚类算法--Kmeans
  • 原文地址:https://www.cnblogs.com/tabCtrlShift/p/9041275.html
Copyright © 2011-2022 走看看