Commit 78c8860e authored by danfuman's avatar danfuman

修改

parent 28400b0c
......@@ -48,7 +48,7 @@
<el-table-column prop="govDebtRateWild" label="债务率-宽口径(%)" sortable width="170" :formatter="formatStatus"/>
</el-table>
</div>
<div class="pagination-box">
<div class="pagination-box" v-if="show_page && tableDataTotal>pageSize">
<el-pagination background :current-page="pageIndex" :page-size="pageSize" :total="tableDataTotal" layout="prev, pager, next, jumper" @current-change="handleCurrentChange" @size-change="handleSizeChange" />
</div>
</div>
......@@ -73,6 +73,8 @@ export default {
pageIndex: 1,
pageSize: 20,
tableDataTotal: 0,
show_page:true,
MaxPage:500
}
},
watch: {
......@@ -124,8 +126,17 @@ export default {
},
// 跳转指定页数
handleCurrentChange(val) {
this.pageIndex = val
this.getData()
if(this.MaxPage<val){
this.show_page = false
this.$nextTick(() => {
this.pageIndex = 1
this.$message.warning(`对不起,最多只能访问${this.MaxPage}页`)
this.show_page = true
})
}else {
this.pageIndex = val
this.getData()
}
},
formatStatus: function(row, column, cellValue) {
return cellValue? cellValue : '-'
......
......@@ -64,7 +64,7 @@
<div class="p2">建议调整关键词或筛选条件,重新搜索</div>
</div>
</div>
<div class="pagination-box" v-if="tableDataTotal>pageSize">
<div class="pagination-box" v-if="show_page && tableDataTotal>pageSize">
<el-pagination background :current-page="pageIndex" :page-size="pageSize" :total="tableDataTotal" layout="prev, pager, next, jumper" @current-change="handleCurrentChange" @size-change="handleSizeChange" />
</div>
</div>
......@@ -107,7 +107,9 @@ export default {
aptitudeCodeList:[],
aptitudeType:'',
province:'',
provinceId:''
provinceId:'',
show_page:true,
MaxPage:500
}
},
created() {
......@@ -168,14 +170,23 @@ export default {
},
// 重置页数
handleSizeChange(val) {
this.pageIndex = 1
this.pageSize = val
this.querySubmit()
// this.pageIndex = 1
// this.pageSize = val
// this.querySubmit()
},
// 跳转指定页数
handleCurrentChange(val) {
this.pageIndex = val
this.querySubmit()
if(this.MaxPage<val){
this.show_page = false
this.$nextTick(() => {
this.pageIndex = 1
this.$message.warning(`对不起,最多只能访问${this.MaxPage}页`)
this.show_page = true
})
}else {
this.pageIndex = val
this.querySubmit()
}
},
handleChange(){
// console.log(this.queryParams.codeStr)
......
......@@ -32,7 +32,7 @@
<div class="flex-box">项目明细</div>
<div class="flex-box query-ability">
<span class="flex-box">{{tableDataTotal}}</span>
<span class="flex-box"><img src="@/assets/images/ability_excel.png">导出EXCEL</span>
<span class="flex-box" @click="handleMessage"><img src="@/assets/images/ability_excel.png">导出EXCEL</span>
</div>
</div>
<div class="table-item">
......@@ -66,7 +66,7 @@
</el-table-column>
</el-table>
</div>
<div class="pagination-box">
<div class="pagination-box" v-if="show_page && tableDataTotal>pageSize">
<el-pagination background :current-page="pageIndex" :page-size="pageSize" :total="tableDataTotal" layout="prev, pager, next, jumper" @current-change="handleCurrentChange" @size-change="handleSizeChange" />
</div>
......@@ -88,7 +88,9 @@ export default {
tableLoading: false,
pageIndex: 1,
pageSize: 10,
tableDataTotal: 0
tableDataTotal: 0,
show_page:true,
MaxPage:1000
}
},
created() {
......@@ -269,8 +271,17 @@ export default {
},
// 跳转指定页数
handleCurrentChange(val) {
this.pageIndex = val
this.getData()
if(this.MaxPage<val){
this.show_page = false
this.$nextTick(() => {
this.pageIndex = 1
this.$message.warning(`对不起,最多只能访问${this.MaxPage}页`)
this.show_page = true
})
}else {
this.pageIndex = val
this.getData()
}
},
sortChange1({ column, prop, order }){
this.tableParams.field = prop;
......@@ -285,6 +296,12 @@ export default {
this.pageIndex=1;
this.getData()
},
handleMessage(){
this.$message({
message: '功能正在开发中',
type: 'warning'
});
}
}
}
</script>
......
......@@ -105,7 +105,7 @@
<!--<template slot-scope="scope">-->
<!--<router-link to="/purchaserDetail" target="_blank" tag="a" class="a-link">{{ scope.row.zbwj }}</router-link>-->
<!--</template>-->
<div class="pagination-box" v-if="tableDataTotal>pageSize">
<div class="pagination-box" v-if="show_page && tableDataTotal>pageSize">
<el-pagination background :current-page="pageIndex" :page-size="pageSize" :total="tableDataTotal" layout="prev, pager, next, jumper" @current-change="handleCurrentChange" @size-change="handleSizeChange" />
</div>
<economies-detail ref="economiesDetail" />
......@@ -133,6 +133,7 @@
props: {
value: 'id',
multiple: true,
expandTrigger: 'hover'
},
addressList: [],
tableData: [],
......@@ -140,6 +141,8 @@
pageIndex: 1,
pageSize: 20,
tableDataTotal: null,
show_page:true,
MaxPage:500
}
},
created() {
......@@ -274,8 +277,17 @@
},
// 跳转指定页数
handleCurrentChange(val) {
this.pageIndex = val
this.querySubmit()
if(this.MaxPage<val){
this.show_page = false
this.$nextTick(() => {
this.pageIndex = 1
this.$message.warning(`对不起,最多只能访问${this.MaxPage}页`)
this.show_page = true
})
}else {
this.pageIndex = val
this.querySubmit()
}
},
formatStatus: function(row, column, cellValue) {
return cellValue? cellValue : '-'
......@@ -321,6 +333,7 @@
width: 110px;
}
::v-deep .el-cascader{
width: 220px;
.el-cascader__tags{
flex-wrap: inherit;
.el-tag{
......
......@@ -238,7 +238,7 @@
<div class="p2">建议调整关键词或筛选条件,重新搜索</div>
</div>
</div>
<div class="pagination-box" v-if="tableDataTotal>pageSize">
<div class="pagination-box" v-if="show_page && tableDataTotal>pageSize">
<el-pagination background :current-page="pageIndex" :page-size="pageSize" :total="tableDataTotal" layout="prev, pager, next, jumper" @current-change="handleCurrentChange" @size-change="handleSizeChange" />
</div>
</div>
......@@ -296,6 +296,8 @@ export default {
claimVisible:false,
customerId:'',
companyId:'',
show_page:true,
MaxPage:500
}
},
watch:{
......@@ -459,8 +461,17 @@ export default {
},
// 跳转指定页数
handleCurrentChange(val) {
this.pageIndex = val
this.querySubmit()
if(this.MaxPage<val){
this.show_page = false
this.$nextTick(() => {
this.pageIndex = 1
this.$message.warning(`对不起,最多只能访问${this.MaxPage}页`)
this.show_page = true
})
}else {
this.pageIndex = val
this.querySubmit()
}
},
handleSearch(event){
// this.searchState=!this.searchState;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment