|
|
|
@ -42,17 +42,18 @@ export default { |
|
|
|
methods: { |
|
|
|
// 获取数据列表
|
|
|
|
query () { |
|
|
|
const params = { |
|
|
|
order: this.order, |
|
|
|
orderField: this.orderField, |
|
|
|
page: this.mixinViewModuleOptions.getDataListIsPage ? this.page : null, |
|
|
|
limit: this.mixinViewModuleOptions.getDataListIsPage ? this.limit : null, |
|
|
|
...this.dataForm |
|
|
|
} |
|
|
|
this.post = true |
|
|
|
this.$http.post( |
|
|
|
this.mixinViewModuleOptions.getDataListURL, |
|
|
|
params |
|
|
|
this.dataListLoading = true |
|
|
|
this.$http.get( |
|
|
|
this.mixinViewModuleOptions.getDataListURL, |
|
|
|
{ |
|
|
|
params: { |
|
|
|
order: this.order, |
|
|
|
orderField: this.orderField, |
|
|
|
page: this.mixinViewModuleOptions.getDataListIsPage ? this.page : null, |
|
|
|
limit: this.mixinViewModuleOptions.getDataListIsPage ? this.limit : null, |
|
|
|
...this.dataForm |
|
|
|
} |
|
|
|
} |
|
|
|
).then(({ data: res }) => { |
|
|
|
this.dataListLoading = false |
|
|
|
if (res.code !== 0) { |
|
|
|
|