File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
web/src/apps/workflows/module/dispatch/dashboard Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -141,12 +141,12 @@ export default {
141
141
if (this .daySelected === 1 ) {
142
142
tYear = dd .getFullYear (),
143
143
tMonth = dd .getMonth () + 1 > 9 ? dd .getMonth () + 1 : ' 0' + (dd .getMonth () + 1 ),
144
- tDay = dd .getDate ()
144
+ tDay = dd .getDate () > 9 ? dd . getDate () : ' 0 ' + dd . getDate ()
145
145
} else if (this .daySelected === 2 ) {
146
146
dd .setDate (dd .getDate () - 1 )
147
147
tYear = dd .getFullYear (),
148
148
tMonth = dd .getMonth () + 1 > 9 ? dd .getMonth () + 1 : ' 0' + (dd .getMonth () + 1 ),
149
- tDay = dd .getDate ()
149
+ tDay = dd .getDate () > 9 ? dd . getDate () : ' 0 ' + dd . getDate ()
150
150
}
151
151
if (this .daySelected ) {
152
152
this .getMixedBarLineData (` ${ tYear} -${ tMonth} -${ tDay} ` , (dd ) => {
@@ -249,7 +249,7 @@ export default {
249
249
function getFormatDateString (dd ) {
250
250
let tYear = dd .getFullYear (),
251
251
tMonth = dd .getMonth () + 1 > 9 ? dd .getMonth () + 1 : ' 0' + (dd .getMonth () + 1 ),
252
- tDay = dd .getDate ()
252
+ tDay = dd .getDate () > 9 ? dd . getDate () : ' 0 ' + dd . getDate ()
253
253
return ` ${ tYear} -${ tMonth} -${ tDay} `
254
254
}
255
255
if (! this .projectName ) return
You can’t perform that action at this time.
0 commit comments