|
|
@ -35,7 +35,7 @@ |
|
|
|
:border="option.border"> |
|
|
|
:border="option.border"> |
|
|
|
<el-table-column type="selection" v-if="option.selection" width="55" align="center"></el-table-column> |
|
|
|
<el-table-column type="selection" v-if="option.selection" width="55" align="center"></el-table-column> |
|
|
|
<el-table-column type="expand" v-if="option.expand" align="center"></el-table-column> |
|
|
|
<el-table-column type="expand" v-if="option.expand" align="center"></el-table-column> |
|
|
|
<el-table-column v-if="option.index" label="#" type="index" width="50" align="center"> |
|
|
|
<el-table-column v-if="option.index" label="序号" type="index" width="70" align="center"> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<template v-for="(item,index) in option.column"> |
|
|
|
<template v-for="(item,index) in option.column"> |
|
|
|
<!-- table字段 --> |
|
|
|
<!-- table字段 --> |
|
|
@ -269,6 +269,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad (page, params = {}) { |
|
|
|
onLoad (page, params = {}) { |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
|
|
|
|
this.query.client = this.$route.query.id; |
|
|
|
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
|
|
|
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
|
|
|
const data = res.data.data; |
|
|
|
const data = res.data.data; |
|
|
|
this.page.total = data.total; |
|
|
|
this.page.total = data.total; |
|
|
|