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
8efc9309
Commit
8efc9309
authored
Jul 30, 2021
by
sixiaofeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
团队管理页面标题修改
parent
e3206d0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
12 deletions
+32
-12
input-cell.vue
src/views/components/input-cell.vue
+1
-1
team-management.vue
src/views/team-management.vue
+31
-11
No files found.
src/views/components/input-cell.vue
View file @
8efc9309
...
...
@@ -82,7 +82,7 @@ export default Vue.extend({
}
},
created
()
{
this
.
length
=
this
.
value
.
length
||
0
this
.
length
=
this
.
value
?
.
length
||
0
},
methods
:
{
checkIfEmpty
(
string
:
string
)
{
...
...
src/views/team-management.vue
View file @
8efc9309
...
...
@@ -11,14 +11,25 @@
/>
<!-- 名称 -->
<div
class=
"ml-4 flex-1 text-text-primary"
>
<span>
这里是企业名称只有负责人可编辑修改修改
</span>
<app-icon
type=
"png"
:path=
"require('@/assets/icons/edit.png')"
class-name=
"h-3 w-3 inline-block ml-1"
/>
<div
v-if=
"!isEditing"
class=
""
>
<span
class=
"break-all"
>
{{
teamName
}}
</span>
<app-icon
type=
"png"
:path=
"require('@/assets/icons/edit.png')"
class-name=
"h-3 w-3 inline-block ml-1"
@
click=
"editTeamName"
/>
</div>
<input
v-else
v-model=
"teamName"
ref=
"teamInput"
type=
"text"
class=
"w-full bg-common-bg"
@
blur=
"isEditing = false"
>
<!-- 团队号 -->
<div
class=
"text-text-secondary text-sm font-medium mt-1.5"
>
团队号 ABCDE1234
...
...
@@ -51,10 +62,19 @@ export default Vue.extend({
'c-button'
:
()
=>
import
(
'./components/c-button.vue'
)
},
name
:
'TeamManagement'
,
data
()
{
return
{
teamName
:
'企业名称'
,
isEditing
:
false
}
},
methods
:
{
// handleClickLeft() {
// console.log('click')
// }
editTeamName
()
{
this
.
isEditing
=
true
this
.
$nextTick
(()
=>
{
(
this
.
$refs
.
teamInput
as
HTMLInputElement
).
focus
()
})
},
transferManagement
()
{
this
.
$router
.
push
({
path
:
'/team-frame'
,
...
...
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