Merge pull request #13583 from dataease/pr@dev-v2@refactor_open-type

refactor(仪表板、数据大屏): 页面打开方式优化
This commit is contained in:
王嘉豪 2024-11-26 22:51:31 +08:00 committed by GitHub
commit c803d1072f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 19 additions and 0 deletions

View File

@ -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'
},
setting_basic: {
default_open_tips: 'Interface for creating and editing resources like dashboards and screen',
third_platform_settings: 'Third-party platform settings',
autoCreateUser: 'Third party automatically creates users',
dsIntervalTime: 'Datasource detection time interval',

View File

@ -3309,6 +3309,7 @@ export default {
empty_desc: '請在左側輸入訊息然後儲存'
},
setting_basic: {
default_open_tips: '涉及儀表板數據大屏等資源的新建與編輯界面',
third_platform_settings: '第三方平台設置',
autoCreateUser: '第三方自動建立使用者',
dsIntervalTime: '資料來源偵測時間間隔',

View File

@ -3312,6 +3312,7 @@ export default {
empty_desc: '请在左侧输入信息然后保存'
},
setting_basic: {
default_open_tips: '涉及仪表板数据大屏等资源的新建与编辑界面',
third_platform_settings: '第三方平台设置',
autoCreateUser: '第三方自动创建用户',
dsIntervalTime: '数据源检测时间间隔',

View File

@ -48,6 +48,17 @@ export const snapshotStore = defineStore('snapshot', {
}
},
actions: {
initSnapShot() {
this.styleChangeTimes = -1
this.cacheStyleChangeTimes = 0
this.snapshotCacheTimes = 0
this.cacheViewIdInfo = {
snapshotCacheViewCalc: [],
snapshotCacheViewRender: []
}
this.snapshotData = []
this.snapshotIndex = -1
},
//定时检查变动次数 存在变动次数则进行镜像处理
snapshotCatchToStore() {
if (this.snapshotCacheTimes) {

View File

@ -169,6 +169,7 @@ const initLocalCanvasData = () => {
})
}
onMounted(async () => {
snapshotStore.initSnapShot()
if (window.location.hash.includes('#/dashboard')) {
newWindowFromDiv.value = true
}

View File

@ -67,6 +67,10 @@ const pvpOptions = [
{ value: '4', label: t('commons.date.one_month') }
]
const tooltips = [
{
key: 'setting_basic.defaultOpen',
val: t('setting_basic.default_open_tips')
},
{
key: 'setting_basic.frontTimeOut',
val: t('system.to_take_effect')