Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-manager-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-manager-ui
Commits
ebc9884f
Commit
ebc9884f
authored
Apr 07, 2024
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推
parent
1c6417e1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
11 deletions
+29
-11
src/assets/utils/dateFormat.js
src/assets/utils/dateFormat.js
+6
-3
src/components/SearchForm.vue
src/components/SearchForm.vue
+5
-0
src/views/check/window/workman/perform/detail/list.vue
src/views/check/window/workman/perform/detail/list.vue
+16
-6
src/views/perform/staff/conf/list.vue
src/views/perform/staff/conf/list.vue
+2
-2
No files found.
src/assets/utils/dateFormat.js
View file @
ebc9884f
...
...
@@ -9,10 +9,11 @@ export const timestampToTime = (timestamp, transLength) => {
}
let
Y
=
date
.
getFullYear
()
+
"
-
"
;
let
M
=
(
date
.
getMonth
()
+
1
<
10
date
.
getMonth
()
+
1
<
10
?
"
0
"
+
(
date
.
getMonth
()
+
1
)
:
date
.
getMonth
()
+
1
)
+
"
-
"
;
let
D
=
date
.
getDate
()
<
10
?
"
0
"
+
date
.
getDate
()
:
date
.
getDate
();
:
date
.
getMonth
()
+
1
;
let
D
=
date
.
getDate
()
<
10
?
"
-
"
+
"
0
"
+
date
.
getDate
()
:
"
-
"
+
date
.
getDate
();
let
h
=
"
"
+
(
date
.
getHours
()
<
10
?
"
0
"
+
date
.
getHours
()
:
date
.
getHours
())
+
...
...
@@ -23,6 +24,8 @@ export const timestampToTime = (timestamp, transLength) => {
let
s
=
date
.
getSeconds
()
<
10
?
"
0
"
+
date
.
getSeconds
()
:
date
.
getSeconds
();
switch
(
transLength
)
{
case
2
:
return
Y
+
M
;
case
3
:
return
Y
+
M
+
D
;
case
6
:
...
...
src/components/SearchForm.vue
View file @
ebc9884f
...
...
@@ -559,6 +559,11 @@ export default {
query
.
errorTimeEnd
=
undefined
;
}
}
if
(
this
.
$route
.
name
==
"
check/window/workman/perform/detail/list
"
)
{
query
.
yearmonth
=
timestampToTime
(
new
Date
(),
2
);
query
.
year
=
timestampToTime
(
new
Date
(),
2
).
slice
(
0
,
4
);
query
.
month
=
timestampToTime
(
new
Date
(),
2
).
slice
(
5
);
}
console
.
log
({
...
query
,
...
data
,
...
...
src/views/check/window/workman/perform/detail/list.vue
View file @
ebc9884f
...
...
@@ -22,13 +22,23 @@
</
template
>
<
script
>
import
{
timestampToTime
,
getFirstDay
,
getLastDay
,
}
from
"
@/assets/utils/dateFormat
"
;
/** 表单弹出框模式需引入 */
import
table
from
"
@/assets/mixins/table
"
;
export
default
{
name
:
"
WindowWorkmanPerformDetailList
"
,
mixins
:
[
table
],
created
()
{},
created
()
{
this
.
query
.
yearmonth
=
timestampToTime
(
new
Date
(),
2
);
this
.
query
.
year
=
timestampToTime
(
new
Date
(),
2
).
slice
(
0
,
4
);
this
.
query
.
month
=
timestampToTime
(
new
Date
(),
2
).
slice
(
5
);
console
.
log
(
this
.
query
);
},
methods
:
{
/** 导出Excel */
doExport
()
{
...
...
@@ -118,31 +128,31 @@ export default {
{
label
:
"
所属大厅
"
,
prop
:
"
salaName
"
,
formatter
:
this
.
formatter
},
{
label
:
"
工作纪律
得分
"
,
label
:
"
工作纪律
"
,
prop
:
"
discipline
"
,
formatter
:
this
.
formatter
,
},
{
label
:
"
服务规范
得分
"
,
label
:
"
服务规范
"
,
prop
:
"
specification
"
,
formatter
:
this
.
formatter
,
},
{
label
:
"
综合管理
得分
"
,
label
:
"
综合管理
"
,
prop
:
"
management
"
,
formatter
:
this
.
formatter
,
},
{
label
:
"
群众评议
得分
"
,
label
:
"
群众评议
"
,
prop
:
"
evaluation
"
,
formatter
:
this
.
formatter
,
},
{
label
:
"
工作效能
得分
"
,
label
:
"
工作效能
"
,
prop
:
"
efficiency
"
,
formatter
:
this
.
formatter
,
},
...
...
src/views/perform/staff/conf/list.vue
View file @
ebc9884f
...
...
@@ -153,7 +153,8 @@ export default {
},
async
getData
()
{
await
this
.
$post
(
this
.
type
==
1
?
"
/perform/dept/conf/list
"
:
"
/perform/staff/conf/list
"
this
.
type
==
1
?
"
/perform/dept/conf/list
"
:
"
/perform/staff/conf/list
"
,
{
page
:
1
,
size
:
-
1
}
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
dataList
=
res
.
data
.
data
;
...
...
@@ -165,7 +166,6 @@ export default {
});
this
.
activeName
==
2
?
await
this
.
$post
(
"
/window/owner/list
"
).
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
code
==
1
)
{
this
.
tableData
=
res
.
data
;
}
...
...
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