Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c22f5fa6
authored
Dec 10, 2024
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
a5b91cca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
src/util/gradeData.js
src/views/serviceConfig/index.vue
src/util/gradeData.js
View file @
c22f5fa
...
@@ -110,7 +110,7 @@ export const handleGradeData = (dataFromApi, salePeriodList = []) => {
...
@@ -110,7 +110,7 @@ export const handleGradeData = (dataFromApi, salePeriodList = []) => {
_gradeObj
.
gradeConfigList
.
push
({
_gradeObj
.
gradeConfigList
.
push
({
maxPrice
:
NP
.
divide
(
maxPrice
||
0
,
1000000
),
maxPrice
:
NP
.
divide
(
maxPrice
||
0
,
1000000
),
minPrice
:
NP
.
divide
(
minPrice
||
0
,
1000000
),
minPrice
:
NP
.
divide
(
minPrice
||
0
,
1000000
),
priceCoefficient
,
priceCoefficient
:
priceCoefficient
.
toFixed
(
16
).
replace
(
/
\.?
0+$/
,
''
)
,
computeFlag
,
computeFlag
,
id
id
})
})
...
@@ -126,7 +126,7 @@ export const handleGradeData = (dataFromApi, salePeriodList = []) => {
...
@@ -126,7 +126,7 @@ export const handleGradeData = (dataFromApi, salePeriodList = []) => {
let
arr
=
[]
let
arr
=
[]
salePeriodList
?.
forEach
(
it
=>
{
salePeriodList
?.
forEach
(
it
=>
{
let
_obj
=
gradeConfigList
.
find
(
o
=>
o
.
servicePeriod
==
it
&&
NP
.
divide
(
o
.
minPrice
||
0
,
1000000
)
==
item
.
minPrice
&&
NP
.
divide
(
o
.
maxPrice
||
0
,
1000000
)
==
item
.
maxPrice
)
let
_obj
=
gradeConfigList
.
find
(
o
=>
o
.
servicePeriod
==
it
&&
NP
.
divide
(
o
.
minPrice
||
0
,
1000000
)
==
item
.
minPrice
&&
NP
.
divide
(
o
.
maxPrice
||
0
,
1000000
)
==
item
.
maxPrice
)
arr
.
push
({
id
:
_obj
?.
id
,
servicePeriod
:
it
,
shelfCost
:
_obj
?.
shelfCost
,
salesCost
:
_obj
?.
salesCost
})
arr
.
push
({
id
:
_obj
?.
id
,
servicePeriod
:
it
,
shelfCost
:
_obj
?.
shelfCost
.
toFixed
(
16
).
replace
(
/
\.?
0+$/
,
''
),
salesCost
:
_obj
?.
salesCost
.
toFixed
(
16
).
replace
(
/
\.?
0+$/
,
''
)
})
})
})
item
.
childSalePeriodData
=
arr
item
.
childSalePeriodData
=
arr
})
})
...
...
src/views/serviceConfig/index.vue
View file @
c22f5fa
...
@@ -26,6 +26,10 @@
...
@@ -26,6 +26,10 @@
{{
item
.
content
}}
{{
item
.
content
}}
</el-timeline-item>
</el-timeline-item>
</el-timeline>
</el-timeline>
<div
class=
"noData"
v-if=
"operationRecordData.length == 0"
>
<img
class=
"noDataImg"
:src=
"url"
v-if=
"url"
alt=
""
/>
<div>
暂无数据
</div>
</div>
</div>
</div>
</GLDialog>
</GLDialog>
</div>
</div>
...
@@ -34,11 +38,13 @@
...
@@ -34,11 +38,13 @@
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
utils
from
'../../util/util'
import
utils
from
'../../util/util'
import
url
from
'@/assets/empty.png'
export
default
{
export
default
{
name
:
'equityList'
,
name
:
'equityList'
,
components
:
{},
components
:
{},
data
()
{
data
()
{
return
{
return
{
url
,
isdestroy
:
true
,
isdestroy
:
true
,
size
:
'small'
,
size
:
'small'
,
buttonList
:
[
buttonList
:
[
...
@@ -344,5 +350,12 @@ export default {
...
@@ -344,5 +350,12 @@ export default {
background
:
#5850ff
!important
;
background
:
#5850ff
!important
;
}
}
}
}
.noData
{
display
:
flex
;
flex-flow
:
column
;
align-items
:
center
;
justify-content
:
center
;
padding
:
104px
;
}
}
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment