Browse Source

统一分页回传结构体

main
pixel 5 years ago
parent
commit
b42cd2afb3
  1. 2
      web/src/components/mixins/infoList.js
  2. 1
      web/src/view/example/customer/customer.vue
  3. 16
      web/src/view/example/upload/upload.vue
  4. 1
      web/src/view/superAdmin/authority/authority.vue
  5. 1
      web/src/view/superAdmin/menu/menu.vue
  6. 1
      web/src/view/superAdmin/user/user.vue

2
web/src/components/mixins/infoList.js

@ -19,7 +19,7 @@ export default {
},
async getTableData(page = this.page, pageSize = this.pageSize) {
const table = await this.listApi({ page, pageSize, ...this.searchInfo })
this.tableData = table.data[this.listKey]
this.tableData = table.data.list
this.total = table.data.total
this.page = table.data.page
this.pageSize = table.data.pageSize

1
web/src/view/example/customer/customer.vue

@ -89,7 +89,6 @@ export default {
data(){
return{
listApi: getExaCustomerList,
listKey: 'customer',
dialogFormVisible:false,
visible:false,
type:"",

16
web/src/view/example/upload/upload.vue

@ -68,22 +68,8 @@ export default {
return {
fullscreenLoading:false,
listApi: getFileList,
listKey: 'list',
path: path,
tableData: [
{
UpdatedAt: '2019-10-25',
name: '文件名.jpg',
url: 'http://qmplusimg.henrongyi.top/1571321688timg.jpg',
tag: 'jpg'
},
{
UpdatedAt: '2019-10-25',
name: '文件名.jpg',
url: 'http://qmplusimg.henrongyi.top/157162774820191015140921496.gif',
tag: 'gif'
}
]
tableData: []
}
},
computed: {

1
web/src/view/superAdmin/authority/authority.vue

@ -76,7 +76,6 @@ export default {
data() {
return {
listApi: getAuthorityList,
listKey: 'list',
drawer: false,
activeRow: {},
activeUserId: 0,

1
web/src/view/superAdmin/menu/menu.vue

@ -88,7 +88,6 @@ export default {
data() {
return {
listApi: getMenuList,
listKey: 'list',
dialogFormVisible: false,
form: {
ID: 0,

1
web/src/view/superAdmin/user/user.vue

@ -99,7 +99,6 @@ export default {
data() {
return {
listApi: getUserList,
listKey: 'userList',
path:path,
authOptions: [],
addUserDialog: false,

Loading…
Cancel
Save