修改
This commit is contained in:
parent
111047e788
commit
0d5adf9d8e
@ -37,7 +37,15 @@ public class ModuleServiceImpl extends ServiceImpl<ModuleMapper, Module> impleme
|
|||||||
if(module.getType().equals("03"))//GIS大屏页面
|
if(module.getType().equals("03"))//GIS大屏页面
|
||||||
{
|
{
|
||||||
DataVisualizationInfo visualizationInfo = new DataVisualizationInfo();
|
DataVisualizationInfo visualizationInfo = new DataVisualizationInfo();
|
||||||
coreVisualizationManage.preInnerSave(visualizationInfo);
|
visualizationInfo.setId(Long.parseLong(module.getId()));
|
||||||
|
visualizationInfo.setAppId(module.getAppId());
|
||||||
|
visualizationInfo.setName(module.getName());
|
||||||
|
visualizationInfo.setPid(Long.parseLong(module.getPid()));
|
||||||
|
visualizationInfo.setNodeType("leaf");
|
||||||
|
visualizationInfo.setType("dataV");
|
||||||
|
visualizationInfo.setCanvasStyleData("{\"width\":1920,\"height\":1080,\"refreshBrowserEnable\":false,\"refreshBrowserUnit\":\"minute\",\"refreshBrowserTime\":5,\"refreshViewEnable\":false,\"refreshViewLoading\":true,\"refreshUnit\":\"minute\",\"refreshTime\":5,\"popupAvailable\":true,\"popupButtonAvailable\":true,\"suspensionButtonAvailable\":false,\"screenAdaptor\":\"widthFirst\",\"dashboardAdaptor\":\"keepHeightAndWidth\",\"scale\":60,\"scaleWidth\":60,\"scaleHeight\":60,\"backgroundColorSelect\":true,\"backgroundImageEnable\":false,\"backgroundType\":\"backgroundColor\",\"background\":\"\",\"openCommonStyle\":true,\"opacity\":1,\"fontSize\":14,\"fontFamily\":\"PingFang\",\"themeId\":\"10002\",\"color\":\"#fff\",\"backgroundColor\":\"rgba(2, 4, 8, 1)\",\"dashboard\":{\"gap\":\"yes\",\"gapSize\":5,\"showGrid\":false,\"matrixBase\":4,\"resultMode\":\"all\",\"resultCount\":1000,\"themeColor\":\"dark\",\"mobileSetting\":{\"customSetting\":false,\"imageUrl\":null,\"backgroundType\":\"image\",\"color\":\"#fff\"}},\"component\":{\"chartTitle\":{\"show\":true,\"fontSize\":16,\"hPosition\":\"left\",\"vPosition\":\"top\",\"isItalic\":false,\"isBolder\":true,\"remarkShow\":false,\"remark\":\"\",\"fontFamily\":\"\",\"letterSpace\":\"0\",\"fontShadow\":false,\"color\":\"#FFFFFF\",\"remarkBackgroundColor\":\"#5A5C62\"},\"chartColor\":{\"basicStyle\":{\"colorScheme\":\"default\",\"colors\":[\"#1E90FF\",\"#90EE90\",\"#00CED1\",\"#E2BD84\",\"#7A90E0\",\"#3BA272\",\"#2BE7FF\",\"#0A8ADA\",\"#FFD700\"],\"alpha\":100,\"gradient\":false,\"mapStyle\":\"darkblue\",\"areaBaseColor\":\"#5470C6\",\"areaBorderColor\":\"#EBEEF5\",\"gaugeStyle\":\"default\",\"tableBorderColor\":\"#CCCCCC\",\"tableScrollBarColor\":\"rgba(255, 255, 255, 0.5)\",\"zoomButtonColor\":\"#fff\",\"zoomBackground\":\"#000\"},\"misc\":{\"flowMapConfig\":{\"lineConfig\":{\"mapLineGradient\":false,\"mapLineSourceColor\":\"#146C94\",\"mapLineTargetColor\":\"#576CBC\"}},\"nameFontColor\":\"#ffffff\",\"valueFontColor\":\"#5470c6\"},\"tableHeader\":{\"tableHeaderBgColor\":\"#1E90FF\",\"tableHeaderCornerBgColor\":\"#1E90FF\",\"tableHeaderColBgColor\":\"#1E90FF\",\"tableHeaderFontColor\":\"#FFFFFF\",\"tableHeaderCornerFontColor\":\"#FFFFFF\",\"tableHeaderColFontColor\":\"#FFFFFF\"},\"tableCell\":{\"tableItemBgColor\":\"#131E42\",\"tableFontColor\":\"#ffffff\",\"tableItemSubBgColor\":\"#EEEEEE\"}},\"chartCommonStyle\":{\"backgroundColorSelect\":false,\"backdropFilterEnable\":false,\"backgroundImageEnable\":false,\"backgroundType\":\"innerImage\",\"innerImage\":\"board/board_1.svg\",\"outerImage\":null,\"innerPadding\":12,\"borderRadius\":0,\"backdropFilter\":4,\"backgroundColor\":\"#131E42\",\"innerImageColor\":\"#1094E5\"},\"filterStyle\":{\"layout\":\"horizontal\",\"titleLayout\":\"left\",\"labelColor\":\"#ffffff\",\"titleColor\":\"#ffffff\",\"color\":\"#FFFFFF\",\"borderColor\":\"#484747\",\"text\":\"#AFAFAF\",\"bgColor\":\"#131C42\"},\"tabStyle\":{\"headPosition\":\"left\",\"headFontColor\":\"#ffffff\",\"headFontActiveColor\":\"#ffffff\",\"headBorderColor\":\"#000000\",\"headBorderActiveColor\":\"#000000\"},\"seniorStyleSetting\":{\"linkageIconColor\":\"#ffffff\",\"drillLayerColor\":\"#ffffff\",\"pagerColor\":\"#ffffff\"}}}");
|
||||||
|
visualizationInfo.setComponentData("[]");
|
||||||
|
long id=coreVisualizationManage.preInnerSave(visualizationInfo);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -245,14 +245,14 @@ function delTreeClic(){ // 删除
|
|||||||
<template #default="{ data }">
|
<template #default="{ data }">
|
||||||
<!-- @mouseleave="isTreeDrag = false" -->
|
<!-- @mouseleave="isTreeDrag = false" -->
|
||||||
<div class="el-tree-node__content" >
|
<div class="el-tree-node__content" >
|
||||||
<img v-if="data.nodeType=='01'" src="@/assets/newimg/u74.png" alt="" style="width: 14px;height: 13px;margin-right: 10px;">
|
<img v-if="data.node_type=='01'" src="@/assets/newimg/u74.png" alt="" style="width: 14px;height: 13px;margin-right: 10px;">
|
||||||
<div class="el-tree-node__label">{{ data.name }}</div>
|
<div class="el-tree-node__label">{{ data.name }}</div>
|
||||||
<div class="operation-button-box">
|
<div class="operation-button-box">
|
||||||
<div style="
|
<div style="
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 24px;">
|
height: 24px;">
|
||||||
<img v-if="data.nodeType == '01'" src="@/assets/newimg/icon/add.png" alt="" style="width: 14px;height: 13px;" @click.stop="addTreeChildNode($event, Number(data.level)+1,data)">
|
<img v-if="data.node_type == '01'" src="@/assets/newimg/icon/add.png" alt="" style="width: 14px;height: 13px;" @click.stop="addTreeChildNode($event, Number(data.level)+1,data)">
|
||||||
<img v-if="data.nodeType == '02'" src="@/assets/newimg/icon/bianji.png" alt="" style="width: 14px;height: 13px;" @click.stop="editClic(data)">
|
<img v-if="data.node_type == '02'" src="@/assets/newimg/icon/bianji.png" alt="" style="width: 14px;height: 13px;" @click.stop="editClic(data)">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div style="
|
<div style="
|
||||||
|
Loading…
Reference in New Issue
Block a user