refactor(仪表板、数据大屏): 页面打开方式优化
This commit is contained in:
parent
ec6f6a2510
commit
23303f7709
@ -3396,6 +3396,7 @@ Scatter chart (bubble) chart: {a} (series name), {b} (data name), {c} (value arr
|
|||||||
empty_desc: 'Please enter information on the left and save'
|
empty_desc: 'Please enter information on the left and save'
|
||||||
},
|
},
|
||||||
setting_basic: {
|
setting_basic: {
|
||||||
|
default_open_tips: 'Interface for creating and editing resources like dashboards and screen',
|
||||||
third_platform_settings: 'Third-party platform settings',
|
third_platform_settings: 'Third-party platform settings',
|
||||||
autoCreateUser: 'Third party automatically creates users',
|
autoCreateUser: 'Third party automatically creates users',
|
||||||
dsIntervalTime: 'Datasource detection time interval',
|
dsIntervalTime: 'Datasource detection time interval',
|
||||||
|
|||||||
@ -3309,6 +3309,7 @@ export default {
|
|||||||
empty_desc: '請在左側輸入訊息然後儲存'
|
empty_desc: '請在左側輸入訊息然後儲存'
|
||||||
},
|
},
|
||||||
setting_basic: {
|
setting_basic: {
|
||||||
|
default_open_tips: '涉及儀表板、數據大屏等資源的新建與編輯界面',
|
||||||
third_platform_settings: '第三方平台設置',
|
third_platform_settings: '第三方平台設置',
|
||||||
autoCreateUser: '第三方自動建立使用者',
|
autoCreateUser: '第三方自動建立使用者',
|
||||||
dsIntervalTime: '資料來源偵測時間間隔',
|
dsIntervalTime: '資料來源偵測時間間隔',
|
||||||
|
|||||||
@ -3312,6 +3312,7 @@ export default {
|
|||||||
empty_desc: '请在左侧输入信息然后保存'
|
empty_desc: '请在左侧输入信息然后保存'
|
||||||
},
|
},
|
||||||
setting_basic: {
|
setting_basic: {
|
||||||
|
default_open_tips: '涉及仪表板、数据大屏等资源的新建与编辑界面',
|
||||||
third_platform_settings: '第三方平台设置',
|
third_platform_settings: '第三方平台设置',
|
||||||
autoCreateUser: '第三方自动创建用户',
|
autoCreateUser: '第三方自动创建用户',
|
||||||
dsIntervalTime: '数据源检测时间间隔',
|
dsIntervalTime: '数据源检测时间间隔',
|
||||||
|
|||||||
@ -48,6 +48,17 @@ export const snapshotStore = defineStore('snapshot', {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
|
initSnapShot() {
|
||||||
|
this.styleChangeTimes = -1
|
||||||
|
this.cacheStyleChangeTimes = 0
|
||||||
|
this.snapshotCacheTimes = 0
|
||||||
|
this.cacheViewIdInfo = {
|
||||||
|
snapshotCacheViewCalc: [],
|
||||||
|
snapshotCacheViewRender: []
|
||||||
|
}
|
||||||
|
this.snapshotData = []
|
||||||
|
this.snapshotIndex = -1
|
||||||
|
},
|
||||||
//定时检查变动次数 存在变动次数则进行镜像处理
|
//定时检查变动次数 存在变动次数则进行镜像处理
|
||||||
snapshotCatchToStore() {
|
snapshotCatchToStore() {
|
||||||
if (this.snapshotCacheTimes) {
|
if (this.snapshotCacheTimes) {
|
||||||
|
|||||||
@ -169,6 +169,7 @@ const initLocalCanvasData = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
snapshotStore.initSnapShot()
|
||||||
if (window.location.hash.includes('#/dashboard')) {
|
if (window.location.hash.includes('#/dashboard')) {
|
||||||
newWindowFromDiv.value = true
|
newWindowFromDiv.value = true
|
||||||
}
|
}
|
||||||
|
|||||||
@ -67,6 +67,10 @@ const pvpOptions = [
|
|||||||
{ value: '4', label: t('commons.date.one_month') }
|
{ value: '4', label: t('commons.date.one_month') }
|
||||||
]
|
]
|
||||||
const tooltips = [
|
const tooltips = [
|
||||||
|
{
|
||||||
|
key: 'setting_basic.defaultOpen',
|
||||||
|
val: t('setting_basic.default_open_tips')
|
||||||
|
},
|
||||||
{
|
{
|
||||||
key: 'setting_basic.frontTimeOut',
|
key: 'setting_basic.frontTimeOut',
|
||||||
val: t('system.to_take_effect')
|
val: t('system.to_take_effect')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user