提交 b42cd2af 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

统一分页回传结构体

上级 b2850763
......@@ -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
......
......@@ -89,7 +89,6 @@ export default {
data(){
return{
listApi: getExaCustomerList,
listKey: 'customer',
dialogFormVisible:false,
visible:false,
type:"",
......
......@@ -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: {
......
......@@ -76,7 +76,6 @@ export default {
data() {
return {
listApi: getAuthorityList,
listKey: 'list',
drawer: false,
activeRow: {},
activeUserId: 0,
......
......@@ -88,7 +88,6 @@ export default {
data() {
return {
listApi: getMenuList,
listKey: 'list',
dialogFormVisible: false,
form: {
ID: 0,
......
......@@ -99,7 +99,6 @@ export default {
data() {
return {
listApi: getUserList,
listKey: 'userList',
path:path,
authOptions: [],
addUserDialog: false,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册