提交 175f5510 authored 作者: wangjiahao's avatar wangjiahao

feat: 增加flyway 调增模板导入等

上级 7ff46ff8
...@@ -194,6 +194,10 @@ CREATE TABLE `panel_template` ( ...@@ -194,6 +194,10 @@ CREATE TABLE `panel_template` (
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `panel_template`(`id`, `name`, `pid`, `level`, `node_type`, `create_by`, `create_time`, `snapshot`, `template_type`, `template_style`, `template_data`, `dynamic_data`) VALUES ('self', '用户模板', '', -1, 'folder', NULL, NULL, '', 'self', '', '', NULL);
INSERT INTO `panel_template`(`id`, `name`, `pid`, `level`, `node_type`, `create_by`, `create_time`, `snapshot`, `template_type`, `template_style`, `template_data`, `dynamic_data`) VALUES ('system', '系统模板', '', -1, 'folder', NULL, NULL, NULL, 'system', NULL, NULL, NULL);
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `panel_subject`; DROP TABLE IF EXISTS `panel_subject`;
CREATE TABLE `panel_subject` ( CREATE TABLE `panel_subject` (
......
...@@ -30,7 +30,7 @@ export function querySubjectWithGroup(data) { ...@@ -30,7 +30,7 @@ export function querySubjectWithGroup(data) {
return request({ return request({
url: '/panel/subject/querySubjectWithGroup', url: '/panel/subject/querySubjectWithGroup',
method: 'post', method: 'post',
loading: true, loading: false,
data data
}) })
} }
......
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
templateStyle: JSON.stringify(this.canvasStyleData), templateStyle: JSON.stringify(this.canvasStyleData),
templateData: JSON.stringify(this.componentData), templateData: JSON.stringify(this.componentData),
templateType: 'self', templateType: 'self',
nodeType: 'folder', nodeType: 'template',
level: 1, level: 1,
pid: null, pid: null,
dynamicData: '' dynamicData: ''
......
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
this.templateEditForm = JSON.parse(JSON.stringify(templateInfo)) this.templateEditForm = JSON.parse(JSON.stringify(templateInfo))
} else { } else {
this.dialogTitle = '新建' this.dialogTitle = '新建'
this.templateEditForm = { name: '', nodeType: 'template', templateType: this.currentTemplateType, level: 0 } this.templateEditForm = { name: '', nodeType: 'folder', templateType: this.currentTemplateType, level: 0 }
} }
this.editTemplate = true this.editTemplate = true
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论