Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wbx-PCAndMobi
pc
Commits
38727fb7
Commit
38727fb7
authored
May 19, 2021
by
程卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改住宅小区分页bug
parent
5e5d3efe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
9 deletions
+38
-9
tableAndMut.vue
src/views/components/tableAndMut.vue
+7
-4
basicInfo.vue
src/views/houseData/basicInfo.vue
+31
-5
No files found.
src/views/components/tableAndMut.vue
View file @
38727fb7
...
@@ -14,10 +14,10 @@
...
@@ -14,10 +14,10 @@
@
selKeysNew =
"selKeysNew"
@
selKeysNew =
"selKeysNew"
/>
/>
<p
style=
"textAlign:left;margin:-10px;marginLeft:10px;"
v-if=
"$route.name == 'basicInfo'"
>
<p
style=
"textAlign:left;margin:-10px;marginLeft:10px;"
v-if=
"$route.name == 'basicInfo'"
>
小区总数:
{{
pagination
.
total
!=
''
?
pagination
.
total
+
'个'
:
'暂无数据'
}}
,
小区总数:
{{
pagination
show
.
total
!=
''
?
paginationshow
.
total
+
'个'
:
'暂无数据'
}}
,
房屋总面积:
{{
pagination
.
totStCnstArea
!=
'0'
?
pagination
.
totStCnstArea
+
'平方米'
:
'暂无数据'
}}
,
房屋总面积:
{{
pagination
show
.
totStCnstArea
!=
'0'
?
paginationshow
.
totStCnstArea
+
'平方米'
:
'暂无数据'
}}
,
总门牌数:
{{
pagination
.
totUnits
!=
'0'
?
pagination
.
totUnits
+
'幢'
:
'暂无数据'
}}
,
总门牌数:
{{
pagination
show
.
totUnits
!=
'0'
?
paginationshow
.
totUnits
+
'幢'
:
'暂无数据'
}}
,
总分户数:
{{
pagination
.
totHous
!=
'0'
?
pagination
.
totHous
+
'户'
:
'暂无数据'
}}
总分户数:
{{
pagination
show
.
totHous
!=
'0'
?
paginationshow
.
totHous
+
'户'
:
'暂无数据'
}}
</p>
</p>
<a-table
class=
"portalTable"
<a-table
class=
"portalTable"
size=
"small"
size=
"small"
...
@@ -68,6 +68,9 @@ export default {
...
@@ -68,6 +68,9 @@ export default {
pagination
:
{
pagination
:
{
type
:
Object
type
:
Object
},
},
paginationshow
:
{
type
:
Object
},
tbl
:
{
tbl
:
{
type
:
String
type
:
String
},
},
...
...
src/views/houseData/basicInfo.vue
View file @
38727fb7
...
@@ -151,7 +151,7 @@
...
@@ -151,7 +151,7 @@
</a-form>
</a-form>
<!-- <p class="gayLine noline" /> -->
<!-- <p class="gayLine noline" /> -->
<div
class=
"portalTableOperates"
>
<div
class=
"portalTableOperates"
>
<tableAndMut
ref=
"childTab"
:tableData=
"tableData"
:pagination=
"pagination"
:tbl=
"tbl"
/>
<tableAndMut
ref=
"childTab"
:paginationshow=
"paginationshow"
:tableData=
"tableData"
:pagination=
"pagination"
:tbl=
"tbl"
/>
</div>
</div>
</div>
</div>
<RouterWapper
v-else
></RouterWapper>
<RouterWapper
v-else
></RouterWapper>
...
@@ -353,6 +353,23 @@ export default {
...
@@ -353,6 +353,23 @@ export default {
totUnits
:
''
,
// 总门牌数 幢
totUnits
:
''
,
// 总门牌数 幢
totHous
:
''
,
// 总分户数 户
totHous
:
''
,
// 总分户数 户
},
},
paginationshow
:
{
// 分页信息
pageNo
:
1
,
pageSize
:
20
,
current
:
1
,
defaultCurrent
:
1
,
defaultPageSize
:
20
,
showQuickJumper
:
true
,
onChange
:
this
.
pageChange
,
showSizeChanger
:
true
,
onShowSizeChange
:
this
.
showSizeChange
,
pageSizeOptions
:
[
'10'
,
'20'
,
'50'
,
'100'
],
total
:
0
,
// 小区总数
showTotal
:
total
=>
`总条数:
${
total
}
`
,
totStCnstArea
:
''
,
// 房屋总面积 平方米
totUnits
:
''
,
// 总门牌数 幢
totHous
:
''
,
// 总分户数 户
},
tableData
:
[],
tableData
:
[],
stLevel
:
''
,
stLevel
:
''
,
cspServiceType
:
''
,
cspServiceType
:
''
,
...
@@ -425,11 +442,12 @@ export default {
...
@@ -425,11 +442,12 @@ export default {
url
:
this
.
$api
.
GET_XIAOQUTOTAL
,
url
:
this
.
$api
.
GET_XIAOQUTOTAL
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
==
'200'
)
{
if
(
res
.
code
==
'200'
)
{
console
.
log
(
res
)
const
contentTotal
=
res
.
data
.
content
const
contentTotal
=
res
.
data
.
content
this
.
pagination
.
total
=
contentTotal
.
sectCount
this
.
pagination
show
.
total
=
contentTotal
.
sectCount
this
.
pagination
.
totStCnstArea
=
contentTotal
.
stCnstArea
this
.
pagination
show
.
totStCnstArea
=
contentTotal
.
stCnstArea
this
.
pagination
.
totUnits
=
contentTotal
.
totUnits
this
.
pagination
show
.
totUnits
=
contentTotal
.
totUnits
this
.
pagination
.
totHous
=
contentTotal
.
totHous
this
.
pagination
show
.
totHous
=
contentTotal
.
totHous
}
}
})
})
},
},
...
@@ -585,6 +603,7 @@ export default {
...
@@ -585,6 +603,7 @@ export default {
})
})
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
/**
/**
* 存导出的数据? 暂时废弃
* 存导出的数据? 暂时废弃
*/
*/
...
@@ -594,10 +613,15 @@ export default {
...
@@ -594,10 +613,15 @@ export default {
// a = a+k+'='+ searchParams[k]+ '&'
// a = a+k+'='+ searchParams[k]+ '&'
// }
// }
// this.exportParams = a
// this.exportParams = a
// 小区的展示统计量信息数据
// 小区的展示统计量信息数据
if
(
this
.
$store
.
state
.
userInfos
.
orgType
==
2
){
if
(
this
.
$store
.
state
.
userInfos
.
orgType
==
2
){
this
.
showCom
=
false
this
.
showCom
=
false
}
}
this
.
pagination
.
total
=
this
.
$com
.
confirm
(
res
,
'data.totalRows'
,
0
)
this
.
pagination
.
totStCnstArea
=
this
.
$com
.
confirm
(
res
,
'data.totStCnstArea'
,
0
)
this
.
pagination
.
totUnits
=
this
.
$com
.
confirm
(
res
,
'data.totUnits'
,
0
)
this
.
pagination
.
totHous
=
this
.
$com
.
confirm
(
res
,
'data.totHous'
,
0
)
this
.
tableData
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
this
.
tableData
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
// 处理显示的字段
// 处理显示的字段
...
@@ -844,6 +868,8 @@ export default {
...
@@ -844,6 +868,8 @@ export default {
},
},
changeServiceType
(
val
)
{
changeServiceType
(
val
)
{
this
.
cspServiceType
=
val
this
.
cspServiceType
=
val
this
.
pagination
.
current
=
1
this
.
pagination
.
pageNo
=
1
this
.
getList
()
this
.
getList
()
},
},
changeNeighbourType
(
val
)
{
changeNeighbourType
(
val
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment