We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
表格外面有很多查询条件,设置点击后更改参数queryParam,调用查询服务,
parameter => { return this.$http.get('/service', { params: Object.assign(parameter, this.queryParam) }).then(res => { return res.result }) } 这里会报错。 正确使用姿势如何?
The text was updated successfully, but these errors were encountered:
报什么错?请说明
另外,可以阅读 #90 (Issue / PR 编写建议 (必读) )
Sorry, something went wrong.
报什么错?请说明 另外,可以阅读 #90 (Issue / PR 编写建议 (必读) )
表格初始数据: // 表格数据 tabledata: parameter => { return getServiceList(Object.assign(parameter, this.queryParam)) .then(res => { return res.result }) }, 表格外添加查询字段后调用的方法: getTableList: parameter => { return getServiceList(Object.assign(parameter, this.queryParam)) .then(res => { this.tabledata = res.result }) } 其中getServiceList是封装好的axios请求 报错信息如下截图:
错误看不懂吗? queryParam 找不到,你把这个参数怎么了?如果你要自己换变量,请把变量修改到请求方法里的 Object.assgin() 里
queryParam
Object.assgin()
https://github.com/sendya/ant-design-pro-vue/blob/master/src/views/list/TableList.vue#L152
No branches or pull requests
表格外面有很多查询条件,设置点击后更改参数queryParam,调用查询服务,
parameter => {
return this.$http.get('/service', {
params: Object.assign(parameter, this.queryParam)
}).then(res => {
return res.result
})
}
这里会报错。
正确使用姿势如何?
The text was updated successfully, but these errors were encountered: