Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
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
刘文虎
account-book
Commits
2d14b4ee
Commit
2d14b4ee
authored
Sep 24, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加人员
parent
2a3e611c
Pipeline
#3568
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
employee-create.vue
pages/workpoint/employees/employee-create.vue
+3
-1
index.vue
pages/workpoint/employees/index.vue
+4
-7
No files found.
pages/workpoint/employees/employee-create.vue
View file @
2d14b4ee
...
@@ -188,7 +188,6 @@ export default {
...
@@ -188,7 +188,6 @@ export default {
this
.
deleteProjectMember
()
this
.
deleteProjectMember
()
},
},
handleClickConfirm
()
{
handleClickConfirm
()
{
this
.
buttonLoading
=
true
this
.
updateProjectMember
()
this
.
updateProjectMember
()
},
},
deleteProjectMember
()
{
deleteProjectMember
()
{
...
@@ -212,6 +211,7 @@ export default {
...
@@ -212,6 +211,7 @@ export default {
});
});
},
},
updateProjectMember
()
{
updateProjectMember
()
{
this
.
buttonLoading
=
true
if
(
!
this
.
form
.
projectId
)
{
if
(
!
this
.
form
.
projectId
)
{
this
.
form
.
projectId
=
this
.
projectId
this
.
form
.
projectId
=
this
.
projectId
}
}
...
@@ -229,10 +229,12 @@ export default {
...
@@ -229,10 +229,12 @@ export default {
}
}
})
})
.
catch
(
res
=>
{
.
catch
(
res
=>
{
this
.
buttonLoading
=
false
});
});
},
},
goBack
()
{
goBack
()
{
uni
.
$emit
(
'employees-changed'
)
uni
.
$emit
(
'employees-changed'
)
uni
.
$emit
(
'project-detail'
)
this
.
$u
.
route
({
this
.
$u
.
route
({
type
:
'navigateBack'
,
type
:
'navigateBack'
,
params
:
{
params
:
{
...
...
pages/workpoint/employees/index.vue
View file @
2d14b4ee
...
@@ -178,9 +178,6 @@ export default {
...
@@ -178,9 +178,6 @@ export default {
});
});
}
}
// 测试数据
this
.
projectId
=
'160'
this
.
freshing
=
false
;
this
.
freshing
=
false
;
this
.
reloadList
();
this
.
reloadList
();
},
},
...
@@ -214,7 +211,6 @@ export default {
...
@@ -214,7 +211,6 @@ export default {
size
:
this
.
size
,
size
:
this
.
size
,
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
'-------res------'
,
res
)
let
data
=
res
.
data
;
let
data
=
res
.
data
;
if
(
this
.
current
==
1
)
{
if
(
this
.
current
==
1
)
{
this
.
employees
=
[];
this
.
employees
=
[];
...
@@ -257,7 +253,6 @@ export default {
...
@@ -257,7 +253,6 @@ export default {
size
:
this
.
size
,
size
:
this
.
size
,
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
'-------res---0---'
,
res
)
let
data
=
res
.
data
;
let
data
=
res
.
data
;
if
(
this
.
current
==
1
)
{
if
(
this
.
current
==
1
)
{
this
.
employees
=
[];
this
.
employees
=
[];
...
@@ -337,12 +332,13 @@ export default {
...
@@ -337,12 +332,13 @@ export default {
});
});
},
},
handleSelectCell
(
id
,
selected
)
{
handleSelectCell
(
id
,
selected
)
{
console
.
log
(
id
,
selected
)
var
members
=
[]
var
members
=
[]
for
(
var
item
of
this
.
employees
)
{
for
(
var
item
of
this
.
employees
)
{
if
(
item
.
id
==
id
)
{
if
(
item
.
id
==
id
)
{
item
.
selected
=
selected
item
.
selected
=
selected
break
}
}
if
(
item
.
selected
)
{
if
(
item
.
selected
)
{
members
.
push
(
item
.
id
)
members
.
push
(
item
.
id
)
}
}
...
@@ -355,7 +351,8 @@ export default {
...
@@ -355,7 +351,8 @@ export default {
type
:
'navigateTo'
,
type
:
'navigateTo'
,
params
:
{
params
:
{
selectedMembers
:
this
.
stringEmployees
,
selectedMembers
:
this
.
stringEmployees
,
type
:
'select'
type
:
'select'
,
projectId
:
this
.
projectId
}
}
});
});
},
},
...
...
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