Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
component-lib
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
郭铭瑶
component-lib
Commits
6b66404d
Commit
6b66404d
authored
Nov 09, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物业监管接口补全
parent
30241555
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
22 deletions
+40
-22
my-sub.vue
src/components/MyComponent/MySub/my-sub.vue
+2
-0
index.vue
src/lib/A016/index.vue
+35
-20
index.vue
src/lib/A017/index.vue
+3
-2
No files found.
src/components/MyComponent/MySub/my-sub.vue
View file @
6b66404d
...
...
@@ -12,6 +12,7 @@
v-if=
"addition.value || addition.value === 0"
class=
"count orange-count"
:value=
"addition.value"
:decimal=
"addition.decimal || 0"
/>
<span
v-if=
"addition.unit"
>
{{
addition
.
unit
}}
</span>
<!--
<img
src=
"@/assets/images/title-dec.png"
/>
-->
...
...
@@ -52,6 +53,7 @@ export interface AdditionProp {
name
?:
string
value
?:
number
unit
?:
string
decimal
?:
number
}
export
default
defineComponent
({
name
:
'MySub'
,
...
...
src/lib/A016/index.vue
View file @
6b66404d
...
...
@@ -33,8 +33,9 @@
</div>
</div>
</div>
<m-sub
:addition=
"
{ value: 1684, unit: '万元' }"> 维修资金
</m-sub>
<!--
<Summary
title=
"续筹分布"
:list=
"list"
:avatar=
"avatar1"
/>
-->
<m-sub
:addition=
"
{ value: capital, unit: '万元', decimal: 2 }">
维修资金
</m-sub>
<div
class=
"warn"
>
<div>
<p>
{{
list
[
0
].
name
}}
</p>
...
...
@@ -71,12 +72,14 @@ const _config = {
row
:
2
,
apis
:
{
main
:
'/service-documents-ddd/public/checkOrder/operatingIndex'
,
capital
:
'/service-documents-ddd/public/maintenance/count/amt'
,
amount
:
'/service-documents-ddd/public/houseContinuedWarnings'
,
list
:
'/service-documents-ddd/public/buildingWarnings/countByStreet'
,
},
}
export
default
_config
</
script
>
<
script
lang=
"ts"
setup
>
import
avatar1
from
'@/assets/images/avatar1.png'
import
Summary
from
'@/components/summary.vue'
import
{
onMounted
,
ref
}
from
'vue'
import
{
ajax
}
from
'@/ajax'
...
...
@@ -98,7 +101,27 @@ onMounted(() => {
]
info
.
value
=
{
alreadyCheckCount
,
rectifyRatio
}
})
ajax
.
get
({
url
:
_config
.
apis
.
capital
}).
then
((
res
)
=>
{
const
{
tranAmt
=
0
}
=
res
?.
data
?.
content
||
{}
capital
.
value
=
tranAmt
/
10000
})
ajax
.
get
({
url
:
_config
.
apis
.
amount
}).
then
((
res
)
=>
{
const
{
yjmpzSum
=
0
,
//门牌幢
yjxqSum
=
0
,
//小区
yjfhSum
=
0
,
//分户
}
=
res
?.
data
?.
content
||
{}
list
.
value
=
[
{
name
:
'续筹预警'
,
value
:
yjfhSum
},
{
name
:
'涉及门牌'
,
value
:
yjmpzSum
},
{
name
:
'涉及小区'
,
value
:
yjxqSum
},
]
})
ajax
.
get
({
url
:
_config
.
apis
.
list
}).
then
((
res
)
=>
{
barData
.
value
.
source
=
res
?.
data
?.
content
||
[]
})
})
const
capital
=
ref
(
0
)
const
info
=
ref
({
alreadyCheckCount
:
0
,
rectifyRatio
:
0
,
...
...
@@ -109,9 +132,9 @@ const summary = ref([
{
name
:
'物业日查'
,
value
:
0
},
])
const
list
=
ref
([
{
name
:
'续筹预警'
,
value
:
4752
0
},
{
name
:
'涉及门牌'
,
value
:
396
0
},
{
name
:
'涉及小区'
,
value
:
45
},
{
name
:
'续筹预警'
,
value
:
0
},
{
name
:
'涉及门牌'
,
value
:
0
},
{
name
:
'涉及小区'
,
value
:
0
},
])
const
partys
=
[
...
...
@@ -120,22 +143,13 @@ const partys = [
{
name
:
'物业公司党小组'
,
value
:
167
},
]
const
barData
=
{
const
barData
=
ref
(
{
dimensions
:
[
{
name
:
'street'
,
displayName
:
'街道'
},
{
name
:
'value'
,
displayName
:
'数量'
},
],
source
:
[
{
street
:
'街道1'
,
value
:
20
},
{
street
:
'街道2'
,
value
:
20
},
{
street
:
'街道3'
,
value
:
30
},
{
street
:
'街道4'
,
value
:
40
},
{
street
:
'街道5'
,
value
:
50
},
{
street
:
'街道6'
,
value
:
50
},
{
street
:
'街道7'
,
value
:
50
},
{
street
:
'街道8'
,
value
:
20
},
{
name
:
'streetName'
,
displayName
:
'街道'
},
{
name
:
'num'
,
displayName
:
'数量'
},
],
}
source
:
[],
})
const
barOption
=
{
legend
:
false
,
yAxis
:
{
...
...
@@ -143,6 +157,7 @@ const barOption = {
},
grid
:
{
bottom
:
0
,
height
:
'100%'
,
},
xAxis
:
[
{
...
...
src/lib/A017/index.vue
View file @
6b66404d
...
...
@@ -36,7 +36,8 @@ const _config = {
baseUrl
:
window
.
_base_url
,
apis
:
{
main
:
'/service-special-ja-ddd/public/risk/type/statistical'
,
list
:
'/service-special-ja-ddd/public/wholeBuildingRiskss'
,
list
:
'/service-special-ja-ddd/public/getBuildingCoordinates'
,
// list: '/service-special-ja-ddd/public/wholeBuildingRiskss',
},
}
export
default
_config
...
...
@@ -134,7 +135,7 @@ async function onClick({ query, icon }) {
params
:
{
pageSize
:
9000
,
createTime_desc
:
'desc'
,
...
query
},
})
)?.
data
?.
content
||
[]
bus
.
emit
(
'addPoints'
,
{
data
,
icon
})
bus
.
emit
(
'addPoints'
,
{
data
,
icon
,
size
:
12
})
}
</
script
>
...
...
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