Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 8bd4ecec
authored
Mar 06, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
f8d64cce
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
src/views/earlyWarningManager/shopGuard/components/shopGuardIndex/BoardBox.vue
src/views/earlyWarningManager/shopGuard/indexControl.vue
src/views/earlyWarningManager/shopGuard/components/shopGuardIndex/BoardBox.vue
View file @
8bd4ece
...
@@ -99,7 +99,8 @@ export default {
...
@@ -99,7 +99,8 @@ export default {
value
:
'profitSituation'
,
value
:
'profitSituation'
,
percent
:
'profitSituationRatio'
,
percent
:
'profitSituationRatio'
,
tips
:
'毛利率'
,
tips
:
'毛利率'
,
tipsValue
:
'grossProfitMargin'
tipsValue
:
'grossProfitMargin'
,
tipsUnit
:
'%'
}
}
],
],
boardList
:
[
boardList
:
[
...
@@ -169,6 +170,7 @@ export default {
...
@@ -169,6 +170,7 @@ export default {
if
(
res
[
key
]
!=
null
)
{
if
(
res
[
key
]
!=
null
)
{
if
(
key
==
'outputCompletionProgress'
)
res
[
key
]
=
NP
.
times
(
res
[
key
],
0.01
)
if
(
key
==
'outputCompletionProgress'
)
res
[
key
]
=
NP
.
times
(
res
[
key
],
0.01
)
if
(
key
==
'budget'
)
res
[
key
]
=
'¥'
+
res
[
key
].
toLocaleString
()
if
(
key
==
'budget'
)
res
[
key
]
=
'¥'
+
res
[
key
].
toLocaleString
()
if
(
key
==
'grossProfitMargin'
)
res
[
key
]
+=
'%'
}
}
// else res[key] = '-'
// else res[key] = '-'
})
})
...
...
src/views/earlyWarningManager/shopGuard/indexControl.vue
View file @
8bd4ece
...
@@ -107,9 +107,14 @@ export default {
...
@@ -107,9 +107,14 @@ export default {
// 在beforeDestroy钩子中移除事件监听
// 在beforeDestroy钩子中移除事件监听
beforeDestroy
()
{
beforeDestroy
()
{
window
.
removeEventListener
(
'popstate'
,
this
.
preventBack
)
window
.
removeEventListener
(
'popstate'
,
this
.
preventBack
)
window
.
onresize
=
null
},
},
// 在你的Vue组件的mounted钩子中添加事件监听
// 在你的Vue组件的mounted钩子中添加事件监听
mounted
()
{
mounted
()
{
// window.onresize = () => {
// this.tabboxWidth = this.$refs.tabbox.offsetWidth
// this.checkEl()
// }
history
.
pushState
(
null
,
null
,
document
.
URL
)
history
.
pushState
(
null
,
null
,
document
.
URL
)
window
.
addEventListener
(
'popstate'
,
this
.
preventBack
)
window
.
addEventListener
(
'popstate'
,
this
.
preventBack
)
if
(
this
.
tabboxWidth
==
0
)
this
.
tabboxWidth
=
this
.
$refs
.
tabbox
.
offsetWidth
if
(
this
.
tabboxWidth
==
0
)
this
.
tabboxWidth
=
this
.
$refs
.
tabbox
.
offsetWidth
...
@@ -181,6 +186,10 @@ export default {
...
@@ -181,6 +186,10 @@ export default {
this
.
dropdownList
.
push
(
tab
[
len
])
this
.
dropdownList
.
push
(
tab
[
len
])
this
.
tab
.
splice
(
len
,
1
)
this
.
tab
.
splice
(
len
,
1
)
}
}
if
(
this
.
dropdownList
.
length
&&
offsetLeft
+
offsetWidth
/
2
<
tabboxWidth
-
54
)
{
this
.
tab
.
push
(
this
.
dropdownList
[
0
])
this
.
closeDrop
(
0
)
}
}
}
})
})
},
},
...
...
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