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-platform
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-platform
Commits
43902461
Commit
43902461
authored
Aug 08, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
62dc7fc2
8c733847
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
attendance-performance-manager-ui/admin/src/components/SearchForm.vue
...erformance-manager-ui/admin/src/components/SearchForm.vue
+15
-3
No files found.
attendance-performance-manager-ui/admin/src/components/SearchForm.vue
View file @
43902461
...
@@ -180,7 +180,7 @@
...
@@ -180,7 +180,7 @@
import
Qs
from
"
qs
"
;
import
Qs
from
"
qs
"
;
import
{
type
}
from
"
@/assets/utils
"
;
import
{
type
}
from
"
@/assets/utils
"
;
import
{
isArray
}
from
"
util
"
;
import
{
isArray
}
from
"
util
"
;
import
{
getFirstDay
,
getLastDay
}
from
"
@/assets/utils/dateFormat.js
"
;
export
default
{
export
default
{
props
:
{
props
:
{
search
:
{
search
:
{
...
@@ -295,8 +295,21 @@ export default {
...
@@ -295,8 +295,21 @@ export default {
}
}
}
}
if
(
this
.
form
.
summaryTimeStart
&&
this
.
form
.
summaryTimeEnd
)
{
let
startValue
=
Date
.
parse
(
this
.
form
.
summaryTimeStart
);
let
endValue
=
Date
.
parse
(
this
.
form
.
summaryTimeEnd
);
if
(
startValue
>
endValue
)
{
this
.
$message
.
error
(
"
查询-结束的日期需大于开始日期
"
);
this
.
form
.
summaryTimeEnd
=
""
;
return
false
;
}
}
else
{
this
.
form
.
summaryTimeStart
=
getFirstDay
();
this
.
form
.
summaryTimeEnd
=
getLastDay
();
}
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
));
//不更改原始数据
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
));
//不更改原始数据
console
.
log
(
this
.
form
,
'
form参数
'
)
console
.
log
(
this
.
form
,
"
form参数
"
);
let
data
=
this
.
decode
(
params
);
let
data
=
this
.
decode
(
params
);
// Object.assign({}, query, data)
// Object.assign({}, query, data)
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -344,7 +357,6 @@ export default {
...
@@ -344,7 +357,6 @@ export default {
let
newData
=
{
page
:
1
};
let
newData
=
{
page
:
1
};
Object
.
keys
(
data
).
forEach
((
item
)
=>
{
Object
.
keys
(
data
).
forEach
((
item
)
=>
{
let
val
=
data
[
item
];
let
val
=
data
[
item
];
console
.
log
(
item
,
this
.
search
)
this
.
search
.
forEach
((
obj
)
=>
{
this
.
search
.
forEach
((
obj
)
=>
{
if
(
if
(
obj
.
name
===
item
&&
obj
.
name
===
item
&&
...
...
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