市场法规清单、市场认证清单、法规清单增加分页
This commit is contained in:
+15
-6
@@ -180,18 +180,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ant-table-column-title {
|
.ant-table-column-title {
|
||||||
font-weight: bold!important;
|
font-weight: bold !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-table-thead > tr > th {
|
.ant-table-thead > tr > th {
|
||||||
background: #f3f6f6!important;
|
background: #f3f6f6 !important;
|
||||||
padding-top: 12px!important;
|
padding-top: 12px !important;
|
||||||
padding-bottom: 12px!important;
|
padding-bottom: 12px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-table-tbody > tr > td {
|
.ant-table-tbody > tr > td {
|
||||||
padding-top: 12px!important;
|
padding-top: 12px !important;
|
||||||
padding-bottom: 12px!important;
|
padding-bottom: 12px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-tooltip-inner {
|
.ant-tooltip-inner {
|
||||||
@@ -206,4 +206,13 @@
|
|||||||
.ant-menu-inline-collapsed-tooltip a {
|
.ant-menu-inline-collapsed-tooltip a {
|
||||||
color: #333 !important;
|
color: #333 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page .ant-select-selection--single {
|
||||||
|
height: 32px !important;
|
||||||
|
line-height: 32px !important;
|
||||||
|
}
|
||||||
|
.page .ant-select-selection__rendered{
|
||||||
|
height: 32px !important;
|
||||||
|
line-height: 32px !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -314,9 +314,22 @@
|
|||||||
<span v-else>--</span>
|
<span v-else>--</span>
|
||||||
</span>
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
<div class="buttom-box" v-if="dataSource && dataSource.length > 0">
|
<div class="page" v-if="dataSource.length > 0">
|
||||||
{{$t('total')+' '+this.dataSource.length+' '+ $t('strip')}}
|
<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>
|
||||||
|
<!-- <div class="buttom-box" v-if="dataSource && dataSource.length > 0">-->
|
||||||
|
<!-- {{$t('total')+' '+this.dataSource.length+' '+ $t('strip')}}-->
|
||||||
|
<!-- </div>-->
|
||||||
</div>
|
</div>
|
||||||
</a-card>
|
</a-card>
|
||||||
</div>
|
</div>
|
||||||
@@ -403,6 +416,9 @@
|
|||||||
orderBy: '1',
|
orderBy: '1',
|
||||||
istable: true,
|
istable: true,
|
||||||
orderByField: '',
|
orderByField: '',
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 50,
|
||||||
|
total: 0,
|
||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
|
||||||
dataSourceFile: [],
|
dataSourceFile: [],
|
||||||
@@ -424,7 +440,7 @@
|
|||||||
url: {
|
url: {
|
||||||
addModelList: '/dummy/dummyInventoryInfoEO/queryPageDummy',
|
addModelList: '/dummy/dummyInventoryInfoEO/queryPageDummy',
|
||||||
queryConditionInventory: '/dummy/dummyInventoryInfoEO/queryConditionInventory',
|
queryConditionInventory: '/dummy/dummyInventoryInfoEO/queryConditionInventory',
|
||||||
list: '/dummy/dummyInventoryInfoEO/list',
|
list: '/dummy/dummyInventoryInfoEO/page',
|
||||||
addModel: '/dummy/dummyInventoryInfoEO/add',
|
addModel: '/dummy/dummyInventoryInfoEO/add',
|
||||||
editModel: '/dummy/dummyInventoryInfoEO/edit',
|
editModel: '/dummy/dummyInventoryInfoEO/edit',
|
||||||
deleteBatch: '/dummy/dummyInventoryInfoEO/deleteBatch',
|
deleteBatch: '/dummy/dummyInventoryInfoEO/deleteBatch',
|
||||||
@@ -1231,6 +1247,15 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
onChangeSize(page, pageSize) {
|
||||||
|
this.pageNo = page
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
SizeChange(page, pageSize) {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.pageSize = pageSize
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
getList() {
|
getList() {
|
||||||
if (this.queryParam.xin1Che1Xing2Shi2Shi1Ri4Qi1String && this.queryParam.xin1Che1Xing2Shi2Shi1Ri4Qi1String instanceof Array) {
|
if (this.queryParam.xin1Che1Xing2Shi2Shi1Ri4Qi1String && this.queryParam.xin1Che1Xing2Shi2Shi1Ri4Qi1String instanceof Array) {
|
||||||
this.queryParam.xin1Che1Xing2Shi2Shi1Ri4Qi1String = this.queryParam.xin1Che1Xing2Shi2Shi1Ri4Qi1String.join(',')
|
this.queryParam.xin1Che1Xing2Shi2Shi1Ri4Qi1String = this.queryParam.xin1Che1Xing2Shi2Shi1Ri4Qi1String.join(',')
|
||||||
@@ -1243,12 +1268,21 @@
|
|||||||
...this.queryParamQuery,
|
...this.queryParamQuery,
|
||||||
orderBy: this.orderBy,
|
orderBy: this.orderBy,
|
||||||
orderByField: this.orderByField,
|
orderByField: this.orderByField,
|
||||||
dummyInventoryBaseId: this.$route.query.id
|
dummyInventoryBaseId: this.$route.query.id,
|
||||||
|
pageNo: this.pageNo,
|
||||||
|
pageSize: this.pageSize
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(this.url.list, query).then((res) => {
|
getAction(this.url.list, query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataSource = res.result || []
|
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.dataSource = res.result || []
|
||||||
if (this.dataSource.length == 0) {
|
if (this.dataSource.length == 0) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
let anttablebody = document.getElementsByClassName('ant-table-body')
|
let anttablebody = document.getElementsByClassName('ant-table-body')
|
||||||
@@ -1727,6 +1761,11 @@
|
|||||||
padding-left: 16px!important;
|
padding-left: 16px!important;
|
||||||
border-right: 1px solid #e8e8e8;
|
border-right: 1px solid #e8e8e8;
|
||||||
}
|
}
|
||||||
|
.page {
|
||||||
|
text-align: right;
|
||||||
|
margin-top: 20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
.popconfirm {
|
.popconfirm {
|
||||||
|
|||||||
@@ -388,22 +388,22 @@
|
|||||||
:title="text">{{text}}</a>
|
:title="text">{{text}}</a>
|
||||||
</span>
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
<!-- <div class="page" v-if="dataSource.length > 0">-->
|
<div class="page" v-if="dataSource.length > 0">
|
||||||
<!-- <a-pagination-->
|
<a-pagination
|
||||||
<!-- :show-total="total => $t('total')+` ${total} `+$t('strip')"-->
|
:show-total="total => $t('total')+` ${total} `+$t('strip')"
|
||||||
<!-- show-quick-jumper-->
|
show-quick-jumper
|
||||||
<!-- show-size-changer-->
|
show-size-changer
|
||||||
<!-- :page-size.sync="pageSize"-->
|
:page-size.sync="pageSize"
|
||||||
<!-- :total="total"-->
|
:total="total"
|
||||||
<!-- :pageSizeOptions="['50','100','200','300']"-->
|
:pageSizeOptions="['50','100','200','300']"
|
||||||
<!-- :current="pageNo"-->
|
:current="pageNo"
|
||||||
<!-- @change="onChangeSize"-->
|
@change="onChangeSize"
|
||||||
<!-- @showSizeChange="SizeChange"-->
|
@showSizeChange="SizeChange"
|
||||||
<!-- />-->
|
/>
|
||||||
<!-- </div>-->
|
|
||||||
<div class="buttom-box" v-if="dataSource && dataSource.length > 0">
|
|
||||||
{{ $t('total') + ' ' + this.dataSource.length + ' ' + $t('strip') }}
|
|
||||||
</div>
|
</div>
|
||||||
|
<!-- <div class="buttom-box" v-if="dataSource && dataSource.length > 0">-->
|
||||||
|
<!-- {{ $t('total') + ' ' + this.dataSource.length + ' ' + $t('strip') }}-->
|
||||||
|
<!-- </div>-->
|
||||||
</div>
|
</div>
|
||||||
<listAddModel :url="url" @addModelList="addModelList" ref="addModelRef"/>
|
<listAddModel :url="url" @addModelList="addModelList" ref="addModelRef"/>
|
||||||
<listEditModel :url="url" @editModelList="addModelList" ref="editModelRef"/>
|
<listEditModel :url="url" @editModelList="addModelList" ref="editModelRef"/>
|
||||||
@@ -1176,7 +1176,7 @@
|
|||||||
url: {
|
url: {
|
||||||
addModelList: '/project/projectLawsInventoryEO/queryPageDummy',
|
addModelList: '/project/projectLawsInventoryEO/queryPageDummy',
|
||||||
queryConditionInventory: '/project/projectLawsInventoryEO/queryConditionInventory',
|
queryConditionInventory: '/project/projectLawsInventoryEO/queryConditionInventory',
|
||||||
list: '/project/projectLawsInventoryEO/list',
|
list: '/project/projectLawsInventoryEO/page',
|
||||||
addModel: 'project/projectLawsInventoryEO/add',
|
addModel: 'project/projectLawsInventoryEO/add',
|
||||||
editModel: '/project/projectLawsInventoryEO/edit',
|
editModel: '/project/projectLawsInventoryEO/edit',
|
||||||
deleteBatch: '/project/projectLawsInventoryEO/deleteBatch',
|
deleteBatch: '/project/projectLawsInventoryEO/deleteBatch',
|
||||||
@@ -1518,7 +1518,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
modifyOperatorForm() {
|
modifyOperatorForm() {
|
||||||
this
|
this.pageNo = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
//收起/展开
|
//收起/展开
|
||||||
@@ -2101,6 +2101,7 @@
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
_this.selectedRowKeys = []
|
_this.selectedRowKeys = []
|
||||||
|
_this.pageNo = 1
|
||||||
_this.getList()
|
_this.getList()
|
||||||
} else {
|
} else {
|
||||||
_this.$message.warning(_this.$t('operationFailed'))
|
_this.$message.warning(_this.$t('operationFailed'))
|
||||||
@@ -2133,6 +2134,7 @@
|
|||||||
// this.confirmLoadingRoleSwitching = false
|
// this.confirmLoadingRoleSwitching = false
|
||||||
this.$emit('getRoleSwitch', roleSwitchingCode)
|
this.$emit('getRoleSwitch', roleSwitchingCode)
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
|
this.pageNo = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
} else {
|
} else {
|
||||||
this.confirmLoadingRoleSwitching = false
|
this.confirmLoadingRoleSwitching = false
|
||||||
@@ -2251,6 +2253,7 @@
|
|||||||
//搜索
|
//搜索
|
||||||
searchQuery() {
|
searchQuery() {
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
|
this.pageNo = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
//重置
|
//重置
|
||||||
@@ -2264,6 +2267,7 @@
|
|||||||
|
|
||||||
addModelList() {
|
addModelList() {
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
|
this.pageNo = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
customizeListForm(val) {
|
customizeListForm(val) {
|
||||||
@@ -2274,6 +2278,7 @@
|
|||||||
},
|
},
|
||||||
transferListFormHomo() {
|
transferListFormHomo() {
|
||||||
this.$refs.transferListRef.handleCancel()
|
this.$refs.transferListRef.handleCancel()
|
||||||
|
this.pageNo = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
handleSuperQuery(params, matchType) {
|
handleSuperQuery(params, matchType) {
|
||||||
@@ -2287,6 +2292,7 @@
|
|||||||
sqp['superQueryMatchType'] = matchType
|
sqp['superQueryMatchType'] = matchType
|
||||||
}
|
}
|
||||||
this.queryParamQuery = sqp
|
this.queryParamQuery = sqp
|
||||||
|
this.pageNo = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -2313,15 +2319,15 @@
|
|||||||
}
|
}
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
// onChangeSize(page, pageSize) {
|
onChangeSize(page, pageSize) {
|
||||||
// this.pageNo = page
|
this.pageNo = page
|
||||||
// this.getList()
|
this.getList()
|
||||||
// },
|
},
|
||||||
// SizeChange(page, pageSize) {
|
SizeChange(page, pageSize) {
|
||||||
// this.pageNo = 1
|
this.pageNo = 1
|
||||||
// this.pageSize = pageSize
|
this.pageSize = pageSize
|
||||||
// this.getList()
|
this.getList()
|
||||||
// },
|
},
|
||||||
getList() {
|
getList() {
|
||||||
let roleCode = this.roleSwitchingCode
|
let roleCode = this.roleSwitchingCode
|
||||||
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
|
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
|
||||||
@@ -2340,20 +2346,20 @@
|
|||||||
projectLibraryId: this.$route.query.id,
|
projectLibraryId: this.$route.query.id,
|
||||||
orderBy: this.orderBy,
|
orderBy: this.orderBy,
|
||||||
orderByField: this.orderByField,
|
orderByField: this.orderByField,
|
||||||
roleCode: roleCode
|
roleCode: roleCode,
|
||||||
// pageNo: this.pageNo,
|
pageNo: this.pageNo,
|
||||||
// pageSize: this.pageSize
|
pageSize: this.pageSize
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(this.url.list, query).then((res) => {
|
getAction(this.url.list, query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
// if (res.result.current > 1 && res.result.records.length == 0) {
|
if (res.result.current > 1 && res.result.records.length == 0) {
|
||||||
// this.pageNo = 1
|
this.pageNo = 1
|
||||||
// this.getList()
|
this.getList()
|
||||||
// return
|
return
|
||||||
// }
|
}
|
||||||
this.dataSource = res.result || []
|
this.dataSource = res.result.records || []
|
||||||
// this.total = res.result.total
|
this.total = res.result.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.JLoading = false
|
this.JLoading = false
|
||||||
if (this.dataSource.length == 0) {
|
if (this.dataSource.length == 0) {
|
||||||
|
|||||||
+47
-5
@@ -237,9 +237,22 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
</a-table>
|
</a-table>
|
||||||
<div class="buttom-box" v-if="dataSource && dataSource.length > 0">
|
<div class="page" v-if="dataSource.length > 0">
|
||||||
{{$t('total')+' '+this.dataSource.length+' '+ $t('strip')}}
|
<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>
|
||||||
|
<!-- <div class="buttom-box" v-if="dataSource && dataSource.length > 0">-->
|
||||||
|
<!-- {{$t('total')+' '+this.dataSource.length+' '+ $t('strip')}}-->
|
||||||
|
<!-- </div>-->
|
||||||
</div>
|
</div>
|
||||||
</a-card>
|
</a-card>
|
||||||
</div>
|
</div>
|
||||||
@@ -288,8 +301,11 @@
|
|||||||
isbutton: false,
|
isbutton: false,
|
||||||
toggleSearchStatus:false,
|
toggleSearchStatus:false,
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 50,
|
||||||
|
total: 0,
|
||||||
url: {
|
url: {
|
||||||
list: '/authDummy/authDummyInventoryInfoEO/list',
|
list: '/authDummy/authDummyInventoryInfoEO/page',
|
||||||
logList: '/authDummy/authDummyLog/page',//更新log
|
logList: '/authDummy/authDummyLog/page',//更新log
|
||||||
exportTemplate: '/authDummy/authDummyInventoryInfoEO/exportTemplate',//模板下载
|
exportTemplate: '/authDummy/authDummyInventoryInfoEO/exportTemplate',//模板下载
|
||||||
exportData: '/authDummy/authDummyInventoryInfoEO/exportData',//导出
|
exportData: '/authDummy/authDummyInventoryInfoEO/exportData',//导出
|
||||||
@@ -535,17 +551,35 @@
|
|||||||
getPersonnelList(){
|
getPersonnelList(){
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
onChangeSize(page, pageSize) {
|
||||||
|
this.pageNo = page
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
SizeChange(page, pageSize) {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.pageSize = pageSize
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
getList() {
|
getList() {
|
||||||
let query = {
|
let query = {
|
||||||
...this.queryParam,
|
...this.queryParam,
|
||||||
orderBy: this.orderBy,
|
orderBy: this.orderBy,
|
||||||
orderByField: this.orderByField,
|
orderByField: this.orderByField,
|
||||||
authDummyInventoryBaseId: this.$route.query.id
|
authDummyInventoryBaseId: this.$route.query.id,
|
||||||
|
pageNo: this.pageNo,
|
||||||
|
pageSize: this.pageSize
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(this.url.list, query).then((res) => {
|
getAction(this.url.list, query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataSource = res.result || []
|
if (res.result.current > 1 && res.result.records.length == 0) {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.getList()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
// this.dataSource = res.result || []
|
||||||
|
this.dataSource = res.result.records || []
|
||||||
|
this.total = res.result.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
} else {
|
} else {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -723,4 +757,12 @@
|
|||||||
color: #00B3BE;
|
color: #00B3BE;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
.page {
|
||||||
|
text-align: right;
|
||||||
|
margin-top: 20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
::v-deep .ant-card-body {
|
||||||
|
padding: 14px 32px 0 32px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user