市场法规清单、市场认证清单、法规清单增加分页
This commit is contained in:
@@ -388,22 +388,22 @@
|
||||
:title="text">{{text}}</a>
|
||||
</span>
|
||||
</a-table>
|
||||
<!-- <div class="page" v-if="dataSource.length > 0">-->
|
||||
<!-- <a-pagination-->
|
||||
<!-- :show-total="total => $t('total')+` ${total} `+$t('strip')"-->
|
||||
<!-- show-quick-jumper-->
|
||||
<!-- show-size-changer-->
|
||||
<!-- :page-size.sync="pageSize"-->
|
||||
<!-- :total="total"-->
|
||||
<!-- :pageSizeOptions="['50','100','200','300']"-->
|
||||
<!-- :current="pageNo"-->
|
||||
<!-- @change="onChangeSize"-->
|
||||
<!-- @showSizeChange="SizeChange"-->
|
||||
<!-- />-->
|
||||
<!-- </div>-->
|
||||
<div class="buttom-box" v-if="dataSource && dataSource.length > 0">
|
||||
{{ $t('total') + ' ' + this.dataSource.length + ' ' + $t('strip') }}
|
||||
<div class="page" v-if="dataSource.length > 0">
|
||||
<a-pagination
|
||||
:show-total="total => $t('total')+` ${total} `+$t('strip')"
|
||||
show-quick-jumper
|
||||
show-size-changer
|
||||
:page-size.sync="pageSize"
|
||||
:total="total"
|
||||
:pageSizeOptions="['50','100','200','300']"
|
||||
:current="pageNo"
|
||||
@change="onChangeSize"
|
||||
@showSizeChange="SizeChange"
|
||||
/>
|
||||
</div>
|
||||
<!-- <div class="buttom-box" v-if="dataSource && dataSource.length > 0">-->
|
||||
<!-- {{ $t('total') + ' ' + this.dataSource.length + ' ' + $t('strip') }}-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
<listAddModel :url="url" @addModelList="addModelList" ref="addModelRef"/>
|
||||
<listEditModel :url="url" @editModelList="addModelList" ref="editModelRef"/>
|
||||
@@ -1176,7 +1176,7 @@
|
||||
url: {
|
||||
addModelList: '/project/projectLawsInventoryEO/queryPageDummy',
|
||||
queryConditionInventory: '/project/projectLawsInventoryEO/queryConditionInventory',
|
||||
list: '/project/projectLawsInventoryEO/list',
|
||||
list: '/project/projectLawsInventoryEO/page',
|
||||
addModel: 'project/projectLawsInventoryEO/add',
|
||||
editModel: '/project/projectLawsInventoryEO/edit',
|
||||
deleteBatch: '/project/projectLawsInventoryEO/deleteBatch',
|
||||
@@ -1518,7 +1518,7 @@
|
||||
}
|
||||
},
|
||||
modifyOperatorForm() {
|
||||
this
|
||||
this.pageNo = 1
|
||||
this.getList()
|
||||
},
|
||||
//收起/展开
|
||||
@@ -2101,6 +2101,7 @@
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.selectedRowKeys = []
|
||||
_this.pageNo = 1
|
||||
_this.getList()
|
||||
} else {
|
||||
_this.$message.warning(_this.$t('operationFailed'))
|
||||
@@ -2133,6 +2134,7 @@
|
||||
// this.confirmLoadingRoleSwitching = false
|
||||
this.$emit('getRoleSwitch', roleSwitchingCode)
|
||||
this.selectedRowKeys = []
|
||||
this.pageNo = 1
|
||||
this.getList()
|
||||
} else {
|
||||
this.confirmLoadingRoleSwitching = false
|
||||
@@ -2251,6 +2253,7 @@
|
||||
//搜索
|
||||
searchQuery() {
|
||||
this.selectedRowKeys = []
|
||||
this.pageNo = 1
|
||||
this.getList()
|
||||
},
|
||||
//重置
|
||||
@@ -2264,6 +2267,7 @@
|
||||
|
||||
addModelList() {
|
||||
this.selectedRowKeys = []
|
||||
this.pageNo = 1
|
||||
this.getList()
|
||||
},
|
||||
customizeListForm(val) {
|
||||
@@ -2274,6 +2278,7 @@
|
||||
},
|
||||
transferListFormHomo() {
|
||||
this.$refs.transferListRef.handleCancel()
|
||||
this.pageNo = 1
|
||||
this.getList()
|
||||
},
|
||||
handleSuperQuery(params, matchType) {
|
||||
@@ -2287,6 +2292,7 @@
|
||||
sqp['superQueryMatchType'] = matchType
|
||||
}
|
||||
this.queryParamQuery = sqp
|
||||
this.pageNo = 1
|
||||
this.getList()
|
||||
},
|
||||
|
||||
@@ -2313,15 +2319,15 @@
|
||||
}
|
||||
this.getList()
|
||||
},
|
||||
// onChangeSize(page, pageSize) {
|
||||
// this.pageNo = page
|
||||
// this.getList()
|
||||
// },
|
||||
// SizeChange(page, pageSize) {
|
||||
// this.pageNo = 1
|
||||
// this.pageSize = pageSize
|
||||
// this.getList()
|
||||
// },
|
||||
onChangeSize(page, pageSize) {
|
||||
this.pageNo = page
|
||||
this.getList()
|
||||
},
|
||||
SizeChange(page, pageSize) {
|
||||
this.pageNo = 1
|
||||
this.pageSize = pageSize
|
||||
this.getList()
|
||||
},
|
||||
getList() {
|
||||
let roleCode = this.roleSwitchingCode
|
||||
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
|
||||
@@ -2340,20 +2346,20 @@
|
||||
projectLibraryId: this.$route.query.id,
|
||||
orderBy: this.orderBy,
|
||||
orderByField: this.orderByField,
|
||||
roleCode: roleCode
|
||||
// pageNo: this.pageNo,
|
||||
// pageSize: this.pageSize
|
||||
roleCode: roleCode,
|
||||
pageNo: this.pageNo,
|
||||
pageSize: this.pageSize
|
||||
}
|
||||
this.loading = true
|
||||
getAction(this.url.list, query).then((res) => {
|
||||
if (res.success) {
|
||||
// if (res.result.current > 1 && res.result.records.length == 0) {
|
||||
// this.pageNo = 1
|
||||
// this.getList()
|
||||
// return
|
||||
// }
|
||||
this.dataSource = res.result || []
|
||||
// this.total = res.result.total
|
||||
if (res.result.current > 1 && res.result.records.length == 0) {
|
||||
this.pageNo = 1
|
||||
this.getList()
|
||||
return
|
||||
}
|
||||
this.dataSource = res.result.records || []
|
||||
this.total = res.result.total
|
||||
this.loading = false
|
||||
this.JLoading = false
|
||||
if (this.dataSource.length == 0) {
|
||||
|
||||
Reference in New Issue
Block a user