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
9dc4e337
Commit
9dc4e337
authored
Nov 24, 2020
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打包
parent
0e04b8a3
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
300 additions
and
61 deletions
+300
-61
.gitignore
.gitignore
+1
-0
mode1.vue
src/components/MonitorComponents/MonitorCard/mode1.vue
+33
-1
monitor-chart.vue
...mponents/MonitorComponents/MonitorChart/monitor-chart.vue
+1
-1
monitor-form.vue
...components/MonitorComponents/MonitorForm/monitor-form.vue
+7
-4
api.js
src/server/api.js
+1
-0
actions.js
src/store/actions.js
+7
-1
mutations.js
src/store/mutations.js
+6
-0
state.js
src/store/state.js
+2
-0
common.js
src/util/common.js
+14
-3
combine.vue
src/views/components/combine.vue
+59
-34
command.vue
src/views/components/command.vue
+4
-3
complaint-report.vue
src/views/components/complaint-report.vue
+8
-6
done-component.vue
src/views/components/done-component.vue
+109
-0
industry-supervise.vue
src/views/components/industry-supervise.vue
+12
-1
operation-sign.vue
src/views/components/operation-sign.vue
+1
-1
right-component.vue
src/views/components/right-component.vue
+1
-1
main.vue
src/views/main.vue
+34
-5
No files found.
.gitignore
View file @
9dc4e337
*.zip
# Logs
# Logs
logs
logs
*.log
*.log
...
...
src/components/MonitorComponents/MonitorCard/mode1.vue
View file @
9dc4e337
...
@@ -3,10 +3,15 @@
...
@@ -3,10 +3,15 @@
<div
class=
"card-title"
:style=
"`color:$
{color}`">
<div
class=
"card-title"
:style=
"`color:$
{color}`">
<div
class=
"dot"
/>
<div
class=
"dot"
/>
{{
title
}}
{{
title
}}
<p
v-if=
"showTab"
>
<span
:class=
"
{on: curTab === '处置中'}" @click="handleClick('处置中')">处置中
</span>
|
<span
:class=
"
{on: curTab === '已完成'}" @click="handleClick('已完成')">已完成
</span>
</p>
<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>
<p
v-if=
"showTip"
class=
"tip"
>
<span>
数值为
</span>
报修数量/占比/密度
</p>
</div>
</div>
<div
class=
"card-content"
>
<div
class=
"card-content"
>
<slot
/>
<slot
/>
...
@@ -28,8 +33,23 @@ export default {
...
@@ -28,8 +33,23 @@ export default {
},
},
color
:
{
color
:
{
type
:
String
,
type
:
String
,
},
showTab
:
{
type
:
Boolean
,
default
:
false
,
},
},
data
()
{
return
{
curTab
:
'处置中'
,
}
}
},
},
methods
:
{
handleClick
(
type
)
{
this
.
curTab
=
type
this
.
$store
.
commit
(
'SET_CUR_TAB'
,
type
)
},
},
}
}
</
script
>
</
script
>
...
@@ -41,11 +61,23 @@ export default {
...
@@ -41,11 +61,23 @@ export default {
font-size .11rem
font-size .11rem
font-weight bold
font-weight bold
position relative
position relative
>p
font-weight normal
margin-left .05rem
font-size .09rem
>span
color #999
cursor pointer
&:hover
&.on
color #fff
.tip
.tip
position absolute
position absolute
right 0
right 0
font-weight normal
font-weight normal
font-size .08rem
font-size .08rem
>span
color #999
.dot
.dot
width .03rem
width .03rem
height .1rem
height .1rem
...
...
src/components/MonitorComponents/MonitorChart/monitor-chart.vue
View file @
9dc4e337
...
@@ -327,7 +327,7 @@ export default {
...
@@ -327,7 +327,7 @@ export default {
textStyle
:
{
textStyle
:
{
color
:
'#ccc'
,
color
:
'#ccc'
,
},
},
fontSize
:
this
.
fontSize
,
fontSize
:
this
.
fontSize
*
0.9
,
},
},
axisLine
:
{
axisLine
:
{
lineStyle
:
{
lineStyle
:
{
...
...
src/components/MonitorComponents/MonitorForm/monitor-form.vue
View file @
9dc4e337
...
@@ -4,12 +4,14 @@
...
@@ -4,12 +4,14 @@
<Row
class=
"row"
v-for=
"(row, rowIndex) in layout"
:key=
"rowIndex"
>
<Row
class=
"row"
v-for=
"(row, rowIndex) in layout"
:key=
"rowIndex"
>
<i-col
class=
"col"
v-for=
"(col, key) in row"
:key=
"key"
:span=
"col.width"
:offset=
"col.offset || 0"
>
<i-col
class=
"col"
v-for=
"(col, key) in row"
:key=
"key"
:span=
"col.width"
:offset=
"col.offset || 0"
>
<div
:style=
"`text-align: $
{col.align || 'right'}; width:${labelWidth}rem;`">
{{
col
.
label
}}
:
</div>
<div
:style=
"`text-align: $
{col.align || 'right'}; width:${labelWidth}rem;`">
{{
col
.
label
}}
:
</div>
<img
v-if=
"col.type == 'img'"
@
click=
"handleView(model[key])"
:src=
"require(`@/assets/images/$
{model[key]}`)"/>
<template
v-if=
"col.type == 'img'"
>
<img
v-for=
"img in model[key] && model[key].split(',')"
:key=
"img"
@
click=
"handleView(img)"
:src=
"img"
/>
</
template
>
<div
v-else
class=
"content"
>
{{col.format ? col.format(model[key]) : (model[key] || ' ')}}
</div>
<div
v-else
class=
"content"
>
{{col.format ? col.format(model[key]) : (model[key] || ' ')}}
</div>
</i-col>
</i-col>
</Row>
</Row>
<m-modal
v-model=
"showImg"
>
<m-modal
v-model=
"showImg"
width=
"40%"
title=
"图片"
>
<img
v-if=
"showImg"
style=
"
width: 100%;"
:src=
"require(`@/assets/images/$
{curSrc}`)
"/>
<img
v-if=
"showImg"
style=
"
max-height:45vh;width:100%;"
:src=
"curSrc
"
/>
</m-modal>
</m-modal>
</div>
</div>
</template>
</template>
...
@@ -79,8 +81,9 @@ export default {
...
@@ -79,8 +81,9 @@ export default {
.content
.content
flex 1
flex 1
img
img
width 2
5
%
width 2
0
%
height .5rem
height .5rem
margin 0.05rem 0
margin 0.05rem 0
margin-right .03rem
cursor pointer
cursor pointer
</
style
>
</
style
>
src/server/api.js
View file @
9dc4e337
...
@@ -2,6 +2,7 @@ let BASE_URL = ''
...
@@ -2,6 +2,7 @@ let BASE_URL = ''
let
DATA_URL
=
''
let
DATA_URL
=
''
switch
(
process
.
env
.
NODE_ENV
)
{
switch
(
process
.
env
.
NODE_ENV
)
{
case
'production'
:
case
'production'
:
// BASE_URL = 'http://10.89.4.164:18080/api'
BASE_URL
=
'http://yangpu.hm.omniview.pro/api'
BASE_URL
=
'http://yangpu.hm.omniview.pro/api'
DATA_URL
=
'http://10.89.1.208:10005'
DATA_URL
=
'http://10.89.1.208:10005'
break
break
...
...
src/store/actions.js
View file @
9dc4e337
...
@@ -15,6 +15,7 @@ export default {
...
@@ -15,6 +15,7 @@ export default {
dispatch
(
'getRepairInfo'
)
dispatch
(
'getRepairInfo'
)
dispatch
(
'getComplaintInfo'
)
dispatch
(
'getComplaintInfo'
)
dispatch
(
'getHealthInfo'
)
dispatch
(
'getHealthInfo'
)
dispatch
(
'getDoneList'
)
},
},
getTaskList
({
commit
})
{
getTaskList
({
commit
})
{
ajax
.
get
({
url
:
api
.
GET_TASK_LIST
}).
then
(
res
=>
{
ajax
.
get
({
url
:
api
.
GET_TASK_LIST
}).
then
(
res
=>
{
...
@@ -22,10 +23,15 @@ export default {
...
@@ -22,10 +23,15 @@ export default {
})
})
},
},
getHandleList
({
commit
})
{
// 获取并全局设置联勤联动处置列表
getHandleList
({
commit
})
{
// 获取并全局设置联勤联动处置列表
ajax
.
get
({
url
:
api
.
GET_HANDLE_LIST
}).
then
(
res
=>
{
ajax
.
get
({
url
:
api
.
GET_HANDLE_LIST
,
params
:
{
state_ne
:
5
}
}).
then
(
res
=>
{
commit
(
'SET_HANDLE_LIST'
,
com
.
confirm
(
res
,
'data.content'
,
[]))
commit
(
'SET_HANDLE_LIST'
,
com
.
confirm
(
res
,
'data.content'
,
[]))
})
})
},
},
getDoneList
({
commit
})
{
// 获取并全局设置已完成列表
ajax
.
get
({
url
:
api
.
GET_HANDLE_LIST
,
params
:
{
state
:
5
}}).
then
(
res
=>
{
commit
(
'SET_DONE_LIST'
,
com
.
confirm
(
res
,
'data.content'
,
[]))
})
},
getResourceCount
({
commit
})
{
// 获取运行体征
getResourceCount
({
commit
})
{
// 获取运行体征
ajax
.
get
({
url
:
api
.
GET_RESOURCE_COUNT
}).
then
(
res
=>
{
ajax
.
get
({
url
:
api
.
GET_RESOURCE_COUNT
}).
then
(
res
=>
{
commit
(
'SET_RESOURCE_COUNT'
,
com
.
confirm
(
res
,
'data.content'
,
{}))
commit
(
'SET_RESOURCE_COUNT'
,
com
.
confirm
(
res
,
'data.content'
,
{}))
...
...
src/store/mutations.js
View file @
9dc4e337
...
@@ -5,6 +5,9 @@ export default {
...
@@ -5,6 +5,9 @@ export default {
SET_CURDATE
(
state
,
date
)
{
SET_CURDATE
(
state
,
date
)
{
state
.
curDate
=
date
state
.
curDate
=
date
},
},
SET_CUR_TAB
(
state
,
val
)
{
state
.
handleCurTab
=
val
},
SET_COMMAND_MODAL
(
state
,
val
)
{
SET_COMMAND_MODAL
(
state
,
val
)
{
state
.
showCommandModal
=
val
state
.
showCommandModal
=
val
},
},
...
@@ -14,6 +17,9 @@ export default {
...
@@ -14,6 +17,9 @@ export default {
SET_HANDLE_LIST
(
state
,
data
)
{
SET_HANDLE_LIST
(
state
,
data
)
{
state
.
handleList
=
data
state
.
handleList
=
data
},
},
SET_DONE_LIST
(
state
,
data
)
{
state
.
doneList
=
data
},
SET_RESOURCE_COUNT
(
state
,
data
)
{
SET_RESOURCE_COUNT
(
state
,
data
)
{
state
.
resourceCount
=
data
state
.
resourceCount
=
data
},
},
...
...
src/store/state.js
View file @
9dc4e337
export
default
{
export
default
{
showLoading
:
false
,
showLoading
:
false
,
curDate
:
null
,
curDate
:
null
,
handleCurTab
:
'处置中'
,
showCommandModal
:
false
,
showCommandModal
:
false
,
taskList
:
[],
taskList
:
[],
handleList
:
[],
handleList
:
[],
doneList
:
[],
resourceCount
:
{},
resourceCount
:
{},
communityRate
:
{},
communityRate
:
{},
marketShare
:
{},
marketShare
:
{},
...
...
src/util/common.js
View file @
9dc4e337
...
@@ -31,12 +31,21 @@ export default {
...
@@ -31,12 +31,21 @@ export default {
return
path
.
split
(
'.'
).
reduce
(
reducer
,
obj
)
return
path
.
split
(
'.'
).
reduce
(
reducer
,
obj
)
}
}
},
},
transStatus
(
type
)
{
if
(
type
==
1
)
{
return
'转物业'
}
else
if
(
type
==
2
)
{
return
'转物业'
}
else
if
(
type
==
5
)
{
return
'已完成'
}
},
transType
(
type
)
{
transType
(
type
)
{
const
data
=
{
const
data
=
{
'
staffLeaveAlarmTcfteodr'
:
'门岗脱岗
'
,
'
accCtl'
:
'门禁异常
'
,
'parkFireExit'
:
'占用消防通道'
,
'parkFireExit'
:
'占用消防通道'
,
'nonVehicleCharg'
:
'集中充电异常'
,
'nonVehicleCharg'
:
'集中充电异常'
,
'
elevatorLock'
:
'楼道充电'
,
'
heap'
:
'楼道堆物'
,
// 延吉
'buildingVibration'
:
'损坏承重结构'
,
'buildingVibration'
:
'损坏承重结构'
,
'trash'
:
'非定时倒垃圾'
,
'trash'
:
'非定时倒垃圾'
,
'manholeCover'
:
'窨井盖异常'
,
'manholeCover'
:
'窨井盖异常'
,
...
@@ -44,7 +53,9 @@ export default {
...
@@ -44,7 +53,9 @@ export default {
'roofWater'
:
'屋顶积水'
,
'roofWater'
:
'屋顶积水'
,
'hermeticSpace'
:
'屋顶违章建筑'
,
'hermeticSpace'
:
'屋顶违章建筑'
,
'weixiuzijin'
:
'维修资金异常'
,
'weixiuzijin'
:
'维修资金异常'
,
'accCtl'
:
'门禁异常'
,
'streetMonitor'
:
'街面占用'
,
// 控江
'staffLeaveAlarmTcfteodr'
:
'门岗脱岗'
,
'elevatorLock'
:
'楼道充电'
,
}
}
return
data
[
type
]
return
data
[
type
]
},
},
...
...
src/views/components/combine.vue
View file @
9dc4e337
<
template
>
<
template
>
<div
class=
"combine"
>
<div
class=
"combine"
>
<m-scroll
v-if=
"list.length > 0"
:length=
"list.length"
:limit=
"2"
>
<m-scroll
v-if=
"list.length > 0"
:length=
"list.length"
:limit=
"2"
>
<div
@
click=
"$emit('select', item)"
class=
"detail
"
v-for=
"item in list"
:key=
"item.id"
>
<div
@
click=
"$emit('select', item)"
:class=
"
{detail: true, done: !isDoing}
" v-for="item in list" :key="item.id">
<div>
<div>
<h5>
{{
item
.
communityName
}}
</h5>
<h5>
{{
item
.
communityName
}}
</h5>
<p>
{{
item
.
create_time
}}
</p>
<p
v-if=
"isDoing"
>
{{
item
.
create_time
}}
</p>
<p
v-else
class=
"name"
><span>
{{
item
.
receive_property_name
}}
</span>
完成处置
</p>
</div>
</div>
<div
class=
"content"
>
<div
v-if=
"isDoing"
class=
"content"
>
<div>
<div>
{{
$com
.
transType
(
item
.
types
)
||
'暂无分类'
}}
</div>
<p>
协同事项
</p>
<div
:title=
"item.create_note"
>
事件描述:
{{
item
.
create_note
||
'暂无描述'
}}
</div>
<p>
{{
$com
.
transType
(
item
.
types
)
||
'暂无分类'
}}
</p>
</div>
<div>
<p>
发现方式
</p>
<p>
{{
item
.
check_type
||
'智能发现'
}}
</p>
</div>
</div>
<div
>
<div
v-else
class=
"content"
>
<p>
响应部门
</p
>
<div>
{{
$com
.
transType
(
item
.
types
)
||
'暂无分类'
}}
</div
>
<p>
{{
item
.
cspName
||
item
.
receive_property_name
}}
</p
>
<div>
{{
item
.
create_time
}}
</div
>
</div>
</div>
</div>
<m-step
v-if=
"isDoing"
class=
"combine-step"
:steps=
"steps"
:current=
"getCurrent(item)"
/>
<m-step
class=
"combine-step"
:steps=
"steps"
:current=
"getCurrent(item)"
/>
</div>
</div>
</m-scroll>
</m-scroll>
<div
v-else
class=
"no-data"
>
<div
v-else
class=
"no-data"
>
...
@@ -31,6 +26,7 @@
...
@@ -31,6 +26,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
mapState
}
from
'vuex'
export
default
{
export
default
{
name
:
'Combine'
,
name
:
'Combine'
,
data
()
{
data
()
{
...
@@ -44,9 +40,23 @@ export default {
...
@@ -44,9 +40,23 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
...
mapState
([
'handleList'
,
'curSmartType'
,
'handleCurTab'
,
'doneList'
,
]),
isDoing
()
{
return
this
.
handleCurTab
===
'处置中'
},
list
()
{
list
()
{
const
{
handleList
}
=
this
.
$store
.
state
if
(
this
.
handleCurTab
===
'已完成'
)
{
return
handleList
return
this
.
doneList
}
if
(
this
.
curSmartType
)
{
return
this
.
handleList
.
filter
(
item
=>
item
.
types
===
this
.
curSmartType
)
}
return
this
.
handleList
}
}
},
},
methods
:
{
methods
:
{
...
@@ -63,10 +73,6 @@ export default {
...
@@ -63,10 +73,6 @@ export default {
<
style
lang=
"stylus"
scoped
>
<
style
lang=
"stylus"
scoped
>
.combine
.combine
// .no-data
// width 100%
// height 100%
// $flex-center()
.no-data
.no-data
$flex-center()
$flex-center()
flex-direction column
flex-direction column
...
@@ -83,11 +89,20 @@ export default {
...
@@ -83,11 +89,20 @@ export default {
position relative
position relative
cursor pointer
cursor pointer
transition background .2s, box-shadow .3s ease-in-out
transition background .2s, box-shadow .3s ease-in-out
&.done
padding .1rem
&:hover
&:hover
background $section-hover
background $section-hover
box-shadow -0.05rem .01rem .05rem .01rem rgba(0,0,0,0.8)
box-shadow -0.05rem .01rem .05rem .01rem rgba(0,0,0,0.8)
h5
h5
font-size .1rem
font-size .1rem
.name
color #ccc
font-size .08rem
>span
color $edgeColor
font-size .1rem
font-weight bold
>div
>div
&:first-child
&:first-child
display flex
display flex
...
@@ -95,11 +110,21 @@ export default {
...
@@ -95,11 +110,21 @@ export default {
&.content
&.content
display flex
display flex
margin .05rem 0
margin .05rem 0
justify-content space-between
>div
p
&:first-child
color $cardFontColor
font-size .08rem
font-size .08rem
color #ccc
&:first-child
color #FF9D27
border .01rem solid @color
border-radius .02rem
padding 0 .05rem
margin-right .05rem
&:last-child
flex 1
overflow hidden
white-space nowrap
text-overflow ellipsis
text-align right
.combine-step
.combine-step
position absolute
position absolute
left .1rem
left .1rem
...
...
src/views/components/command.vue
View file @
9dc4e337
...
@@ -7,7 +7,8 @@
...
@@ -7,7 +7,8 @@
<p>
{{
item
.
name
}}
</p>
<p>
{{
item
.
name
}}
</p>
</div>
</div>
</div>
</div>
<img
@
click=
"$store.commit('SET_COMMAND_MODAL', true)"
class=
"img"
src=
"@/assets/images/command3.png"
/>
<img
class=
"img"
src=
"@/assets/images/command3.png"
/>
<!--
<img
@
click=
"$store.commit('SET_COMMAND_MODAL', true)"
class=
"img"
src=
"@/assets/images/command3.png"
/>
-->
</div>
</div>
</
template
>
</
template
>
...
@@ -20,12 +21,12 @@ export default {
...
@@ -20,12 +21,12 @@ export default {
{
{
img
:
'command1.png'
,
img
:
'command1.png'
,
label
:
'指挥长'
,
label
:
'指挥长'
,
name
:
'
卞洪斌
'
,
name
:
'
于洋
'
,
},
},
{
{
img
:
'command2.png'
,
img
:
'command2.png'
,
label
:
'值班长'
,
label
:
'值班长'
,
name
:
'
丁建新
'
,
name
:
'
吴传婷
'
,
},
},
]
]
}
}
...
...
src/views/components/complaint-report.vue
View file @
9dc4e337
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</div>
</div>
<!-- <div @click="showMore" v-if="chartData.length > 8" class="more">查看更多</div> -->
<!-- <div @click="showMore" v-if="chartData.length > 8" class="more">查看更多</div> -->
<Divider>
投诉分布
</Divider>
<Divider>
投诉分布
</Divider>
<p
class=
"tip"
>
数值为
报修数量/占比/密度
</p>
<p
class=
"tip"
>
<span>
数值为
</span>
报修数量/占比/密度
</p>
<div
class=
"rate"
>
<div
class=
"rate"
>
<RateComponent
<RateComponent
:info=
"rateInfo"
:info=
"rateInfo"
...
@@ -123,6 +123,8 @@ export default {
...
@@ -123,6 +123,8 @@ export default {
transform translateY(70%)
transform translateY(70%)
text-align right
text-align right
font-size .08rem
font-size .08rem
>span
color #999
.no-data
.no-data
$flex-center()
$flex-center()
flex-direction column
flex-direction column
...
@@ -185,11 +187,11 @@ export default {
...
@@ -185,11 +187,11 @@ export default {
border-radius 50%
border-radius 50%
p
p
margin 0 .02rem
margin 0 .02rem
&:nth-of-type(1)
//
&:nth-of-type(1)
width: .61rem
//
width: .61rem
overflow hidden
//
overflow hidden
text-overflow ellipsis
//
text-overflow ellipsis
white-space nowrap
//
white-space nowrap
.rate
.rate
flex 1
flex 1
.more
.more
...
...
src/views/components/done-component.vue
0 → 100644
View file @
9dc4e337
<
template
>
<div
class=
"done-component"
>
<div>
<p
class=
"title"
><span
class=
"dot"
/>
风险报警信息
</p>
<m-form
:label-width=
".6"
:model=
"data"
:layout=
"layout"
/>
</div>
<div
v-for=
"item in data.details.slice(1)"
:key=
"item.id"
>
<p
class=
"title"
><span
class=
"dot"
/>
{{
getName
(
item
.
backStatus
)
}}
处置
</p>
<m-form
:label-width=
".6"
:model=
"item"
:layout=
"detailLayout"
/>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'DoneComponent'
,
props
:
{
data
:
{
type
:
Object
,
required
:
true
,
},
},
data
()
{
return
{
layout
:
[
{
communityName
:
{
label
:
'小区名称'
,
width
:
24
,
},
device_name
:
{
label
:
'报警地址'
,
width
:
24
,
},
types
:
{
label
:
'报警类型'
,
width
:
24
,
format
:
val
=>
this
.
$com
.
transType
(
val
)
},
create_note
:
{
label
:
'报警内容'
,
width
:
24
,
},
create_time
:
{
label
:
'报警时间'
,
width
:
24
,
},
state
:
{
label
:
'处置状态'
,
width
:
24
,
format
:
val
=>
this
.
$com
.
transStatus
(
val
)
},
},
],
detailLayout
:
[
{
checkTime
:
{
label
:
'处置时间'
,
width
:
24
,
},
backResult
:
{
label
:
'处置结果'
,
width
:
24
,
},
imgs
:
{
label
:
'处置图片'
,
width
:
24
,
type
:
'img'
,
},
},
],
}
},
methods
:
{
getName
(
type
)
{
if
(
type
==
'0'
)
{
return
'转物业'
}
if
(
type
==
'1'
||
type
==
'2'
)
{
return
'物业'
}
if
(
type
==
'3'
)
{
return
'转街道'
}
if
(
type
==
'4'
)
{
return
'街道'
}
},
},
}
</
script
>
<
style
lang=
"stylus"
scoped
>
.done-component
.title
background rgba(51,145,255,.2)
color $edgeColor
padding .05rem 0
display flex
align-items center
font-weight bold
font-size .11rem
>.dot
display inline-block
width .03rem
height .12rem
background $edgeColor
margin-right .1rem
</
style
>
src/views/components/industry-supervise.vue
View file @
9dc4e337
...
@@ -106,7 +106,17 @@ export default {
...
@@ -106,7 +106,17 @@ export default {
legend
:
{
legend
:
{
top
:
'15%'
,
top
:
'15%'
,
formatter
:
(
name
)
=>
{
formatter
:
(
name
)
=>
{
return
`
${
name
}
${(
this
.
chartData
.
find
(
e
=>
e
.
name
===
name
)).
value
}
%`
const
data
=
this
.
chartData
let
total
=
0
let
tarValue
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
total
+=
data
[
i
].
value
if
(
data
[
i
].
name
===
name
)
{
tarValue
=
data
[
i
].
value
}
}
const
percent
=
(
tarValue
/
total
*
100
).
toFixed
(
0
)
return
`
${
name
}
${
percent
}
%`
}
}
}
}
},
},
...
@@ -293,6 +303,7 @@ export default {
...
@@ -293,6 +303,7 @@ export default {
display flex
display flex
margin .02rem 0
margin .02rem 0
justify-content space-between
justify-content space-between
font-size .09rem
p
p
&:first-child
&:first-child
color $cardFontColor
color $cardFontColor
...
...
src/views/components/operation-sign.vue
View file @
9dc4e337
...
@@ -244,7 +244,7 @@ export default {
...
@@ -244,7 +244,7 @@ export default {
display flex
display flex
flex-direction column
flex-direction column
flex-wrap wrap
flex-wrap wrap
margin-top 3%
margin-top 3
.5
%
transform translateX(-15%)
transform translateX(-15%)
>div
>div
min-height 16.5%
min-height 16.5%
...
...
src/views/components/right-component.vue
View file @
9dc4e337
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</div>
</div>
<div
class=
"right"
>
<div
class=
"right"
>
<m-card
title=
"投诉信访"
><ComplaintReport
/></m-card>
<m-card
title=
"投诉信访"
><ComplaintReport
/></m-card>
<m-card
title=
"联勤联动"
><Combine
/></m-card>
<m-card
title=
"联勤联动"
showTab
><Combine
@
select=
"$emit('handle', $event)"
/></m-card>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/views/main.vue
View file @
9dc4e337
...
@@ -18,13 +18,16 @@
...
@@ -18,13 +18,16 @@
<RightComponent
<RightComponent
v-show=
"!fullView"
v-show=
"!fullView"
area=
"right"
area=
"right"
@
handle=
"handle
Map
Click"
@
handle=
"handle
List
Click"
/>
/>
</m-animate>
</m-animate>
<MapBtns
v-model=
"fullView"
@
zoomin=
"zoom('in')"
@
zoomout=
"zoom('out')"
/>
<MapBtns
v-model=
"fullView"
@
zoomin=
"zoom('in')"
@
zoomout=
"zoom('out')"
/>
<m-modal
v-model=
"detailModal"
title=
"智能报警"
>
<m-modal
v-model=
"detailModal"
title=
"智能报警"
>
<m-form
:label-width=
".6"
:model=
"detailData"
:layout=
"detailLayout"
/>
<m-form
:label-width=
".6"
:model=
"detailData"
:layout=
"detailLayout"
/>
</m-modal>
</m-modal>
<m-modal
v-model=
"doneModal"
title=
"已完成处置"
>
<DoneComponent
v-if=
"doneModal"
:data=
"doneData"
/>
</m-modal>
<m-modal
title=
"指挥体系"
:value=
"showCommandModal"
@
close=
"$store.commit('SET_COMMAND_MODAL', false)"
>
<m-modal
title=
"指挥体系"
:value=
"showCommandModal"
@
close=
"$store.commit('SET_COMMAND_MODAL', false)"
>
<m-form
:label-width=
".7"
:model=
"commandData"
:layout=
"commandLayout"
/>
<m-form
:label-width=
".7"
:model=
"commandData"
:layout=
"commandLayout"
/>
</m-modal>
</m-modal>
...
@@ -36,6 +39,7 @@ import LeftComponent from './components/left-component'
...
@@ -36,6 +39,7 @@ import LeftComponent from './components/left-component'
import
RightComponent
from
'./components/right-component'
import
RightComponent
from
'./components/right-component'
import
MapBtns
from
'./components/map-btns'
import
MapBtns
from
'./components/map-btns'
import
VideoComponent
from
'./components/video-component'
import
VideoComponent
from
'./components/video-component'
import
DoneComponent
from
'./components/done-component'
import
{
mapState
,
mapActions
}
from
'vuex'
import
{
mapState
,
mapActions
}
from
'vuex'
export
default
{
export
default
{
name
:
'Main'
,
name
:
'Main'
,
...
@@ -44,6 +48,7 @@ export default {
...
@@ -44,6 +48,7 @@ export default {
RightComponent
,
RightComponent
,
MapBtns
,
MapBtns
,
VideoComponent
,
VideoComponent
,
DoneComponent
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -71,18 +76,30 @@ export default {
...
@@ -71,18 +76,30 @@ export default {
width
:
12
,
width
:
12
,
format
:
val
=>
val
&&
this
.
$com
.
transType
(
val
)
format
:
val
=>
val
&&
this
.
$com
.
transType
(
val
)
},
},
receive_property_name
:
{
// receive_property_name: {
label
:
'响应部门'
,
// label: '响应部门',
// width: 12,
// },
device_name
:
{
label
:
'设备地点'
,
width
:
12
,
width
:
12
,
},
},
},
},
// {
// device_name: {
// label: '设备地点',
// width: 24,
// },
// },
{
{
device_nam
e
:
{
create_not
e
:
{
label
:
'
设备地点
'
,
label
:
'
事件描述
'
,
width
:
24
,
width
:
24
,
},
},
},
},
],
],
doneModal
:
false
,
doneData
:
{},
}
}
},
},
computed
:
{
computed
:
{
...
@@ -92,6 +109,7 @@ export default {
...
@@ -92,6 +109,7 @@ export default {
'commandData'
,
'commandData'
,
'showCommandModal'
,
'showCommandModal'
,
'handleList'
,
'handleList'
,
'handleCurTab'
,
])
])
},
},
beforeDestroy
()
{
beforeDestroy
()
{
...
@@ -102,6 +120,7 @@ export default {
...
@@ -102,6 +120,7 @@ export default {
...
mapActions
([
...
mapActions
([
'initData'
,
// 初始化获取首次加载所需的所有数据
'initData'
,
// 初始化获取首次加载所需的所有数据
'getHandleList'
,
'getHandleList'
,
'getDoneList'
,
]),
]),
mapComplete
()
{
mapComplete
()
{
this
.
init
()
this
.
init
()
...
@@ -109,6 +128,7 @@ export default {
...
@@ -109,6 +128,7 @@ export default {
this
.
complete
=
true
this
.
complete
=
true
this
.
timer
=
setInterval
(()
=>
{
this
.
timer
=
setInterval
(()
=>
{
this
.
getHandleList
()
this
.
getHandleList
()
this
.
getDoneList
()
},
1000
*
60
*
1
)
},
1000
*
60
*
1
)
},
},
init
()
{
init
()
{
...
@@ -124,6 +144,15 @@ export default {
...
@@ -124,6 +144,15 @@ export default {
this
.
detailData
=
data
this
.
detailData
=
data
this
.
detailModal
=
true
this
.
detailModal
=
true
},
},
handleListClick
(
data
)
{
if
(
this
.
handleCurTab
===
'处置中'
)
{
this
.
detailData
=
data
this
.
detailModal
=
true
}
else
{
this
.
doneData
=
data
this
.
doneModal
=
true
}
},
drawSmartPoints
(
data
)
{
drawSmartPoints
(
data
)
{
const
{
addPoint
,
removePoint
}
=
this
.
$refs
.
map
const
{
addPoint
,
removePoint
}
=
this
.
$refs
.
map
removePoint
(
this
.
smartPoints
)
removePoint
(
this
.
smartPoints
)
...
...
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