mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
feat(仪表板): 分享-分享错误提示
This commit is contained in:
parent
050a1f1a4d
commit
3467a91b6f
@ -239,6 +239,7 @@ public class XpackShareManage {
|
||||
if (!peRequireValid(sharedBase, xpackShare)) {
|
||||
XpackShareProxyVO vo = new XpackShareProxyVO();
|
||||
vo.setPeRequireValid(false);
|
||||
vo.setInIframeError(false);
|
||||
return vo;
|
||||
}
|
||||
String linkToken = LinkTokenUtil.generate(xpackShare.getCreator(), xpackShare.getResourceId(), xpackShare.getExp(), xpackShare.getPwd(), xpackShare.getOid());
|
||||
|
@ -3,13 +3,12 @@
|
||||
class="link-container"
|
||||
v-loading="loading || requestStore.loadingMap[permissionStore.currentPath]"
|
||||
>
|
||||
<ErrorTemplate
|
||||
v-if="!loading && (disableError || peRequireError)"
|
||||
:msg="
|
||||
disableError ? '已禁用分享功能,请联系管理员!' : '已设置有效期密码必填,当前链接无效!'
|
||||
"
|
||||
/>
|
||||
<ErrorTemplate v-if="!loading && disableError" msg="已禁用分享功能,请联系管理员!" />
|
||||
<IframeError v-else-if="!loading && iframeError" />
|
||||
<ErrorTemplate
|
||||
v-else-if="!loading && peRequireError"
|
||||
msg="已设置有效期密码必填,当前链接无效!"
|
||||
/>
|
||||
<LinkError v-else-if="!loading && !linkExist" />
|
||||
<Exp v-else-if="!loading && linkExp" />
|
||||
<PwdTips v-else-if="!loading && !pwdValid" />
|
||||
|
@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<div class="mobile-link-container" v-loading="loading">
|
||||
<ErrorTemplate v-if="!loading && disableError" msg="已禁用分享功能,请联系管理员!" />
|
||||
<IframeError v-else-if="!loading && iframeError" />
|
||||
<ErrorTemplate
|
||||
v-if="!loading && (disableError || peRequireError)"
|
||||
:msg="
|
||||
disableError ? '已禁用分享功能,请联系管理员!' : '已设置有效期密码必填,当前链接无效!'
|
||||
"
|
||||
v-else-if="!loading && peRequireError"
|
||||
msg="已设置有效期密码必填,当前链接无效!"
|
||||
/>
|
||||
<LinkError v-if="!loading && !linkExist" />
|
||||
<LinkError v-else-if="!loading && !linkExist" />
|
||||
<Exp v-else-if="!loading && linkExp" />
|
||||
<PwdTips v-else-if="!loading && !pwdValid" />
|
||||
<TicketError
|
||||
@ -29,6 +29,7 @@ import TicketError from './TicketError.vue'
|
||||
import { ProxyInfo, shareProxy } from './ShareProxy'
|
||||
import Exp from './exp.vue'
|
||||
import LinkError from './error.vue'
|
||||
import IframeError from './IframeError.vue'
|
||||
import PwdTips from './pwd.vue'
|
||||
import ErrorTemplate from './ErrorTemplate.vue'
|
||||
const disableError = ref(true)
|
||||
@ -36,6 +37,7 @@ const peRequireError = ref(true)
|
||||
const linkExist = ref(false)
|
||||
const loading = ref(true)
|
||||
const linkExp = ref(false)
|
||||
const iframeError = ref(true)
|
||||
const pwdValid = ref(false)
|
||||
const dvMainStore = dvMainStoreWithOut()
|
||||
const pcanvas = ref(null)
|
||||
@ -58,6 +60,12 @@ onMounted(async () => {
|
||||
return
|
||||
}
|
||||
disableError.value = false
|
||||
if (proxyInfo?.inIframeError) {
|
||||
loading.value = false
|
||||
iframeError.value = true
|
||||
return
|
||||
}
|
||||
iframeError.value = false
|
||||
if (proxyInfo && !proxyInfo.peRequireValid) {
|
||||
loading.value = false
|
||||
peRequireError.value = true
|
||||
|
Loading…
Reference in New Issue
Block a user