Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
house-type
Project
Project
Details
Activity
Releases
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
wangjiankun
house-type
Commits
ee6d3a64
Commit
ee6d3a64
authored
Sep 16, 2020
by
xingyuji
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'master'
fix: 供求比例改为0.xx、供销比改为0.x See merge request
!60
parents
c933feb6
b6b74984
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
index.vue
src/views/plateSupplyData/index.vue
+6
-5
index.vue
src/views/propertiesDetail/index.vue
+5
-5
No files found.
src/views/plateSupplyData/index.vue
View file @
ee6d3a64
...
...
@@ -174,7 +174,7 @@
position
:
"top"
,
formatter
:
function
(
params
){
//标签内容
if
(
params
.
data
==
0
)
{
return
''
}
return
(
1
/
params
.
data
).
toFixed
(
1
)
return
(
1
/
params
.
data
).
toFixed
(
2
)
}
}
}
...
...
@@ -184,7 +184,7 @@
formatter
:
(
params
)
=>
{
if
(
params
.
data
==
0
)
{
return
''
}
return
`<div>
${
params
.
name
}
区间</br>
供销比:
${
params
.
data
?
(
1
/
params
.
data
).
toFixed
(
1
)
:
''
}
供销比:
${
params
.
data
?
(
1
/
params
.
data
).
toFixed
(
2
)
:
''
}
</div>`
}
},
...
...
@@ -244,10 +244,10 @@
})
supplyDealRate
.
push
({
areaRange
:
areaRangeMap
[
key
],
rate
:
res
.
data
[
key
]
?
(
1
/
res
.
data
[
key
].
rate
||
0
)
:
0
rate
:
res
.
data
[
key
]
?
(
1
/
(
res
.
data
[
key
].
rate
||
0
)
)
:
0
})
areaRange
.
push
(
areaRangeMap
[
key
])
rate
.
push
(
res
.
data
[
key
]
?
(
Number
(
res
.
data
[
key
].
rate
).
toFixed
(
1
)
||
0
)
:
0
)
rate
.
push
(
res
.
data
[
key
]
?
(
Number
(
res
.
data
[
key
].
rate
).
toFixed
(
2
)
||
0
)
:
0
)
// rate.push(res.data[key] ? (res.data[key].rate ? Number(res.data[key].rate).toFixed(1) : 0 ) : 0)
supplyNumber
.
push
(
res
.
data
[
key
]
?
(
res
.
data
[
key
].
suplyNumber
||
0
)
:
0
)
dealNumber
.
push
(
res
.
data
[
key
]
?
(
res
.
data
[
key
].
dealNumber
||
0
)
:
0
)
...
...
@@ -255,7 +255,7 @@
areaRange
:
areaRangeMap
[
key
],
supplyNumber
:
res
.
data
[
key
]
?
(
res
.
data
[
key
].
suplyNumber
||
0
)
:
0
,
dealNumber
:
res
.
data
[
key
]
?
(
res
.
data
[
key
].
dealNumber
||
0
)
:
0
,
gongQiuBi
:
res
.
data
[
key
]
?
(
Number
(
res
.
data
[
key
].
rate
).
toFixed
(
1
)
||
0
)
:
0
gongQiuBi
:
res
.
data
[
key
]
?
(
Number
(
res
.
data
[
key
].
rate
).
toFixed
(
2
)
||
0
)
:
0
})
})
this
.
chartData
.
rows
=
supplyChartsData
...
...
@@ -265,6 +265,7 @@
this
.
supplyData
.
supplyNum
.
data
=
supplyNumber
this
.
supplyRateData
.
areaRange
.
data
=
areaRange
this
.
supplyRateData
.
Rate
.
data
=
rate
debugger
this
.
exportSaveStatus
=
JSON
.
stringify
(
exportList
)
if
(
noData
===
Object
.
keys
(
areaRangeMap
).
length
)
{
this
.
noDataFlag
=
true
...
...
src/views/propertiesDetail/index.vue
View file @
ee6d3a64
...
...
@@ -431,7 +431,7 @@
position
:
"top"
,
formatter
:
function
(
params
){
//标签内容
if
(
params
.
data
==
0
)
{
return
''
}
return
(
1
/
params
.
data
).
toFixed
(
1
)
return
(
1
/
params
.
data
).
toFixed
(
2
)
}
}
}
...
...
@@ -441,7 +441,7 @@
formatter
:
(
params
)
=>
{
if
(
params
.
data
==
0
)
{
return
''
}
return
`<div>
${
params
.
name
}
区间</br>
供销比:
${
params
.
data
?
(
1
/
params
.
data
).
toFixed
(
1
)
:
''
}
供销比:
${
params
.
data
?
(
1
/
params
.
data
).
toFixed
(
2
)
:
''
}
</div>`
}
},
...
...
@@ -455,7 +455,7 @@
position
:
"top"
,
formatter
:
function
(
params
){
//标签内容
if
(
params
.
data
==
0
)
{
return
''
}
return
(
params
.
data
*
100
).
toFixed
(
0
)
+
'%'
return
(
params
.
data
*
100
).
toFixed
(
1
)
+
'%'
}
}
}
...
...
@@ -739,14 +739,14 @@
rate
:
res
.
data
[
key
]
?
(
1
/
res
.
data
[
key
].
rate
||
0
)
:
0
})
areaRange
.
push
(
areaRangeMap
[
key
])
rate
.
push
(
res
.
data
[
key
]
?
(
Number
(
res
.
data
[
key
].
rate
).
toFixed
(
1
)
||
0
)
:
0
)
rate
.
push
(
res
.
data
[
key
]
?
(
Number
(
res
.
data
[
key
].
rate
).
toFixed
(
2
)
||
0
)
:
0
)
supplyNumber
.
push
(
res
.
data
[
key
]
?
(
res
.
data
[
key
].
suplyNumber
||
0
)
:
0
)
dealNumber
.
push
(
res
.
data
[
key
]
?
(
res
.
data
[
key
].
dealNumber
||
0
)
:
0
)
exportList
.
push
({
areaRange
:
areaRangeMap
[
key
],
supplyNumber
:
res
.
data
[
key
]
?
(
res
.
data
[
key
].
suplyNumber
||
0
)
:
0
,
dealNumber
:
res
.
data
[
key
]
?
(
res
.
data
[
key
].
dealNumber
||
0
)
:
0
,
gongQiuBi
:
res
.
data
[
key
]
?
(
Number
(
res
.
data
[
key
].
rate
).
toFixed
(
1
)
||
0
)
:
0
gongQiuBi
:
res
.
data
[
key
]
?
(
Number
(
res
.
data
[
key
].
rate
).
toFixed
(
2
)
||
0
)
:
0
})
})
this
.
supplySaleCharts
.
rows
=
supplyChartsData
...
...
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