提交 7f9ac724 authored 作者: pengxiaohui's avatar pengxiaohui

fix: 腾讯会议增加必须是自己创建或者管理员权限管控

上级 27905bb0
<template>
<div class="btns">
<template v-if="status === 1">
<el-button type="text" size="small" v-if="hasJoin" @click="handleJoin">进入会议</el-button>
<el-button type="text" size="small" v-if="operatable && hasJoin" @click="handleJoin">进入会议</el-button>
<el-button type="text" size="small" v-if="operatable && hasLive" @click="handleLive">观看直播</el-button>
<el-button type="text" size="small" v-if="hasCopy" @click="handleCopy">复制邀请</el-button>
<el-button type="text" size="small" v-if="hasStop" @click="handleStop">终止</el-button>
<el-button type="text" size="small" v-if="operatable && hasCopy" @click="handleCopy">复制邀请</el-button>
<el-button type="text" size="small" v-if="operatable && hasStop" @click="handleStop">终止</el-button>
<el-button type="text" size="small" v-else @click="handleDetails">查看</el-button>
</template>
<template v-if="status === 0">
<el-button type="text" size="small" v-if="hasJoin" @click="handleJoin">进入会议</el-button>
<el-button type="text" size="small" v-if="hasCopy" @click="handleCopy">复制邀请</el-button>
<el-button type="text" size="small" v-if="hasUpdate" @click="handleUpdate">更新</el-button>
<el-button type="text" size="small" v-if="hasCancel" @click="handleCancel">取消</el-button>
<el-button type="text" size="small" v-if="operatable && hasJoin" @click="handleJoin">进入会议</el-button>
<el-button type="text" size="small" v-if="operatable && hasCopy" @click="handleCopy">复制邀请</el-button>
<el-button type="text" size="small" v-if="operatable && hasUpdate" @click="handleUpdate">更新</el-button>
<el-button type="text" size="small" v-if="operatable && hasCancel" @click="handleCancel">取消</el-button>
<el-button type="text" size="small" v-else @click="handleDetails">查看</el-button>
</template>
<template v-if="status === 2">
<el-button type="text" size="small" v-if="hasJoin && isFuture" @click="handleJoin">进入会议</el-button>
<el-button type="text" size="small" v-if="hasUpdate && isFuture" @click="handleUpdate">更新</el-button>
<el-button type="text" size="small" v-if="hasDownload" @click="handleRecord">下载回放</el-button>
<el-button type="text" size="small" v-if="hasDelete" @click="handleDelete">删除</el-button>
<el-button type="text" size="small" v-if="operatable && hasJoin && isFuture" @click="handleJoin">进入会议</el-button>
<el-button type="text" size="small" v-if="operatable && hasUpdate && isFuture" @click="handleUpdate">更新</el-button>
<el-button type="text" size="small" v-if="operatable && hasDownload" @click="handleRecord">下载回放</el-button>
<el-button type="text" size="small" v-if="operatable && hasDelete" @click="handleDelete">删除</el-button>
<el-button type="text" size="small" @click="handleDetails">查看</el-button>
</template>
<template v-if="status === 3">
......@@ -121,7 +121,7 @@ export default {
return this.rowData.enable_live || false
},
operatable() {
return this.isMyself || this.isSuperAdmin || this.isGeneralAdmin
return this.isSuperAdmin || this.isMyself || this.isGeneralAdmin
}
},
filters: {
......
......@@ -51,9 +51,6 @@ export default {
immediate: true
}
},
created() {
console.log(this.permission_routes)
},
methods: {
handlleSelect(path) {
this.$router.push(path)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论