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
cb5f94ea
Commit
cb5f94ea
authored
Sep 08, 2021
by
sixiaofeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
55e9a76d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
9 deletions
+18
-9
department-management.vue
src/views/team/department-management.vue
+0
-1
confirm-join.vue
src/views/team/join-team/confirm-join.vue
+14
-1
team-frame.vue
src/views/team/team-frame.vue
+2
-2
two-code.vue
src/views/team/two-code.vue
+2
-5
No files found.
src/views/team/department-management.vue
View file @
cb5f94ea
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
@
click=
"selectLeader"
@
click=
"selectLeader"
/>
/>
<c-cell
<c-cell
dot
title=
"上级部门"
title=
"上级部门"
:content=
"parentDepName"
:content=
"parentDepName"
/>
/>
...
...
src/views/team/join-team/confirm-join.vue
View file @
cb5f94ea
...
@@ -112,8 +112,9 @@ export default Vue.extend({
...
@@ -112,8 +112,9 @@ export default Vue.extend({
},
},
created
()
{
created
()
{
this
.
info
=
this
.
$route
.
query
as
unknown
as
AcceptJoinDTO
this
.
info
=
this
.
$route
.
query
as
unknown
as
AcceptJoinDTO
this
.
entName
=
JSON
.
parse
(
localStorage
.
getItem
(
'ENT_INFO'
)
as
string
).
name
//
this.entName = JSON.parse(localStorage.getItem('ENT_INFO') as string).name
this
.
getDepInfo
(
this
.
info
)
this
.
getDepInfo
(
this
.
info
)
this
.
getEntInfo
(
this
.
info
)
},
},
methods
:
{
methods
:
{
appNavBack
,
appNavBack
,
...
@@ -148,6 +149,18 @@ export default Vue.extend({
...
@@ -148,6 +149,18 @@ export default Vue.extend({
this
.
departName
=
data
.
data
.
name
this
.
departName
=
data
.
data
.
name
}
}
})
})
},
getEntInfo
(
item
:
AcceptJoinDTO
)
{
this
.
loading
=
true
this
.
$service
.
enterprise
.
getEnterpriseInfo
({
id
:
item
.
entId
}).
then
((
res
:
any
)
=>
{
this
.
loading
=
false
const
{
data
}
=
res
if
(
data
.
code
===
this
.
$global
.
success
)
{
this
.
entName
=
data
.
data
.
name
}
})
}
}
}
}
})
})
...
...
src/views/team/team-frame.vue
View file @
cb5f94ea
...
@@ -41,10 +41,10 @@
...
@@ -41,10 +41,10 @@
</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"
>
<div
class=
"grid g
rid-cols-3 gap-2.5
"
>
<div
class=
"grid g
ap-2.5"
:class=
"currentDep.parentId !== '-1' ? 'grid-cols-3' : 'grid-cols-2'
"
>
<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>
<c-button
round
@
click=
"setDepartment"
>
部门设置
</c-button>
<c-button
round
@
click=
"setDepartment"
v-if=
"currentDep.parentId !== '-1'"
>
部门设置
</c-button>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/views/team/two-code.vue
View file @
cb5f94ea
...
@@ -8,8 +8,7 @@
...
@@ -8,8 +8,7 @@
<div
class=
"mx-4 pt-14"
>
<div
class=
"mx-4 pt-14"
>
<div
class=
"shadow-md rounded overflow-hidden"
id=
"qrcode"
>
<div
class=
"shadow-md rounded overflow-hidden"
id=
"qrcode"
>
<div
class=
"bg-color-primary text-center h-24 pt-6"
>
<div
class=
"bg-color-primary text-center h-24 pt-6"
>
<div
class=
"text-white flex-initial"
>
{{
msg1
}}
</div>
<div
class=
"text-white flex-initial"
>
{{
entName
}}
</div>
<!--
<div
class=
"text-gray-300 flex-initial"
>
团队号:
{{
msg2
}}
</div>
-->
</div>
</div>
<div
class=
"bg-white"
>
<div
class=
"bg-white"
>
<div
class=
"flex flex-row justify-around"
>
<div
class=
"flex flex-row justify-around"
>
...
@@ -39,7 +38,7 @@
...
@@ -39,7 +38,7 @@
<div>
{{
formatDate
(
Number
(
joinInfo
.
joinTime
)
*
1000
,
'YYYY-MM-DD'
)
||
'2021-09-05'
}}
</div>
<div>
{{
formatDate
(
Number
(
joinInfo
.
joinTime
)
*
1000
,
'YYYY-MM-DD'
)
||
'2021-09-05'
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
" text-center text-gray-400 pb-8 pt-4"
>
扫描二维码加入
我们
{{
entName
}}
的团队
</div>
<div
class=
" text-center text-gray-400 pb-8 pt-4"
>
扫描二维码加入
{{
entName
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"flex justify-center pt-8 text-color-primary font-medium text-sm text-center px-7"
>
<div
class=
"flex justify-center pt-8 text-color-primary font-medium text-sm text-center px-7"
>
...
@@ -85,8 +84,6 @@ export default Vue.extend({
...
@@ -85,8 +84,6 @@ export default Vue.extend({
data
()
{
data
()
{
return
{
return
{
formatDate
,
formatDate
,
msg1
:
'团队名称'
,
msg2
:
'ABCDEF'
,
entName
:
''
,
entName
:
''
,
joinInfo
:
{}
as
JoinInfoType
,
joinInfo
:
{}
as
JoinInfoType
,
qrCodeText
:
''
,
qrCodeText
:
''
,
...
...
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