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
f501ffc5
Commit
f501ffc5
authored
Feb 05, 2021
by
程卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改住宅信息下的每个类目的详情页增加拓展信息维护
parent
53ba10a6
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
772 additions
and
712 deletions
+772
-712
detailItem.vue
src/components/detail/detailItem.vue
+1
-1
zdyModal.vue
src/views/components/zdyModal.vue
+3
-3
basicView.vue
src/views/houseData/basicView.vue
+32
-1
neighborhoodCommittees.vue
src/views/houseData/neighborhoodCommittees.vue
+0
-2
propertyInfoView.vue
src/views/houseData/propertyInfoView.vue
+736
-705
No files found.
src/components/detail/detailItem.vue
View file @
f501ffc5
...
@@ -52,7 +52,7 @@ export default {
...
@@ -52,7 +52,7 @@ export default {
}
}
</
script
>
</
script
>
<
style
>
<
style
>
.detailContent
{
margin
:
-.5px
;
font-size
:
14px
;
line-height
:
40px
;
border
:
1px
solid
#ccc
}
.detailContent
{
margin
:
0
;
font-size
:
14px
;
line-height
:
40px
;
border
:
1px
solid
#ccc
}
.detailContent
.label
{
.detailContent
.label
{
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
...
...
src/views/components/zdyModal.vue
View file @
f501ffc5
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<a-form-item
:label-col=
"
{ span: 0 }" :wrapper-col="{ span: 24}" >
<a-form-item
:label-col=
"
{ span: 0 }" :wrapper-col="{ span: 24}" >
<p
style=
"color:red"
v-if=
"isAll"
>
提示: 修改全部的操作量较大,页面数据可能会有些许延迟,请刷新页面
</p>
<p
style=
"color:red"
v-if=
"isAll"
>
提示: 修改全部的操作量较大,页面数据可能会有些许延迟,请刷新页面
</p>
</a-form-item>
</a-form-item>
<a-form-item
v-for=
"(item,k) in extList"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span:
6
}" :wrapper-col="{ span: 12 }">
<a-form-item
v-for=
"(item,k) in extList"
:key=
"k"
:label=
"item.keyName"
:label-col=
"
{ span:
12
}" :wrapper-col="{ span: 12 }">
<a-select
v-if=
"item.compntType == 'select'"
v-decorator=
"[item.keyCode]"
@
change=
"handleChangezz(item)"
>
<a-select
v-if=
"item.compntType == 'select'"
v-decorator=
"[item.keyCode]"
@
change=
"handleChangezz(item)"
>
<a-select-option
v-for=
"(i) in JSON.parse(item.sltJson)"
:key=
"i"
:value=
"i"
>
{{
i
}}
</a-select-option>
<a-select-option
v-for=
"(i) in JSON.parse(item.sltJson)"
:key=
"i"
:value=
"i"
>
{{
i
}}
</a-select-option>
</a-select>
</a-select>
...
@@ -133,6 +133,6 @@ export default {
...
@@ -133,6 +133,6 @@ export default {
}
}
</
script
>
</
script
>
<
style
>
<
style
scoped
>
</
style
>
</
style
>
src/views/houseData/basicView.vue
View file @
f501ffc5
...
@@ -8,7 +8,8 @@
...
@@ -8,7 +8,8 @@
<div
class=
"detailOperations"
>
<div
class=
"detailOperations"
>
<a-button
@
click=
"$router.push(
{path: `/houseData/buildings`,query:{id:$route.query.id,name:$route.query.name}})"> 门牌幢
</a-button>
<a-button
@
click=
"$router.push(
{path: `/houseData/buildings`,query:{id:$route.query.id,name:$route.query.name}})"> 门牌幢
</a-button>
<a-button
@
click=
"$router.push(
{path: `/houseData/shebei/${$route.query.id}`})"> 设施设备
</a-button>
<a-button
@
click=
"$router.push(
{path: `/houseData/shebei/${$route.query.id}`})"> 设施设备
</a-button>
<a-button
@
click=
"$router.push(
{path: `/houseData/shebei/${$route.query.id}`})"> 设施设备(勘验)
</a-button>
<a-button
@
click=
"showModal(detail)"
>
拓展信息维护
</a-button>
<a-button
v-if=
"$store.state.isXuhui"
@
click=
"$router.push(
{path: `/houseData/shebei/${$route.query.id}`})"> 设施设备(勘验)
</a-button>
<a-button
@
click=
"handleReturn"
>
返回
</a-button>
<a-button
@
click=
"handleReturn"
>
返回
</a-button>
</div>
</div>
</div>
</div>
...
@@ -321,6 +322,7 @@
...
@@ -321,6 +322,7 @@
</a-anchor>
</a-anchor>
</div>
</div>
</div>
</div>
<zdyModal
ref=
"modal"
:resourceId=
"resourceId"
tbl=
"tbl_community"
:extList=
"extList.tbl_community"
@
saveSingleKeys=
"saveSingleKeys"
/>
</div>
</div>
<RouterWapper
v-else
></RouterWapper>
<RouterWapper
v-else
></RouterWapper>
...
@@ -339,6 +341,7 @@ export default {
...
@@ -339,6 +341,7 @@ export default {
cmInfo
:
{},
cmInfo
:
{},
icInfo
:
{},
icInfo
:
{},
rcInfo
:
{},
rcInfo
:
{},
resourceId
:
'0'
,
extList
:
{
extList
:
{
tbl_community
:
[],
tbl_community
:
[],
tbl_community_amst_office
:
[],
tbl_community_amst_office
:
[],
...
@@ -363,6 +366,34 @@ export default {
...
@@ -363,6 +366,34 @@ export default {
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
showModal
(
row
)
{
//展开模态框
console
.
log
(
row
)
this
.
resourceId
=
row
.
id
this
.
getExtKey
(
row
)
},
async
getExtKey
(
row
){
// 处理过的返回数值
await
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_SAFE_EXT
.
replace
(
'{table}'
,
'tbl_community'
).
replace
(
'{id}'
,
row
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
extList
.
tbl_community
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
this
.
$refs
.
modal
.
isShow
=
true
}
})
this
.
$refs
.
modal
.
seeData
()
},
saveSingleKeys
(
params
){
// post保存一条自定义数据
this
.
$ajax
.
post
({
url
:
this
.
$api
.
POST_EXT
,
params
:
params
,
}).
then
(()
=>
{
this
.
getList
()
this
.
$refs
.
modal
.
isShow
=
false
this
.
$refs
.
modal
.
formExt
.
resetFields
()
})
},
handleReturn
()
{
handleReturn
()
{
if
(
!!
this
.
$route
.
query
.
source
&&
this
.
$route
.
query
.
source
==
'wy'
)
{
if
(
!!
this
.
$route
.
query
.
source
&&
this
.
$route
.
query
.
source
==
'wy'
)
{
this
.
$router
.
push
({
path
:
'/houseData/propertyInfo'
,
query
:
{
id
:
this
.
$route
.
query
.
id
,
source
:
'wy'
,
cspId
:
this
.
$route
.
query
.
cspId
,
pageNo
:
this
.
$route
.
query
.
pageNo
,
pageSize
:
this
.
$route
.
query
.
pageSize
}})
this
.
$router
.
push
({
path
:
'/houseData/propertyInfo'
,
query
:
{
id
:
this
.
$route
.
query
.
id
,
source
:
'wy'
,
cspId
:
this
.
$route
.
query
.
cspId
,
pageNo
:
this
.
$route
.
query
.
pageNo
,
pageSize
:
this
.
$route
.
query
.
pageSize
}})
...
...
src/views/houseData/neighborhoodCommittees.vue
View file @
f501ffc5
...
@@ -174,7 +174,6 @@ export default {
...
@@ -174,7 +174,6 @@ export default {
// 正常请求数据得到的结果
// 正常请求数据得到的结果
this
.
pagination
.
total
=
this
.
$com
.
confirm
(
res
,
'data.totalRows'
,
0
)
this
.
pagination
.
total
=
this
.
$com
.
confirm
(
res
,
'data.totalRows'
,
0
)
this
.
tableData
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
this
.
tableData
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
console
.
log
(
this
.
tableData
)
}
}
//
//
// 存储当前页面列表的搜索信息
// 存储当前页面列表的搜索信息
...
@@ -238,7 +237,6 @@ export default {
...
@@ -238,7 +237,6 @@ export default {
this
.
getList
()
this
.
getList
()
},
},
toView
(
params
){
// 查看详情
toView
(
params
){
// 查看详情
console
.
log
(
params
)
this
.
$router
.
push
({
path
:
`/houseData/neighborhoodCommittees/
${
params
.
id
}
`
,
query
:
{
id
:
params
.
id
}})
this
.
$router
.
push
({
path
:
`/houseData/neighborhoodCommittees/
${
params
.
id
}
`
,
query
:
{
id
:
params
.
id
}})
},
},
exportList
(){
//导出功能
exportList
(){
//导出功能
...
...
src/views/houseData/propertyInfoView.vue
View file @
f501ffc5
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
<span
class=
"title"
>
详情
</span>
<span
class=
"title"
>
详情
</span>
<div
class=
"detailOperations"
>
<div
class=
"detailOperations"
>
<a-button
v-if=
"urls.name == 'propertyInfoView'"
@
click=
"$router.push(
{path: `/houseData/basicInfo`,query:{id:$route.query.id,name:$route.query.name}})"> 查看管理小区列表
</a-button>
<a-button
v-if=
"urls.name == 'propertyInfoView'"
@
click=
"$router.push(
{path: `/houseData/basicInfo`,query:{id:$route.query.id,name:$route.query.name}})"> 查看管理小区列表
</a-button>
<a-button
@
click=
"showModal(detail)"
>
拓展信息维护
</a-button>
<a-button
@
click=
"handleReturn"
>
返回
</a-button>
<a-button
@
click=
"handleReturn"
>
返回
</a-button>
</div>
</div>
</div>
</div>
...
@@ -800,6 +801,8 @@
...
@@ -800,6 +801,8 @@
</
template
>
</
template
>
</div>
</div>
</div>
</div>
<zdyModal
ref=
"modal"
:resourceId=
"resourceId"
:tbl=
"tbl"
:extList=
"extList"
@
saveSingleKeys=
"saveSingleKeys"
/>
</div>
</div>
<RouterWapper
v-else
/>
<RouterWapper
v-else
/>
</div>
</div>
...
@@ -817,6 +820,7 @@ export default {
...
@@ -817,6 +820,7 @@ export default {
tbl
:
''
,
tbl
:
''
,
tableData
:
[],
tableData
:
[],
tableData1
:
[],
tableData1
:
[],
resourceId
:
'0'
,
columns
:
[
columns
:
[
{
{
title
:
'小区名称'
,
title
:
'小区名称'
,
...
@@ -863,6 +867,33 @@ export default {
...
@@ -863,6 +867,33 @@ export default {
this
.
getAfterStList
()
this
.
getAfterStList
()
},
},
methods
:
{
methods
:
{
showModal
(
row
)
{
//展开模态框
this
.
resourceId
=
row
.
id
this
.
getExtKey
(
row
)
},
async
getExtKey
(
row
){
// 处理过的返回数值
await
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_SAFE_EXT
.
replace
(
'{table}'
,
this
.
tbl
).
replace
(
'{id}'
,
row
.
id
),
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
extList
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
this
.
$refs
.
modal
.
isShow
=
true
}
})
this
.
$refs
.
modal
.
seeData
()
},
saveSingleKeys
(
params
){
// post保存一条自定义数据
this
.
$ajax
.
post
({
url
:
this
.
$api
.
POST_EXT
,
params
:
params
,
}).
then
(()
=>
{
this
.
getList
()
this
.
$refs
.
modal
.
isShow
=
false
this
.
$refs
.
modal
.
formExt
.
resetFields
()
})
},
getStList
(){
getStList
(){
this
.
$ajax
.
get
({
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_BASIC_LIST
,
url
:
this
.
$api
.
GET_BASIC_LIST
,
...
...
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