diff --git a/apps/web-test/src/views/dashboard/home/index.vue b/apps/web-test/src/views/dashboard/home/index.vue
index b9ef3e99..dfe50c22 100644
--- a/apps/web-test/src/views/dashboard/home/index.vue
+++ b/apps/web-test/src/views/dashboard/home/index.vue
@@ -538,6 +538,7 @@ const formState = reactive({
diff --git a/apps/web-test/src/views/dashboard/home/template.ts b/apps/web-test/src/views/dashboard/home/template.ts
index 9da2d510..741ae7c5 100644
--- a/apps/web-test/src/views/dashboard/home/template.ts
+++ b/apps/web-test/src/views/dashboard/home/template.ts
@@ -1,36 +1,5 @@
-export default {
+const data = {
'1001': [
- {
- name1: 'AUTO_1612155980933.png',
- name2: 'AUTO_1612155980933_C会议管理.png',
- size: '2x2',
- name: '会议管理',
- w: 1,
- h: 2,
- component: './components/Output1/index.vue',
- i: '1729764778168',
- x: 6,
- y: 0,
- loadComp: {
- name: 'AsyncComponentWrapper',
- __asyncResolved: {
- __name: 'index',
- props: {
- data: {
- default: {},
- },
- type: {
- default: '',
- },
- },
- __hmrId: 'a0c41bfd',
- __scopeId: 'data-v-a0c41bfd',
- __file:
- 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
- },
- },
- moved: false,
- },
{
name1: 'WORKBENCH_USER_TMPL.png',
name2: 'WORKBENCH_USER_TMPL_C用户模板.png',
@@ -203,7 +172,7 @@ export default {
dom: '.titlt-top',
isResize: true,
x: 1,
- y: 8,
+ y: 6,
loadComp: {
name: 'AsyncComponentWrapper',
__asyncResolved: {
@@ -258,38 +227,7 @@ export default {
component: './components/Output1/index.vue',
i: '1729767290820',
x: 6,
- y: 2,
- loadComp: {
- name: 'AsyncComponentWrapper',
- __asyncResolved: {
- __name: 'index',
- props: {
- data: {
- default: {},
- },
- type: {
- default: '',
- },
- },
- __hmrId: 'a0c41bfd',
- __scopeId: 'data-v-a0c41bfd',
- __file:
- 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
- },
- },
- moved: false,
- },
- {
- name1: 'AUTO_1612175720787.png',
- name2: 'AUTO_1612175720787_C统一身份.png',
- size: '2x2',
- name: '统一身份',
- w: 1,
- h: 2,
- component: './components/Output1/index.vue',
- i: '1729767293174',
- x: 5,
- y: 4,
+ y: 0,
loadComp: {
name: 'AsyncComponentWrapper',
__asyncResolved: {
@@ -320,7 +258,7 @@ export default {
component: './components/Output1/index.vue',
i: '1729767297167',
x: 6,
- y: 4,
+ y: 2,
loadComp: {
name: 'AsyncComponentWrapper',
__asyncResolved: {
@@ -351,7 +289,7 @@ export default {
component: './components/Output1/index.vue',
i: '1729767300828',
x: 5,
- y: 6,
+ y: 4,
loadComp: {
name: 'AsyncComponentWrapper',
__asyncResolved: {
@@ -382,7 +320,388 @@ export default {
component: './components/Output1/index.vue',
i: '1729767303653',
x: 6,
- y: 6,
+ y: 4,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name: '我的分组',
+ w: 4,
+ h: 4,
+ component: './components/Output5/index.vue',
+ isResize: true,
+ x: 1,
+ dom: '.titlt-top',
+ y: 2,
+ i: 8737,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ },
+ emits: ['editGroupName'],
+ __hmrId: '58720a9e',
+ __scopeId: 'data-v-58720a9e',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output5/index.vue',
+ },
+ },
+ childer: [
+ {
+ name1: 'AUTO_1612159241967.png',
+ name2: 'AUTO_1612159241967_C车辆调度.png',
+ size: '2x2',
+ name: '车辆调度',
+ w: 1,
+ h: 2,
+ minW: 1,
+ minH: 2,
+ i: 0,
+ x: 1,
+ y: 0,
+ component: '../Output1/index.vue',
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1666582846531.png',
+ name2: 'AUTO_1666582846531_C供水系统.png',
+ size: '2x2',
+ name: '供水系统',
+ w: 1,
+ h: 2,
+ component: '../Output1/index.vue',
+ i: 95,
+ minW: 1,
+ minH: 2,
+ x: 0,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1695377149839.png',
+ name2: 'AUTO_1695377149839_C员工自助.png',
+ size: '2x2',
+ name: '员工自助',
+ w: 1,
+ h: 2,
+ component: '../Output1/index.vue',
+ i: 116,
+ minW: 1,
+ minH: 2,
+ x: 2,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'WORKBENCH_USER_AUTH.png',
+ name2: 'WORKBENCH_USER_AUTH_C用户授权.png',
+ size: '2x2',
+ name: '用户授权',
+ w: 1,
+ h: 2,
+ component: '../Output1/index.vue',
+ i: 130,
+ minW: 1,
+ minH: 2,
+ x: 3,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1662610017418.png',
+ name2: 'AUTO_1662610017418_C完井快报.png',
+ size: '2x2',
+ name: '完井快报',
+ w: 1,
+ h: 2,
+ component: '../Output1/index.vue',
+ i: 84,
+ minW: 1,
+ minH: 2,
+ x: 4,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ ],
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1645600400416.png',
+ name2: 'AUTO_1645600400416_C石化商旅.png',
+ size: '2x2',
+ name: '石化商旅',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729822902635',
+ x: 7,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1647511070885.png',
+ name2: 'AUTO_1647511070885_C测试生产日报.png',
+ size: '2x2',
+ name: '测试生产日报',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729822906043',
+ x: 7,
+ y: 2,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1645756565135.png',
+ name2: 'AUTO_1645756565135_C财务经营.png',
+ size: '2x2',
+ name: '财务经营',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729822909239',
+ x: 7,
+ y: 4,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1649411513969.png',
+ name2: 'AUTO_1649411513969_C易派客.png',
+ size: '2x2',
+ name: '易派客',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729822914446',
+ x: 8,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1649411776285.png',
+ name2: 'AUTO_1649411776285_C智能化管线.png',
+ size: '2x2',
+ name: '智能化管线',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729822921153',
+ x: 8,
+ y: 2,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1666582214091.png',
+ name2: 'AUTO_1666582214091_C地面工程.png',
+ size: '2x2',
+ name: '地面工程',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729822926836',
+ x: 8,
+ y: 4,
loadComp: {
name: 'AsyncComponentWrapper',
__asyncResolved: {
@@ -404,4 +723,1332 @@ export default {
moved: false,
},
],
+ '1002': [
+ {
+ name1: 'WORKBENCH_USER_TMPL.png',
+ name2: 'WORKBENCH_USER_TMPL_C用户模板.png',
+ size: '2x2',
+ name: '用户模板',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729767249239',
+ path: '/usertemplate',
+ x: 1,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'WORKBENCH_BUSINESS.png',
+ name2: 'WORKBENCH_BUSINESS_C业务域.png',
+ size: '2x2',
+ name: '业务域',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729767251344',
+ path: '/operation',
+ x: 2,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'WORKBENCH_MANAGER.png',
+ name2: 'WORKBENCH_MANAGER_C磁贴管理.png',
+ size: '2x2',
+ name: '磁贴管理',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729767253169',
+ path: '/portal',
+ x: 3,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'WORKBENCH_AUDIT.png',
+ name2: 'WORKBENCH_AUDIT_C磁贴审核.png',
+ size: '2x2',
+ name: '磁贴审核',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729767255119',
+ path: '/audit',
+ x: 4,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1612255706920.png',
+ name2: 'AUTO_1612255706920_C待办管理.png',
+ size: '2x2',
+ name: '待办管理',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729767257347',
+ path: '/todo',
+ x: 5,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1612159241967.png',
+ name2: 'AUTO_1612159241967_C车辆调度.png',
+ size: '2x2',
+ name: '车辆调度',
+ w: 8,
+ h: 5,
+ component: './components/Output2/index.vue',
+ i: '1729767265119',
+ dom: '.titlt-top',
+ isResize: true,
+ x: 1,
+ y: 6,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ __hmrId: '18b849bf',
+ __scopeId: 'data-v-18b849bf',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output2/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1612159773503.png',
+ name2: 'AUTO_1612159773503_C网络学院.png',
+ size: '2x2',
+ name: '网络学院',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729767288372',
+ path: '/audit',
+ x: 1,
+ y: 2,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1612160044533.png',
+ name2: 'AUTO_1612160044533_C市场管理.png',
+ size: '2x2',
+ name: '市场管理',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729767290820',
+ x: 6,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1619690579620.png',
+ name2: 'AUTO_1619690579620_C政务信息.png',
+ size: '2x2',
+ name: '政务信息',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729767297167',
+ x: 6,
+ y: 2,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1626147560487.png',
+ name2: 'AUTO_1626147560487_C短信统计.png',
+ size: '2x2',
+ name: '短信统计',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729767300828',
+ x: 5,
+ y: 2,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1627617227980.png',
+ name2: 'AUTO_1627617227980_C文档资料共享.png',
+ size: '2x2',
+ name: '文档资料共享',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729767303653',
+ x: 6,
+ y: 4,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1645600400416.png',
+ name2: 'AUTO_1645600400416_C石化商旅.png',
+ size: '2x2',
+ name: '石化商旅',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729822902635',
+ x: 7,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1647511070885.png',
+ name2: 'AUTO_1647511070885_C测试生产日报.png',
+ size: '2x2',
+ name: '测试生产日报',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729822906043',
+ x: 7,
+ y: 2,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1645756565135.png',
+ name2: 'AUTO_1645756565135_C财务经营.png',
+ size: '2x2',
+ name: '财务经营',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729822909239',
+ x: 7,
+ y: 4,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1649411513969.png',
+ name2: 'AUTO_1649411513969_C易派客.png',
+ size: '2x2',
+ name: '易派客',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729822914446',
+ x: 8,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1649411776285.png',
+ name2: 'AUTO_1649411776285_C智能化管线.png',
+ size: '2x2',
+ name: '智能化管线',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729822921153',
+ x: 8,
+ y: 2,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1666582214091.png',
+ name2: 'AUTO_1666582214091_C地面工程.png',
+ size: '2x2',
+ name: '地面工程',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729822926836',
+ x: 8,
+ y: 4,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1666583039406.png',
+ name2: 'AUTO_1666583039406_C智能应急指挥系统.png',
+ size: '2x2',
+ name: '智能应急指挥系统',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729823025393',
+ x: 3,
+ y: 2,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1639123306823.png',
+ name2: 'AUTO_1639123306823_C投资优选.png',
+ size: '2x2',
+ name: '投资优选',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729823032702',
+ x: 4,
+ y: 4,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1645598261641.png',
+ name2: 'AUTO_1645598261641_C原油生产.png',
+ size: '2x2',
+ name: '原油生产',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729823036286',
+ x: 2,
+ y: 2,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1640597761259.png',
+ name2: 'AUTO_1640597761259_C两册管理.png',
+ size: '2x2',
+ name: '两册管理',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729823041274',
+ x: 4,
+ y: 2,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1645599941581.png',
+ name2: 'AUTO_1645599941581_C网络学院.png',
+ size: '2x2',
+ name: '网络学院',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729823048084',
+ x: 1,
+ y: 4,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1645599804473.png',
+ name2: 'AUTO_1645599804473_C标准系统.png',
+ size: '2x2',
+ name: '标准系统',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729823061476',
+ x: 3,
+ y: 4,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1634034734031.png',
+ name2: 'AUTO_1634034734031_C区块目标.png',
+ size: '2x2',
+ name: '区块目标',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729823072076',
+ x: 5,
+ y: 4,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1630380946904.png',
+ name2: 'AUTO_1630380946904_C操作手册.png',
+ size: '2x2',
+ name: '操作手册',
+ w: 1,
+ h: 2,
+ component: './components/Output1/index.vue',
+ i: '1729823077000',
+ x: 2,
+ y: 4,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ ],
+ '1003': [
+ {
+ name1: 'AUTO_1612159241967.png',
+ name2: 'AUTO_1612159241967_C车辆调度.png',
+ size: '2x2',
+ name: '车辆调度',
+ w: 8,
+ h: 5,
+ component: './components/Output2/index.vue',
+ i: '1729823571066',
+ dom: '.titlt-top',
+ isResize: true,
+ x: 1,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ __hmrId: '18b849bf',
+ __scopeId: 'data-v-18b849bf',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output2/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name: '经营管理',
+ w: 4,
+ h: 3,
+ component: './components/Output5/index.vue',
+ isResize: true,
+ x: 1,
+ dom: '.titlt-top',
+ y: 5,
+ i: 7902,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ },
+ emits: ['editGroupName'],
+ __hmrId: '58720a9e',
+ __scopeId: 'data-v-58720a9e',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output5/index.vue',
+ },
+ },
+ childer: [
+ {
+ name1: 'AUTO_1645598631260.png',
+ name2: 'AUTO_1645598631260_C合同管理.png',
+ size: '2x2',
+ name: '合同管理',
+ w: 1,
+ h: 2,
+ component: '../Output1/index.vue',
+ i: 62,
+ minW: 1,
+ minH: 2,
+ x: 0,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1645599712492.png',
+ name2: 'AUTO_1645599712492_C制度管理.png',
+ size: '2x2',
+ name: '制度管理',
+ w: 1,
+ h: 2,
+ component: '../Output1/index.vue',
+ i: 68,
+ minW: 1,
+ minH: 2,
+ x: 1,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1612160044533.png',
+ name2: 'AUTO_1612160044533_C市场管理.png',
+ size: '2x2',
+ name: '市场管理',
+ w: 1,
+ h: 2,
+ component: '../Output1/index.vue',
+ i: 4,
+ minW: 1,
+ minH: 2,
+ x: 2,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1612176086934.png',
+ name2: 'AUTO_1612176086934_C物资管理.png',
+ size: '2x2',
+ name: '物资管理',
+ w: 1,
+ h: 2,
+ component: '../Output1/index.vue',
+ i: 11,
+ minW: 1,
+ minH: 2,
+ x: 3,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ ],
+ moved: false,
+ },
+ {
+ name: '安全生产',
+ w: 4,
+ h: 3,
+ component: './components/Output5/index.vue',
+ isResize: true,
+ x: 5,
+ dom: '.titlt-top',
+ y: 5,
+ i: 7044,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ },
+ emits: ['editGroupName'],
+ __hmrId: '58720a9e',
+ __scopeId: 'data-v-58720a9e',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output5/index.vue',
+ },
+ },
+ childer: [
+ {
+ name1: 'AUTO_1612250582407.png',
+ name2: 'AUTO_1612250582407_C生产运行.png',
+ size: '2x2',
+ name: '生产运行',
+ w: 1,
+ h: 2,
+ component: '../Output1/index.vue',
+ i: 17,
+ minW: 1,
+ minH: 2,
+ x: 0,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1612251718987.png',
+ name2: 'AUTO_1612251718987_C地面工程GIS.png',
+ size: '2x2',
+ name: '地面工程GIS',
+ w: 1,
+ h: 2,
+ component: '../Output1/index.vue',
+ i: 19,
+ minW: 1,
+ minH: 2,
+ x: 1,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1612251274093.png',
+ name2: 'AUTO_1612251274093_C集输防腐.png',
+ size: '2x2',
+ name: '集输防腐',
+ w: 1,
+ h: 2,
+ component: '../Output1/index.vue',
+ i: 18,
+ minW: 1,
+ minH: 2,
+ x: 2,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1634205034896.png',
+ name2: 'AUTO_1634205034896_C工程决策.png',
+ size: '2x2',
+ name: '工程决策',
+ w: 1,
+ h: 2,
+ component: '../Output1/index.vue',
+ i: 51,
+ minW: 1,
+ minH: 2,
+ x: 3,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ ],
+ moved: false,
+ },
+ {
+ name: '勘探开发',
+ w: 4,
+ h: 3,
+ component: './components/Output5/index.vue',
+ isResize: true,
+ x: 1,
+ dom: '.titlt-top',
+ y: 8,
+ i: 7695,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ },
+ emits: ['editGroupName'],
+ __hmrId: '58720a9e',
+ __scopeId: 'data-v-58720a9e',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output5/index.vue',
+ },
+ },
+ childer: [
+ {
+ name1: 'AUTO_1634092797607.png',
+ name2: 'AUTO_1634092797607_C开发业务平台.png',
+ size: '2x2',
+ name: '开发业务平台',
+ w: 1,
+ h: 2,
+ component: '../Output1/index.vue',
+ i: 50,
+ minW: 1,
+ minH: 2,
+ x: 0,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1619693932246.png',
+ name2: 'AUTO_1619693932246_CEPBP.png',
+ size: '2x2',
+ name: 'EPBP',
+ w: 1,
+ h: 2,
+ component: '../Output1/index.vue',
+ i: 32,
+ minW: 1,
+ minH: 2,
+ x: 1,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ {
+ name1: 'AUTO_1636014526817.png',
+ name2: 'AUTO_1636014526817_Csec储量管理.png',
+ size: '2x2',
+ name: 'sec储量管理',
+ w: 1,
+ h: 2,
+ component: '../Output1/index.vue',
+ i: 52,
+ minW: 1,
+ minH: 2,
+ x: 2,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ ],
+ moved: false,
+ },
+ {
+ name: '我的应用',
+ w: 4,
+ h: 3,
+ component: './components/Output5/index.vue',
+ isResize: true,
+ x: 5,
+ dom: '.titlt-top',
+ y: 8,
+ i: 1438,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ },
+ emits: ['editGroupName'],
+ __hmrId: '58720a9e',
+ __scopeId: 'data-v-58720a9e',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output5/index.vue',
+ },
+ },
+ childer: [
+ {
+ name1: 'AUTO_1627617227980.png',
+ name2: 'AUTO_1627617227980_C文档资料共享.png',
+ size: '2x2',
+ name: '文档资料共享',
+ w: 1,
+ h: 2,
+ component: '../Output1/index.vue',
+ i: 41,
+ minW: 1,
+ minH: 2,
+ x: 0,
+ y: 0,
+ loadComp: {
+ name: 'AsyncComponentWrapper',
+ __asyncResolved: {
+ __name: 'index',
+ props: {
+ data: {
+ default: {},
+ },
+ type: {
+ default: '',
+ },
+ },
+ __hmrId: 'a0c41bfd',
+ __scopeId: 'data-v-a0c41bfd',
+ __file:
+ 'D:/p/pansoft-plrl/apps/web-test/src/views/dashboard/home/components/Output1/index.vue',
+ },
+ },
+ moved: false,
+ },
+ ],
+ moved: false,
+ },
+ ],
};
+
+const saveTemplateData = () => {
+ for (const key in data) {
+ localStorage.setItem(`layout_${key}`, JSON.stringify(data[key]));
+ }
+};
+
+export { saveTemplateData };
diff --git a/apps/web-test/src/views/dashboard/home/template.vue b/apps/web-test/src/views/dashboard/home/template.vue
index 718a7624..e158c7de 100644
--- a/apps/web-test/src/views/dashboard/home/template.vue
+++ b/apps/web-test/src/views/dashboard/home/template.vue
@@ -40,7 +40,6 @@ import { storeToRefs } from 'pinia';
import { UseTilesStore } from '#/store';
-import templateList from './template';
import { tilesList } from './tiles';
import { debounce, updateRowHeight } from './utils';
@@ -60,9 +59,12 @@ const setComponentRef = (el, id) => {
const { proxy, ctx: that } = getCurrentInstance();
const layout = ref([]);
+const id = ref('');
onMounted(() => {
- const id = route.params.id;
- const list = templateList[id] || templateList['1001'];
+ id.value = route.params.id;
+ const list =
+ JSON.parse(localStorage.getItem(`layout_${id.value}`)) ||
+ JSON.parse(localStorage.getItem('layout'));
const layoutStr = list;
layout.value = layoutStr;
});
@@ -372,7 +374,7 @@ const cancelOrSure = (type) => {
if (type == 'cance') {
editTiles.value = false;
tilesStore.setTilesIsMove(false);
- const layoutStr = JSON.parse(localStorage.getItem('layout'));
+ const layoutStr = JSON.parse(localStorage.getItem(`layout_${id.value}`));
if (layoutStr && layoutStr.length > 0) {
for (const element of layoutStr) {
@@ -389,7 +391,10 @@ const cancelOrSure = (type) => {
delete element.isNew;
});
const newLayout = JSON.parse(JSON.stringify(layout.value));
- window.localStorage.setItem('layout', JSON.stringify(newLayout));
+ window.localStorage.setItem(
+ `layout_${id.value}`,
+ JSON.stringify(newLayout),
+ );
} else if (type == 'edit') {
editTiles.value = true;
tilesStore.setTilesIsMove(true);
@@ -534,7 +539,6 @@ const formState = reactive({
preferences.theme.mode,
(n: any) => {