修改分页

dhy
吕天方 1 year ago
parent cfcaf25a9c
commit 46ffffc53f

@ -2,7 +2,7 @@
# @Author: 张涛
# @Date: 2023-07-18 13:04:50
# @LastEditors: JC9527
# @LastEditTime: 2023-10-07 16:09:34
# @LastEditTime: 2023-10-10 10:45:35
# @FilePath: \Mudu2PC\.env.development
###
# 页面标题
@ -13,6 +13,7 @@ ENV = 'development'
# 苏州应急执法计划管理系统/开发环境
# VUE_APP_BASE_API = 'http://39.101.188.84:9033'
# VUE_APP_BASE_API = 'http://192.168.0.105:9033'
VUE_APP_BASE_API = 'http://180.108.205.123:13002'
# VUE_APP_BASE_API = '/api'

@ -161,7 +161,7 @@
header-align="center"
>
<template slot-scope="scope">
<span>{{ componendDistrict("0" + scope.row.subdistrict) || '/' }}</span>
<span>{{ componendDistrict(scope.row.subdistrict) || '/' }}</span>
</template>
</el-table-column>
<el-table-column
@ -483,20 +483,20 @@ export default {
// console.log('123')
if(Array.isArray(this.form.subdistrict)){
if(this.form.subdistrict.length == 2) {
this.subdistrict = this.form.subdistrict[1].slice(1, 11);
this.subdistrict = this.form.subdistrict[1].slice(0, 10);
obj = { ...this.pages, ...this.form,subdistrict:this.subdistrict };
} else if(this.form.subdistrict.length == 1) {
this.subdistrict = this.form.subdistrict[0].slice(1, 8);
this.subdistrict = this.form.subdistrict[0].slice(0, 7);
obj = { ...this.pages, ...this.form,subdistrict:this.subdistrict };
} else {
obj = {...this.pages,...this.form}
}
} else {
if(this.county){
let subdistrict = this.form.subdistrict.slice(1, 8);
let subdistrict = this.form.subdistrict.slice(0, 7);
obj = { ...this.pages, ...this.form,subdistrict };
} else {
let subdistrict = this.form.subdistrict.slice(1, 8);
let subdistrict = this.form.subdistrict.slice(0, 7);
obj = { ...this.pages, ...this.form,subdistrict };
}
}
@ -506,7 +506,7 @@ export default {
// this.subdistrict = this.form.subdistrict.slice(1, 8);
// obj = { ...this.pages, ...this.form,subdistrict:this.subdistrict };
// } else if(this.dept.ancestors.split(',').length == 3){
this.subdistrict = this.form.subdistrict.slice(1, 11);
this.subdistrict = this.form.subdistrict.slice(0, 10);
obj = { ...this.pages, ...this.form,subdistrict:this.subdistrict };
// }
}
@ -540,9 +540,9 @@ export default {
this.$refs.mypagination.defaultPages();
// let obj = {...this.pages,...this.form}
if(this.dept.ancestors.split(',').length == 2){
this.subdistrict = this.workingArea.slice(1, 8);
this.subdistrict = this.workingArea.slice(0, 7);
} else if(this.dept.ancestors.split(',').length == 3){
this.subdistrict = this.form.subdistrict.slice(1, 11);
this.subdistrict = this.form.subdistrict.slice(0, 10);
}
this.getTable({...this.pages,...this.form,subdistrict:this.subdistrict});
},
@ -680,13 +680,13 @@ export default {
if(this.dept.ancestors.split(',').length == 2){
if(Array.isArray(this.form.subdistrict)) {
if(this.form.subdistrict.length == 2) {
this.subdistrict = this.form.subdistrict[1].slice(1, 11);
this.subdistrict = this.form.subdistrict[1].slice(0, 10);
}
} else {
this.subdistrict = this.form.subdistrict.slice(1, 8);
this.subdistrict = this.form.subdistrict.slice(0, 7);
}
} else if(this.dept.ancestors.split(',').length == 3){
this.subdistrict = this.form.subdistrict.slice(1, 11);
this.subdistrict = this.form.subdistrict.slice(0, 10);
}
// console.log(this.subdistrict,'this.subdistrict')
// console.log(this.form,'this.form')

@ -117,7 +117,7 @@
header-align="center"
>
<template slot-scope="scope">
<span>{{ componendDistrict("0" + scope.row.subdistrict) || '/' }}</span>
<span>{{ componendDistrict(scope.row.subdistrict) || '/' }}</span>
</template>
</el-table-column>
<el-table-column

@ -4,7 +4,7 @@
* @Author: JC9527
* @Date: 2023-09-04 10:20:06
* @LastEditors: JC9527
* @LastEditTime: 2023-10-09 14:10:39
* @LastEditTime: 2023-10-10 10:08:28
-->
<template>
<div class="plan-management">
@ -326,8 +326,26 @@
//
pagesChange(pages){
// console.log('123123')
this.getList(pages)
this.pages = pages
let district
if(this.dept.ancestors.split(',').length == 2){
if(Array.isArray(this.form.district)) {
if(this.form.district.length == 2) {
district = this.form.district[1].slice(0, 11);
}
} else {
district = this.form.district.slice(0, 8);
}
} else if(this.dept.ancestors.split(',').length == 3){
district = this.form.district[1].slice(0, 11);
} else {
if(this.form.district.length == 2) {
district = this.form.district[1].slice(0, 11);
} else {
district = this.form.district[0].slice(0, 8);
}
}
this.getList({...pages,...this.form,district:district})
},
//
handleSelectionChange(val) {

Loading…
Cancel
Save