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
8728400f
Commit
8728400f
authored
Jan 31, 2024
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
考勤汇总添加大厅和部门搜索
parent
be4cf8b8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
3 deletions
+81
-3
attendance-performance-manager-ui/admin/src/components/SearchForm.vue
...erformance-manager-ui/admin/src/components/SearchForm.vue
+73
-1
attendance-performance-manager-ui/admin/src/views/attendance/stat/list.vue
...mance-manager-ui/admin/src/views/attendance/stat/list.vue
+8
-2
No files found.
attendance-performance-manager-ui/admin/src/components/SearchForm.vue
View file @
8728400f
...
...
@@ -50,6 +50,44 @@
:key=
"value"
></el-option>
</el-select>
<el-select
v-model=
"form[item.name]"
:filterable=
"item.filterable"
:multiple=
"item.multiple"
:clearable=
"true"
@
change=
"salaChange"
@
clear=
"item.clear && item.clear"
v-if=
"item.type === 'selectSalaId'"
:placeholder=
"'请选择' + item.label"
>
<el-option
:label=
"label.deptName"
:value=
"label.id"
v-for=
"(label, value) in salaArr"
:key=
"value"
></el-option>
</el-select>
<el-select
v-model=
"form[item.name]"
:filterable=
"item.filterable"
:multiple=
"item.multiple"
:clearable=
"true"
@
clear=
"item.clear && item.clear"
v-if=
"item.type === 'selectDeptId'"
:placeholder=
"'请选择' + item.label"
>
<!--
<el-option
label=
""
value=
""
v-if=
"!item.multiple && !item.notShowAll"
></el-option>
-->
<el-option
:label=
"label.deptName"
:value=
"label.id"
v-for=
"(label, value) in deptArr"
:key=
"value"
></el-option>
</el-select>
<el-select
v-model=
"form[item.name]"
...
...
@@ -214,9 +252,41 @@ export default {
this
.
$route
.
name
==
"
attendance/stat/list
"
?
(
this
.
visible
=
true
)
:
(
this
.
visible
=
false
);
this
.
$route
.
name
==
"
attendance/stat/list
"
?
this
.
getArr
()
:
""
;
this
.
initForm
(
this
.
$route
.
query
);
},
methods
:
{
salaChange
()
{
this
.
$get
(
"
/dept/getDeptBySalaId
"
,
{
salaId
:
this
.
form
.
salaId
})
.
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
deptArr
=
res
.
data
.
data
;
}
})
.
catch
((
error
)
=>
{
this
.
$message
.
error
(
error
.
message
);
});
},
getArr
()
{
this
.
$get
(
"
/dept/getSalaList
"
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
salaArr
=
res
.
data
.
data
;
}
})
.
catch
((
error
)
=>
{
this
.
$message
.
error
(
error
.
message
);
});
this
.
$get
(
"
/dept/getDeptBySalaId
"
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
deptArr
=
res
.
data
.
data
;
}
})
.
catch
((
error
)
=>
{
this
.
$message
.
error
(
error
.
message
);
});
},
resetTable
()
{
let
{
path
,
query
}
=
this
.
$route
;
if
(
this
.
form
.
attendanceDateStart
&&
this
.
form
.
attendanceDateEnd
)
{
...
...
@@ -541,12 +611,14 @@ export default {
computed
:
{},
data
()
{
return
{
downloadUrl
:
false
,
downloadUrl
:
false
,
form
:
{
// groupList: [],
},
remoteOptions
:
{},
visible
:
false
,
salaArr
:
[],
deptArr
:
[],
};
},
};
...
...
attendance-performance-manager-ui/admin/src/views/attendance/stat/list.vue
View file @
8728400f
...
...
@@ -375,10 +375,16 @@ export default {
showType
:
"
tableSelect
"
,
isshowTabPane
:
true
,
search
:
[
{
name
:
"
salaId
"
,
type
:
"
selectSalaId
"
,
label
:
"
大厅
"
,
fuzzy
:
false
,
},
{
name
:
"
deptId
"
,
type
:
"
select
"
,
label
:
"
全部
部门
"
,
type
:
"
select
DeptId
"
,
label
:
"
部门
"
,
fuzzy
:
false
,
},
// {
...
...
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