forked from github/dataease
refactor: 文案、大屏背景优化
This commit is contained in:
parent
fd88f001e9
commit
d470e2b1c9
@ -110,7 +110,7 @@
|
||||
{{ t('visualization.view') }}
|
||||
</el-radio>
|
||||
<el-radio label="custom" :effect="themes">
|
||||
{{ t('visualization.panel') }}
|
||||
{{ resourceType }}
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
@ -175,6 +175,8 @@ const props = defineProps({
|
||||
const toolTip = computed(() => {
|
||||
return props.themes === 'dark' ? 'ndark' : 'dark'
|
||||
})
|
||||
|
||||
const resourceType = computed(() => (dvInfo.value.type === 'dashboard' ? '仪表板' : '数据大屏'))
|
||||
const themeChange = modifyName => {
|
||||
if (modifyName === 'themeColor') {
|
||||
// 主题变更
|
||||
|
@ -4,7 +4,8 @@ import JsPDF from 'jspdf'
|
||||
const basePath = import.meta.env.VITE_API_BASEPATH
|
||||
|
||||
export function imgUrlTrans(url) {
|
||||
if (url && typeof url === 'string' && url.indexOf('static-resource') > -1) {
|
||||
if (url) {
|
||||
if (typeof url === 'string' && url.indexOf('static-resource') > -1) {
|
||||
const rawUrl = url
|
||||
? (basePath.endsWith('/') ? basePath.substring(0, basePath.length - 1) : basePath) + url
|
||||
: null
|
||||
@ -16,6 +17,7 @@ export function imgUrlTrans(url) {
|
||||
} else {
|
||||
return url.replace('com//', 'com/')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function downloadCanvas(type, canvasDom, name, callBack?) {
|
||||
|
Loading…
Reference in New Issue
Block a user