Commit 8efc9309 authored by sixiaofeng's avatar sixiaofeng

团队管理页面标题修改

parent e3206d0a
...@@ -82,7 +82,7 @@ export default Vue.extend({ ...@@ -82,7 +82,7 @@ export default Vue.extend({
} }
}, },
created() { created() {
this.length = this.value.length || 0 this.length = this.value?.length || 0
}, },
methods: { methods: {
checkIfEmpty(string: string) { checkIfEmpty(string: string) {
......
...@@ -11,14 +11,25 @@ ...@@ -11,14 +11,25 @@
/> />
<!-- 名称 --> <!-- 名称 -->
<div class="ml-4 flex-1 text-text-primary"> <div class="ml-4 flex-1 text-text-primary">
<span> <div v-if="!isEditing" class="">
这里是企业名称只有负责人可编辑修改修改 <span class="break-all">
</span> {{ teamName }}
<app-icon </span>
type="png" <app-icon
:path="require('@/assets/icons/edit.png')" type="png"
class-name="h-3 w-3 inline-block ml-1" :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"> <div class="text-text-secondary text-sm font-medium mt-1.5">
团队号 ABCDE1234 团队号 ABCDE1234
...@@ -51,10 +62,19 @@ export default Vue.extend({ ...@@ -51,10 +62,19 @@ export default Vue.extend({
'c-button': () => import('./components/c-button.vue') 'c-button': () => import('./components/c-button.vue')
}, },
name: 'TeamManagement', name: 'TeamManagement',
data() {
return {
teamName: '企业名称',
isEditing: false
}
},
methods: { methods: {
// handleClickLeft() { editTeamName() {
// console.log('click') this.isEditing = true
// } this.$nextTick(() => {
(this.$refs.teamInput as HTMLInputElement).focus()
})
},
transferManagement() { transferManagement() {
this.$router.push({ this.$router.push({
path: '/team-frame', path: '/team-frame',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment