feat:
This commit is contained in:
parent
51a31b5e82
commit
55439aec0d
@ -1,11 +1,9 @@
|
||||
<template>
|
||||
<div class="flex-between align-center ml-8 mt-8 mb-16">
|
||||
<div class="flex align-center">
|
||||
<back-button :to="activeMenu"></back-button>
|
||||
<span class="ellipsis-1"> {{ currentName }}</span>
|
||||
</div>
|
||||
<el-dropdown placement="top" trigger="click" @command="changeMenu">
|
||||
<div class="el-dropdown-link">
|
||||
<div class="ml-8 mt-8 mb-16 flex">
|
||||
<back-button :to="activeMenu"></back-button>
|
||||
<el-dropdown placement="top" trigger="click" @command="changeMenu" class="w-full" style="display: block;">
|
||||
<div class="flex-between">
|
||||
<div class="ellipsis-1">{{ currentName }}</div>
|
||||
<el-button text>
|
||||
<el-icon><CaretBottom /></el-icon>
|
||||
</el-button>
|
||||
|
||||
@ -43,9 +43,10 @@
|
||||
</el-button>
|
||||
</div>
|
||||
<div>
|
||||
<el-button :disabled="!accessToken?.is_active" type="primary"
|
||||
><a :href="shareUrl" target="_blank">演示</a></el-button
|
||||
>
|
||||
<el-button :disabled="!accessToken?.is_active" type="primary">
|
||||
<a v-if="accessToken?.is_active" :href="shareUrl" target="_blank"> 演示 </a>
|
||||
<span v-else>演示</span>
|
||||
</el-button>
|
||||
<el-button :disabled="!accessToken?.is_active" @click="openDialog">
|
||||
嵌入第三方
|
||||
</el-button>
|
||||
|
||||
@ -151,7 +151,7 @@ function rowClickHandle(row: any) {
|
||||
*/
|
||||
function creatQuickHandle(val: string) {
|
||||
loading.value = true
|
||||
const obj = { name: val }
|
||||
const obj = [{ name: val }]
|
||||
documentApi
|
||||
.postDocument(id, obj)
|
||||
.then((res) => {
|
||||
|
||||
@ -187,13 +187,13 @@ function addMember() {
|
||||
CreateMemberRef.value?.open()
|
||||
}
|
||||
|
||||
function getMember() {
|
||||
function getMember(num: number) {
|
||||
loading.value = true
|
||||
TeamApi.getTeamMember()
|
||||
.then((res) => {
|
||||
memberList.value = res.data
|
||||
filterMember.value = res.data
|
||||
currentUser.value = memberList.value[0].id
|
||||
currentUser.value = memberList.value[num || 0].id
|
||||
MemberPermissions(currentUser.value)
|
||||
loading.value = false
|
||||
})
|
||||
@ -203,7 +203,7 @@ function getMember() {
|
||||
}
|
||||
|
||||
function refresh() {
|
||||
getMember()
|
||||
getMember(1)
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user