|
|
@@ -12,12 +12,16 @@
|
|
|
提交
|
|
|
</el-button> -->
|
|
|
</div>
|
|
|
- <el-table :data="businessList" border bordertooltip-effect="dark" @selection-change="handleSelectionChange">
|
|
|
+ <el-table :data="businessList" border bordertooltip-effect="dark" height="calc(100vh - 435px)" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
<el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column prop="Remark" label="备注" show-overflow-tooltip></el-table-column>
|
|
|
</el-table>
|
|
|
+ <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
|
|
+ :page-sizes="[10, 50, 100, 200, 400]" :page-size="size" layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="currentItem_Count">
|
|
|
+ </el-pagination>
|
|
|
</el-card>
|
|
|
|
|
|
<el-card class="box-card" style="margin-top: 10px;">
|
|
|
@@ -158,6 +162,9 @@
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
+ size: 10,
|
|
|
+ currentPage: 1,
|
|
|
+ currentItem_Count: 0,
|
|
|
yasuoname: '',
|
|
|
SupplierId: 0,
|
|
|
SupplierTypeCode: '',
|
|
|
@@ -269,14 +276,15 @@
|
|
|
const params = {
|
|
|
SupplierCertId: this.SupplierCertId,
|
|
|
SupplierTypeCode: this.SupplierTypeCode,
|
|
|
- _currentPage: 1,
|
|
|
- _size: 1000
|
|
|
+ _currentPage: this.currentPage,
|
|
|
+ _size: this.size
|
|
|
}
|
|
|
this.$axios.get('suppliercertsub/list', {
|
|
|
params
|
|
|
})
|
|
|
.then(res => {
|
|
|
_this.businessList = res.data.items
|
|
|
+ _this.currentItem_Count = res.data.currentItemCount
|
|
|
})
|
|
|
.catch(err => {
|
|
|
console.error(err)
|
|
|
@@ -600,6 +608,15 @@
|
|
|
val = val.replace('T', ' ')
|
|
|
return val.substring(0, 10)
|
|
|
}
|
|
|
+ },
|
|
|
+ handleCurrentChange (value) {
|
|
|
+ this.currentPage = value
|
|
|
+ this.getbusList()
|
|
|
+ },
|
|
|
+ handleSizeChange (value) {
|
|
|
+ this.size = value
|
|
|
+ this.currentPage = 1
|
|
|
+ this.getbusList()
|
|
|
}
|
|
|
}
|
|
|
}
|