feat: 增加示例数据
This commit is contained in:
commit
d77aa35d01
@ -1,61 +1,61 @@
|
||||
-- CREATE TABLE `demo_olympiad_athlete` (
|
||||
-- `code` varchar(255) NOT NULL,
|
||||
-- `sort` int(255) DEFAULT NULL,
|
||||
-- `name` varchar(255) DEFAULT NULL,
|
||||
-- `country` varchar(255) DEFAULT NULL,
|
||||
-- `game` varchar(255) DEFAULT NULL,
|
||||
-- `hot_num` int(11) DEFAULT NULL,
|
||||
-- PRIMARY KEY (`code`)
|
||||
-- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
--
|
||||
-- CREATE TABLE `demo_olympiad_audience_age` (
|
||||
-- `age` varchar(255) NOT NULL,
|
||||
-- `percent` float(255,2) DEFAULT NULL,
|
||||
-- PRIMARY KEY (`age`)
|
||||
-- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
--
|
||||
-- CREATE TABLE `demo_olympiad_audience_sex` (
|
||||
-- `sex` varchar(255) NOT NULL,
|
||||
-- `percent` float(255,2) DEFAULT NULL,
|
||||
-- PRIMARY KEY (`sex`)
|
||||
-- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
--
|
||||
-- CREATE TABLE `demo_olympiad_country` (
|
||||
-- `code` varchar(255) NOT NULL,
|
||||
-- `name` varchar(255) DEFAULT NULL,
|
||||
-- PRIMARY KEY (`code`)
|
||||
-- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
--
|
||||
-- CREATE TABLE `demo_olympiad_data_update` (
|
||||
-- `update_date` datetime DEFAULT NULL
|
||||
-- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
--
|
||||
-- CREATE TABLE `demo_olympiad_gold_date` (
|
||||
-- `id` varchar(255) NOT NULL,
|
||||
-- `datekey` varchar(255) DEFAULT NULL,
|
||||
-- `game` varchar(255) DEFAULT NULL,
|
||||
-- `qty` varchar(255) DEFAULT NULL,
|
||||
-- PRIMARY KEY (`id`)
|
||||
-- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
--
|
||||
-- CREATE TABLE `demo_olympiad_hot_game` (
|
||||
-- `code` varchar(255) NOT NULL,
|
||||
-- `sort` varchar(255) DEFAULT NULL,
|
||||
-- `name` varchar(255) DEFAULT NULL,
|
||||
-- PRIMARY KEY (`code`)
|
||||
-- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
-- CREATE TABLE `demo_olympiad_medal` (
|
||||
-- `code` int(11) NOT NULL,
|
||||
-- `name` varchar(50) NOT NULL,
|
||||
-- PRIMARY KEY (`code`)
|
||||
-- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
--
|
||||
-- CREATE TABLE `demo_olympiad_medal_qty` (
|
||||
-- `id` varchar(255) DEFAULT NULL,
|
||||
-- `country` varchar(255) DEFAULT NULL,
|
||||
-- `medal` varchar(255) DEFAULT NULL,
|
||||
-- `qty` varchar(255) DEFAULT NULL
|
||||
-- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
CREATE TABLE `demo_olympiad_athlete` (
|
||||
`code` varchar(255) NOT NULL,
|
||||
`sort` int(255) DEFAULT NULL,
|
||||
`name` varchar(255) DEFAULT NULL,
|
||||
`country` varchar(255) DEFAULT NULL,
|
||||
`game` varchar(255) DEFAULT NULL,
|
||||
`hot_num` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`code`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
CREATE TABLE `demo_olympiad_audience_age` (
|
||||
`age` varchar(255) NOT NULL,
|
||||
`percent` float(255,2) DEFAULT NULL,
|
||||
PRIMARY KEY (`age`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE `demo_olympiad_audience_sex` (
|
||||
`sex` varchar(255) NOT NULL,
|
||||
`percent` float(255,2) DEFAULT NULL,
|
||||
PRIMARY KEY (`sex`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
CREATE TABLE `demo_olympiad_country` (
|
||||
`code` varchar(255) NOT NULL,
|
||||
`name` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`code`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
CREATE TABLE `demo_olympiad_data_update` (
|
||||
`update_date` datetime DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE `demo_olympiad_gold_date` (
|
||||
`id` varchar(255) NOT NULL,
|
||||
`datekey` varchar(255) DEFAULT NULL,
|
||||
`game` varchar(255) DEFAULT NULL,
|
||||
`qty` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
CREATE TABLE `demo_olympiad_hot_game` (
|
||||
`code` varchar(255) NOT NULL,
|
||||
`sort` varchar(255) DEFAULT NULL,
|
||||
`name` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (`code`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
CREATE TABLE `demo_olympiad_medal` (
|
||||
`code` int(11) NOT NULL,
|
||||
`name` varchar(50) NOT NULL,
|
||||
PRIMARY KEY (`code`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
CREATE TABLE `demo_olympiad_medal_qty` (
|
||||
`id` varchar(255) DEFAULT NULL,
|
||||
`country` varchar(255) DEFAULT NULL,
|
||||
`medal` varchar(255) DEFAULT NULL,
|
||||
`qty` varchar(255) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE `demo_sales_dashboard` (
|
||||
@ -277,7 +277,6 @@ SET FOREIGN_KEY_CHECKS = 1;
|
||||
|
||||
|
||||
INSERT INTO `chart_group` (`id`, `name`, `pid`, `level`, `type`, `create_by`, `create_time`) VALUES ('3f551269-d985-4633-884d-d118704da2db', '示例数据', '0', '0', 'group', 'admin', '1628074869229');
|
||||
|
||||
delete from chart_group where id='5a8e8b0a-2f64-4d1b-aac1-d284b2b8436f';
|
||||
delete from chart_group where id='4de97755-5d5a-4fe0-9af0-27601f967787';
|
||||
|
||||
@ -287,6 +286,8 @@ INSERT INTO `chart_group` (`id`, `name`, `pid`, `level`, `type`, `create_by`, `c
|
||||
INSERT INTO `chart_group` (`id`, `name`, `pid`, `level`, `type`, `create_by`, `create_time`) VALUES ('4de97755-5d5a-4fe0-9af0-27601f967787', '国内疫情分析', '5a8e8b0a-2f64-4d1b-aac1-d284b2b8436f', '1', 'group', 'admin', '1623212597088');
|
||||
|
||||
|
||||
|
||||
|
||||
INSERT INTO `chart_view` (`id`, `name`, `scene_id`, `table_id`, `type`, `title`, `x_axis`, `y_axis`, `custom_attr`, `custom_style`, `custom_filter`, `create_by`, `create_time`, `update_time`, `style_priority`) VALUES ('0de1d446-8300-4ab3-a4ef-4e8f8579cb2e', '中国金牌总数', 'bfa7d87f-c76f-4406-9f19-0adccb7c568d', '44e5d4c4-e4da-4007-84af-ac5f58c0ed51', 'text', '中国金牌总数', '[{\"id\":\"c5055c91-f768-46b1-b11f-19c9a47e4d12\",\"tableId\":\"44e5d4c4-e4da-4007-84af-ac5f58c0ed51\",\"originName\":\"update_date\",\"name\":\"update_date\",\"dataeaseName\":\"C_41747ca060fc704c1c3f7c0ebacde6e7\",\"groupType\":\"d\",\"type\":\"DATETIME\",\"size\":50,\"deType\":1,\"deTypeFormat\":null,\"deExtractType\":1,\"extField\":0,\"checked\":true,\"columnIndex\":0,\"lastSyncTime\":1628142390856,\"dateStyle\":\"y_M_d\",\"datePattern\":\"date_sub\",\"sort\":\"none\",\"filter\":[]}]', '[]', '{\"color\":{\"value\":\"default\",\"colors\":[\"#5470c6\",\"#91cc75\",\"#fac858\",\"#ee6666\",\"#73c0de\",\"#3ba272\",\"#fc8452\",\"#9a60b4\",\"#ea7ccc\"],\"alpha\":100,\"tableHeaderBgColor\":\"#4e81bb\",\"tableItemBgColor\":\"#c6d9f0\",\"tableFontColor\":\"#000000\",\"tableStripe\":true,\"dimensionColor\":\"#BEBEBD\",\"quotaColor\":\"#FFC125\"},\"tableColor\":{\"value\":\"default\",\"colors\":[\"#5470c6\",\"#91cc75\",\"#fac858\",\"#ee6666\",\"#73c0de\",\"#3ba272\",\"#fc8452\",\"#9a60b4\",\"#ea7ccc\"],\"alpha\":100,\"tableHeaderBgColor\":\"#4e81bb\",\"tableItemBgColor\":\"#c6d9f0\",\"tableFontColor\":\"#000000\",\"tableStripe\":true,\"dimensionColor\":\"#000000\",\"quotaColor\":\"#000000\"},\"size\":{\"barDefault\":true,\"barWidth\":40,\"barGap\":0.4,\"lineWidth\":1,\"lineType\":\"solid\",\"lineSymbol\":\"emptyCircle\",\"lineSymbolSize\":4,\"lineSmooth\":false,\"lineArea\":false,\"pieInnerRadius\":0,\"pieOuterRadius\":80,\"pieRoseType\":\"radius\",\"pieRoseRadius\":5,\"funnelWidth\":80,\"radarShape\":\"polygon\",\"tableTitleFontSize\":12,\"tableItemFontSize\":12,\"tableTitleHeight\":36,\"tableItemHeight\":36,\"gaugeMin\":0,\"gaugeMax\":100,\"gaugeStartAngle\":225,\"gaugeEndAngle\":-45,\"dimensionFontSize\":\"14\",\"quotaFontSize\":\"28\",\"spaceSplit\":15,\"dimensionShow\":true,\"quotaShow\":true},\"label\":{\"show\":false,\"position\":\"top\",\"color\":\"#909399\",\"fontSize\":\"10\",\"formatter\":\"{c}\",\"gaugeFormatter\":\"{value}\",\"labelLine\":{\"show\":true}},\"tooltip\":{\"show\":true,\"trigger\":\"item\",\"confine\":true,\"textStyle\":{\"fontSize\":\"10\",\"color\":\"#909399\"},\"formatter\":\"\"}}', '{\"text\":{\"show\":false,\"fontSize\":\"18\",\"color\":\"#303133\",\"hPosition\":\"center\",\"vPosition\":\"top\",\"isItalic\":false,\"isBolder\":false,\"title\":\"中国金牌总数\"},\"legend\":{\"show\":true,\"hPosition\":\"center\",\"vPosition\":\"bottom\",\"orient\":\"horizontal\",\"icon\":\"rect\",\"textStyle\":{\"color\":\"#333333\",\"fontSize\":\"12\"}},\"xAxis\":{\"show\":true,\"position\":\"bottom\",\"name\":\"\",\"nameTextStyle\":{\"color\":\"#333333\",\"fontSize\":12},\"axisLabel\":{\"show\":true,\"color\":\"#333333\",\"fontSize\":\"12\",\"rotate\":0,\"formatter\":\"{value}\"},\"splitLine\":{\"show\":false,\"lineStyle\":{\"color\":\"#cccccc\",\"width\":1,\"style\":\"solid\"}}},\"yAxis\":{\"show\":true,\"position\":\"left\",\"name\":\"\",\"nameTextStyle\":{\"color\":\"#333333\",\"fontSize\":12},\"axisLabel\":{\"show\":true,\"color\":\"#333333\",\"fontSize\":\"12\",\"rotate\":0,\"formatter\":\"{value}\"},\"splitLine\":{\"show\":true,\"lineStyle\":{\"color\":\"#cccccc\",\"width\":1,\"style\":\"solid\"}}},\"background\":{\"color\":\"#ffffff\",\"alpha\":10},\"split\":{\"name\":{\"show\":true,\"color\":\"#999999\",\"fontSize\":\"12\"},\"splitNumber\":5,\"axisLine\":{\"show\":true,\"lineStyle\":{\"color\":\"#999999\",\"width\":1,\"type\":\"solid\"}},\"axisTick\":{\"show\":false,\"length\":5,\"lineStyle\":{\"color\":\"#999999\",\"width\":1,\"type\":\"solid\"}},\"axisLabel\":{\"show\":false,\"rotate\":0,\"margin\":8,\"color\":\"#999999\",\"fontSize\":\"12\",\"formatter\":\"{value}\"},\"splitLine\":{\"show\":true,\"lineStyle\":{\"color\":\"#999999\",\"width\":1,\"type\":\"solid\"}},\"splitArea\":{\"show\":true}}}', '[]', 'admin', '1628127698484', '1628142574715', 'view');
|
||||
INSERT INTO `chart_view` (`id`, `name`, `scene_id`, `table_id`, `type`, `title`, `x_axis`, `y_axis`, `custom_attr`, `custom_style`, `custom_filter`, `create_by`, `create_time`, `update_time`, `style_priority`) VALUES ('11f03671-396a-49fe-8e2f-9c8213d64e73', '新建视图', 'bfa7d87f-c76f-4406-9f19-0adccb7c568d', '44e5d4c4-e4da-4007-84af-ac5f58c0ed51', 'bar', '新建视图', '[]', '[]', '{\"color\":{\"value\":\"default\",\"colors\":[\"#5470c6\",\"#91cc75\",\"#fac858\",\"#ee6666\",\"#73c0de\",\"#3ba272\",\"#fc8452\",\"#9a60b4\",\"#ea7ccc\"],\"alpha\":100,\"tableHeaderBgColor\":\"#4e81bb\",\"tableItemBgColor\":\"#c6d9f0\",\"tableFontColor\":\"#000000\",\"tableStripe\":true,\"dimensionColor\":\"#000000\",\"quotaColor\":\"#000000\"},\"tableColor\":{\"value\":\"default\",\"colors\":[\"#5470c6\",\"#91cc75\",\"#fac858\",\"#ee6666\",\"#73c0de\",\"#3ba272\",\"#fc8452\",\"#9a60b4\",\"#ea7ccc\"],\"alpha\":100,\"tableHeaderBgColor\":\"#4e81bb\",\"tableItemBgColor\":\"#c6d9f0\",\"tableFontColor\":\"#000000\",\"tableStripe\":true,\"dimensionColor\":\"#000000\",\"quotaColor\":\"#000000\"},\"size\":{\"barDefault\":true,\"barWidth\":40,\"barGap\":0.4,\"lineWidth\":1,\"lineType\":\"solid\",\"lineSymbol\":\"emptyCircle\",\"lineSymbolSize\":4,\"lineSmooth\":false,\"lineArea\":false,\"pieInnerRadius\":0,\"pieOuterRadius\":80,\"pieRoseType\":\"radius\",\"pieRoseRadius\":5,\"funnelWidth\":80,\"radarShape\":\"polygon\",\"tableTitleFontSize\":12,\"tableItemFontSize\":12,\"tableTitleHeight\":36,\"tableItemHeight\":36,\"gaugeMin\":0,\"gaugeMax\":100,\"gaugeStartAngle\":225,\"gaugeEndAngle\":-45,\"dimensionFontSize\":18,\"quotaFontSize\":18,\"spaceSplit\":10,\"dimensionShow\":true,\"quotaShow\":true},\"label\":{\"show\":false,\"position\":\"top\",\"color\":\"#909399\",\"fontSize\":\"10\",\"formatter\":\"{c}\",\"gaugeFormatter\":\"{value}\",\"labelLine\":{\"show\":true}},\"tooltip\":{\"show\":true,\"trigger\":\"item\",\"confine\":true,\"textStyle\":{\"fontSize\":\"10\",\"color\":\"#909399\"},\"formatter\":\"\"}}', '{\"text\":{\"show\":true,\"fontSize\":\"18\",\"color\":\"#303133\",\"hPosition\":\"center\",\"vPosition\":\"top\",\"isItalic\":false,\"isBolder\":false},\"legend\":{\"show\":true,\"hPosition\":\"center\",\"vPosition\":\"bottom\",\"orient\":\"horizontal\",\"icon\":\"rect\",\"textStyle\":{\"color\":\"#333333\",\"fontSize\":\"12\"}},\"xAxis\":{\"show\":true,\"position\":\"bottom\",\"name\":\"\",\"nameTextStyle\":{\"color\":\"#333333\",\"fontSize\":12},\"axisLabel\":{\"show\":true,\"color\":\"#333333\",\"fontSize\":\"12\",\"rotate\":0,\"formatter\":\"{value}\"},\"splitLine\":{\"show\":false,\"lineStyle\":{\"color\":\"#cccccc\",\"width\":1,\"style\":\"solid\"}}},\"yAxis\":{\"show\":true,\"position\":\"left\",\"name\":\"\",\"nameTextStyle\":{\"color\":\"#333333\",\"fontSize\":12},\"axisLabel\":{\"show\":true,\"color\":\"#333333\",\"fontSize\":\"12\",\"rotate\":0,\"formatter\":\"{value}\"},\"splitLine\":{\"show\":true,\"lineStyle\":{\"color\":\"#cccccc\",\"width\":1,\"style\":\"solid\"}}},\"background\":{\"color\":\"#ffffff\",\"alpha\":0},\"split\":{\"name\":{\"show\":true,\"color\":\"#999999\",\"fontSize\":\"12\"},\"splitNumber\":5,\"axisLine\":{\"show\":true,\"lineStyle\":{\"color\":\"#999999\",\"width\":1,\"type\":\"solid\"}},\"axisTick\":{\"show\":false,\"length\":5,\"lineStyle\":{\"color\":\"#999999\",\"width\":1,\"type\":\"solid\"}},\"axisLabel\":{\"show\":false,\"rotate\":0,\"margin\":8,\"color\":\"#999999\",\"fontSize\":\"12\",\"formatter\":\"{value}\"},\"splitLine\":{\"show\":true,\"lineStyle\":{\"color\":\"#999999\",\"width\":1,\"type\":\"solid\"}},\"splitArea\":{\"show\":true}}}', '[]', 'admin', '1628147676596', '1628147691189', 'panel');
|
||||
INSERT INTO `chart_view` (`id`, `name`, `scene_id`, `table_id`, `type`, `title`, `x_axis`, `y_axis`, `custom_attr`, `custom_style`, `custom_filter`, `create_by`, `create_time`, `update_time`, `style_priority`) VALUES ('137c71f2-d570-477b-a862-28e344915aec', '总奖牌榜', 'bfa7d87f-c76f-4406-9f19-0adccb7c568d', '9c7b85bc-2c84-41f8-9051-f4b093a5cffc', 'bar-horizontal', '总奖牌榜', '[{\"id\":\"a0cc4ac5-709a-43a6-92a2-308c3392c1fb\",\"tableId\":\"9c7b85bc-2c84-41f8-9051-f4b093a5cffc\",\"originName\":\"name\",\"name\":\"name\",\"dataeaseName\":\"C_b068931cc450442b63f5b3d276ea4297\",\"groupType\":\"d\",\"type\":\"VARCHAR\",\"size\":255,\"deType\":0,\"deTypeFormat\":null,\"deExtractType\":0,\"extField\":0,\"checked\":true,\"columnIndex\":2,\"lastSyncTime\":1628071572399,\"dateStyle\":\"y_M_d\",\"datePattern\":\"date_sub\",\"sort\":\"none\",\"filter\":[]}]', '[{\"id\":\"32504142-f44c-429a-939f-c8becc8d8553\",\"tableId\":\"9c7b85bc-2c84-41f8-9051-f4b093a5cffc\",\"originName\":\"sort\",\"name\":\"sort\",\"dataeaseName\":\"C_cadc8c8db42409733582cb3e2298ef87\",\"groupType\":\"q\",\"type\":\"VARCHAR\",\"size\":255,\"deType\":2,\"deTypeFormat\":null,\"deExtractType\":0,\"extField\":0,\"checked\":true,\"columnIndex\":1,\"lastSyncTime\":1628071572399,\"summary\":\"sum\",\"sort\":\"none\",\"filter\":[]}]', '{\"color\":{\"value\":\"default\",\"colors\":[\"#5470c6\",\"#91cc75\",\"#fac858\",\"#ee6666\",\"#73c0de\",\"#3ba272\",\"#fc8452\",\"#9a60b4\",\"#ea7ccc\"],\"alpha\":100,\"tableHeaderBgColor\":\"#4e81bb\",\"tableItemBgColor\":\"#c6d9f0\",\"tableFontColor\":\"#000000\",\"tableStripe\":true,\"dimensionColor\":\"#000000\",\"quotaColor\":\"#000000\"},\"tableColor\":{\"value\":\"default\",\"colors\":[\"#5470c6\",\"#91cc75\",\"#fac858\",\"#ee6666\",\"#73c0de\",\"#3ba272\",\"#fc8452\",\"#9a60b4\",\"#ea7ccc\"],\"alpha\":100,\"tableHeaderBgColor\":\"#4e81bb\",\"tableItemBgColor\":\"#c6d9f0\",\"tableFontColor\":\"#000000\",\"tableStripe\":true,\"dimensionColor\":\"#000000\",\"quotaColor\":\"#000000\"},\"size\":{\"barDefault\":false,\"barWidth\":10,\"barGap\":0.4,\"lineWidth\":1,\"lineType\":\"solid\",\"lineSymbol\":\"emptyCircle\",\"lineSymbolSize\":4,\"lineSmooth\":false,\"lineArea\":false,\"pieInnerRadius\":0,\"pieOuterRadius\":80,\"pieRoseType\":\"radius\",\"pieRoseRadius\":5,\"funnelWidth\":80,\"radarShape\":\"polygon\",\"tableTitleFontSize\":12,\"tableItemFontSize\":12,\"tableTitleHeight\":36,\"tableItemHeight\":36,\"gaugeMin\":0,\"gaugeMax\":100,\"gaugeStartAngle\":225,\"gaugeEndAngle\":-45,\"dimensionFontSize\":18,\"quotaFontSize\":18,\"spaceSplit\":10,\"dimensionShow\":true,\"quotaShow\":true},\"label\":{\"show\":true,\"position\":\"right\",\"color\":\"#FFFFFF\",\"fontSize\":\"10\",\"formatter\":\"{c}\",\"gaugeFormatter\":\"{value}\",\"labelLine\":{\"show\":true}},\"tooltip\":{\"show\":true,\"trigger\":\"item\",\"confine\":true,\"textStyle\":{\"fontSize\":\"10\",\"color\":\"#909399\"},\"formatter\":\"\"}}', '{\"text\":{\"show\":true,\"fontSize\":\"16\",\"color\":\"#FFFFFF\",\"hPosition\":\"center\",\"vPosition\":\"top\",\"isItalic\":false,\"isBolder\":false,\"title\":\"总奖牌榜1\"},\"legend\":{\"show\":true,\"hPosition\":\"center\",\"vPosition\":\"bottom\",\"orient\":\"horizontal\",\"icon\":\"rect\",\"textStyle\":{\"color\":\"#FFFFFF\",\"fontSize\":\"12\"}},\"xAxis\":{\"show\":true,\"position\":\"bottom\",\"name\":\"\",\"nameTextStyle\":{\"color\":\"#FFFFFF\",\"fontSize\":\"10\"},\"axisLabel\":{\"show\":true,\"color\":\"#FFFFFF\",\"fontSize\":\"10\",\"rotate\":0,\"formatter\":\"{value}\"},\"splitLine\":{\"show\":false,\"lineStyle\":{\"color\":\"#cccccc\",\"width\":1,\"style\":\"solid\"}}},\"yAxis\":{\"show\":true,\"position\":\"left\",\"name\":\"\",\"nameTextStyle\":{\"color\":\"#FFFFFF\",\"fontSize\":12},\"axisLabel\":{\"show\":true,\"color\":\"#FFFFFF\",\"fontSize\":\"10\",\"rotate\":0,\"formatter\":\"{value}\"},\"splitLine\":{\"show\":false,\"lineStyle\":{\"color\":\"#4D4B4B\",\"width\":1,\"style\":\"solid\"}}},\"background\":{\"color\":\"#ffffff\",\"alpha\":0},\"split\":{\"name\":{\"show\":true,\"color\":\"#999999\",\"fontSize\":\"12\"},\"splitNumber\":5,\"axisLine\":{\"show\":true,\"lineStyle\":{\"color\":\"#999999\",\"width\":1,\"type\":\"solid\"}},\"axisTick\":{\"show\":false,\"length\":5,\"lineStyle\":{\"color\":\"#999999\",\"width\":1,\"type\":\"solid\"}},\"axisLabel\":{\"show\":false,\"rotate\":0,\"margin\":8,\"color\":\"#999999\",\"fontSize\":\"12\",\"formatter\":\"{value}\"},\"splitLine\":{\"show\":true,\"lineStyle\":{\"color\":\"#999999\",\"width\":1,\"type\":\"solid\"}},\"splitArea\":{\"show\":true}}}', '[]', 'admin', '1628129923009', '1628134190477', 'panel');
|
||||
|
||||
@ -463,6 +463,7 @@ export default {
|
||||
message: this.$t('panel.delete_success'),
|
||||
showClose: true
|
||||
})
|
||||
this.clearCanvas()
|
||||
this.tree(this.groupForm)
|
||||
this.defaultTree()
|
||||
})
|
||||
@ -470,6 +471,17 @@ export default {
|
||||
})
|
||||
},
|
||||
|
||||
clearCanvas() {
|
||||
// 清空当前缓存,快照
|
||||
this.$store.commit('setComponentData', [])
|
||||
this.$store.commit('setCanvasStyle', DEFAULT_COMMON_CANVAS_STYLE_STRING)
|
||||
this.$store.dispatch('panel/setPanelInfo', {
|
||||
id: null,
|
||||
name: '',
|
||||
preStyle: null
|
||||
})
|
||||
},
|
||||
|
||||
close() {
|
||||
this.editGroup = false
|
||||
this.groupForm = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user