修复分享类型显示bug

This commit is contained in:
yulixing 2019-06-06 16:05:29 +08:00
parent bb1d7aa922
commit 70daacf1b7
2 changed files with 1 additions and 29 deletions

View File

@ -1 +0,0 @@

View File

@ -126,19 +126,6 @@
</template>
</el-table-column>
</el-table>
<div class="al-r">
<el-pagination
:hide-on-single-page="true"
:current-page="currentPage"
:page-sizes="[10, 20, 50, 100]"
:page-size="pageSize"
layout="total, sizes, prev, pager, next"
:total="total"
class="al-r"
@size-change="sizeChange"
@current-change="pageChange"
/>
</div>
<span slot="footer">
<el-button @click="modalShareTypeVisible = false"> </el-button>
</span>
@ -342,9 +329,6 @@ export default {
// modal - shareType
modalShareTypeVisible: false,
shareTypeList: [],
pageSize: 10,
currentPage: 1,
total: 0,
// modal - shareTypeEdit
modalShareTypeEditVisible: false,
shareTypeForm: {
@ -419,10 +403,7 @@ export default {
})
},
getShareTypes() {
getShareTypes({
pageSize: this.pageSize,
currentPage: this.currentPage
})
getShareTypes()
.then(res => {
const data = res.data
if (data.errcode === 0) {
@ -608,14 +589,6 @@ export default {
}
})
},
sizeChange(val) {
this.pageSize = val
this.getShareTypes()
},
pageChange(val) {
this.currentPage = val
this.getShareTypes()
},
// modal -
addArea() {
this.openModalAreaEdit()