Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
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
youjj
cloud-platform-ui
Commits
98fda56f
Commit
98fda56f
authored
Dec 20, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
员工管理
parent
2bda4e03
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
12 deletions
+39
-12
index.js
src/api/admin/userManagement/index.js
+11
-2
employeesInput.vue
src/views/interior/employeesInput.vue
+28
-8
orderStatistics.vue
src/views/statistics/orderStatistics.vue
+0
-2
No files found.
src/api/admin/userManagement/index.js
View file @
98fda56f
...
@@ -112,7 +112,7 @@ export function jobs(obj) {
...
@@ -112,7 +112,7 @@ export function jobs(obj) {
// 添加员工
// 添加员工
export
function
addEditor
(
obj
)
{
export
function
addEditor
(
obj
)
{
return
fetch
({
return
fetch
({
url
:
'/api/admin/postion/admin/
ad
dUserPostion'
,
url
:
'/api/admin/postion/admin/
up
dUserPostion'
,
method
:
'post'
,
method
:
'post'
,
data
:
obj
data
:
obj
});
});
...
@@ -187,3 +187,12 @@ export function updAddPositionChangeRecord(params) {
...
@@ -187,3 +187,12 @@ export function updAddPositionChangeRecord(params) {
data
:
params
data
:
params
});
});
}
}
// 信息修改
// export function updUserPostion(params) {
// return fetch({
// url: 'api/admin/postion/admin/updUserPostion',
// method: 'post',
// data: params
// });
// }
\ No newline at end of file
src/views/interior/employeesInput.vue
View file @
98fda56f
...
@@ -243,9 +243,9 @@
...
@@ -243,9 +243,9 @@
<p
v-for=
"(item,index) in staffInfo.record"
:key=
"index"
>
<p
v-for=
"(item,index) in staffInfo.record"
:key=
"index"
>
<b
v-show=
"!!item.jobRemark"
>
{{item.relTime}}
</b>
<b
v-show=
"!!item.jobRemark"
>
{{item.relTime}}
</b>
<span
v-if=
"item.jobRemark == 1"
v-show=
"!!item.relTime"
>
入职
</span>
<span
v-if=
"item.jobRemark == 1"
v-show=
"!!item.relTime"
>
入职
</span>
<span
v-if=
"item.jobRemark == 4"
>
(人事调动) {{item.oldCompanyName}} => {{item.newCompanyName}}
</span>
<span
v-
else-
if=
"item.jobRemark == 4"
>
(人事调动) {{item.oldCompanyName}} => {{item.newCompanyName}}
</span>
<span
v-if=
"item.jobRemark == 2"
>
(职位变更) {{item.oldJobName}} => {{item.newJobName}}
</span>
<span
v-
else-
if=
"item.jobRemark == 2"
>
(职位变更) {{item.oldJobName}} => {{item.newJobName}}
</span>
<span
v-if=
"item.jobRemark == 3"
>
(身份变更) {{item.oldPositionName}} => {{item.newPositionName}}
</span>
<span
v-
else-
if=
"item.jobRemark == 3"
>
(身份变更) {{item.oldPositionName}} => {{item.newPositionName}}
</span>
<span
v-if=
"item.jobRemark == 5"
>
离职
</span>
<span
v-if=
"item.jobRemark == 5"
>
离职
</span>
<!-- <span v-else></span> -->
<!-- <span v-else></span> -->
</p>
</p>
...
@@ -531,12 +531,30 @@ export default {
...
@@ -531,12 +531,30 @@ export default {
this
.
setApi
(
this
.
amendCompany
)
this
.
setApi
(
this
.
amendCompany
)
}
}
}
else
{
}
else
{
let
params
=
{};
let
name
=
this
.
companyList
.
filter
(
item
=>
item
.
id
==
this
.
amendCompany
.
companyId
)
let
name
=
this
.
companyList
.
filter
(
item
=>
item
.
id
==
this
.
amendCompany
.
companyId
)
this
.
amendCompany
.
companyName
=
name
[
0
].
name
console
.
log
(
name
)
this
.
amendCompany
.
jobId
=
this
.
staffTitleFrom
.
jobId
params
.
companyName
=
name
[
0
].
name
this
.
amendCompany
.
positionId
=
this
.
staffTitleFrom
.
positionId
params
.
companyId
=
name
[
0
].
id
this
.
amendCompany
.
isQuit
=
this
.
staffTitleFrom
.
isQuit
==
'在职'
?
0
:
1
params
.
positionId
=
this
.
staffTitleFrom
.
positionId
this
.
setApi
(
this
.
amendCompany
)
// params.isQuit = this.staffTitleFrom.isQuit == '在职' ? 0 : 1
// params.changeStatus = 2
// params.jobId = this.staffTitleFrom.jobId
params
.
name
=
this
.
staffTitleFrom
.
name
params
.
phone
=
this
.
staffTitleFrom
.
phone
params
.
id
=
this
.
staffTitleFrom
.
id
console
.
log
(
params
)
// this.setApi(this.amendCompany)
editorUpd
(
params
).
then
(
data
=>
{
if
(
data
.
status
==
200
)
{
this
.
$message
.
success
(
'编辑成功'
)
this
.
amendPop
=
false
;
this
.
bulkUploadMember
=
false
this
.
getList
()
}
else
{
this
.
$message
.
error
(
data
.
message
)
}
})
}
}
},
},
setApi
(
params
){
setApi
(
params
){
...
@@ -855,6 +873,7 @@ export default {
...
@@ -855,6 +873,7 @@ export default {
this
.
$message
(
'职位不能为空'
)
this
.
$message
(
'职位不能为空'
)
}
else
{
}
else
{
if
(
!!
this
.
staffTitleFrom
.
relTime
)
this
.
staffTitleFrom
.
relTime
=
formatDate
(
new
Date
(
this
.
staffTitleFrom
.
relTime
),
'yyyy-MM-dd hh:mm:ss'
)
if
(
!!
this
.
staffTitleFrom
.
relTime
)
this
.
staffTitleFrom
.
relTime
=
formatDate
(
new
Date
(
this
.
staffTitleFrom
.
relTime
),
'yyyy-MM-dd hh:mm:ss'
)
addEditor
(
this
.
staffTitleFrom
).
then
(
data
=>
{
addEditor
(
this
.
staffTitleFrom
).
then
(
data
=>
{
if
(
data
.
status
==
200
)
{
if
(
data
.
status
==
200
)
{
this
.
$notify
({
this
.
$notify
({
...
@@ -877,6 +896,7 @@ export default {
...
@@ -877,6 +896,7 @@ export default {
}
}
}
else
{
}
else
{
this
.
staffTitleFrom
.
id
=
this
.
activeId
this
.
staffTitleFrom
.
id
=
this
.
activeId
delete
this
.
staffTitleFrom
.
isQuit
editorUpd
(
this
.
staffTitleFrom
).
then
(
data
=>
{
editorUpd
(
this
.
staffTitleFrom
).
then
(
data
=>
{
if
(
data
.
status
==
200
)
{
if
(
data
.
status
==
200
)
{
this
.
$notify
({
this
.
$notify
({
...
...
src/views/statistics/orderStatistics.vue
View file @
98fda56f
...
@@ -227,8 +227,6 @@ export default {
...
@@ -227,8 +227,6 @@ export default {
},
},
//搜索
//搜索
search
()
{
search
()
{
console
.
log
(
!!
this
.
time
&&
!!
this
.
time
[
0
])
if
(
!!
this
.
time
&&
!!
this
.
time
[
0
])
{
if
(
!!
this
.
time
&&
!!
this
.
time
[
0
])
{
this
.
listQuery
.
startDate
=
this
.
listQuery
.
startDate
=
formatDate
(
new
Date
(
this
.
time
[
0
]),
'yyyy-MM-dd'
)
+
formatDate
(
new
Date
(
this
.
time
[
0
]),
'yyyy-MM-dd'
)
+
...
...
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