Commit 78c8860e authored by danfuman's avatar danfuman

修改

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