Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yangpu-property
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
郭铭瑶
yangpu-property
Commits
a3538341
Commit
a3538341
authored
Nov 19, 2020
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接入数据,调整页面
parent
d7ee37e8
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
172 additions
and
71 deletions
+172
-71
mode1.vue
src/components/MonitorComponents/MonitorCard/mode1.vue
+11
-0
api.js
src/server/api.js
+2
-0
actions.js
src/store/actions.js
+16
-0
mutations.js
src/store/mutations.js
+15
-0
state.js
src/store/state.js
+11
-0
complaint-report.vue
src/views/components/complaint-report.vue
+26
-7
industry-supervise.vue
src/views/components/industry-supervise.vue
+43
-38
property-health.vue
src/views/components/property-health.vue
+40
-21
rate-component.vue
src/views/components/rate-component.vue
+6
-3
right-component.vue
src/views/components/right-component.vue
+1
-1
main.vue
src/views/main.vue
+1
-1
No files found.
src/components/MonitorComponents/MonitorCard/mode1.vue
View file @
a3538341
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
<div
class=
"line"
>
<div
class=
"line"
>
<img
src=
"@/assets/images/card-title-line.png"
/>
<img
src=
"@/assets/images/card-title-line.png"
/>
</div>
</div>
<p
v-if=
"showTip"
class=
"tip"
>
数值为报修数量/占比/密度
</p>
</div>
</div>
<div
class=
"card-content"
>
<div
class=
"card-content"
>
<slot
/>
<slot
/>
...
@@ -21,6 +22,10 @@ export default {
...
@@ -21,6 +22,10 @@ export default {
type
:
String
,
type
:
String
,
default
:
'标题'
,
default
:
'标题'
,
},
},
showTip
:
{
type
:
Boolean
,
default
:
false
,
},
color
:
{
color
:
{
type
:
String
,
type
:
String
,
}
}
...
@@ -35,6 +40,12 @@ export default {
...
@@ -35,6 +40,12 @@ export default {
align-items center
align-items center
font-size .11rem
font-size .11rem
font-weight bold
font-weight bold
position relative
.tip
position absolute
right 0
font-weight normal
font-size .08rem
.dot
.dot
width .03rem
width .03rem
height .1rem
height .1rem
...
...
src/server/api.js
View file @
a3538341
...
@@ -18,6 +18,8 @@ export default {
...
@@ -18,6 +18,8 @@ export default {
GET_COMMUNITY_RATE
:
'/service-basicdatasync-ddd/public/community/ratio'
,
// 小区类型占比
GET_COMMUNITY_RATE
:
'/service-basicdatasync-ddd/public/community/ratio'
,
// 小区类型占比
GET_MARKET_SHARE
:
'/service-basicdatasync-ddd/public/property/topten'
,
// 市场份额
GET_MARKET_SHARE
:
'/service-basicdatasync-ddd/public/property/topten'
,
// 市场份额
GET_INDUSTRY_INFO
:
'/service-documents-ddd/public/industry/supervision'
,
// 行业监管信息
GET_INDUSTRY_INFO
:
'/service-documents-ddd/public/industry/supervision'
,
// 行业监管信息
GET_REPORT_INFO
:
'/service-documents-ddd/public/information/report'
,
// 信息上报、重大事件清单
GET_REPAIR_INFO
:
'/service-documents-ddd/public/property/maintenance'
,
// 物业维修
GET_REPAIR_INFO
:
'/service-documents-ddd/public/property/maintenance'
,
// 物业维修
GET_COMPLAINT_INFO
:
'/service-docments-ddd/public/complaint/lettersvisits'
,
// 信访投诉
GET_COMPLAINT_INFO
:
'/service-docments-ddd/public/complaint/lettersvisits'
,
// 信访投诉
GET_HEALTH_INFO
:
'/service-documents-ddd/public/property/health/degree'
,
// 物业健康度
}
}
src/store/actions.js
View file @
a3538341
...
@@ -13,6 +13,7 @@ export default {
...
@@ -13,6 +13,7 @@ export default {
dispatch
(
'getIndustryInfo'
)
dispatch
(
'getIndustryInfo'
)
dispatch
(
'getRepairInfo'
)
dispatch
(
'getRepairInfo'
)
dispatch
(
'getComplaintInfo'
)
dispatch
(
'getComplaintInfo'
)
dispatch
(
'getHealthInfo'
)
},
},
getHandleList
({
commit
})
{
// 获取并全局设置联勤联动处置列表
getHandleList
({
commit
})
{
// 获取并全局设置联勤联动处置列表
ajax
.
get
({
url
:
api
.
GET_HANDLE_LIST
}).
then
(
res
=>
{
ajax
.
get
({
url
:
api
.
GET_HANDLE_LIST
}).
then
(
res
=>
{
...
@@ -39,6 +40,16 @@ export default {
...
@@ -39,6 +40,16 @@ export default {
commit
(
'SET_INDUSTRY_INFO'
,
com
.
confirm
(
res
,
'data.content'
,
{}))
commit
(
'SET_INDUSTRY_INFO'
,
com
.
confirm
(
res
,
'data.content'
,
{}))
})
})
},
},
getReportInfo
({
commit
,
state
})
{
// 信息上报、重大事件
ajax
.
get
({
url
:
api
.
GET_REPORT_INFO
,
taskid
:
state
.
reportId
}).
then
(
res
=>
{
commit
(
'SET_REPORT_INFO'
,
com
.
confirm
(
res
,
'data.content.typeRatio'
,
[]))
commit
(
'SET_REPORT_SUM'
,
{
finish
:
com
.
confirm
(
res
,
'data.content.finish'
,
0
),
total
:
com
.
confirm
(
res
,
'data.content.total'
,
0
),
})
commit
(
'SET_IMPORTANT_LIST'
,
com
.
confirm
(
res
,
'data.content.importantEvent'
,
[]))
})
},
getRepairInfo
({
commit
})
{
// 物业维修
getRepairInfo
({
commit
})
{
// 物业维修
ajax
.
get
({
url
:
api
.
GET_REPAIR_INFO
}).
then
(
res
=>
{
ajax
.
get
({
url
:
api
.
GET_REPAIR_INFO
}).
then
(
res
=>
{
commit
(
'SET_REPAIR_INFO'
,
com
.
confirm
(
res
,
'data.content'
,
{}))
commit
(
'SET_REPAIR_INFO'
,
com
.
confirm
(
res
,
'data.content'
,
{}))
...
@@ -49,4 +60,9 @@ export default {
...
@@ -49,4 +60,9 @@ export default {
commit
(
'SET_COMPLAINT_INFO'
,
com
.
confirm
(
res
,
'data.content'
,
{}))
commit
(
'SET_COMPLAINT_INFO'
,
com
.
confirm
(
res
,
'data.content'
,
{}))
})
})
},
},
getHealthInfo
({
commit
})
{
// 健康度
ajax
.
get
({
url
:
api
.
GET_HEALTH_INFO
}).
then
(
res
=>
{
commit
(
'SET_HEALTH_INFO'
,
com
.
confirm
(
res
,
'data.content'
,
{}))
})
},
}
}
src/store/mutations.js
View file @
a3538341
...
@@ -29,4 +29,19 @@ export default {
...
@@ -29,4 +29,19 @@ export default {
SET_COMPLAINT_INFO
(
state
,
data
)
{
SET_COMPLAINT_INFO
(
state
,
data
)
{
state
.
complaintInfo
=
data
state
.
complaintInfo
=
data
},
},
SET_REPORT_ID
(
state
,
val
)
{
state
.
reportId
=
val
},
SET_REPORT_INFO
(
state
,
data
)
{
state
.
reportInfo
=
data
},
SET_REPORT_SUM
(
state
,
val
)
{
state
.
reportSum
=
val
},
SET_IMPORTANT_LIST
(
state
,
data
)
{
state
.
importantList
=
data
},
SET_HEALTH_INFO
(
state
,
data
)
{
state
.
healthInfo
=
data
},
}
}
src/store/state.js
View file @
a3538341
...
@@ -9,6 +9,17 @@ export default {
...
@@ -9,6 +9,17 @@ export default {
industryInfo
:
{},
industryInfo
:
{},
repairInfo
:
{},
repairInfo
:
{},
complaintInfo
:
{},
complaintInfo
:
{},
reportId
:
null
,
reportInfo
:
[],
reportSum
:
{
finish
:
0
,
total
:
0
},
importantList
:
[],
healthInfo
:
{
creditScore
:
{},
propertyWarrantyScore
:
{},
communityManagementScore
:
{},
ownerSatisfactionScore
:
{},
monthCheck
:
{},
},
commandData
:
{
commandData
:
{
name1
:
'赵广浩'
,
name1
:
'赵广浩'
,
name2
:
'成剑杰'
,
name2
:
'成剑杰'
,
...
...
src/views/components/complaint-report.vue
View file @
a3538341
...
@@ -10,7 +10,9 @@
...
@@ -10,7 +10,9 @@
</div>
</div>
</div>
</div>
<Divider>
投诉分类占比
</Divider>
<Divider>
投诉分类占比
</Divider>
<p
class=
"tip"
>
数值为报修数量/占比/密度
</p>
<div
class=
"chart-wrapper"
>
<div
class=
"chart-wrapper"
>
<template
v-if=
"chartData.length > 0"
>
<div
class=
"chart"
><m-chart
:config=
"config"
:data=
"chartData"
/></div>
<div
class=
"chart"
><m-chart
:config=
"config"
:data=
"chartData"
/></div>
<div
class=
"tips"
>
<div
class=
"tips"
>
<div
v-for=
"(item, i) in chartData"
:key=
"item.name"
>
<div
v-for=
"(item, i) in chartData"
:key=
"item.name"
>
...
@@ -20,6 +22,11 @@
...
@@ -20,6 +22,11 @@
<p>
{{
item
.
rate
}}
</p>
<p>
{{
item
.
rate
}}
</p>
</div>
</div>
</div>
</div>
</
template
>
<div
v-else
class=
"no-data"
>
<img
src=
"@/assets/images/building.png"
/>
<p>
— 暂无数据 —
</p>
</div>
</div>
</div>
<Divider>
投诉分布
</Divider>
<Divider>
投诉分布
</Divider>
<div
class=
"rate"
>
<div
class=
"rate"
>
...
@@ -93,6 +100,18 @@ export default {
...
@@ -93,6 +100,18 @@ export default {
.complaint-report
.complaint-report
display flex
display flex
flex-direction column
flex-direction column
.tip
text-align right
font-size .08rem
.no-data
$flex-center()
flex-direction column
width 100%
height 100%
color #999
img
width .35rem
height @width
.sum
.sum
display flex
display flex
background $color-map(.1)
background $color-map(.1)
...
...
src/views/components/industry-supervise.vue
View file @
a3538341
...
@@ -23,32 +23,32 @@
...
@@ -23,32 +23,32 @@
<div
class=
"info"
>
<div
class=
"info"
>
<div>
<div>
<p>
上报完成任务总数
</p>
<p>
上报完成任务总数
</p>
<m-count
class=
"count"
:value=
"
946
"
/>
<m-count
class=
"count"
:value=
"
+reportSum.finish
"
/>
</div>
</div>
<div>
<div>
<p>
上报信息条数
</p>
<p>
上报信息条数
</p>
<m-count
class=
"count"
:value=
"
1079
"
/>
<m-count
class=
"count"
:value=
"
+reportSum.total
"
/>
</div>
</div>
<Select
value=
"台风黑格比"
>
<Select
v-model=
"reportId"
>
<Option
name=
"台风黑格比"
value=
"台风黑格比"
>
台风黑格比
</Option>
<Option
value=
"2008041192891503"
>
台风黑格比
</Option>
<Option
name=
"台风"
value=
"台风"
>
台风
</Option>
</Select>
</Select>
</div>
</div>
<div
class=
"chart"
><m-chart
:config=
"config"
:data=
"mock
Data"
:options=
"options"
/></div>
<div
class=
"chart"
v-if=
"chartData.length > 0"
><m-chart
:config=
"config"
:data=
"chart
Data"
:options=
"options"
/></div>
</div>
</div>
<Divider>
重大事件清单
</Divider>
<Divider>
重大事件清单
</Divider>
<div
class=
"important-list"
>
<div
class=
"important-list"
>
<div
class=
"no-data"
>
<template
v-if=
"importantList.length > 0"
>
<img
src=
"@/assets/images/building.png"
/>
<div
class=
"detail"
v-for=
"(item, i) in importantList"
:key=
"i"
>
<p>
— 暂无数据 —
</p>
</div>
<!--
<div
class=
"detail"
v-for=
"(item, i) in list"
:key=
"i"
>
<div>
<div>
<h5>
{{
item
.
community
}}
</h5>
<h5>
{{
item
.
sectname
}}
</h5>
<
p>
{{
item
.
theme
}}
</p
>
<
!--
<p>
{{
item
.
taskid
}}
</p>
--
>
</div>
</div>
<div
class=
"content"
>
<div
class=
"content"
>
<div>
<div>
<p>
事件内容
</p>
<p>
{{
item
.
rpcontent
}}
</p>
</div>
<!--
<div>
<p>
事件类型
</p>
<p>
事件类型
</p>
<p>
{{
item
.
type
}}
</p>
<p>
{{
item
.
type
}}
</p>
</div>
</div>
...
@@ -59,22 +59,25 @@
...
@@ -59,22 +59,25 @@
<div>
<div>
<p>
财产损失
</p>
<p>
财产损失
</p>
<p><m-count
:value=
"item.lost"
/><span
class=
"unit"
>
元
</span></p>
<p><m-count
:value=
"item.lost"
/><span
class=
"unit"
>
元
</span></p>
</div>
-->
</div>
</div>
</div>
</div>
</div>
-->
</
template
>
<div
v-else
class=
"no-data"
>
<img
src=
"@/assets/images/building.png"
/>
<p>
— 暂无数据 —
</p>
</div>
</div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
mapState
}
from
'vuex'
export
default
{
export
default
{
name
:
'IndustrySupervise'
,
name
:
'IndustrySupervise'
,
data
()
{
data
()
{
return
{
return
{
list
:
[
reportId
:
'2008041192891503'
,
{
community
:
'保利维拉家园'
,
theme
:
'上报主题'
,
type
:
'事件类型'
,
die
:
3
,
lost
:
5000
},
{
community
:
'中凯城市之光'
,
theme
:
'上报主题'
,
type
:
'事件类型'
,
die
:
3
,
lost
:
5000
},
],
months
:
[
months
:
[
'Jan'
,
'Jan'
,
'Feb'
,
'Feb'
,
...
@@ -91,10 +94,6 @@ export default {
...
@@ -91,10 +94,6 @@ export default {
],
],
config
:
{
config
:
{
colors
:
[
'#5bd4ff'
,
'#72c011'
,
'#fece35'
,
'#ff6160'
,
'#826bfa'
,
'#cccccc'
],
colors
:
[
'#5bd4ff'
,
'#72c011'
,
'#fece35'
,
'#ff6160'
,
'#826bfa'
,
'#cccccc'
],
tooltip
:
{
formatter
:
'{b}:{c}个 ({d}%)'
,
confine
:
true
,
},
legend
:
{
legend
:
{
align
:
'right'
,
align
:
'right'
,
orient
:
'vertical'
,
orient
:
'vertical'
,
...
@@ -107,27 +106,18 @@ export default {
...
@@ -107,27 +106,18 @@ export default {
legend
:
{
legend
:
{
top
:
'15%'
,
top
:
'15%'
,
formatter
:
(
name
)
=>
{
formatter
:
(
name
)
=>
{
const
data
=
[
return
`
${
name
}
${(
this
.
chartData
.
find
(
e
=>
e
.
name
===
name
)).
value
}
%`
{
name
:
'空中坠物'
,
value
:
15
},
{
name
:
'树木倒伏'
,
value
:
20
},
{
name
:
'小区积水'
,
value
:
45
},
{
name
:
'车库进水'
,
value
:
6
},
{
name
:
'人员受伤'
,
value
:
9
},
]
return
`
${
name
}
${(
data
.
find
(
e
=>
e
.
name
===
name
)).
value
}
%`
}
}
}
}
},
},
mockData
:
[
{
name
:
'空中坠物'
,
value
:
15
},
{
name
:
'树木倒伏'
,
value
:
20
},
{
name
:
'小区积水'
,
value
:
45
},
{
name
:
'车库进水'
,
value
:
6
},
{
name
:
'人员受伤'
,
value
:
9
},
],
}
}
},
},
computed
:
{
computed
:
{
...
mapState
([
'reportInfo'
,
'reportSum'
,
'importantList'
,
]),
industryInfo
()
{
industryInfo
()
{
return
this
.
$store
.
state
.
industryInfo
return
this
.
$store
.
state
.
industryInfo
},
},
...
@@ -140,6 +130,12 @@ export default {
...
@@ -140,6 +130,12 @@ export default {
{
name
:
'专项检查完成数'
,
value
:
+
specialExamination
},
{
name
:
'专项检查完成数'
,
value
:
+
specialExamination
},
]
]
},
},
chartData
()
{
return
this
.
reportInfo
.
map
(
item
=>
({
name
:
item
.
rpcontent
,
value
:
Number
((
item
.
rpcontentCount
&&
item
.
rpcontentCount
.
replace
(
'%'
,
''
))
||
0
),
}))
},
},
},
methods
:
{
methods
:
{
getClass
(
month
)
{
getClass
(
month
)
{
...
@@ -157,6 +153,15 @@ export default {
...
@@ -157,6 +153,15 @@ export default {
}
}
},
},
},
},
watch
:
{
reportId
:
{
handler
(
cur
)
{
this
.
$store
.
commit
(
'SET_REPORT_ID'
,
cur
)
this
.
$store
.
dispatch
(
'getReportInfo'
)
},
immediate
:
true
,
}
}
}
}
</
script
>
</
script
>
...
...
src/views/components/property-health.vue
View file @
a3538341
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"chart"
ref=
"chart"
></div>
<div
class=
"chart"
ref=
"chart"
></div>
<div
class=
"total"
>
<div
class=
"total"
>
<p>
综合得分
</p>
<p>
综合得分
</p>
<m-count
style=
"font-size:0.12rem;color:#75e1b0;"
:value=
"
91"
/>
<m-count
style=
"font-size:0.12rem;color:#75e1b0;"
:value=
"
total"
/>
<p
class=
"unit"
>
(分)
</p>
<p
class=
"unit"
>
(分)
</p>
</div>
</div>
</div>
</div>
...
@@ -11,13 +11,22 @@
...
@@ -11,13 +11,22 @@
<
script
>
<
script
>
import
echarts
from
'echarts'
import
echarts
from
'echarts'
const
mockValue
=
[
22.1
,
20.9
,
24.5
,
20.2
,
21.1
]
export
default
{
export
default
{
name
:
'PropertyHealth'
,
name
:
'PropertyHealth'
,
data
()
{
data
()
{
return
{
return
{
chart
:
null
,
chart
:
null
,
option
:
{
}
},
mounted
()
{
setTimeout
(
this
.
init
,
0
)
},
beforeDestroy
()
{
this
.
chart
&&
window
.
removeEventListener
(
'resize'
,
()
=>
this
.
chart
.
resize
())
},
computed
:
{
option
()
{
return
{
tooltip
:
{
tooltip
:
{
trigger
:
'axis'
,
trigger
:
'axis'
,
confine
:
true
,
confine
:
true
,
...
@@ -37,12 +46,12 @@ export default {
...
@@ -37,12 +46,12 @@ export default {
},
},
c
:
{
c
:
{
color
:
'#fff'
,
color
:
'#fff'
,
align
:
'center'
,
fontSize
:
12
*
this
.
sizeRate
,
fontSize
:
12
*
this
.
sizeRate
,
},
},
},
},
formatter
:
(
text
,
{
index
})
=>
{
formatter
:
(
text
,
{
index
})
=>
{
const
max
=
[
25
,
25
,
25
,
25
,
25
]
return
`{a|
${
text
}
}\n{b|
${
this
.
chartData
[
index
]}
}{c|/20}`
return
`{a|
${
text
}
}\n{b|
${
mockValue
[
index
]}
}{c|/
${
max
[
index
]}
}`
},
},
},
},
splitArea
:
{
splitArea
:
{
...
@@ -58,11 +67,11 @@ export default {
...
@@ -58,11 +67,11 @@ export default {
show
:
false
,
show
:
false
,
},
},
indicator
:
[
indicator
:
[
{
text
:
'全市物业诚信计分'
,
index
:
0
,
max
:
2
5
},
{
text
:
'全市物业诚信计分'
,
index
:
0
,
max
:
2
0
},
{
text
:
'投诉报修情况'
,
index
:
1
,
max
:
2
5
},
{
text
:
'投诉报修情况'
,
index
:
1
,
max
:
2
0
},
{
text
:
'小区管理情况'
,
index
:
2
,
max
:
2
5
},
{
text
:
'小区管理情况'
,
index
:
2
,
max
:
2
0
},
{
text
:
'业主满意度'
,
index
:
3
,
max
:
2
5
},
{
text
:
'业主满意度'
,
index
:
3
,
max
:
2
0
},
{
text
:
'行业落实情况'
,
index
:
4
,
max
:
2
5
},
{
text
:
'行业落实情况'
,
index
:
4
,
max
:
2
0
},
],
],
center
:
[
'50%'
,
'60%'
],
center
:
[
'50%'
,
'60%'
],
radius
:
'60%'
,
radius
:
'60%'
,
...
@@ -77,22 +86,27 @@ export default {
...
@@ -77,22 +86,27 @@ export default {
color
:
'rgb(255,106,37)'
,
color
:
'rgb(255,106,37)'
,
},
},
data
:
[{
data
:
[{
value
:
mockValue
,
value
:
this
.
chartData
,
}]
}]
}]
}]
}
}
}
},
},
mounted
()
{
setTimeout
(
this
.
init
,
0
)
},
beforeDestroy
()
{
this
.
chart
&&
window
.
removeEventListener
(
'resize'
,
()
=>
this
.
chart
.
resize
())
},
computed
:
{
sizeRate
()
{
sizeRate
()
{
return
Number
((
screen
.
height
/
800
).
toFixed
(
1
))
return
Number
((
screen
.
height
/
800
).
toFixed
(
1
))
},
},
chartData
()
{
const
{
creditScore
,
propertyWarrantyScore
,
communityManagementScore
,
ownerSatisfactionScore
,
monthCheck
}
=
this
.
$store
.
state
.
healthInfo
return
[
+
creditScore
.
county
||
0
,
+
propertyWarrantyScore
.
county
||
0
,
+
communityManagementScore
.
county
||
0
,
+
ownerSatisfactionScore
.
county
||
0
,
+
monthCheck
.
county
||
0
,
]
},
total
()
{
return
this
.
chartData
.
reduce
((
cur
,
acc
)
=>
cur
+
acc
,
0
)
},
},
},
methods
:
{
methods
:
{
init
()
{
init
()
{
...
@@ -100,7 +114,12 @@ export default {
...
@@ -100,7 +114,12 @@ export default {
window
.
addEventListener
(
'resize'
,
()
=>
this
.
chart
.
resize
())
window
.
addEventListener
(
'resize'
,
()
=>
this
.
chart
.
resize
())
this
.
chart
.
setOption
(
this
.
option
)
this
.
chart
.
setOption
(
this
.
option
)
}
}
}
},
watch
:
{
chartData
()
{
this
.
chart
&&
this
.
chart
.
setOption
(
this
.
option
)
},
},
}
}
</
script
>
</
script
>
...
...
src/views/components/rate-component.vue
View file @
a3538341
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<div
class=
"wrapper"
>
<div
class=
"wrapper"
>
<template
v-if=
"list.length > 0"
>
<template
v-if=
"list.length > 0"
>
<div
v-for=
"item in list"
:key=
"item.cspName"
>
<div
v-for=
"item in list"
:key=
"item.cspName"
>
<p>
{{
item
.
cspName
}}
</p>
<p
:title=
"item.cspName"
>
{{
item
.
cspName
}}
</p>
<div><div
class=
"inner"
:style=
"`width:$
{item.cspRatio};background:linear-gradient(to right, ${colors[0]}, ${colors[1]})`"/>
</div>
<div><div
class=
"inner"
:style=
"`width:$
{item.cspRatio};background:linear-gradient(to right, ${colors[0]}, ${colors[1]})`"/>
</div>
<p>
{{
item
.
countSize
||
item
.
cspCount
||
0
}}
/
{{
item
.
cspRatio
||
0
}}
/
{{
item
.
cspDensity
||
0
}}
</p>
<p>
{{
item
.
countSize
||
item
.
cspCount
||
0
}}
/
{{
item
.
cspRatio
||
0
}}
/
{{
item
.
cspDensity
||
0
}}
</p>
</div>
</div>
...
@@ -116,8 +116,11 @@ export default {
...
@@ -116,8 +116,11 @@ export default {
p
p
font-size .09rem
font-size .09rem
line-height 1.5
line-height 1.5
min-width .6rem
&:first-child
&:first-child
width 1.2rem
overflow hidden
white-space nowrap
text-overflow ellipsis
color #aaa
color #aaa
border-right .01rem solid $cardFontColor
border-right .01rem solid $cardFontColor
padding-right .05rem
padding-right .05rem
...
@@ -125,6 +128,6 @@ export default {
...
@@ -125,6 +128,6 @@ export default {
flex 1
flex 1
.inner
.inner
border-radius .03rem
border-radius .03rem
height .0
6
rem
height .0
5
rem
</
style
>
</
style
>
src/views/components/right-component.vue
View file @
a3538341
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div>
<div>
<div
class=
"left"
>
<div
class=
"left"
>
<m-card
title=
"行业监管"
><IndustrySupervise
/></m-card>
<m-card
title=
"行业监管"
><IndustrySupervise
/></m-card>
<m-card
title=
"物业维修"
><PropertyRepair
/></m-card>
<m-card
title=
"物业维修"
showTip
><PropertyRepair
/></m-card>
</div>
</div>
<div
class=
"right"
>
<div
class=
"right"
>
<m-card
title=
"投诉信访"
><ComplaintReport
/></m-card>
<m-card
title=
"投诉信访"
><ComplaintReport
/></m-card>
...
...
src/views/main.vue
View file @
a3538341
...
@@ -118,7 +118,7 @@ export default {
...
@@ -118,7 +118,7 @@ export default {
map
.
addBoundary
({
name
:
'杨浦区'
})
map
.
addBoundary
({
name
:
'杨浦区'
})
},
},
initMapFocus
()
{
initMapFocus
()
{
this
.
$refs
.
map
.
focus
(
3489.0714111328125
,
10384.431030273437
,
3.5
)
this
.
$refs
.
map
.
focus
(
5493.207992825168
,
7214.452284743532
,
3.5
)
},
},
handleMapClick
(
data
)
{
handleMapClick
(
data
)
{
this
.
detailData
=
data
this
.
detailData
=
data
...
...
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