Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

表单-动态数据获取不了 #3

Open
jiangjie97 opened this issue Jan 11, 2024 · 0 comments
Open

表单-动态数据获取不了 #3

jiangjie97 opened this issue Jan 11, 2024 · 0 comments

Comments

@jiangjie97
Copy link

jiangjie97 commented Jan 11, 2024

菜单:流程管理-表单配置
表单配置 级联选择组件 动态数据获取报错
截屏2024-01-11 16 39 35

目前换成 request 组件可正常获取数据
修改/RuoYi-flowable/ruoyi-ui/src/views/tool/build/index.vue文件可解决

//1.引入 request 
`import request from '@/utils/request'`

//2.修改
fetchData(component) {

      const { dataType, method, url } = component.__config__
      if (dataType === 'dynamic' && method && url) {
        this.setLoading(component, true)
        request({
          method,
          url
        }).then(resp => {
          console.log('resp->{}',resp)
          this.setLoading(component, false)
          this.setRespData(component, resp)
        })
      }
    },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant