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
92a6b586
Commit
92a6b586
authored
Oct 28, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改安全排查和电梯加装
parent
1e98125b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
63 additions
and
61 deletions
+63
-61
axios.ts
src/ajax/axios.ts
+1
-1
my-progress.vue
src/components/MyComponent/MyProgress/my-progress.vue
+1
-0
index.vue
src/lib/A017/index.vue
+13
-17
index.vue
src/lib/A018/index.vue
+4
-6
index.vue
src/lib/A019/index.vue
+44
-37
No files found.
src/ajax/axios.ts
View file @
92a6b586
...
@@ -8,7 +8,7 @@ const Axios = axios.create({
...
@@ -8,7 +8,7 @@ const Axios = axios.create({
})
})
Axios
.
interceptors
.
request
.
use
(
Axios
.
interceptors
.
request
.
use
(
(
config
)
=>
{
(
config
)
=>
{
config
.
baseURL
=
window
.
_base_url
config
.
baseURL
=
window
.
_base_url
||
api
.
BASE_URL
// 添加token
// 添加token
// config.headers.Authorization = ''
// config.headers.Authorization = ''
return
config
return
config
...
...
src/components/MyComponent/MyProgress/my-progress.vue
View file @
92a6b586
...
@@ -28,6 +28,7 @@ export interface ProgressProps {
...
@@ -28,6 +28,7 @@ export interface ProgressProps {
value
?:
number
value
?:
number
unit
?:
string
unit
?:
string
color
?:
string
color
?:
string
decimal
?:
number
}
}
export
default
defineComponent
({
export
default
defineComponent
({
name
:
'MyProgress'
,
name
:
'MyProgress'
,
...
...
src/lib/A017/index.vue
View file @
92a6b586
<
template
>
<
template
>
<m-card
title=
"安全排查"
>
<m-card
title=
"安全排查"
>
<div
class=
"summary"
>
<div
v-for=
"item in list"
:key=
"item.name"
>
<m-count
class=
"orange-count"
:value=
"item.value"
:decimal=
"2"
/>
%
<p>
{{
item
.
name
}}
</p>
</div>
</div>
<div
class=
"chart-wrapper"
>
<div
class=
"chart-wrapper"
>
<template
v-if=
"pieData.source.length > 0"
>
<template
v-if=
"pieData.source.length > 0"
>
<div
class=
"chart"
>
<div
class=
"chart"
>
...
@@ -21,20 +27,6 @@
...
@@ -21,20 +27,6 @@
</
template
>
</
template
>
<m-empty
v-else
/>
<m-empty
v-else
/>
</div>
</div>
<m-progress
v-for=
"item in list"
:key=
"item.name"
:value=
"item.value"
:msg=
"{
name: item.name,
value: item.value,
unit: '%',
decimal: 2,
color: '#fff',
}"
:color=
"['rgb(36,59,86)', '#F4923E']"
/>
<p
/>
</m-card>
</m-card>
</template>
</template>
...
@@ -123,11 +115,9 @@ const list = ref([
...
@@ -123,11 +115,9 @@ const list = ref([
display flex
display flex
.chart
.chart
width 25%
width 25%
height
.8
rem
height
1
rem
.legend
.legend
flex 1
flex 1
height .8rem
overflow-y auto
.inner
.inner
display flex
display flex
flex-wrap wrap
flex-wrap wrap
...
@@ -150,4 +140,10 @@ const list = ref([
...
@@ -150,4 +140,10 @@ const list = ref([
overflow hidden
overflow hidden
white-space nowrap
white-space nowrap
text-overflow ellipsis
text-overflow ellipsis
.summary
display flex
justify-content space-between
margin-bottom .04rem
>div
text-align center
</
style
>
</
style
>
src/lib/A018/index.vue
View file @
92a6b586
...
@@ -37,8 +37,8 @@ import { ajax } from '@/ajax'
...
@@ -37,8 +37,8 @@ import { ajax } from '@/ajax'
ajax
.
get
({
url
:
_config
.
apis
.
main
}).
then
((
res
)
=>
{
ajax
.
get
({
url
:
_config
.
apis
.
main
}).
then
((
res
)
=>
{
const
{
statistical
,
streetData
=
[]
}
=
res
?.
data
?.
content
||
{}
const
{
statistical
,
streetData
=
[]
}
=
res
?.
data
?.
content
||
{}
list
.
value
=
[
list
.
value
=
[
{
name
:
'多层住宅房屋'
,
value
:
+
statistical
.
totalNum
||
0
,
unit
:
'幢'
},
//
{ name: '多层住宅房屋', value: +statistical.totalNum || 0, unit: '幢' },
{
name
:
'可加梯门牌数'
,
value
:
+
statistical
.
caddNum
||
0
,
unit
:
'幢'
},
//
{ name: '可加梯门牌数', value: +statistical.caddNum || 0, unit: '幢' },
{
name
:
'完成加梯征询'
,
value
:
+
statistical
.
passNum
||
0
,
unit
:
'幢'
},
{
name
:
'完成加梯征询'
,
value
:
+
statistical
.
passNum
||
0
,
unit
:
'幢'
},
{
name
:
'加梯完工'
,
value
:
+
statistical
.
finishNum
||
0
,
unit
:
'幢'
},
{
name
:
'加梯完工'
,
value
:
+
statistical
.
finishNum
||
0
,
unit
:
'幢'
},
]
]
...
@@ -100,8 +100,8 @@ const option = {
...
@@ -100,8 +100,8 @@ const option = {
],
],
}
}
const
list
=
ref
([
const
list
=
ref
([
{
name
:
'多层住宅房屋'
,
value
:
0
,
unit
:
'幢'
},
//
{ name: '多层住宅房屋', value: 0, unit: '幢' },
{
name
:
'可加梯门牌数'
,
value
:
0
,
unit
:
'幢'
},
//
{ name: '可加梯门牌数', value: 0, unit: '幢' },
{
name
:
'完成加梯征询'
,
value
:
0
,
unit
:
'幢'
},
{
name
:
'完成加梯征询'
,
value
:
0
,
unit
:
'幢'
},
{
name
:
'加梯完工'
,
value
:
0
,
unit
:
'幢'
},
{
name
:
'加梯完工'
,
value
:
0
,
unit
:
'幢'
},
])
])
...
@@ -112,9 +112,7 @@ const list = ref([
...
@@ -112,9 +112,7 @@ const list = ref([
.sum
.sum
display flex
display flex
justify-content space-between
justify-content space-between
flex-wrap wrap
>div
>div
width 50%
display flex
display flex
align-items center
align-items center
font-size .09rem
font-size .09rem
...
...
src/lib/A019/index.vue
View file @
92a6b586
...
@@ -60,48 +60,55 @@ const _config = {
...
@@ -60,48 +60,55 @@ const _config = {
export
default
_config
export
default
_config
</
script
>
</
script
>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
ref
}
from
'vue'
import
{
ref
,
watch
}
from
'vue'
import
{
NSpace
,
NSelect
}
from
'naive-ui'
import
{
NSpace
,
NSelect
}
from
'naive-ui'
import
{
ajax
}
from
'@/ajax'
import
{
ajax
}
from
'@/ajax'
const
year
=
ref
(
'2021'
)
const
year
=
ref
(
'2021'
)
const
total
=
ref
(
0
)
const
total
=
ref
(
0
)
ajax
.
get
({
watch
(
url
:
_config
.
apis
.
main
,
()
=>
year
.
value
,
params
:
{
year
:
year
.
value
},
(
val
)
=>
{
})
ajax
.
then
((
res
)
=>
{
.
get
({
const
{
url
:
_config
.
apis
.
main
,
noLivePresaleNum
=
0
,
//非居预售证数
params
:
{
year
:
val
},
totalSets
=
0
,
//总套数
})
liveRate
=
0
,
//居住占比
.
then
((
res
)
=>
{
totalPrice
=
0
,
//总金额
const
{
presaleNum
=
0
,
//预售证数
noLivePresaleNum
=
0
,
//非居预售证数
noLiveRate
=
0
,
//非居占比
totalSets
=
0
,
//总套数
livePresaleNum
=
0
,
//居住预售证数
liveRate
=
0
,
//居住占比
totalArea
=
0
,
//总面积
totalPrice
=
0
,
//总金额
}
=
res
?.
data
?.
content
||
{}
presaleNum
=
0
,
//预售证数
total
.
value
=
totalPrice
noLiveRate
=
0
,
//非居占比
list
.
value
=
[
livePresaleNum
=
0
,
//居住预售证数
{
totalArea
=
0
,
//总面积
name
:
'住房'
,
}
=
res
?.
data
?.
content
||
{}
value
:
livePresaleNum
,
total
.
value
=
totalPrice
rate
:
liveRate
*
100
,
list
.
value
=
[
color
:
'#ff9d26'
,
{
},
name
:
'住房'
,
{
value
:
livePresaleNum
,
name
:
'商办'
,
rate
:
liveRate
*
100
,
value
:
noLivePresaleNum
,
color
:
'#ff9d26'
,
rate
:
noLiveRate
*
100
,
},
color
:
'#01bffe'
,
{
},
name
:
'商办'
,
]
value
:
noLivePresaleNum
,
areas
.
value
=
[
rate
:
noLiveRate
*
100
,
{
name
:
'预销售面积'
,
value
:
totalArea
,
unit
:
'㎡'
,
decimal
:
2
},
color
:
'#01bffe'
,
{
name
:
'预销售套数'
,
value
:
totalSets
,
unit
:
'套'
,
decimal
:
0
},
},
]
]
})
areas
.
value
=
[
{
name
:
'预销售面积'
,
value
:
totalArea
,
unit
:
'㎡'
,
decimal
:
2
},
{
name
:
'预销售套数'
,
value
:
totalSets
,
unit
:
'套'
,
decimal
:
0
},
]
})
},
{
immediate
:
true
},
)
const
yearOptions
=
[
const
yearOptions
=
[
{
label
:
'2021'
,
value
:
'2021'
},
{
label
:
'2021'
,
value
:
'2021'
},
...
...
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