mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
style(仪表板): 分享页面样式优化
This commit is contained in:
parent
621849d3e4
commit
a37a395aa0
@ -181,7 +181,7 @@
|
||||
<span class="dialog-footer">
|
||||
<el-button secondary @click="openTicket">{{ t('work_branch.ticket_setting') }}</el-button>
|
||||
<el-button :disabled="!shareEnable || expError" type="primary" @click.stop="copyInfo">
|
||||
{{ t('visualization.copy_link') }}
|
||||
{{ passwdEnable ? t('visualization.copy_link_passwd') : t('visualization.copy_link') }}
|
||||
</el-button>
|
||||
</span>
|
||||
</template>
|
||||
@ -344,7 +344,11 @@ const copyInfo = async () => {
|
||||
}
|
||||
}
|
||||
formatLinkAddr()
|
||||
await toClipboard(linkAddr.value)
|
||||
let info = linkAddr.value
|
||||
if (passwdEnable.value) {
|
||||
info += `,${state.detailInfo.pwd}`
|
||||
}
|
||||
await toClipboard(info)
|
||||
ElMessage.success(t('common.copy_success'))
|
||||
} catch (e) {
|
||||
ElMessage.warning(t('common.copy_unsupported'))
|
||||
|
@ -177,7 +177,7 @@
|
||||
<div v-if="shareEnable" class="share-foot share-padding">
|
||||
<el-button secondary @click="openTicket">{{ t('work_branch.ticket_setting') }}</el-button>
|
||||
<el-button :disabled="!shareEnable || expError" type="primary" @click="copyInfo">
|
||||
{{ t('visualization.copy_link') }}
|
||||
{{ passwdEnable ? t('visualization.copy_link_passwd') : t('visualization.copy_link') }}
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
@ -326,7 +326,11 @@ const copyInfo = async () => {
|
||||
}
|
||||
}
|
||||
formatLinkAddr()
|
||||
await toClipboard(linkAddr.value)
|
||||
let info = linkAddr.value
|
||||
if (passwdEnable.value) {
|
||||
info += `,${state.detailInfo.pwd}`
|
||||
}
|
||||
await toClipboard(info)
|
||||
ElMessage.success(t('common.copy_success'))
|
||||
} catch (e) {
|
||||
ElMessage.warning(t('common.copy_unsupported'))
|
||||
|
@ -36,7 +36,6 @@ defineExpose({
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.ticket-dialog-container {
|
||||
width: 100%;
|
||||
:deep(.is-ticket-dialog) {
|
||||
.ed-dialog__header {
|
||||
display: none;
|
||||
|
Loading…
Reference in New Issue
Block a user