Giter VIP home page Giter VIP logo

Comments (3)

levy9527 avatar levy9527 commented on September 17, 2024

dialog 里的表单是使用 form 配置的,而表单项的属性,是可以通过 el 配置的。也即

{
  type: 'select',
  el: {
    filterable: true
  }
}

from el-data-table.

qianyidai avatar qianyidai commented on September 17, 2024

谢谢,这个问题解决了,但是还有一个小问题。
点击修改按钮后的弹框,下拉框的url怎么带页面参数查询呢

{
  type: "select",
  id: "map_id",
  label: "地图",
  options: [],
  rules: [
    {
      required: false,
      message: "请选择地图",
      trigger: "blur",
      // transform: v => v && v.trim()
    },
  ],
  remote: {
    // url: "/api/map-select?proj_id="+this.proj_id,
    url: "/api/map-all-select",
  },
  el: { placeholder: "请选择地图", filterable: true },
},

本来想实现的地图下拉框的数据为当前proj_id下的数据,但是remote中的url好像没拿到this.proj_id,

from el-data-table.

levy9527 avatar levy9527 commented on September 17, 2024

呃,你要升级 el-form-renderer,修改 url 重新发送请求,在最新的版本有实现。

from el-data-table.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.