| | |
| | | rules: [ |
| | | { |
| | | required: formItem.required, |
| | | message: `请${message}${formItem.text}`, |
| | | message: `${message}${formItem.text}`, |
| | | trigger, |
| | | }, |
| | | { |
| | |
| | | } |
| | | } |
| | | getList(Object.assign(params,this.params,this.query, query),page.currentPage, page.pageSize, this.url, this.method).then(res => { |
| | | this.data = res.data.records || res.data.data.records; |
| | | this.page.total=res.data.total || res.data.data.total; |
| | | if(res.data.records){ |
| | | this.data = res.data.records |
| | | this.page.total=res.data.total ; |
| | | }else{ |
| | | this.data = res.data.data.records; |
| | | this.page.total=res.data.data.total; |
| | | } |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }).catch(error=>{ |
| | |
| | | } |
| | | } |
| | | getList(Object.assign(params,this.params,this.query, query),page.currentPage, page.pageSize, this.url).then(res => { |
| | | this.data = res.data.records || res.data.data.records; |
| | | this.page.total=res.data.total || res.data.data.total; |
| | | if(res.data.records){ |
| | | this.data = res.data.records |
| | | this.page.total=res.data.total ; |
| | | }else{ |
| | | this.data = res.data.data.records; |
| | | this.page.total=res.data.data.total; |
| | | } |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }).catch(error=>{ |