Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lxyl-vue
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
李苏
lxyl-vue
Commits
53108326
Commit
53108326
authored
May 24, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
timespan调整为公共格式化
parent
077e19bd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
133 deletions
+6
-133
index.vue
src/views/ccgl/ckgl/lkckrw/top/index.vue
+1
-27
index.vue
src/views/ccgl/rkgl/cjbhghk/top/index.vue
+1
-26
index.vue
src/views/ccgl/rkgl/slk/top/index.vue
+1
-26
index.vue
src/views/ccgl/wcsrwgl/lkrw/index.vue
+1
-26
index.vue
src/views/ccgl/wcsrwgl/wcsrw/index.vue
+2
-28
No files found.
src/views/ccgl/ckgl/lkckrw/top/index.vue
View file @
53108326
...
@@ -98,33 +98,7 @@
...
@@ -98,33 +98,7 @@
{
{
title
:
"耗时"
,
title
:
"耗时"
,
field
:
"timespan"
,
field
:
"timespan"
,
width
:
180
,
fieldType
:
"timespan"
formatter
(
a
,
b
,
duration
)
{
if
(
duration
==
0
||
!
duration
)
{
return
"0"
;
}
else
{
var
days
=
Math
.
floor
(
duration
/
(
1000
*
60
*
60
*
24
));
var
hours
=
Math
.
floor
((
duration
%
(
1000
*
60
*
60
*
24
))
/
(
1000
*
60
*
60
));
var
minutes
=
Math
.
floor
((
duration
%
(
1000
*
60
*
60
))
/
(
1000
*
60
));
var
seconds
=
Math
.
floor
((
duration
%
(
1000
*
60
))
/
1000
);
var
result
=
""
;
if
(
days
>
0
)
{
result
+=
days
+
"天"
;
}
if
(
hours
>
0
)
{
result
+=
hours
+
"小时"
;
}
if
(
minutes
>
0
)
{
result
+=
minutes
+
"分钟"
;
}
if
(
seconds
>
0
)
{
result
+=
seconds
+
"秒"
;
}
return
result
;
}
}
},
},
{
{
title
:
"创建人"
,
title
:
"创建人"
,
...
...
src/views/ccgl/rkgl/cjbhghk/top/index.vue
View file @
53108326
...
@@ -109,32 +109,7 @@
...
@@ -109,32 +109,7 @@
title
:
"耗时"
,
title
:
"耗时"
,
field
:
"timespan"
,
field
:
"timespan"
,
width
:
140
,
width
:
140
,
formatter
(
a
,
b
,
duration
)
{
fieldType
:
"timespan"
if
(
duration
==
0
||
!
duration
)
{
return
"0"
;
}
else
{
var
days
=
Math
.
floor
(
duration
/
(
1000
*
60
*
60
*
24
));
var
hours
=
Math
.
floor
((
duration
%
(
1000
*
60
*
60
*
24
))
/
(
1000
*
60
*
60
));
var
minutes
=
Math
.
floor
((
duration
%
(
1000
*
60
*
60
))
/
(
1000
*
60
));
var
seconds
=
Math
.
floor
((
duration
%
(
1000
*
60
))
/
1000
);
var
result
=
""
;
if
(
days
>
0
)
{
result
+=
days
+
"天"
;
}
if
(
hours
>
0
)
{
result
+=
hours
+
"小时"
;
}
if
(
minutes
>
0
)
{
result
+=
minutes
+
"分钟"
;
}
if
(
seconds
>
0
)
{
result
+=
seconds
+
"秒"
;
}
return
result
;
}
}
},
},
{
{
title
:
"创建人"
,
title
:
"创建人"
,
...
...
src/views/ccgl/rkgl/slk/top/index.vue
View file @
53108326
...
@@ -109,32 +109,7 @@
...
@@ -109,32 +109,7 @@
title
:
"耗时"
,
title
:
"耗时"
,
field
:
"timespan"
,
field
:
"timespan"
,
width
:
140
,
width
:
140
,
formatter
(
a
,
b
,
duration
)
{
fieldType
:
"timespan"
if
(
duration
==
0
||
!
duration
)
{
return
"0"
;
}
else
{
var
days
=
Math
.
floor
(
duration
/
(
1000
*
60
*
60
*
24
));
var
hours
=
Math
.
floor
((
duration
%
(
1000
*
60
*
60
*
24
))
/
(
1000
*
60
*
60
));
var
minutes
=
Math
.
floor
((
duration
%
(
1000
*
60
*
60
))
/
(
1000
*
60
));
var
seconds
=
Math
.
floor
((
duration
%
(
1000
*
60
))
/
1000
);
var
result
=
""
;
if
(
days
>
0
)
{
result
+=
days
+
"天"
;
}
if
(
hours
>
0
)
{
result
+=
hours
+
"小时"
;
}
if
(
minutes
>
0
)
{
result
+=
minutes
+
"分钟"
;
}
if
(
seconds
>
0
)
{
result
+=
seconds
+
"秒"
;
}
return
result
;
}
}
},
},
{
{
title
:
"创建人"
,
title
:
"创建人"
,
...
...
src/views/ccgl/wcsrwgl/lkrw/index.vue
View file @
53108326
...
@@ -128,32 +128,7 @@
...
@@ -128,32 +128,7 @@
title
:
"耗时"
,
title
:
"耗时"
,
field
:
"timespan"
,
field
:
"timespan"
,
width
:
140
,
width
:
140
,
formatter
(
a
,
b
,
duration
)
{
fieldType
:
"timespan"
if
(
duration
==
0
||
!
duration
)
{
return
"0"
;
}
else
{
var
days
=
Math
.
floor
(
duration
/
(
1000
*
60
*
60
*
24
));
var
hours
=
Math
.
floor
((
duration
%
(
1000
*
60
*
60
*
24
))
/
(
1000
*
60
*
60
));
var
minutes
=
Math
.
floor
((
duration
%
(
1000
*
60
*
60
))
/
(
1000
*
60
));
var
seconds
=
Math
.
floor
((
duration
%
(
1000
*
60
))
/
1000
);
var
result
=
""
;
if
(
days
>
0
)
{
result
+=
days
+
"天"
;
}
if
(
hours
>
0
)
{
result
+=
hours
+
"小时"
;
}
if
(
minutes
>
0
)
{
result
+=
minutes
+
"分钟"
;
}
if
(
seconds
>
0
)
{
result
+=
seconds
+
"秒"
;
}
return
result
;
}
}
},
},
{
{
title
:
"巷道"
,
title
:
"巷道"
,
...
...
src/views/ccgl/wcsrwgl/wcsrw/index.vue
View file @
53108326
...
@@ -132,33 +132,7 @@
...
@@ -132,33 +132,7 @@
{
{
title
:
"耗时"
,
title
:
"耗时"
,
field
:
"timespan"
,
field
:
"timespan"
,
width
:
140
,
fieldType
:
"timespan"
formatter
(
a
,
b
,
duration
)
{
if
(
duration
==
0
||
!
duration
)
{
return
"0"
;
}
else
{
var
days
=
Math
.
floor
(
duration
/
(
1000
*
60
*
60
*
24
));
var
hours
=
Math
.
floor
((
duration
%
(
1000
*
60
*
60
*
24
))
/
(
1000
*
60
*
60
));
var
minutes
=
Math
.
floor
((
duration
%
(
1000
*
60
*
60
))
/
(
1000
*
60
));
var
seconds
=
Math
.
floor
((
duration
%
(
1000
*
60
))
/
1000
);
var
result
=
""
;
if
(
days
>
0
)
{
result
+=
days
+
"天"
;
}
if
(
hours
>
0
)
{
result
+=
hours
+
"小时"
;
}
if
(
minutes
>
0
)
{
result
+=
minutes
+
"分"
;
}
if
(
seconds
>
0
)
{
result
+=
seconds
+
"秒"
;
}
return
result
;
}
}
},
},
{
{
title
:
"业务类型"
,
title
:
"业务类型"
,
...
@@ -223,7 +197,7 @@
...
@@ -223,7 +197,7 @@
typeConfig
:
{
typeConfig
:
{
src
:
"lxyl/wcs/wcsTask/init/hj"
,
src
:
"lxyl/wcs/wcsTask/init/hj"
,
}
}
},
},
],
],
[
[
{
{
...
...
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