Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
east-nanjing-new
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
郭铭瑶
east-nanjing-new
Commits
9a2581fd
Commit
9a2581fd
authored
Apr 13, 2021
by
程卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公共安全右侧 房屋外立面
parent
30743bf7
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
57 additions
and
43 deletions
+57
-43
axios.ts
src/ajax/axios.ts
+1
-1
actions.ts
src/store/actions.ts
+2
-3
index.ts
src/store/index.ts
+1
-0
mutations.ts
src/store/mutations.ts
+7
-0
state.ts
src/store/state.ts
+1
-0
public-safety.vue
src/view/right/public-safety.vue
+45
-39
No files found.
src/ajax/axios.ts
View file @
9a2581fd
...
@@ -11,7 +11,7 @@ Axios.interceptors.request.use(
...
@@ -11,7 +11,7 @@ Axios.interceptors.request.use(
(
config
)
=>
{
(
config
)
=>
{
// 添加token
// 添加token
config
.
headers
.
Authorization
=
config
.
headers
.
Authorization
=
'bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMSIsImVuYWJsZSI6dHJ1ZSwic2NvcGUiOlsicmVhZCIsIndyaXRlIiwidHJ1c3QiXSwiZXhwIjoxNjE4Mz
A5MjIzLCJqdGkiOiJmODhkY2FhMy1iNGIyLTQ3OGUtYjhmMC1kZTQ5ZWU5NWUxYjciLCJjbGllbnRfaWQiOiJzc28iLCJ0aW1lc3RhbXAiOjE2MTgzMDIwMjM4NzR9.XRQSEkUuLSh8QmqGkXxFs_rL4jUuVKrYBuWa7E2DK2rYROvAe4ROJnyQAw8yKbTnZVWLwcKjPUqgVVr_OCW0MeY00pq8YaphxZTAlDdcQ88aJ_04l1F29w55n4lWZqIzveAQxOw6-U_0vTCHGzgBKHfUlbAMxG2WR54b1BDL32hqNGPjZcs7VoFZGi6sfiAYWKu8v_KeOe13tE5BelRYBxNklWYfG1npU8tKM6O3K1hANFpDmZRVSN70PQox0oiZHwJR_61RUsFPCbh-4qoI2H3fyiQMdrz7zsxakcAb2GGr0GJGoNpSMpg-qkydmIkdV3O_lFzHt4CMY78TZPg2lg
'
'bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMSIsImVuYWJsZSI6dHJ1ZSwic2NvcGUiOlsicmVhZCIsIndyaXRlIiwidHJ1c3QiXSwiZXhwIjoxNjE4Mz
E4NjQ2LCJqdGkiOiJhNGRkNTI3YS0zMTdhLTQ4NDEtOTdhZi1jM2NjMDFhN2M0MjMiLCJjbGllbnRfaWQiOiJzc28iLCJ0aW1lc3RhbXAiOjE2MTgzMTE0NDYzMTd9.NZjcj47wdocLAbLpPQWuDlq0NEwzmumJExAU8RGlYhsHV6Cw_9hKQ6yJsZTaDOD_Gp5Zw5YAxMZuh7IFcLBXKFPop-i1NNsLKAethNUOyy6PylQmmlvWhc88ykBf7Q6x63BI5yQ6zsh0_dcc-dKdeoDpIw84d9y4DuuwFVjfqrS2mU4W2qeCgHg-fuz6HikZxoMBTu2Uknx7RQls2104uoN7H0Q7O9IRv5PgbDyTK65vHMgoD3DpfcuB77ud5fBXmZ8vMATJXN6oq5Ho3f-c8kaqoOMBed6wPTG9oTMlziSU6my8u-9icMC_u9OoJKgcPNMa8Liq4rTIjsPizkptNA
'
return
config
return
config
},
},
(
error
)
=>
{
(
error
)
=>
{
...
...
src/store/actions.ts
View file @
9a2581fd
...
@@ -217,9 +217,8 @@ export default {
...
@@ -217,9 +217,8 @@ export default {
const
{
content
}
=
(
const
{
content
}
=
(
await
ajax
.
get
({
url
:
api
.
GET_PUBLICSAFE_OUTHOUSEWALL
})
await
ajax
.
get
({
url
:
api
.
GET_PUBLICSAFE_OUTHOUSEWALL
})
).
data
).
data
// console.log(content)
console
.
log
(
content
)
commit
(
'SET_PUBLICSAFE_OUTHOUSEWALL_2019'
,
content
[
0
])
commit
(
'SET_PUBLICSAFE_OUTHOUSEWALL'
,
content
)
commit
(
'SET_PUBLICSAFE_OUTHOUSEWALL_2020'
,
content
[
1
])
},
},
// 公共服务 - 重点关注楼宇
// 公共服务 - 重点关注楼宇
async
GET_PUBLICSAFE_BUILDINGS
({
async
GET_PUBLICSAFE_BUILDINGS
({
...
...
src/store/index.ts
View file @
9a2581fd
...
@@ -30,6 +30,7 @@ export interface GlobalStateProps {
...
@@ -30,6 +30,7 @@ export interface GlobalStateProps {
pubulicSafeBuildings
:
unknown
[]
pubulicSafeBuildings
:
unknown
[]
pubulicSafePieData
:
unknown
[]
pubulicSafePieData
:
unknown
[]
pubulicSafeNewFindNum
:
{
[
key
:
string
]:
number
}
pubulicSafeNewFindNum
:
{
[
key
:
string
]:
number
}
pubulicSafeOutHouseWall
:
unknown
[]
}
}
export
default
createStore
<
GlobalStateProps
>
({
export
default
createStore
<
GlobalStateProps
>
({
state
,
state
,
...
...
src/store/mutations.ts
View file @
9a2581fd
...
@@ -85,6 +85,13 @@ export default {
...
@@ -85,6 +85,13 @@ export default {
):
void
{
):
void
{
state
.
pubulicSafeSOSMaterail
=
data
state
.
pubulicSafeSOSMaterail
=
data
},
},
SET_PUBLICSAFE_OUTHOUSEWALL
(
// 公共安全-房屋外立面
state
:
GlobalStateProps
,
data
:
unknown
[]
):
void
{
state
.
pubulicSafeOutHouseWall
=
data
},
SET_PUBLICSAFE_OUTHOUSEWALL_2019
(
SET_PUBLICSAFE_OUTHOUSEWALL_2019
(
// 公共安全-房屋外立面
// 公共安全-房屋外立面
state
:
GlobalStateProps
,
state
:
GlobalStateProps
,
...
...
src/store/state.ts
View file @
9a2581fd
...
@@ -27,4 +27,5 @@ export default {
...
@@ -27,4 +27,5 @@ export default {
pubulicSafeBuildings
:
[],
pubulicSafeBuildings
:
[],
pubulicSafePieData
:
[],
pubulicSafePieData
:
[],
pubulicSafeNewFindNum
:
{},
pubulicSafeNewFindNum
:
{},
pubulicSafeOutHouseWall
:
[],
}
as
GlobalStateProps
}
as
GlobalStateProps
src/view/right/public-safety.vue
View file @
9a2581fd
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
<a-select
<a-select
:value=
"year"
:value=
"year"
dropdown-class-name=
"view-selector-drop-down"
dropdown-class-name=
"view-selector-drop-down"
@
select=
"changeYear"
>
>
<a-select-option
<a-select-option
v-for=
"option in yearOptions"
v-for=
"option in yearOptions"
...
@@ -67,7 +68,7 @@
...
@@ -67,7 +68,7 @@
</div>
</div>
</div>
</div>
<div
class=
"bottomBox"
>
<div
class=
"bottomBox"
>
<SubTitle
@
clicktit=
"
clickSecTitl
e"
>
<SubTitle
@
clicktit=
"
searchModal = tru
e"
>
重点关注楼宇
重点关注楼宇
<template
#
secTitle
>
查看清单
</
template
>
<template
#
secTitle
>
查看清单
</
template
>
</SubTitle>
</SubTitle>
...
@@ -130,6 +131,8 @@ export default defineComponent({
...
@@ -130,6 +131,8 @@ export default defineComponent({
components
:
{
Police
,
Population
,
House
,
Company
,
SubTitle
,
Brief
,
Summary
},
components
:
{
Police
,
Population
,
House
,
Company
,
SubTitle
,
Brief
,
Summary
},
setup
()
{
setup
()
{
const
showChart
=
computed
(()
=>
store
.
state
.
curTheme
===
'safety'
)
store
.
dispatch
(
'GET_PUBLICSAFE_SOS_MATERIAL'
)
store
.
dispatch
(
'GET_PUBLICSAFE_SOS_MATERIAL'
)
store
.
dispatch
(
'GET_PUBLICSAFE_OUTHOUSEWALL'
)
store
.
dispatch
(
'GET_PUBLICSAFE_OUTHOUSEWALL'
)
store
.
dispatch
(
'GET_PUBLICSAFE_BUILDINGS'
)
store
.
dispatch
(
'GET_PUBLICSAFE_BUILDINGS'
)
...
@@ -138,18 +141,29 @@ export default defineComponent({
...
@@ -138,18 +141,29 @@ export default defineComponent({
const
searchModal
=
ref
(
false
)
const
searchModal
=
ref
(
false
)
const
SOSMaterail
=
computed
(()
=>
store
.
state
.
pubulicSafeSOSMaterail
)
const
SOSMaterail
=
computed
(()
=>
store
.
state
.
pubulicSafeSOSMaterail
)
const
pieData
=
computed
(()
=>
store
.
state
.
pubulicSafePieData
)
const
pieData
=
computed
(()
=>
store
.
state
.
pubulicSafePieData
)
const
outHouseWall2019
=
computed
(
()
=>
store
.
state
.
pubulicSafeOutHouseWall2019
)
const
outHouseWall2020
=
computed
(
()
=>
store
.
state
.
pubulicSafeOutHouseWall2020
)
const
buildings
=
computed
(()
=>
store
.
state
.
pubulicSafeBuildings
)
const
buildings
=
computed
(()
=>
store
.
state
.
pubulicSafeBuildings
)
const
outHouseWall
=
computed
(()
=>
store
.
state
.
pubulicSafeOutHouseWall
)
const
showChart
=
computed
(()
=>
store
.
state
.
curTheme
===
'safety'
)
const
year
=
ref
(
'2020'
)
//年份
const
yearOptions
=
ref
([
'2020'
,
'2019'
])
//年份option
const
houseSum
=
ref
([
{
name
:
'检查楼数'
,
value
:
0
},
{
name
:
'隐患点数'
,
value
:
0
},
{
name
:
'危险点数'
,
value
:
0
},
])
// { name: '检查楼数', value: outHouseWall.value.checkNum },
// { name: '隐患点数', value: outHouseWall.value.hiddenPoint },
// { name: '危险点数', value: outHouseWall.value.dangerPoint },
const
year
=
'2020'
//切换年份
const
yearOptions
=
ref
([
'2020'
,
'2019'
])
const
changeYear
=
(
value
:
string
)
=>
{
year
.
value
=
value
console
.
log
(
outHouseWall
.
value
)
// houseSum.value = [
// { name: '检查楼数', value: outHouseWall.value.checkNum },
// ]
}
const
list
=
computed
(()
=>
{
const
list
=
computed
(()
=>
{
return
[
return
[
...
@@ -175,13 +189,7 @@ export default defineComponent({
...
@@ -175,13 +189,7 @@ export default defineComponent({
},
},
]
]
})
})
const
houseSum
=
computed
(()
=>
{
return
[
{
name
:
'检查楼数'
,
value
:
outHouseWall2019
.
value
.
checkNum
},
{
name
:
'隐患点数'
,
value
:
outHouseWall2019
.
value
.
hiddenPoint
},
{
name
:
'危险点数'
,
value
:
outHouseWall2019
.
value
.
dangerPoint
},
]
})
const
population
=
ref
([
const
population
=
ref
([
{
name
:
'楼宇名称'
,
value
:
4
,
danger
:
1
},
{
name
:
'楼宇名称'
,
value
:
4
,
danger
:
1
},
{
name
:
'楼宇名称'
,
value
:
4
,
danger
:
1
},
{
name
:
'楼宇名称'
,
value
:
4
,
danger
:
1
},
...
@@ -190,7 +198,6 @@ export default defineComponent({
...
@@ -190,7 +198,6 @@ export default defineComponent({
{
name
:
'楼宇名称'
,
value
:
4
,
danger
:
1
},
{
name
:
'楼宇名称'
,
value
:
4
,
danger
:
1
},
{
name
:
'楼宇名称'
,
value
:
4
,
danger
:
1
},
{
name
:
'楼宇名称'
,
value
:
4
,
danger
:
1
},
])
])
const
pieData1
=
computed
(()
=>
{
const
pieData1
=
computed
(()
=>
{
return
{
return
{
dimensions
:
[
dimensions
:
[
...
@@ -199,20 +206,20 @@ export default defineComponent({
...
@@ -199,20 +206,20 @@ export default defineComponent({
],
],
source
:
[
source
:
[
{
{
name
:
'外立面附加设施危险点'
,
//
name: '外立面附加设施危险点',
value
:
outHouseWall2019
.
value
.
outerWallFacilityDangerPoint
,
// value: outHouseWall
.value.outerWallFacilityDangerPoint,
},
//
},
{
//
{
name
:
'外立面附加设施隐患点'
,
//
name: '外立面附加设施隐患点',
value
:
outHouseWall2019
.
value
.
outerWallFacilityHiddenPoint
,
// value: outHouseWall
.value.outerWallFacilityHiddenPoint,
},
//
},
{
//
{
name
:
'外墙面层隐患点'
,
//
name: '外墙面层隐患点',
value
:
outHouseWall2019
.
value
.
outerWallHiddenPoint
,
// value: outHouseWall
.value.outerWallHiddenPoint,
},
//
},
{
//
{
name
:
'外墙面层危险点'
,
//
name: '外墙面层危险点',
value
:
outHouseWall2019
.
value
.
outerWallDangerPoint
,
// value: outHouseWall
.value.outerWallDangerPoint,
},
},
],
],
}
}
...
@@ -247,10 +254,7 @@ export default defineComponent({
...
@@ -247,10 +254,7 @@ export default defineComponent({
},
},
],
],
})
})
function
clickSecTitle
()
{
// 点击查看清单按钮 弹框展示全部重点关注楼宇清单列表
searchModal
.
value
=
true
}
return
{
return
{
list
,
list
,
houseSum
,
houseSum
,
...
@@ -260,13 +264,15 @@ export default defineComponent({
...
@@ -260,13 +264,15 @@ export default defineComponent({
pieData2
,
pieData2
,
pieData1
,
pieData1
,
showChart
,
showChart
,
changeYear
,
year
,
year
,
yearOptions
,
yearOptions
,
SOSMaterail
,
SOSMaterail
,
outHouseWall2019
,
//
outHouseWall2019,
outHouseWall2020
,
//
outHouseWall2020,
buildings
,
buildings
,
clickSecTitle
,
// clickSecTitle,
outHouseWall
,
pieData
,
pieData
,
// handleChangeYear,
// handleChangeYear,
}
}
...
...
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