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