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
18f4ff4a
Commit
18f4ff4a
authored
Sep 19, 2024
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed:修改考勤授权不生效的问题及接口传参调整;屏蔽员工列表的编辑功能
parent
d5f9de19
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
175 additions
and
137 deletions
+175
-137
attendance-performance-manager-ui/admin/src/views/staff/drawershow.vue
...rformance-manager-ui/admin/src/views/staff/drawershow.vue
+97
-55
attendance-performance-manager-ui/admin/src/views/staff/list.vue
...nce-performance-manager-ui/admin/src/views/staff/list.vue
+78
-82
No files found.
attendance-performance-manager-ui/admin/src/views/staff/drawershow.vue
View file @
18f4ff4a
...
...
@@ -12,10 +12,8 @@
:model=
"form"
:rules=
"rules"
label-width=
"120px"
style=
"width: 100%
;
"
style=
"width: 100%"
>
<div
class=
"cell2"
>
<div
class=
"history"
>
<span>
姓名:
</span>
...
...
@@ -57,12 +55,24 @@
<span>
手机号:
</span>
<span
class=
"times"
>
{{
form
.
phoneNumber
}}
</span>
</div>
<div
class=
"history"
>
<span>
绩效展示:
</span>
<el-switch
:active-value=
"1"
:inactive-value=
"0"
v-model=
"form.otherCheck"
@
change=
"handleSwitch(1)"
>
</el-switch>
</div>
<div
class=
"box"
v-if=
"form.otherCheck == 1"
>
<div
class=
"history"
>
<span>
考勤授权:
</span>
<el-switch
:active-value=
"1"
:inactive-value=
"0"
v-model=
"form.attendCheck"
@
change=
"handleSwitch(2)"
>
</el-switch>
</div>
...
...
@@ -71,7 +81,8 @@
<el-switch
:active-value=
"1"
:inactive-value=
"0"
v-model=
"form.complainCheck"
v-model=
"form.reviewCheck"
@
change=
"handleSwitch(2)"
>
</el-switch>
</div>
...
...
@@ -90,6 +101,7 @@
:active-value=
"1"
:inactive-value=
"0"
v-model=
"form.goworkCheck"
@
change=
"handleSwitch(2)"
>
</el-switch>
</div>
...
...
@@ -99,6 +111,7 @@
:active-value=
"1"
:inactive-value=
"0"
v-model=
"form.effectCheck"
@
change=
"handleSwitch(2)"
>
</el-switch>
</div>
...
...
@@ -107,29 +120,21 @@
<el-switch
:active-value=
"1"
:inactive-value=
"0"
v-model=
"form.otherCheck"
v-model=
"form.complainCheck"
@
change=
"handleSwitch(2)"
>
</el-switch>
</div>
</div>
</div>
<el-row>
<Field
label=
"所属部门"
prop=
"deptId"
v-model=
"form.deptId"
:enumData=
"dict.deptId"
type=
"select"
placeholder=
"请选择所属部门"
/>
</el-row>
<el-row>
</el-row>
<form-buttons
@
submit=
"submitForm"
noCancelBtn
style=
"position: absolute; left: -100px;"
v-if=
"title != '考核授权'"
style=
"position: absolute; left: -100px"
/>
</el-form>
</el-drawer>
...
...
@@ -216,7 +221,44 @@ export default {
},
methods
:
{
renderContent
:
function
(
h
,
{
node
,
data
,
store
})
{
handleSwitch
(
i
)
{
let
obj
=
{};
if
(
i
==
1
)
{
if
(
this
.
form
.
otherCheck
==
0
)
{
this
.
form
.
attendCheck
=
0
;
this
.
form
.
reviewCheck
=
0
;
this
.
form
.
goworkCheck
=
0
;
this
.
form
.
effectCheck
=
0
;
this
.
form
.
complainCheck
=
0
;
}
else
{
this
.
form
.
attendCheck
=
1
;
this
.
form
.
reviewCheck
=
1
;
this
.
form
.
goworkCheck
=
1
;
this
.
form
.
effectCheck
=
1
;
this
.
form
.
complainCheck
=
1
;
}
}
obj
=
{
otherCheck
:
this
.
form
.
otherCheck
,
attendCheck
:
this
.
form
.
attendCheck
,
reviewCheck
:
this
.
form
.
reviewCheck
,
goworkCheck
:
this
.
form
.
goworkCheck
,
effectCheck
:
this
.
form
.
effectCheck
,
complainCheck
:
this
.
form
.
complainCheck
,
};
obj
.
staffId
=
this
.
form
.
id
;
this
.
form
.
staffId
=
this
.
form
.
id
;
this
.
form
.
type
=
1
;
this
.
$post
(
"
/staff/check/authorize
"
,
obj
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
$message
.
success
(
"
绩效展示修改成功!
"
);
}
else
{
this
.
$message
.
error
(
res
.
message
);
}
});
},
renderContent
:
function
(
h
,
{
node
,
data
,
store
})
{
return
(
<
span
>
<
i
style
=
"
font-size:16px;color:#409EFF
"
class
=
{
data
.
icon
}
><
/i
>
...
...
attendance-performance-manager-ui/admin/src/views/staff/list.vue
View file @
18f4ff4a
...
...
@@ -8,11 +8,11 @@
></tab-pane>
</div>
<el-row
:gutter=
"20"
style=
"padding-top: 10px
;
"
>
<el-row
:gutter=
"20"
style=
"padding-top: 10px"
>
<el-col
:span=
"6"
:xs=
"12"
class=
"mytree"
>
<div
class=
"titles"
>
选择部门
</div>
<!-- default-expand-all -->
<el-scrollbar
style=
"height:
630px;overflow-y: auto;
"
>
<el-scrollbar
style=
"height:
630px; overflow-y: auto
"
>
<el-tree
size=
"mini"
ref=
"siteTree"
...
...
@@ -54,13 +54,13 @@
:disabled=
"ishowBumen"
size=
"mini"
slot=
"table-head-left2"
>
部门分配
</el-button>
>
部门分配
</el-button
>
<el-dropdown
class=
"moreControll"
slot=
"table-head-left2"
style=
"margin-left:20px"
style=
"margin-left:
20px"
>
<el-button
type=
"primary"
size=
"mini"
>
更多操作
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
...
...
@@ -152,9 +152,7 @@
<div>
花名册记录
</div>
<!--
<el-button
type=
"text"
>
查看
</el-button>
-->
</div>
<div
class=
"times"
>
导出时间:2023-07-19
</div>
<div
class=
"times"
>
导出时间:2023-07-19
</div>
</div>
</div>
</el-drawer>
...
...
@@ -172,7 +170,7 @@
>
</el-checkbox>
</el-checkbox-group>
<div
class=
"mt20"
style=
"text-align:right"
>
<div
class=
"mt20"
style=
"text-align:
right"
>
<el-button
@
click=
"() => (isdialog = falsle)"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleOk"
>
确定
</el-button>
</div>
...
...
@@ -187,23 +185,23 @@
<!-- 部门选择 -->
<el-dialog
:visible.sync=
"ishowBumen"
title=
"员工分配部门"
width=
"70%"
>
<el-form
ref=
"form"
label-width=
"80px"
>
<el-row
type=
"flex"
>
<el-row
type=
"flex"
>
<el-form-item
label=
"员工"
>
<el-tag
style=
"margin-left: 10px"
v-for=
"tag in staffTags"
>
{{
tag
}}
{{
tag
}}
</el-tag>
</el-form-item>
</el-row>
<el-form-item
label=
"分配部门"
>
<el-tag
style=
"margin-left: 10px"
v-if=
"disdept!=''"
>
{{
disdept
}}
<el-tag
style=
"margin-left: 10px"
v-if=
"disdept != ''"
>
{{
disdept
}}
</el-tag>
</el-form-item>
<el-divider></el-divider>
<el-row
type=
"flex"
:gutter=
"20"
style=
"height:
60vh"
>
<el-row
type=
"flex"
:gutter=
"20"
style=
"height:
60vh"
>
<el-col
:span=
"24"
:xs=
"12"
class=
"mytree"
>
<el-scrollbar
style=
"height: 100%;
width: 100%"
>
<el-scrollbar
style=
"height: 100%;
width: 100%"
>
<el-tree
size=
"mini"
ref=
"deptTree"
...
...
@@ -224,12 +222,13 @@
</el-col>
</el-row>
<div
class=
"mt20"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"comfirmDept"
>
确定
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"comfirmDept"
>
确定
</el-button
>
<el-button
size=
"mini"
@
click=
"ishowBumen = false"
>
取消
</el-button>
</div>
</el-form>
</el-dialog>
</div>
</
template
>
...
...
@@ -260,7 +259,7 @@ export default {
<
i
style
=
"
font-size:16px;color:#409EFF
"
class
=
{
data
.
icon
}
><
/i
>
<
span
style
=
"
padding-left: 2px;font-size:14px
"
>
{
node
.
label
}
<
/span
>
<
/span
>
)
)
;
},
handleOk
()
{
this
.
config
.
columns
.
forEach
((
v
)
=>
{
...
...
@@ -296,21 +295,20 @@ export default {
});
},
async
assignStaffToDept
()
{
if
(
this
.
selection
.
length
==
0
)
{
async
assignStaffToDept
()
{
if
(
this
.
selection
.
length
==
0
)
{
this
.
$message
.
info
(
"
请选择需要分配部门的员工!
"
);
return
return
;
}
await
this
.
$post
(
`/staff/list`
,
{
page
:
1
,
size
:
-
1
,
idList
:
this
.
selection
idList
:
this
.
selection
,
}).
then
((
res
)
=>
{
this
.
staffTags
=
res
.
data
.
data
.
map
(
i
=>
i
.
name
)
this
.
disdept
=
''
this
.
disdeptId
=
null
this
.
ishowBumen
=
true
;
this
.
staffTags
=
res
.
data
.
data
.
map
((
i
)
=>
i
.
name
);
this
.
disdept
=
""
;
this
.
disdeptId
=
null
;
this
.
ishowBumen
=
true
;
});
},
...
...
@@ -327,44 +325,42 @@ export default {
});
},
handleDeptSelectClick
(
obj
){
this
.
disdept
=
obj
.
label
this
.
disdeptId
=
obj
.
id
handleDeptSelectClick
(
obj
)
{
this
.
disdept
=
obj
.
label
;
this
.
disdeptId
=
obj
.
id
;
},
comfirmDept
(){
if
(
this
.
disdept
==
''
)
{
this
.
$message
.
warning
(
"
请选择对应的部门!
"
)
comfirmDept
()
{
if
(
this
.
disdept
==
""
)
{
this
.
$message
.
warning
(
"
请选择对应的部门!
"
)
;
return
;
}
let
updateStaffList
=
this
.
selection
.
map
(
id
=>
{
let
obj
=
{}
obj
.
id
=
id
obj
.
deptId
=
this
.
disdeptId
obj
.
deptName
=
this
.
disdept
return
obj
})
if
(
updateStaffList
.
length
==
0
)
{
this
.
$message
.
warning
(
"
请选择员工与对应的部门!
"
)
let
updateStaffList
=
this
.
selection
.
map
((
id
)
=>
{
let
obj
=
{};
obj
.
id
=
id
;
obj
.
deptId
=
this
.
disdeptId
;
obj
.
deptName
=
this
.
disdept
;
return
obj
;
})
;
if
(
updateStaffList
.
length
==
0
)
{
this
.
$message
.
warning
(
"
请选择员工与对应的部门!
"
)
;
return
;
}
console
.
log
(
updateStaffList
)
console
.
log
(
updateStaffList
)
;
this
.
$post
(
'
staff/batchSave
'
,
updateStaffList
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
this
.
ishowBumen
=
false
;
this
.
$message
.
success
(
"
员工分配部门成功!
"
)
this
.
$post
(
"
staff/batchSave
"
,
updateStaffList
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
ishowBumen
=
false
;
this
.
$message
.
success
(
"
员工分配部门成功!
"
)
;
this
.
getData
();
}
else
{
this
.
$message
.
error
(
res
.
msg
)
}
else
{
this
.
$message
.
error
(
res
.
msg
)
;
}
})
});
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
drawerform
.
add
(
row
);
...
...
@@ -455,9 +451,9 @@ export default {
disdept
:
""
,
disdeptId
:
""
,
staffTags
:
[],
ishowBumen
:
false
,
staffList
:[],
deptnode
:{},
ishowBumen
:
false
,
staffList
:
[],
deptnode
:
{},
// 用户导入参数
upload
:
{
headers
:
{
...
...
@@ -544,7 +540,7 @@ export default {
noAdd
noAuth
noDel
noEdit
row
=
{
row
}
onView
=
{
this
.
toView
}
onEdit
=
{
this
.
toEdit
}
...
...
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