Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
OKR
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanfeng zhang
OKR
Commits
75021e7c
Commit
75021e7c
authored
Sep 08, 2021
by
hanfeng zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
321
parent
4e8e8345
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
confirm-join.vue
src/views/team/join-team/confirm-join.vue
+1
-1
team-frame.vue
src/views/team/team-frame.vue
+6
-3
No files found.
src/views/team/join-team/confirm-join.vue
View file @
75021e7c
...
@@ -132,7 +132,7 @@ export default Vue.extend({
...
@@ -132,7 +132,7 @@ export default Vue.extend({
if
(
data
.
code
===
this
.
$global
.
success
)
{
if
(
data
.
code
===
this
.
$global
.
success
)
{
this
.
$toast
(
'加入成功'
)
this
.
$toast
(
'加入成功'
)
this
.
$store
.
commit
(
'acceptJoin'
,
{})
this
.
$store
.
commit
(
'acceptJoin'
,
{})
this
.
$router
.
push
(
'/team/team-management
'
)
this
.
$router
.
replace
(
'/team/team-frame
'
)
}
else
{
}
else
{
this
.
$toast
(
data
.
msg
)
this
.
$toast
(
data
.
msg
)
}
}
...
...
src/views/team/team-frame.vue
View file @
75021e7c
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
/>
/>
</div>
</div>
<!-- 底部操作 -->
<!-- 底部操作 -->
<div
class=
"py-2 px-4 bg-white w-screen fixed bottom-0 left-0 z-30"
>
<div
class=
"py-2 px-4 bg-white w-screen fixed bottom-0 left-0 z-30"
v-if=
"getRole "
>
<div
class=
"grid grid-cols-3 gap-2.5"
>
<div
class=
"grid grid-cols-3 gap-2.5"
>
<c-button
round
@
click=
"addMember"
>
添加成员
</c-button>
<c-button
round
@
click=
"addMember"
>
添加成员
</c-button>
<c-button
round
@
click=
"addDep"
>
添加部门
</c-button>
<c-button
round
@
click=
"addDep"
>
添加部门
</c-button>
...
@@ -96,11 +96,13 @@ export default Vue.extend({
...
@@ -96,11 +96,13 @@ export default Vue.extend({
preDep
:
{},
preDep
:
{},
// 是否显示check
// 是否显示check
checkedMemberId
:
[],
checkedMemberId
:
[],
fromPath
:
''
fromPath
:
''
,
role
:
null
}
}
},
},
mounted
()
{
mounted
()
{
const
res
=
JSON
.
parse
(
getUserInfo
()
||
"{}"
)
const
res
=
JSON
.
parse
(
getUserInfo
()
||
"{}"
)
this
.
role
=
process
.
env
.
NODE_ENV
===
'production'
&&
res
.
role
this
.
entId
=
process
.
env
.
NODE_ENV
===
'production'
?
res
.
entId
:
'166961152260050944'
this
.
entId
=
process
.
env
.
NODE_ENV
===
'production'
?
res
.
entId
:
'166961152260050944'
localStorage
.
setItem
(
'USR_INFO'
,
getUserInfo
())
localStorage
.
setItem
(
'USR_INFO'
,
getUserInfo
())
this
.
getEntInfo
()
this
.
getEntInfo
()
...
@@ -108,7 +110,8 @@ export default Vue.extend({
...
@@ -108,7 +110,8 @@ export default Vue.extend({
computed
:
{
computed
:
{
isDepDetail
():
boolean
{
isDepDetail
():
boolean
{
return
this
.
currentDep
.
parentId
!==
'-1'
return
this
.
currentDep
.
parentId
!==
'-1'
}
},
},
},
methods
:
{
methods
:
{
goPre
(
dep
:
Department
)
{
goPre
(
dep
:
Department
)
{
...
...
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