Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
shld-databoard-ui
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
潘自豪 Rambo Pan
shld-databoard-ui
Commits
7d0c808c
You need to sign in or sign up before continuing.
Commit
7d0c808c
authored
Sep 27, 2023
by
潘自豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营业额明显页面修改
parent
abfc53f5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
order-proportion.vue
src/module/databoard/databoard/order-proportion.vue
+1
-1
index.vue
src/module/index/index.vue
+3
-2
numUtil.js
src/module/utils/numUtil.js
+8
-0
No files found.
src/module/databoard/databoard/order-proportion.vue
View file @
7d0c808c
...
@@ -62,7 +62,7 @@ export default {
...
@@ -62,7 +62,7 @@ export default {
components
:
{
LineBarChart
,
WinnersList
,
DisplayBoard
,
ContrastCard
,
TableColumn
,
TitleContentMark
},
components
:
{
LineBarChart
,
WinnersList
,
DisplayBoard
,
ContrastCard
,
TableColumn
,
TitleContentMark
},
data
()
{
data
()
{
return
{
return
{
today
:
'2022-06-26'
,
today
:
moment
().
format
(
"yyyy-MM-DD"
)
,
currentHeadData
:[],
currentHeadData
:[],
currentDetailData
:[],
currentDetailData
:[],
chart
:
null
,
chart
:
null
,
...
...
src/module/index/index.vue
View file @
7d0c808c
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
<
script
>
<
script
>
import
axios
from
"axios"
;
import
axios
from
"axios"
;
import
{
prefixZero
}
from
"../utils/numUtil"
;
window
.
axios
=
axios
window
.
axios
=
axios
window
.
$
=
window
.
jQuery
=
require
(
'materialize-css/node_modules/jquery/dist/jquery.js'
)
window
.
$
=
window
.
jQuery
=
require
(
'materialize-css/node_modules/jquery/dist/jquery.js'
)
require
(
'materialize-css'
)
require
(
'materialize-css'
)
...
@@ -45,8 +46,8 @@ export default {
...
@@ -45,8 +46,8 @@ export default {
},
},
setCurrentDateTime
(){
setCurrentDateTime
(){
let
now
=
new
Date
();
let
now
=
new
Date
();
this
.
currentDate
=
now
.
getFullYear
()
+
"-"
+
(
now
.
getMonth
()
+
1
)
+
"-"
+
now
.
getDate
(
);
this
.
currentDate
=
now
.
getFullYear
()
+
"-"
+
prefixZero
(
now
.
getMonth
()
+
1
,
2
)
+
"-"
+
prefixZero
(
now
.
getDate
(),
2
);
this
.
currentTime
=
now
.
getHours
()
+
":"
+
now
.
getMinutes
()
+
":"
+
now
.
getSeconds
(
);
this
.
currentTime
=
prefixZero
(
now
.
getHours
(),
2
)
+
":"
+
prefixZero
(
now
.
getMinutes
(),
2
)
+
":"
+
prefixZero
(
now
.
getSeconds
(),
2
);
this
.
currentWeek
=
this
.
week
[
now
.
getDay
()];
this
.
currentWeek
=
this
.
week
[
now
.
getDay
()];
},
},
},
},
...
...
src/module/utils/numUtil.js
View file @
7d0c808c
...
@@ -69,3 +69,11 @@ function formater(data) {
...
@@ -69,3 +69,11 @@ function formater(data) {
}
}
return
intPartFormat
+
floatPart
return
intPartFormat
+
floatPart
}
}
/**
* @param num: 被操作数
* @param n: 固定的总位数
*/
export
const
prefixZero
=
function
(
num
,
n
)
{
return
(
Array
(
n
).
join
(
0
)
+
num
).
slice
(
-
n
);
}
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