修复分享类型显示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> </template>
</el-table-column> </el-table-column>
</el-table> </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"> <span slot="footer">
<el-button @click="modalShareTypeVisible = false"> </el-button> <el-button @click="modalShareTypeVisible = false"> </el-button>
</span> </span>
@ -342,9 +329,6 @@ export default {
// modal - shareType // modal - shareType
modalShareTypeVisible: false, modalShareTypeVisible: false,
shareTypeList: [], shareTypeList: [],
pageSize: 10,
currentPage: 1,
total: 0,
// modal - shareTypeEdit // modal - shareTypeEdit
modalShareTypeEditVisible: false, modalShareTypeEditVisible: false,
shareTypeForm: { shareTypeForm: {
@ -419,10 +403,7 @@ export default {
}) })
}, },
getShareTypes() { getShareTypes() {
getShareTypes({ getShareTypes()
pageSize: this.pageSize,
currentPage: this.currentPage
})
.then(res => { .then(res => {
const data = res.data const data = res.data
if (data.errcode === 0) { 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 - // modal -
addArea() { addArea() {
this.openModalAreaEdit() this.openModalAreaEdit()