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
ffe79234
Commit
ffe79234
authored
Sep 07, 2021
by
sixiaofeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
02b0d615
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
62 deletions
+62
-62
create-team.vue
src/views/team/create-team/create-team.vue
+62
-62
No files found.
src/views/team/create-team/create-team.vue
View file @
ffe79234
<
template
>
<div
class=
"createteam"
>
<main-page
left-arrow
@
click-left=
"handleClickLeft"
>
<div
class=
"mx-4 pt-14 pb-2 flex flex-col h-screen"
>
<div
class=
"text-xs text-color-primary bg-color-primary-light px-4 py-3 rounded"
>
创建团队需选择或添加一台服务器为默认服务器,用于保存企业模块信息,聊天服务器和区块链节点自动配置。
</div>
<div
class=
"mt-4"
>
<input-cell
v-model=
"name"
required
:limit=
"20"
label=
"企业/组织/团队名称"
placeholder=
"请输入团队名称"
error-msg=
"团队名称不能为空"
/>
<input-cell
v-model=
"leaderName"
required
:limit=
"20"
label=
"负责人真实姓名"
placeholder=
"请输入真实姓名"
error-msg=
"姓名不能为空"
class=
"mt-4"
/>
<group-cell
title=
"选择服务器"
class=
"mt-4"
>
<main-page
left-arrow
@
click-left=
"handleClickLeft"
>
<div
class=
"mx-4 pt-14 pb-2"
>
<div
class=
"text-xs text-color-primary bg-color-primary-light px-4 py-3 rounded"
>
创建团队需选择或添加一台服务器为默认服务器,用于保存企业模块信息,聊天服务器和区块链节点自动配置。
</div>
<div
class=
"mt-4"
>
<input-cell
v-model=
"name"
required
:limit=
"20"
label=
"企业/组织/团队名称"
placeholder=
"请输入团队名称"
error-msg=
"团队名称不能为空"
/>
<input-cell
v-model=
"leaderName"
required
:limit=
"20"
label=
"负责人真实姓名"
placeholder=
"请输入真实姓名"
error-msg=
"姓名不能为空"
class=
"mt-4"
/>
<group-cell
title=
"选择服务器"
class=
"mt-4"
>
<c-cell
dot
>
<div
slot=
"content"
class=
""
>
<div
class=
""
>
企业服务器
</div>
<div
class=
"text-text-secondary"
>
{{
oaServer
}}
</div>
</div>
</c-cell>
<div
v-if=
"showServerList"
>
<c-cell
dot
>
<div
slot=
"content"
class=
""
>
<div
class=
""
>
企业
服务器
</div>
<div
class=
"text-text-secondary"
>
{{
oa
Server
}}
</div>
<div
class=
""
>
聊天
服务器
</div>
<div
class=
"text-text-secondary"
>
{{
IM
Server
}}
</div>
</div>
</c-cell>
<div
v-if=
"showServerList"
>
<c-cell
dot
>
<div
slot=
"content"
class=
""
>
<div
class=
""
>
聊天服务器
</div>
<div
class=
"text-text-secondary"
>
{{
IMServer
}}
</div>
</div>
</c-cell>
<c-cell
dot
>
<div
slot=
"content"
class=
""
>
<div
class=
""
>
区块链节点
</div>
<div
class=
"text-text-secondary"
>
{{
nodeServer
}}
</div>
</div>
</c-cell>
</div>
<div
class=
"bg-white flex items-center justify-center py-3"
@
click=
"showServer"
>
<app-icon
icon-name=
"right-arrow"
:class-name=
"getClass"
/>
</div>
</group-cell>
</div>
<div
class=
"mt-6"
>
<div
class=
"text-center mb-3 text-text-secondary text-sm"
>
确定创建团队将创建您的团队账号并绑定您的个人账号
</div>
<c-button
@
click=
"toConfirm"
>
确定
</c-button>
</div>
<c-cell
dot
>
<div
slot=
"content"
class=
""
>
<div
class=
""
>
区块链节点
</div>
<div
class=
"text-text-secondary"
>
{{
nodeServer
}}
</div>
</div>
</c-cell>
</div>
<div
class=
"bg-white flex items-center justify-center py-3"
@
click=
"showServer"
>
<app-icon
icon-name=
"right-arrow"
:class-name=
"getClass"
/>
</div>
</group-cell>
</div>
<div
class=
"mt-6"
>
<div
class=
"text-center mb-3 text-text-secondary text-sm"
>
确定创建团队将创建您的团队账号并绑定您的个人账号
</div>
<c-button
@
click=
"toConfirm"
>
确定
</c-button>
</div>
</
main-page
>
</
div
>
</
div
>
</
main-page
>
</
template
>
<
script
lang=
"ts"
>
import
Vue
from
'vue'
import
{
Dialog
}
from
'vant'
import
{
getUserInfo
}
from
'@/util/Bridge'
import
{
getUserInfo
,
goBack
}
from
'@/util/Bridge'
import
{
trim
}
from
'@/util/Common'
export
default
Vue
.
extend
({
...
...
@@ -123,6 +121,7 @@ export default Vue.extend({
methods
:
{
handleClickLeft
()
{
console
.
log
(
'click left'
)
goBack
()
},
showServer
()
{
this
.
showServerList
=
!
this
.
showServerList
...
...
@@ -146,6 +145,7 @@ export default Vue.extend({
this
.
$toast
(
'创建成功'
)
this
.
name
=
''
this
.
leaderName
=
''
goBack
()
}
else
{
this
.
$toast
(
data
.
msg
)
}
...
...
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