|
|
@@ -225,10 +225,22 @@
|
|
|
<template v-if="config.name === 'mixed_warn'">
|
|
|
<MixedWarn></MixedWarn>
|
|
|
</template>
|
|
|
- <template v-if="config.name === 'rule_list'">
|
|
|
+ <template v-if="config.name === 'rule_table'">
|
|
|
+ <RuleTable></RuleTable>
|
|
|
+ </template>
|
|
|
+ <template v-if="config.name === 'link_log'">
|
|
|
+ <LinkLog></LinkLog>
|
|
|
+ </template>
|
|
|
+ <template v-if="config.name === 'rule_num'">
|
|
|
+ <RuleNum></RuleNum>
|
|
|
+ </template>
|
|
|
+ <template v-if="config.name === 'link_edit'">
|
|
|
+ <LinkRuleEdit></LinkRuleEdit>
|
|
|
+ </template>
|
|
|
+ <template v-if="config.name === 'rule_list'">
|
|
|
<RuleList></RuleList>
|
|
|
</template>
|
|
|
- <template v-if="config.name === 'echart_bar_new'">
|
|
|
+ <template v-if="config.name === 'echart_bar_new'">
|
|
|
<EchartBarNew></EchartBarNew>
|
|
|
</template>
|
|
|
</div>
|
|
|
@@ -271,405 +283,409 @@ import RadioLabel from './preset/radioLabel.vue';
|
|
|
import ButtonList from './preset/buttonList.vue';
|
|
|
import cardList from './preset/cardList.vue';
|
|
|
import generalList from './preset/generalList.vue';
|
|
|
-import upDown from './preset/upDown.vue'
|
|
|
-import gasInjectChart from './preset/gasInjectChart.vue'
|
|
|
-import gasInjectList from './preset/gasInjectList.vue'
|
|
|
-import gasZyChart from './preset/gasZyChart.vue'
|
|
|
-import gasZyList from './preset/gasZyList.vue'
|
|
|
-import gasWarnChart from './preset/gasWarnChart.vue'
|
|
|
-import gasWarnList from './preset/gasWarnList.vue'
|
|
|
-import gasDeviceStatusControl from './preset/gasDeviceStatusControl.vue'
|
|
|
-import gasBoard from './preset/gasBoard.vue'
|
|
|
-import gasInjectCard from './preset/gasInjectCard.vue'
|
|
|
-import cameraModal from './preset/cameraModal.vue'
|
|
|
-import echartLine from './preset/echartLine.vue'
|
|
|
-import CustomGalleryNew from './preset/CustomGalleryNew.vue'
|
|
|
-import ImageCardNew from './preset/ImageCardNew.vue'
|
|
|
-import BtnListNew from './preset/BtnListNew.vue'
|
|
|
-import OperateNew from './preset/OperateNew.vue'
|
|
|
-import LongList from './preset/LongList.vue'
|
|
|
-import LongList1 from './preset/LongList1.vue'
|
|
|
-import LongList2 from './preset/LongList2.vue'
|
|
|
-import SearchTable from './preset/SearchTable.vue'
|
|
|
-import MixedWarn from './preset/MixedWarn.vue'
|
|
|
-import RuleList from './preset/RuleList.vue'
|
|
|
-import EchartBarNew from './preset/EchartBarNew.vue'
|
|
|
+import upDown from './preset/upDown.vue';
|
|
|
+import gasInjectChart from './preset/gasInjectChart.vue';
|
|
|
+import gasInjectList from './preset/gasInjectList.vue';
|
|
|
+import gasZyChart from './preset/gasZyChart.vue';
|
|
|
+import gasZyList from './preset/gasZyList.vue';
|
|
|
+import gasWarnChart from './preset/gasWarnChart.vue';
|
|
|
+import gasWarnList from './preset/gasWarnList.vue';
|
|
|
+import gasDeviceStatusControl from './preset/gasDeviceStatusControl.vue';
|
|
|
+import gasBoard from './preset/gasBoard.vue';
|
|
|
+import gasInjectCard from './preset/gasInjectCard.vue';
|
|
|
+import cameraModal from './preset/cameraModal.vue';
|
|
|
+import echartLine from './preset/echartLine.vue';
|
|
|
+import CustomGalleryNew from './preset/CustomGalleryNew.vue';
|
|
|
+import ImageCardNew from './preset/ImageCardNew.vue';
|
|
|
+import BtnListNew from './preset/BtnListNew.vue';
|
|
|
+import OperateNew from './preset/OperateNew.vue';
|
|
|
+import LongList from '../../../../../../LongList.vue';
|
|
|
+import LongList1 from './preset/LongList1.vue';
|
|
|
+import LongList2 from './preset/LongList2.vue';
|
|
|
+import SearchTable from './preset/SearchTable.vue';
|
|
|
+import RuleTable from './preset/ruleTable.vue';
|
|
|
+import MixedWarn from './preset/MixedWarn.vue';
|
|
|
+import LinkLog from './preset/linkLog.vue';
|
|
|
+import RuleNum from './preset/ruleNum.vue';
|
|
|
+import LinkRuleEdit from './preset/linkRuleEdit.vue';
|
|
|
+import RuleList from './preset/RuleList.vue';
|
|
|
+import EchartBarNew from './preset/EchartBarNew.vue';
|
|
|
// import FIreWarn from './preset/FIreWarn.vue';
|
|
|
// import FIreControl from './preset/FIreControl.vue';
|
|
|
|
|
|
- const props = defineProps<{
|
|
|
- data: any;
|
|
|
- moduleData: Config['moduleData'];
|
|
|
- chartData: any;
|
|
|
- }>();
|
|
|
+const props = defineProps<{
|
|
|
+ data: any;
|
|
|
+ moduleData: Config['moduleData'];
|
|
|
+ chartData: any;
|
|
|
+}>();
|
|
|
+
|
|
|
+const { background, layout } = props.moduleData;
|
|
|
|
|
|
- const { background, layout } = props.moduleData;
|
|
|
+// 获取当原始配置带 items 项时的最终 items 配置
|
|
|
+function getItems(raw, items: CommonItem[]) {
|
|
|
+ return items.map((i) => {
|
|
|
+ return {
|
|
|
+ ...i,
|
|
|
+ label: getFormattedText(raw, i.label, i.trans),
|
|
|
+ value: getFormattedText(raw, i.value, i.trans),
|
|
|
+ };
|
|
|
+ });
|
|
|
+}
|
|
|
|
|
|
- // 获取当原始配置带 items 项时的最终 items 配置
|
|
|
- function getItems(raw, items: CommonItem[]) {
|
|
|
- return items.map((i) => {
|
|
|
+// 获取当 List 组件配置带 items 项时的最终 items 配置
|
|
|
+function getListItems(raw: any, items: CommonItem[], mapFromData?: boolean) {
|
|
|
+ if (mapFromData && Array.isArray(raw)) {
|
|
|
+ return raw.map((data) => {
|
|
|
+ const item = items[0];
|
|
|
return {
|
|
|
- ...i,
|
|
|
- label: getFormattedText(raw, i.label, i.trans),
|
|
|
- value: getFormattedText(raw, i.value, i.trans),
|
|
|
+ ...item,
|
|
|
+ label: getFormattedText(data, item.label, item.trans),
|
|
|
+ value: getFormattedText(data, item.value, item.trans),
|
|
|
};
|
|
|
});
|
|
|
}
|
|
|
+ return getItems(raw, items);
|
|
|
+}
|
|
|
|
|
|
- // 获取当 List 组件配置带 items 项时的最终 items 配置
|
|
|
- function getListItems(raw: any, items: CommonItem[], mapFromData?: boolean) {
|
|
|
- if (mapFromData && Array.isArray(raw)) {
|
|
|
- return raw.map((data) => {
|
|
|
- const item = items[0];
|
|
|
- return {
|
|
|
+/** 根据配置里的layout将配置格式化为带 key 的具体配置,例如:[{ key: 'list', value: any, ...ModuleDataList }] */
|
|
|
+const layoutConfig = computed(() => {
|
|
|
+ const refData = props.data;
|
|
|
+ const board = clone(props.moduleData.board) || [];
|
|
|
+ const list = clone(props.moduleData.list) || [];
|
|
|
+ const gallery = clone(props.moduleData.gallery) || [];
|
|
|
+ const complex_list = clone(props.moduleData.complex_list) || [];
|
|
|
+ const gallery_list = clone(props.moduleData.gallery_list) || [];
|
|
|
+ const tabs = clone(props.moduleData.tabs) || [];
|
|
|
+ const chart = clone(props.moduleData.chart) || [];
|
|
|
+ const table = clone(props.moduleData.table) || [];
|
|
|
+ const preset = clone(props.moduleData.preset) || [];
|
|
|
+ const partition = clone(props.moduleData.partition) || [];
|
|
|
+ const mockData = clone(props.chartData) || [];
|
|
|
+ return layout.items.reduce((arr: any[], item) => {
|
|
|
+ switch (item.name) {
|
|
|
+ case 'board': {
|
|
|
+ const cfg = board.shift();
|
|
|
+ if (!cfg) break;
|
|
|
+ const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
+
|
|
|
+ arr.push({
|
|
|
+ overflow: true,
|
|
|
...item,
|
|
|
- label: getFormattedText(data, item.label, item.trans),
|
|
|
- value: getFormattedText(data, item.value, item.trans),
|
|
|
- };
|
|
|
- });
|
|
|
- }
|
|
|
- return getItems(raw, items);
|
|
|
- }
|
|
|
+ ...cfg,
|
|
|
+ items: getItems(data, cfg.items),
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 'list': {
|
|
|
+ const cfg = list.shift();
|
|
|
+ if (!cfg) break;
|
|
|
+ const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
|
|
|
- /** 根据配置里的layout将配置格式化为带 key 的具体配置,例如:[{ key: 'list', value: any, ...ModuleDataList }] */
|
|
|
- const layoutConfig = computed(() => {
|
|
|
- const refData = props.data;
|
|
|
- const board = clone(props.moduleData.board) || [];
|
|
|
- const list = clone(props.moduleData.list) || [];
|
|
|
- const gallery = clone(props.moduleData.gallery) || [];
|
|
|
- const complex_list = clone(props.moduleData.complex_list) || [];
|
|
|
- const gallery_list = clone(props.moduleData.gallery_list) || [];
|
|
|
- const tabs = clone(props.moduleData.tabs) || [];
|
|
|
- const chart = clone(props.moduleData.chart) || [];
|
|
|
- const table = clone(props.moduleData.table) || [];
|
|
|
- const preset = clone(props.moduleData.preset) || [];
|
|
|
- const partition = clone(props.moduleData.partition) || [];
|
|
|
- const mockData = clone(props.chartData) || [];
|
|
|
- return layout.items.reduce((arr: any[], item) => {
|
|
|
- switch (item.name) {
|
|
|
- case 'board': {
|
|
|
- const cfg = board.shift();
|
|
|
- if (!cfg) break;
|
|
|
- const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
+ arr.push({
|
|
|
+ overflow: true,
|
|
|
+ ...item,
|
|
|
+ ...cfg,
|
|
|
+ items: getListItems(data, cfg.items, cfg.mapFromData),
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 'gallery': {
|
|
|
+ const cfg = gallery.shift();
|
|
|
+ if (!cfg) break;
|
|
|
+ const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
+
|
|
|
+ arr.push({
|
|
|
+ overflow: true,
|
|
|
+ ...item,
|
|
|
+ ...cfg,
|
|
|
+ items: getItems(data, cfg.items),
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 'complex_list': {
|
|
|
+ const cfg = complex_list.shift();
|
|
|
+ if (!cfg) break;
|
|
|
+ const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
|
|
|
+ if (cfg.mapFromData) {
|
|
|
+ const firstListItem = cfg.items[0];
|
|
|
arr.push({
|
|
|
overflow: true,
|
|
|
...item,
|
|
|
...cfg,
|
|
|
- items: getItems(data, cfg.items),
|
|
|
+ items: (data || []).map((d) => {
|
|
|
+ return {
|
|
|
+ title: getFormattedText(d, firstListItem.title, firstListItem.trans),
|
|
|
+ contents: firstListItem.contents.map((e) => {
|
|
|
+ return {
|
|
|
+ ...e,
|
|
|
+ label: getFormattedText(d, e.label, e.trans),
|
|
|
+ value: getFormattedText(d, e.value, e.trans),
|
|
|
+ };
|
|
|
+ }),
|
|
|
+ };
|
|
|
+ }),
|
|
|
});
|
|
|
- break;
|
|
|
- }
|
|
|
- case 'list': {
|
|
|
- const cfg = list.shift();
|
|
|
- if (!cfg) break;
|
|
|
- const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
-
|
|
|
+ } else {
|
|
|
arr.push({
|
|
|
overflow: true,
|
|
|
...item,
|
|
|
...cfg,
|
|
|
- items: getListItems(data, cfg.items, cfg.mapFromData),
|
|
|
+ items: cfg.items.map((i) => {
|
|
|
+ return {
|
|
|
+ title: getFormattedText(data, i.title, i.trans),
|
|
|
+ contents: i.contents.map((e) => {
|
|
|
+ return {
|
|
|
+ ...e,
|
|
|
+ label: getFormattedText(data, e.label, e.trans),
|
|
|
+ value: getFormattedText(data, e.value, e.trans),
|
|
|
+ };
|
|
|
+ }),
|
|
|
+ };
|
|
|
+ }),
|
|
|
});
|
|
|
- break;
|
|
|
}
|
|
|
- case 'gallery': {
|
|
|
- const cfg = gallery.shift();
|
|
|
- if (!cfg) break;
|
|
|
- const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 'gallery_list': {
|
|
|
+ const cfg = gallery_list.shift();
|
|
|
+ if (!cfg) break;
|
|
|
+ const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
+
|
|
|
+ arr.push({
|
|
|
+ overflow: true,
|
|
|
+ ...item,
|
|
|
+ ...cfg,
|
|
|
+ items: getItems(data, cfg.items),
|
|
|
+ galleryItems: getItems(data, cfg.galleryItems),
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 'tabs': {
|
|
|
+ const cfg = tabs.shift();
|
|
|
+ if (!cfg) break;
|
|
|
+ const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
|
|
|
+ if (cfg.mapFromData) {
|
|
|
+ const firstListItem = cfg.items[0];
|
|
|
arr.push({
|
|
|
overflow: true,
|
|
|
...item,
|
|
|
...cfg,
|
|
|
- items: getItems(data, cfg.items),
|
|
|
+ items: (data || []).map((d) => {
|
|
|
+ return {
|
|
|
+ title: getFormattedText(d, firstListItem.title, firstListItem.trans),
|
|
|
+ contents: firstListItem.contents.map((e) => {
|
|
|
+ return {
|
|
|
+ ...e,
|
|
|
+ label: getFormattedText(d, e.label, e.trans),
|
|
|
+ value: getFormattedText(d, e.value, e.trans),
|
|
|
+ };
|
|
|
+ }),
|
|
|
+ };
|
|
|
+ }),
|
|
|
});
|
|
|
- break;
|
|
|
- }
|
|
|
- case 'complex_list': {
|
|
|
- const cfg = complex_list.shift();
|
|
|
- if (!cfg) break;
|
|
|
- const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
-
|
|
|
- if (cfg.mapFromData) {
|
|
|
- const firstListItem = cfg.items[0];
|
|
|
- arr.push({
|
|
|
- overflow: true,
|
|
|
- ...item,
|
|
|
- ...cfg,
|
|
|
- items: (data || []).map((d) => {
|
|
|
- return {
|
|
|
- title: getFormattedText(d, firstListItem.title, firstListItem.trans),
|
|
|
- contents: firstListItem.contents.map((e) => {
|
|
|
- return {
|
|
|
- ...e,
|
|
|
- label: getFormattedText(d, e.label, e.trans),
|
|
|
- value: getFormattedText(d, e.value, e.trans),
|
|
|
- };
|
|
|
- }),
|
|
|
- };
|
|
|
- }),
|
|
|
- });
|
|
|
- } else {
|
|
|
- arr.push({
|
|
|
- overflow: true,
|
|
|
- ...item,
|
|
|
- ...cfg,
|
|
|
- items: cfg.items.map((i) => {
|
|
|
- return {
|
|
|
- title: getFormattedText(data, i.title, i.trans),
|
|
|
- contents: i.contents.map((e) => {
|
|
|
- return {
|
|
|
- ...e,
|
|
|
- label: getFormattedText(data, e.label, e.trans),
|
|
|
- value: getFormattedText(data, e.value, e.trans),
|
|
|
- };
|
|
|
- }),
|
|
|
- };
|
|
|
- }),
|
|
|
- });
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
- case 'gallery_list': {
|
|
|
- const cfg = gallery_list.shift();
|
|
|
- if (!cfg) break;
|
|
|
- const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
-
|
|
|
+ } else {
|
|
|
arr.push({
|
|
|
overflow: true,
|
|
|
...item,
|
|
|
...cfg,
|
|
|
- items: getItems(data, cfg.items),
|
|
|
- galleryItems: getItems(data, cfg.galleryItems),
|
|
|
+ items: cfg.items.map((i) => {
|
|
|
+ return {
|
|
|
+ title: getFormattedText(data, i.title, i.trans),
|
|
|
+ contents: i.contents.map((e) => {
|
|
|
+ return {
|
|
|
+ ...e,
|
|
|
+ label: getFormattedText(data, e.label, e.trans),
|
|
|
+ value: getFormattedText(data, e.value, e.trans),
|
|
|
+ };
|
|
|
+ }),
|
|
|
+ };
|
|
|
+ }),
|
|
|
});
|
|
|
- break;
|
|
|
- }
|
|
|
- case 'tabs': {
|
|
|
- const cfg = tabs.shift();
|
|
|
- if (!cfg) break;
|
|
|
- const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
-
|
|
|
- if (cfg.mapFromData) {
|
|
|
- const firstListItem = cfg.items[0];
|
|
|
- arr.push({
|
|
|
- overflow: true,
|
|
|
- ...item,
|
|
|
- ...cfg,
|
|
|
- items: (data || []).map((d) => {
|
|
|
- return {
|
|
|
- title: getFormattedText(d, firstListItem.title, firstListItem.trans),
|
|
|
- contents: firstListItem.contents.map((e) => {
|
|
|
- return {
|
|
|
- ...e,
|
|
|
- label: getFormattedText(d, e.label, e.trans),
|
|
|
- value: getFormattedText(d, e.value, e.trans),
|
|
|
- };
|
|
|
- }),
|
|
|
- };
|
|
|
- }),
|
|
|
- });
|
|
|
- } else {
|
|
|
- arr.push({
|
|
|
- overflow: true,
|
|
|
- ...item,
|
|
|
- ...cfg,
|
|
|
- items: cfg.items.map((i) => {
|
|
|
- return {
|
|
|
- title: getFormattedText(data, i.title, i.trans),
|
|
|
- contents: i.contents.map((e) => {
|
|
|
- return {
|
|
|
- ...e,
|
|
|
- label: getFormattedText(data, e.label, e.trans),
|
|
|
- value: getFormattedText(data, e.value, e.trans),
|
|
|
- };
|
|
|
- }),
|
|
|
- };
|
|
|
- }),
|
|
|
- });
|
|
|
- }
|
|
|
- break;
|
|
|
}
|
|
|
- case 'chart': {
|
|
|
- const cfg = chart.shift();
|
|
|
- if (cfg?.type == 'scatter') {
|
|
|
- if (!cfg) break;
|
|
|
- const data = getData(mockData, cfg.readFrom, cfg.parser);
|
|
|
-
|
|
|
- arr.push({
|
|
|
- ...item,
|
|
|
- config: cfg,
|
|
|
- data,
|
|
|
- });
|
|
|
- break;
|
|
|
- } else {
|
|
|
- if (!cfg) break;
|
|
|
- const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
- arr.push({
|
|
|
- ...item,
|
|
|
- config: cfg,
|
|
|
- data,
|
|
|
- });
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- case 'table': {
|
|
|
- const cfg = table.shift();
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case 'chart': {
|
|
|
+ const cfg = chart.shift();
|
|
|
+ if (cfg?.type == 'scatter') {
|
|
|
if (!cfg) break;
|
|
|
- const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
+ const data = getData(mockData, cfg.readFrom, cfg.parser);
|
|
|
|
|
|
arr.push({
|
|
|
- ...cfg,
|
|
|
...item,
|
|
|
- columns: cfg.columns,
|
|
|
+ config: cfg,
|
|
|
data,
|
|
|
});
|
|
|
break;
|
|
|
- }
|
|
|
- case 'partition': {
|
|
|
- const cfg = partition.shift();
|
|
|
+ } else {
|
|
|
if (!cfg) break;
|
|
|
const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
arr.push({
|
|
|
- overflow: true,
|
|
|
...item,
|
|
|
+ config: cfg,
|
|
|
data,
|
|
|
- ...cfg,
|
|
|
});
|
|
|
break;
|
|
|
}
|
|
|
- default: {
|
|
|
- const cfg = preset.shift();
|
|
|
- if (!cfg) break;
|
|
|
- const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
+ }
|
|
|
+ case 'table': {
|
|
|
+ const cfg = table.shift();
|
|
|
+ if (!cfg) break;
|
|
|
+ const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
|
|
|
- arr.push({
|
|
|
- ...item,
|
|
|
- data,
|
|
|
- config: cfg,
|
|
|
- });
|
|
|
- break;
|
|
|
- }
|
|
|
+ arr.push({
|
|
|
+ ...cfg,
|
|
|
+ ...item,
|
|
|
+ columns: cfg.columns,
|
|
|
+ data,
|
|
|
+ });
|
|
|
+ break;
|
|
|
}
|
|
|
- // console.log(arr,'arr---')
|
|
|
- return arr;
|
|
|
- }, []);
|
|
|
- });
|
|
|
+ case 'partition': {
|
|
|
+ const cfg = partition.shift();
|
|
|
+ if (!cfg) break;
|
|
|
+ const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
+ arr.push({
|
|
|
+ overflow: true,
|
|
|
+ ...item,
|
|
|
+ data,
|
|
|
+ ...cfg,
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ default: {
|
|
|
+ const cfg = preset.shift();
|
|
|
+ if (!cfg) break;
|
|
|
+ const data = getData(refData, cfg.readFrom, cfg.parser);
|
|
|
+
|
|
|
+ arr.push({
|
|
|
+ ...item,
|
|
|
+ data,
|
|
|
+ config: cfg,
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // console.log(arr,'arr---')
|
|
|
+ return arr;
|
|
|
+ }, []);
|
|
|
+});
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
|
- @import '@/design/theme.less';
|
|
|
+@import '@/design/theme.less';
|
|
|
|
|
|
- .content {
|
|
|
- height: calc(100% - 30px);
|
|
|
- position: relative;
|
|
|
- // z-index: -2;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- overflow-y: auto; // 这里会导致样式无故添加滚动条
|
|
|
- overflow-x: hidden;
|
|
|
- }
|
|
|
+.content {
|
|
|
+ height: calc(100% - 30px);
|
|
|
+ position: relative;
|
|
|
+ // z-index: -2;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ overflow-y: auto; // 这里会导致样式无故添加滚动条
|
|
|
+ overflow-x: hidden;
|
|
|
+}
|
|
|
|
|
|
- .content__background {
|
|
|
- width: 100%;
|
|
|
- // height: 100%;
|
|
|
- height: calc(100% - 65px);
|
|
|
- position: absolute;
|
|
|
- top: 65px;
|
|
|
- left: 0;
|
|
|
- z-index: 0;
|
|
|
- object-fit: fill;
|
|
|
- padding: 5px;
|
|
|
- box-sizing: border-box;
|
|
|
- }
|
|
|
+.content__background {
|
|
|
+ width: 100%;
|
|
|
+ // height: 100%;
|
|
|
+ height: calc(100% - 65px);
|
|
|
+ position: absolute;
|
|
|
+ top: 65px;
|
|
|
+ left: 0;
|
|
|
+ z-index: 0;
|
|
|
+ object-fit: fill;
|
|
|
+ padding: 5px;
|
|
|
+ box-sizing: border-box;
|
|
|
+}
|
|
|
|
|
|
- .content__background_1 {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- position: absolute;
|
|
|
- top: 0px;
|
|
|
- left: 0;
|
|
|
- z-index: 0;
|
|
|
- object-fit: fill;
|
|
|
- }
|
|
|
+.content__background_1 {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ position: absolute;
|
|
|
+ top: 0px;
|
|
|
+ left: 0;
|
|
|
+ z-index: 0;
|
|
|
+ object-fit: fill;
|
|
|
+}
|
|
|
|
|
|
- .image__background {
|
|
|
- width: 35%;
|
|
|
- height: 61%;
|
|
|
- left: 30%;
|
|
|
- }
|
|
|
+.image__background {
|
|
|
+ width: 35%;
|
|
|
+ height: 61%;
|
|
|
+ left: 30%;
|
|
|
+}
|
|
|
|
|
|
- .content__module {
|
|
|
- // margin-top: 5px;
|
|
|
- // margin-bottom: 5px;
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- }
|
|
|
+.content__module {
|
|
|
+ // margin-top: 5px;
|
|
|
+ // margin-bottom: 5px;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+}
|
|
|
|
|
|
- .content__module1 {
|
|
|
- background: url('@/assets/images/vent/homeNew/databg/4.png');
|
|
|
- background-repeat: no-repeat;
|
|
|
- background-size: 100% 100%;
|
|
|
- height: 129px;
|
|
|
- margin-top: 20%;
|
|
|
- }
|
|
|
+.content__module1 {
|
|
|
+ background: url('@/assets/images/vent/homeNew/databg/4.png');
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ height: 129px;
|
|
|
+ margin-top: 20%;
|
|
|
+}
|
|
|
|
|
|
- .content__moduleFire {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- margin-left: -24% !important;
|
|
|
- }
|
|
|
+.content__moduleFire {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ margin-left: -24% !important;
|
|
|
+}
|
|
|
|
|
|
- .content__module_dust {
|
|
|
- background: url('@/assets/images/vent/homeNew/bottomBg.png');
|
|
|
- background-repeat: no-repeat;
|
|
|
- background-size: 100% 100%;
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- }
|
|
|
+.content__module_dust {
|
|
|
+ background: url('@/assets/images/vent/homeNew/bottomBg.png');
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+}
|
|
|
|
|
|
- // .content__module:first-of-type {
|
|
|
- // margin-top: 0;
|
|
|
- // }
|
|
|
- // .content__module:last-of-type {
|
|
|
- // margin-bottom: 0;
|
|
|
- // }
|
|
|
- ::-webkit-scrollbar {
|
|
|
- width: 5px !important;
|
|
|
- }
|
|
|
+// .content__module:first-of-type {
|
|
|
+// margin-top: 0;
|
|
|
+// }
|
|
|
+// .content__module:last-of-type {
|
|
|
+// margin-bottom: 0;
|
|
|
+// }
|
|
|
+::-webkit-scrollbar {
|
|
|
+ width: 5px !important;
|
|
|
+}
|
|
|
|
|
|
- ::-webkit-scrollbar-thumb {
|
|
|
- width: 5px !important;
|
|
|
- }
|
|
|
+::-webkit-scrollbar-thumb {
|
|
|
+ width: 5px !important;
|
|
|
+}
|
|
|
|
|
|
- :deep(.zxm-select:not(.zxm-select-customize-input) .zxm-select-selector) {
|
|
|
- /* background-color: transparent; */
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
+:deep(.zxm-select:not(.zxm-select-customize-input) .zxm-select-selector) {
|
|
|
+ /* background-color: transparent; */
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
|
|
|
- :deep(.zxm-select-arrow) {
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
+:deep(.zxm-select-arrow) {
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
|
|
|
- :deep(.zxm-select-selection-item) {
|
|
|
- color: #fff !important;
|
|
|
- }
|
|
|
+:deep(.zxm-select-selection-item) {
|
|
|
+ color: #fff !important;
|
|
|
+}
|
|
|
|
|
|
- :deep(.zxm-select-selection-placeholder) {
|
|
|
- color: #fff !important;
|
|
|
- }
|
|
|
+:deep(.zxm-select-selection-placeholder) {
|
|
|
+ color: #fff !important;
|
|
|
+}
|
|
|
|
|
|
- :deep(.dialog-overlay) {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- position: unset;
|
|
|
- box-shadow: unset;
|
|
|
- }
|
|
|
+:deep(.dialog-overlay) {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ position: unset;
|
|
|
+ box-shadow: unset;
|
|
|
+}
|
|
|
|
|
|
- ::-webkit-scrollbar {
|
|
|
- width: 5px !important;
|
|
|
- }
|
|
|
+::-webkit-scrollbar {
|
|
|
+ width: 5px !important;
|
|
|
+}
|
|
|
|
|
|
- ::-webkit-scrollbar-thumb {
|
|
|
- width: 5px !important;
|
|
|
- }
|
|
|
+::-webkit-scrollbar-thumb {
|
|
|
+ width: 5px !important;
|
|
|
+}
|
|
|
</style>
|