Compare commits
No commits in common. "26cc4238755a6080615d594214d371f1f5a1229c" and "151fb269e96a9c1c11d6177cf2dade90b592bb2d" have entirely different histories.
26cc423875
...
151fb269e9
@ -112,8 +112,6 @@ export const http = (type?: RequestHttpEnum) => {
|
||||
|
||||
## 交流
|
||||
|
||||
zs
|
||||
|
||||
QQ 群:1030129384
|
||||
|
||||

|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 624 KiB |
Binary file not shown.
Before Width: | Height: | Size: 242 KiB |
Binary file not shown.
Before Width: | Height: | Size: 201 KiB |
@ -2,56 +2,29 @@ import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { AlarmListConfig } from './index'
|
||||
import dataJson from './data.json'
|
||||
import { chartInitConfig } from '@/settings/designSetting'
|
||||
export enum FontWeightEnum {
|
||||
NORMAL = '常规',
|
||||
BOLD = '加粗',
|
||||
}
|
||||
|
||||
export enum FontStyleEnum {
|
||||
NORMAL = '常规',
|
||||
ITALIC = '斜体',
|
||||
}
|
||||
|
||||
export const FontWeightObject = {
|
||||
[FontWeightEnum.NORMAL]: 'normal',
|
||||
[FontWeightEnum.BOLD]: 'bold',
|
||||
}
|
||||
|
||||
export const FontStyleObject = {
|
||||
[FontStyleEnum.NORMAL]: 'normal',
|
||||
[FontStyleEnum.ITALIC]: 'italic',
|
||||
}
|
||||
export const option = {
|
||||
dataset: dataJson.source,
|
||||
header: ['报警事件', '时间', '所属企业', '状态'],
|
||||
headerTextColor: '#B4B4B4',
|
||||
textColor: '#ffffff',
|
||||
headerBackgroundColor: '#17325F',
|
||||
itemBackgroundColor: '#242834',
|
||||
itemBackgroundColor: '#0F233E',
|
||||
statusColors: {
|
||||
'未解决': '#FF4D4F',
|
||||
'已解决': '#ffffff'
|
||||
},
|
||||
headerHeight: 30,
|
||||
itemHeight: 30,
|
||||
fontSize: 12,
|
||||
headerHeight: 40,
|
||||
itemHeight: 35,
|
||||
fontSize: 14,
|
||||
title: '近60分钟报警信息',
|
||||
titleSize: 17,
|
||||
titleSize: 18,
|
||||
titleColor: '#ffffff',
|
||||
iconColor: '#00E5FF',
|
||||
fontWeight: 'normal',
|
||||
fontStyle: 'normal',
|
||||
paddingX: 40,
|
||||
paddingY: -19,
|
||||
letterSpacing: 2,
|
||||
isShowButton: false
|
||||
iconColor: '#00E5FF'
|
||||
}
|
||||
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = AlarmListConfig.key
|
||||
public chartConfig = AlarmListConfig
|
||||
public option = option
|
||||
public attr = { ...chartInitConfig, x: 0, y: 0, w: 450, h: 300, zIndex: 1 }
|
||||
|
||||
}
|
||||
|
@ -1,70 +1,31 @@
|
||||
<template>
|
||||
<collapse-item name="信息" :expanded="true">
|
||||
<setting-item-box name="标题" :alone="true">
|
||||
<setting-item>
|
||||
<n-input v-model:value="optionData.title" type="textarea" size="small"></n-input>
|
||||
</setting-item>
|
||||
</setting-item-box>
|
||||
</collapse-item>
|
||||
|
||||
<collapse-item name="样式" :expanded="true">
|
||||
<setting-item-box name="标题">
|
||||
<setting-item name="颜色">
|
||||
<n-color-picker size="small" :modes="['hex']" v-model:value="optionData.titleColor"></n-color-picker>
|
||||
</setting-item>
|
||||
<setting-item name="字体大小">
|
||||
<n-input-number v-model:value="optionData.titleSize" size="small" placeholder="字体大小"></n-input-number>
|
||||
</setting-item>
|
||||
<setting-item name="字体粗细">
|
||||
<n-select v-model:value="optionData.fontWeight" size="small" :options="fontWeightOptions" />
|
||||
</setting-item>
|
||||
<setting-item name="字体风格">
|
||||
<n-select v-model:value="optionData.fontStyle" size="small" :options="fontStyleOptions" />
|
||||
</setting-item>
|
||||
<setting-item name="X轴内边距">
|
||||
<n-input-number v-model:value="optionData.paddingX" size="small" placeholder="输入内边距"></n-input-number>
|
||||
</setting-item>
|
||||
<setting-item name="Y轴内边距">
|
||||
<n-input-number v-model:value="optionData.paddingY" size="small" placeholder="输入内边距"></n-input-number>
|
||||
</setting-item>
|
||||
|
||||
|
||||
<setting-item name="字间距">
|
||||
<n-input-number v-model:value="optionData.letterSpacing" size="small" placeholder="输入字间距"></n-input-number>
|
||||
</setting-item>
|
||||
</setting-item-box>
|
||||
</collapse-item>
|
||||
<div class="go-alarm-list-config">
|
||||
<n-form-item label="标题">
|
||||
<n-input v-model:value="option.title" />
|
||||
</n-form-item>
|
||||
<n-form-item label="标题大小">
|
||||
<n-input-number v-model:value="option.titleSize" />
|
||||
</n-form-item>
|
||||
<n-form-item label="字体大小">
|
||||
<n-input-number v-model:value="option.fontSize" />
|
||||
</n-form-item>
|
||||
<n-form-item label="表头高度">
|
||||
<n-input-number v-model:value="option.headerHeight" />
|
||||
</n-form-item>
|
||||
<n-form-item label="行高度">
|
||||
<n-input-number v-model:value="option.itemHeight" />
|
||||
</n-form-item>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { PropType } from 'vue'
|
||||
import { option, WritingModeEnum, WritingModeObject, FontWeightEnum, FontWeightObject, FontStyleEnum, FontStyleObject } from './config'
|
||||
import { CollapseItem, SettingItemBox, SettingItem } from '@/components/Pages/ChartItemSetting'
|
||||
const props = defineProps({
|
||||
optionData: {
|
||||
import { option } from './config'
|
||||
|
||||
defineProps({
|
||||
option: {
|
||||
type: Object as PropType<typeof option>,
|
||||
required: true
|
||||
}
|
||||
})
|
||||
|
||||
const fontWeightOptions = [
|
||||
{
|
||||
label: FontWeightEnum.NORMAL,
|
||||
value: FontWeightObject[FontWeightEnum.NORMAL]
|
||||
},
|
||||
{
|
||||
label: FontWeightEnum.BOLD,
|
||||
value: FontWeightObject[FontWeightEnum.BOLD]
|
||||
}
|
||||
]
|
||||
const fontStyleOptions = [
|
||||
{
|
||||
label: FontStyleEnum.NORMAL,
|
||||
value: FontStyleObject[FontStyleEnum.NORMAL]
|
||||
},
|
||||
{
|
||||
label: FontStyleEnum.ITALIC,
|
||||
value: FontStyleObject[FontStyleEnum.ITALIC]
|
||||
}
|
||||
]
|
||||
</script>
|
||||
|
@ -1,64 +1,61 @@
|
||||
<template>
|
||||
<SmallBorder class="SmallBorder">
|
||||
<div class="go-alarm-list">
|
||||
<div class="header">
|
||||
<div class="title">
|
||||
<!-- <div class="title-prefix">
|
||||
<svg-icon icon-class="rocket" class="title-icon" :style="{ color: option.iconColor }"></svg-icon>
|
||||
</div> -->
|
||||
<div class="title-text">
|
||||
<span :style="{
|
||||
color: option.titleColor,
|
||||
fontSize: option.titleSize + 'px',
|
||||
fontWeight: option.fontWeight,
|
||||
fontStyle: option.fontStyle,
|
||||
marginLeft: option.paddingX + 'px',
|
||||
marginTop: option.paddingY + 'px',
|
||||
letterSpacing: option.letterSpacing + 'px'
|
||||
}">{{ option.title }}</span>
|
||||
</div>
|
||||
<div class="go-alarm-list">
|
||||
<div class="header">
|
||||
<div class="title">
|
||||
<div class="title-prefix">
|
||||
<svg-icon icon-class="rocket" class="title-icon" :style="{ color: option.iconColor }"></svg-icon>
|
||||
</div>
|
||||
<div v-if="option.isShowButton" class="header-right-squares">
|
||||
<!-- <div class="square" style="background-color: #2e69e0"></div>
|
||||
<div class="square" style="background-color: #2e9bf0"></div>
|
||||
<div class="square" style="background-color: #2ef0b3"></div> -->
|
||||
<div class="title-text">
|
||||
<span :style="{ color: option.titleColor, fontSize: option.titleSize + 'px' }">{{ option.title }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-header" :style="{
|
||||
// backgroundColor: option.headerBackgroundColor,
|
||||
height: option.headerHeight + 'px'
|
||||
}">
|
||||
<div v-for="header in option.header" :key="header" class="header-item"
|
||||
:style="{ color: option.headerTextColor, fontSize: option.fontSize + 'px' }">
|
||||
{{ header }}
|
||||
</div>
|
||||
<div class="header-right-squares">
|
||||
<div class="square" style="background-color: #2e69e0"></div>
|
||||
<div class="square" style="background-color: #2e9bf0"></div>
|
||||
<div class="square" style="background-color: #2ef0b3"></div>
|
||||
</div>
|
||||
<div class="table-body">
|
||||
<div v-for="(item, index) in option.dataset" :key="index" class="table-row"
|
||||
:style="{ backgroundColor: option.itemBackgroundColor, height: option.itemHeight + 'px' }">
|
||||
<div class="row-item" :style="{ color: option.textColor, fontSize: option.fontSize + 'px' }">
|
||||
{{ item.event }}
|
||||
</div>
|
||||
<div class="row-item" :style="{ color: option.textColor, fontSize: option.fontSize + 'px' }">
|
||||
{{ item.time }}
|
||||
</div>
|
||||
<div class="row-item" :style="{ color: option.textColor, fontSize: option.fontSize + 'px' }">
|
||||
{{ item.enterprise }}
|
||||
</div>
|
||||
<div class="row-item" :style="{ color: getStatusColor(item.status), fontSize: option.fontSize + 'px' }">
|
||||
{{ item.status }}
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="table-header"
|
||||
:style="{ backgroundColor: option.headerBackgroundColor, height: option.headerHeight + 'px' }"
|
||||
>
|
||||
<div
|
||||
v-for="header in option.header"
|
||||
:key="header"
|
||||
class="header-item"
|
||||
:style="{ color: option.headerTextColor, fontSize: option.fontSize + 'px' }"
|
||||
>
|
||||
{{ header }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-body">
|
||||
<div
|
||||
v-for="(item, index) in option.dataset"
|
||||
:key="index"
|
||||
class="table-row"
|
||||
:style="{ backgroundColor: option.itemBackgroundColor, height: option.itemHeight + 'px' }"
|
||||
>
|
||||
<div class="row-item" :style="{ color: option.textColor, fontSize: option.fontSize + 'px' }">
|
||||
{{ item.event }}
|
||||
</div>
|
||||
<div class="row-item" :style="{ color: option.textColor, fontSize: option.fontSize + 'px' }">
|
||||
{{ item.time }}
|
||||
</div>
|
||||
<div class="row-item" :style="{ color: option.textColor, fontSize: option.fontSize + 'px' }">
|
||||
{{ item.enterprise }}
|
||||
</div>
|
||||
<div class="row-item" :style="{ color: getStatusColor(item.status), fontSize: option.fontSize + 'px' }">
|
||||
{{ item.status }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</SmallBorder>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { PropType, computed } from 'vue'
|
||||
import { option as configOption } from './config'
|
||||
import SmallBorder from '../SmallBorder/index.vue'
|
||||
|
||||
const props = defineProps({
|
||||
chartConfig: {
|
||||
type: Object as PropType<{ option: typeof configOption }>,
|
||||
@ -75,59 +72,48 @@ const getStatusColor = (status: string) => {
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.go-alarm-list {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
// background-color: #2066df;
|
||||
background-color: #0a162b;
|
||||
color: #ffffff;
|
||||
padding: 12px;
|
||||
margin-top: 5px;
|
||||
padding: 15px;
|
||||
box-sizing: border-box;
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 3px;
|
||||
|
||||
margin-bottom: 15px;
|
||||
.title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: -5px;
|
||||
|
||||
// .title-prefix {
|
||||
// width: 40px;
|
||||
// height: 35px;
|
||||
// // background-image: linear-gradient(to bottom, #2e69e0, #1e55a7);
|
||||
// clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%);
|
||||
// display: flex;
|
||||
// justify-content: center;
|
||||
// align-items: center;
|
||||
// margin-left: 0px;
|
||||
|
||||
// .title-icon {
|
||||
// font-size: 22px;
|
||||
// }
|
||||
// }
|
||||
|
||||
.title-prefix {
|
||||
width: 40px;
|
||||
height: 35px;
|
||||
background-image: linear-gradient(to bottom, #2e69e0, #1e55a7);
|
||||
clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.title-icon {
|
||||
font-size: 22px;
|
||||
}
|
||||
}
|
||||
.title-text {
|
||||
height: 35px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
// background-image: linear-gradient(to bottom, #17325f, #0e2142);
|
||||
background-image: linear-gradient(to bottom, #17325f, #0e2142);
|
||||
padding: 0 20px 0 20px;
|
||||
// margin-left: -10px;
|
||||
margin-left: -10px;
|
||||
clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
|
||||
}
|
||||
}
|
||||
|
||||
.header-right-squares {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.square {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
@ -140,48 +126,29 @@ const getStatusColor = (status: string) => {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 10px;
|
||||
background: linear-gradient(to top, #226493c8, #0f2448);
|
||||
border-bottom: 2px solid #4da6ff;
|
||||
|
||||
.header-item {
|
||||
flex: 1 0 25%;
|
||||
margin-right: 1.5em;
|
||||
text-align: left;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.table-body {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
/* 隐藏滚动条 */
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
scrollbar-width: none;
|
||||
|
||||
.table-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 10px;
|
||||
margin-bottom: 4px;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.row-item {
|
||||
flex: 1 0 25%;
|
||||
margin-right: 1.5em;
|
||||
|
||||
text-align: left;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
@ -1,114 +0,0 @@
|
||||
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||
import { LineGraph01Config } from './index'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
import { chartInitConfig } from '@/settings/designSetting'
|
||||
import dataJson from './data.json'
|
||||
export interface DataSourceItem {
|
||||
dataname: string;
|
||||
values: number[];
|
||||
datavalues: (string | number)[][];
|
||||
}
|
||||
export interface DatasType {
|
||||
title: string;
|
||||
names: string[];
|
||||
tip: string;
|
||||
dataIndex: number;
|
||||
dataSource: DataSourceItem[];
|
||||
}
|
||||
|
||||
|
||||
export const includes = ['legend', 'xAxis', 'yAxis', 'grid']
|
||||
export const seriesItem = {
|
||||
type: 'line',
|
||||
smooth: true,
|
||||
symbol: 'none',
|
||||
|
||||
label: {
|
||||
show: false,
|
||||
position: 'top',
|
||||
color: '#fff',
|
||||
fontSize: 12
|
||||
},
|
||||
itemStyle: {
|
||||
color: null,
|
||||
borderRadius: 0
|
||||
},
|
||||
lineStyle: {
|
||||
type: 'solid',
|
||||
width: 2,
|
||||
color: '#50BB9A'
|
||||
},
|
||||
areaStyle: {
|
||||
color: {
|
||||
type: 'linear',
|
||||
x: 0,
|
||||
y: 0,
|
||||
x2: 0,
|
||||
y2: 1,
|
||||
colorStops: [{
|
||||
offset: 0,
|
||||
color: 'rgba(80,187,154,0.6)'
|
||||
}, {
|
||||
offset: 1,
|
||||
color: 'rgba(80,187,154,0.3)'
|
||||
}]
|
||||
}
|
||||
}
|
||||
}
|
||||
export const option = {
|
||||
dataset: {
|
||||
source: dataJson.dataSource[0].datavalues
|
||||
},
|
||||
grid: {
|
||||
left: '15%',
|
||||
right: '12%',
|
||||
top: 9,
|
||||
bottom: '25%'
|
||||
},
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
boundaryGap: false,
|
||||
axisLine: {
|
||||
show: false
|
||||
},
|
||||
axisTick: {
|
||||
show: false
|
||||
|
||||
},
|
||||
axisLabel: {
|
||||
color: '#B7BFC6'
|
||||
}
|
||||
},
|
||||
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
axisLabel: {
|
||||
formatter: '{value}s',
|
||||
color: "#4C535B"
|
||||
},
|
||||
|
||||
axisLine: {
|
||||
show: false
|
||||
},
|
||||
axisTick: {
|
||||
show: false
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
show: false
|
||||
},
|
||||
series: [seriesItem]
|
||||
};
|
||||
|
||||
|
||||
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key: string = LineGraph01Config.key
|
||||
public chartConfig = cloneDeep(LineGraph01Config)
|
||||
public mockData = dataJson
|
||||
// 图表配置项
|
||||
public option = echartOptionProfixHandle(option, includes)
|
||||
public attr = { ...chartInitConfig, x: 0, y: 0, w: 450, h: 300, zIndex: 1 }
|
||||
}
|
||||
|
@ -1,61 +0,0 @@
|
||||
<template>
|
||||
<!-- Echarts 全局设置 -->
|
||||
<global-setting :optionData="optionData"></global-setting>
|
||||
<CollapseItem v-for="(item, index) in seriesList" :key="index" :name="`折线图-${index + 1}`" :expanded="true">
|
||||
<SettingItemBox name="线条">
|
||||
<SettingItem name="宽度">
|
||||
<n-input-number v-model:value="item.lineStyle.width" :min="1" :max="100" size="small"
|
||||
placeholder="自动计算"></n-input-number>
|
||||
</SettingItem>
|
||||
<SettingItem name="类型">
|
||||
<n-select v-model:value="item.lineStyle.type" size="small" :options="lineConf.lineStyle.type"></n-select>
|
||||
</SettingItem>
|
||||
</SettingItemBox>
|
||||
<SettingItemBox name="实心点">
|
||||
<SettingItem name="大小">
|
||||
<n-input-number v-model:value="item.symbolSize" :min="1" :max="100" size="small"
|
||||
placeholder="自动计算"></n-input-number>
|
||||
</SettingItem>
|
||||
</SettingItemBox>
|
||||
<setting-item-box name="标签">
|
||||
<setting-item>
|
||||
<n-space>
|
||||
<n-switch v-model:value="item.label.show" size="small" />
|
||||
<n-text>展示标签</n-text>
|
||||
</n-space>
|
||||
</setting-item>
|
||||
<setting-item name="大小">
|
||||
<n-input-number v-model:value="item.label.fontSize" size="small" :min="1"></n-input-number>
|
||||
</setting-item>
|
||||
<setting-item name="颜色">
|
||||
<n-color-picker size="small" :modes="['hex']" v-model:value="item.label.color"></n-color-picker>
|
||||
</setting-item>
|
||||
<setting-item name="位置">
|
||||
<n-select v-model:value="item.label.position" :options="[
|
||||
{ label: 'top', value: 'top' },
|
||||
{ label: 'left', value: 'left' },
|
||||
{ label: 'right', value: 'right' },
|
||||
{ label: 'bottom', value: 'bottom' }
|
||||
]" />
|
||||
</setting-item>
|
||||
</setting-item-box>
|
||||
</CollapseItem>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { PropType, computed } from 'vue'
|
||||
import { lineConf } from '@/packages/chartConfiguration/echarts/index'
|
||||
import { GlobalThemeJsonType } from '@/settings/chartThemes/index'
|
||||
import { GlobalSetting, CollapseItem, SettingItemBox, SettingItem } from '@/components/Pages/ChartItemSetting'
|
||||
|
||||
const props = defineProps({
|
||||
optionData: {
|
||||
type: Object as PropType<GlobalThemeJsonType>,
|
||||
required: true
|
||||
}
|
||||
})
|
||||
|
||||
const seriesList = computed(() => {
|
||||
return props.optionData.series
|
||||
})
|
||||
</script>
|
@ -1,96 +0,0 @@
|
||||
{
|
||||
"title": "报警处置情况",
|
||||
"names": [
|
||||
"报警总数",
|
||||
"未处置报警数",
|
||||
"平均处置时长"
|
||||
],
|
||||
"tip": "报警处置效率",
|
||||
"dataIndex": 0,
|
||||
"dataSource": [
|
||||
{
|
||||
"dataname": "当日",
|
||||
"values": [
|
||||
2623,
|
||||
2623,
|
||||
2623
|
||||
],
|
||||
"datavalues": [
|
||||
[
|
||||
"时间",
|
||||
"数值"
|
||||
],
|
||||
[
|
||||
"13:00",
|
||||
99
|
||||
],
|
||||
[
|
||||
"14:00",
|
||||
19
|
||||
],
|
||||
[
|
||||
"15:00",
|
||||
75
|
||||
],
|
||||
[
|
||||
"16:00",
|
||||
26
|
||||
],
|
||||
[
|
||||
"17:00",
|
||||
35
|
||||
],
|
||||
[
|
||||
"18:00",
|
||||
20
|
||||
],
|
||||
[
|
||||
"19:00",
|
||||
10
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"dataname": "昨日",
|
||||
"values": [
|
||||
2734,
|
||||
2829,
|
||||
2232
|
||||
],
|
||||
"datavalues": [
|
||||
[
|
||||
"时间",
|
||||
"数值"
|
||||
],
|
||||
[
|
||||
"13:00",
|
||||
12
|
||||
],
|
||||
[
|
||||
"14:00",
|
||||
22
|
||||
],
|
||||
[
|
||||
"15:00",
|
||||
23
|
||||
],
|
||||
[
|
||||
"16:00",
|
||||
3
|
||||
],
|
||||
[
|
||||
"17:00",
|
||||
68
|
||||
],
|
||||
[
|
||||
"18:00",
|
||||
56
|
||||
],
|
||||
[
|
||||
"19:00",
|
||||
45
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 461 B |
@ -1,17 +0,0 @@
|
||||
import { ConfigType, PackagesCategoryEnum, ChartFrameEnum } from '@/packages/index.d'
|
||||
// import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
|
||||
// 曲线图
|
||||
export const LineGraph01Config: ConfigType = {
|
||||
key: 'LineGraph01',
|
||||
chartKey: 'VLineGraph01',
|
||||
conKey: 'VCLineGraph01',
|
||||
title: '曲线图(带边框和标题)',
|
||||
category: 'MyComponents',
|
||||
categoryName: '自定义组件',
|
||||
package: 'Charts',
|
||||
chartFrame: ChartFrameEnum.ECHARTS,
|
||||
image: "LineGraph01.png",
|
||||
}
|
||||
|
||||
// 默认导出配置对象
|
||||
export default LineGraph01Config
|
File diff suppressed because one or more lines are too long
@ -1,114 +0,0 @@
|
||||
import { echartOptionProfixHandle, PublicConfigClass } from '@/packages/public'
|
||||
import { LineGraph02Config } from './index'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
import { chartInitConfig } from '@/settings/designSetting'
|
||||
import dataJson from './data.json'
|
||||
export interface DataSourceItem {
|
||||
dataname: string;
|
||||
values: number[];
|
||||
datavalues: (string | number)[][];
|
||||
}
|
||||
export interface DatasType {
|
||||
title: string;
|
||||
names: string[];
|
||||
tip: string;
|
||||
dataIndex: number;
|
||||
dataSource: DataSourceItem[];
|
||||
}
|
||||
|
||||
|
||||
export const includes = ['legend', 'xAxis', 'yAxis', 'grid']
|
||||
export const seriesItem = {
|
||||
type: 'line',
|
||||
smooth: true,
|
||||
symbol: 'none',
|
||||
|
||||
label: {
|
||||
show: false,
|
||||
position: 'top',
|
||||
color: '#fff',
|
||||
fontSize: 12
|
||||
},
|
||||
itemStyle: {
|
||||
color: null,
|
||||
borderRadius: 0
|
||||
},
|
||||
lineStyle: {
|
||||
type: 'solid',
|
||||
width: 2,
|
||||
color: '#50BB9A'
|
||||
},
|
||||
areaStyle: {
|
||||
color: {
|
||||
type: 'linear',
|
||||
x: 0,
|
||||
y: 0,
|
||||
x2: 0,
|
||||
y2: 1,
|
||||
colorStops: [{
|
||||
offset: 0,
|
||||
color: 'rgba(80,187,154,0.6)'
|
||||
}, {
|
||||
offset: 1,
|
||||
color: 'rgba(80,187,154,0.3)'
|
||||
}]
|
||||
}
|
||||
}
|
||||
}
|
||||
export const option = {
|
||||
dataset: {
|
||||
source: dataJson.dataSource[0].datavalues
|
||||
},
|
||||
grid: {
|
||||
left: '15%',
|
||||
right: '12%',
|
||||
top: 9,
|
||||
bottom: '25%'
|
||||
},
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
boundaryGap: false,
|
||||
axisLine: {
|
||||
show: false
|
||||
},
|
||||
axisTick: {
|
||||
show: false
|
||||
|
||||
},
|
||||
axisLabel: {
|
||||
color: '#B7BFC6'
|
||||
}
|
||||
},
|
||||
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
axisLabel: {
|
||||
formatter: '{value}s',
|
||||
color: "#4C535B"
|
||||
},
|
||||
|
||||
axisLine: {
|
||||
show: false
|
||||
},
|
||||
axisTick: {
|
||||
show: false
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
show: false
|
||||
},
|
||||
series: [seriesItem]
|
||||
};
|
||||
|
||||
|
||||
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key: string = LineGraph02Config.key
|
||||
public chartConfig = cloneDeep(LineGraph02Config)
|
||||
public mockData = dataJson
|
||||
// 图表配置项
|
||||
public option = echartOptionProfixHandle(option, includes)
|
||||
public attr = { ...chartInitConfig, x: 0, y: 0, w: 450, h: 300, zIndex: 1 }
|
||||
}
|
||||
|
@ -1,61 +0,0 @@
|
||||
<template>
|
||||
<!-- Echarts 全局设置 -->
|
||||
<global-setting :optionData="optionData"></global-setting>
|
||||
<CollapseItem v-for="(item, index) in seriesList" :key="index" :name="`折线图-${index + 1}`" :expanded="true">
|
||||
<SettingItemBox name="线条">
|
||||
<SettingItem name="宽度">
|
||||
<n-input-number v-model:value="item.lineStyle.width" :min="1" :max="100" size="small"
|
||||
placeholder="自动计算"></n-input-number>
|
||||
</SettingItem>
|
||||
<SettingItem name="类型">
|
||||
<n-select v-model:value="item.lineStyle.type" size="small" :options="lineConf.lineStyle.type"></n-select>
|
||||
</SettingItem>
|
||||
</SettingItemBox>
|
||||
<SettingItemBox name="实心点">
|
||||
<SettingItem name="大小">
|
||||
<n-input-number v-model:value="item.symbolSize" :min="1" :max="100" size="small"
|
||||
placeholder="自动计算"></n-input-number>
|
||||
</SettingItem>
|
||||
</SettingItemBox>
|
||||
<setting-item-box name="标签">
|
||||
<setting-item>
|
||||
<n-space>
|
||||
<n-switch v-model:value="item.label.show" size="small" />
|
||||
<n-text>展示标签</n-text>
|
||||
</n-space>
|
||||
</setting-item>
|
||||
<setting-item name="大小">
|
||||
<n-input-number v-model:value="item.label.fontSize" size="small" :min="1"></n-input-number>
|
||||
</setting-item>
|
||||
<setting-item name="颜色">
|
||||
<n-color-picker size="small" :modes="['hex']" v-model:value="item.label.color"></n-color-picker>
|
||||
</setting-item>
|
||||
<setting-item name="位置">
|
||||
<n-select v-model:value="item.label.position" :options="[
|
||||
{ label: 'top', value: 'top' },
|
||||
{ label: 'left', value: 'left' },
|
||||
{ label: 'right', value: 'right' },
|
||||
{ label: 'bottom', value: 'bottom' }
|
||||
]" />
|
||||
</setting-item>
|
||||
</setting-item-box>
|
||||
</CollapseItem>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { PropType, computed } from 'vue'
|
||||
import { lineConf } from '@/packages/chartConfiguration/echarts/index'
|
||||
import { GlobalThemeJsonType } from '@/settings/chartThemes/index'
|
||||
import { GlobalSetting, CollapseItem, SettingItemBox, SettingItem } from '@/components/Pages/ChartItemSetting'
|
||||
|
||||
const props = defineProps({
|
||||
optionData: {
|
||||
type: Object as PropType<GlobalThemeJsonType>,
|
||||
required: true
|
||||
}
|
||||
})
|
||||
|
||||
const seriesList = computed(() => {
|
||||
return props.optionData.series
|
||||
})
|
||||
</script>
|
@ -1,96 +0,0 @@
|
||||
{
|
||||
"title": "报警处置情况",
|
||||
"names": [
|
||||
"报警总数",
|
||||
"未处置报警数",
|
||||
"平均处置时长"
|
||||
],
|
||||
"tip": "报警处置效率",
|
||||
"dataIndex": 0,
|
||||
"dataSource": [
|
||||
{
|
||||
"dataname": "当日",
|
||||
"values": [
|
||||
2623,
|
||||
2623,
|
||||
2623
|
||||
],
|
||||
"datavalues": [
|
||||
[
|
||||
"时间",
|
||||
"数值"
|
||||
],
|
||||
[
|
||||
"13:00",
|
||||
99
|
||||
],
|
||||
[
|
||||
"14:00",
|
||||
19
|
||||
],
|
||||
[
|
||||
"15:00",
|
||||
75
|
||||
],
|
||||
[
|
||||
"16:00",
|
||||
26
|
||||
],
|
||||
[
|
||||
"17:00",
|
||||
35
|
||||
],
|
||||
[
|
||||
"18:00",
|
||||
20
|
||||
],
|
||||
[
|
||||
"19:00",
|
||||
10
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"dataname": "昨日",
|
||||
"values": [
|
||||
2734,
|
||||
2829,
|
||||
2232
|
||||
],
|
||||
"datavalues": [
|
||||
[
|
||||
"时间",
|
||||
"数值"
|
||||
],
|
||||
[
|
||||
"13:00",
|
||||
12
|
||||
],
|
||||
[
|
||||
"14:00",
|
||||
22
|
||||
],
|
||||
[
|
||||
"15:00",
|
||||
23
|
||||
],
|
||||
[
|
||||
"16:00",
|
||||
3
|
||||
],
|
||||
[
|
||||
"17:00",
|
||||
68
|
||||
],
|
||||
[
|
||||
"18:00",
|
||||
56
|
||||
],
|
||||
[
|
||||
"19:00",
|
||||
45
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 461 B |
@ -1,17 +0,0 @@
|
||||
import { ConfigType, PackagesCategoryEnum, ChartFrameEnum } from '@/packages/index.d'
|
||||
// import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
|
||||
// 曲线图
|
||||
export const LineGraph02Config: ConfigType = {
|
||||
key: 'LineGraph02',
|
||||
chartKey: 'VLineGraph02',
|
||||
conKey: 'VCLineGraph02',
|
||||
title: '曲线图(无边框和标题)',
|
||||
category: 'MyComponents',
|
||||
categoryName: '自定义组件',
|
||||
package: 'Charts',
|
||||
chartFrame: ChartFrameEnum.ECHARTS,
|
||||
image: "LineGraph02.png",
|
||||
}
|
||||
|
||||
// 默认导出配置对象
|
||||
export default LineGraph02Config
|
@ -1,432 +0,0 @@
|
||||
<template>
|
||||
<div class="go-border-box">
|
||||
<!-- timeshow 按钮,添加点击事件和 ref -->
|
||||
<div class="buttonContent">
|
||||
|
||||
<span class="title">{{ configData.title }}</span>
|
||||
|
||||
<button v-if="isShowButton" class="timeShow" @click="toggleDropdown" ref="buttonRef">
|
||||
{{ configData.dataSource[selectedIndex]?.dataname || '选择数据' }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div v-if="showDropdown" class="dropdown-list" ref="dropdownRef">
|
||||
<div v-for="(item, index) in configData.dataSource" :key="index" class="dropdown-item"
|
||||
:class="{ 'is-active': index === selectedIndex }" @click="selectDataSource(index)">
|
||||
{{ item.dataname }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="textContent">
|
||||
<div class="textInContent">
|
||||
<span class="smallText">{{ configData.names[0] }} </span>
|
||||
<span class="bigText">{{ configData.dataSource[selectedIndex].values[0]?.toLocaleString('en-US')
|
||||
}}</span>
|
||||
</div>
|
||||
<div class="textInContent">
|
||||
<span class="smallText">{{ configData.names[1] }}</span>
|
||||
<span class="bigText">{{ configData.dataSource[selectedIndex].values[1]?.toLocaleString('en-US')
|
||||
}}</span>
|
||||
</div>
|
||||
<div class="textInContent">
|
||||
<span class="smallText">{{ configData.names[2] }}</span>
|
||||
<span class="bigText">{{ configData.dataSource[selectedIndex].values[2]?.toLocaleString('en-US')
|
||||
}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="chartsContent">
|
||||
<span class="smallText Tips">
|
||||
<img class="icon" src="./icon01.png" alt="">
|
||||
{{ configData.tip }}</span>
|
||||
<v-chart ref="vChartRef" :init-options="initOptions" :theme="themeColor" :option="chartOption" :update-options="{
|
||||
replaceMerge: replaceMergeArr
|
||||
}" autoresize>
|
||||
</v-chart>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { PropType, computed, watch, ref, nextTick, onMounted, onUnmounted } from 'vue'
|
||||
import VChart from 'vue-echarts'
|
||||
import { useCanvasInitOptions } from '@/hooks/useCanvasInitOptions.hook'
|
||||
import { use } from 'echarts/core'
|
||||
import { CanvasRenderer } from 'echarts/renderers'
|
||||
import { LineChart } from 'echarts/charts'
|
||||
import Config, { DatasType, includes, seriesItem } from './config'
|
||||
import { mergeTheme } from '@/packages/public/chart'
|
||||
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
||||
import { useChartDataFetch } from '@/hooks'
|
||||
import { DatasetComponent, GridComponent, TooltipComponent, LegendComponent } from 'echarts/components'
|
||||
import isObject from 'lodash/isObject'
|
||||
|
||||
const isShowButton = false;
|
||||
|
||||
const props = defineProps({
|
||||
themeSetting: {
|
||||
type: Object,
|
||||
required: true
|
||||
},
|
||||
themeColor: {
|
||||
type: Object,
|
||||
required: true
|
||||
},
|
||||
chartConfig: {
|
||||
type: Object as PropType<Config>,
|
||||
required: true
|
||||
}
|
||||
})
|
||||
|
||||
const initOptions = useCanvasInitOptions(props.chartConfig.option, props.themeSetting)
|
||||
|
||||
use([DatasetComponent, CanvasRenderer, LineChart, GridComponent, TooltipComponent, LegendComponent])
|
||||
|
||||
const replaceMergeArr = ref<string[]>()
|
||||
|
||||
|
||||
const showDropdown = ref(false); // 控制下拉列表显示/隐藏
|
||||
const selectedIndex = ref(0); // 当前选中的数据源索引
|
||||
|
||||
const buttonRef = ref<HTMLElement | null>(null);
|
||||
const dropdownRef = ref<HTMLElement | null>(null);
|
||||
|
||||
|
||||
// 辅助函数:解析 mockData
|
||||
const parseMockData = (mockData: any): DatasType => {
|
||||
const DEFAULT_MOCK_DATA: DatasType = {
|
||||
title: '默认标题',
|
||||
names: ['项1', '项2', '项3'],
|
||||
tip: "默认提示",
|
||||
dataIndex: 0,
|
||||
dataSource: [{
|
||||
dataname: '默认数据',
|
||||
values: [0, 0, 0],
|
||||
datavalues: [
|
||||
['维度', '数值'],
|
||||
['0', 0],
|
||||
['1', 0],
|
||||
['2', 0]
|
||||
]
|
||||
}]
|
||||
};
|
||||
|
||||
let parsedData: DatasType;
|
||||
if (typeof mockData === 'string') {
|
||||
try {
|
||||
const tempParsed = JSON.parse(mockData);
|
||||
parsedData = (typeof tempParsed === 'object' && tempParsed !== null) ? tempParsed : DEFAULT_MOCK_DATA;
|
||||
} catch (e) {
|
||||
console.error('解析 mockData 字符串失败:', e);
|
||||
parsedData = DEFAULT_MOCK_DATA;
|
||||
}
|
||||
} else if (typeof mockData === 'object' && mockData !== null) {
|
||||
parsedData = mockData;
|
||||
} else {
|
||||
parsedData = DEFAULT_MOCK_DATA;
|
||||
}
|
||||
|
||||
if (parsedData.dataIndex === undefined || parsedData.dataIndex < 0 || parsedData.dataIndex >= parsedData.dataSource.length) {
|
||||
parsedData.dataIndex = 0;
|
||||
}
|
||||
|
||||
if (!parsedData.dataSource || parsedData.dataSource.length === 0) {
|
||||
parsedData.dataSource = DEFAULT_MOCK_DATA.dataSource;
|
||||
}
|
||||
|
||||
if (!parsedData.names || parsedData.names.length === 0) parsedData.names = DEFAULT_MOCK_DATA.names;
|
||||
|
||||
|
||||
return parsedData;
|
||||
};
|
||||
|
||||
|
||||
const configData = computed<DatasType>(() => {
|
||||
return parseMockData(props.chartConfig.mockData);
|
||||
});
|
||||
|
||||
// 监听 mockData 变化,并初始化 selectedIndex
|
||||
watch(
|
||||
() => props.chartConfig.mockData,
|
||||
(newMockData) => {
|
||||
const parsedData = parseMockData(newMockData);
|
||||
selectedIndex.value = parsedData.dataIndex;
|
||||
},
|
||||
{ immediate: true, deep: true }
|
||||
);
|
||||
|
||||
|
||||
|
||||
const chartOption = computed(() => {
|
||||
const mergedOption = mergeTheme(props.chartConfig.option, props.themeSetting, includes);
|
||||
|
||||
|
||||
const currentDataSourceItem = configData.value.dataSource[selectedIndex.value];
|
||||
const currentDatavalues = currentDataSourceItem ? currentDataSourceItem.datavalues : [];
|
||||
|
||||
|
||||
if (!mergedOption.dataset) {
|
||||
mergedOption.dataset = {};
|
||||
}
|
||||
mergedOption.dataset.source = currentDatavalues;
|
||||
|
||||
return mergedOption;
|
||||
});
|
||||
|
||||
const wrapperStyle = computed(() => ({
|
||||
width: props.chartConfig.attr.w + 'px',
|
||||
height: "16%"
|
||||
}))
|
||||
|
||||
|
||||
// dataset 无法变更条数的补丁 (保持不变)
|
||||
watch(
|
||||
() => props.chartConfig.option.dataset,
|
||||
(newData: { dimensions: any }, oldData) => {
|
||||
try {
|
||||
if (!isObject(newData) || !('dimensions' in newData)) return
|
||||
if (Array.isArray(newData?.dimensions)) {
|
||||
const seriesArr = []
|
||||
for (let i = 0; i < newData.dimensions.length - 1; i++) {
|
||||
seriesArr.push(seriesItem)
|
||||
}
|
||||
replaceMergeArr.value = ['series']
|
||||
props.chartConfig.option.series = seriesArr
|
||||
nextTick(() => {
|
||||
replaceMergeArr.value = []
|
||||
})
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
},
|
||||
{
|
||||
deep: false
|
||||
}
|
||||
)
|
||||
|
||||
const { vChartRef } = useChartDataFetch(props.chartConfig, useChartEditStore, (newData: any) => {
|
||||
|
||||
});
|
||||
|
||||
|
||||
const toggleDropdown = () => {
|
||||
showDropdown.value = !showDropdown.value;
|
||||
};
|
||||
|
||||
|
||||
const selectDataSource = (index: number) => {
|
||||
selectedIndex.value = index;
|
||||
showDropdown.value = false;
|
||||
};
|
||||
|
||||
const handleClickOutside = (event: MouseEvent) => {
|
||||
if (showDropdown.value && dropdownRef.value && buttonRef.value &&
|
||||
!dropdownRef.value.contains(event.target as Node) &&
|
||||
!buttonRef.value.contains(event.target as Node)) {
|
||||
showDropdown.value = false;
|
||||
}
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
document.addEventListener('click', handleClickOutside);
|
||||
});
|
||||
|
||||
|
||||
onUnmounted(() => {
|
||||
document.removeEventListener('click', handleClickOutside);
|
||||
});
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
export default {
|
||||
name: 'Componentz01'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@include go(border-box) {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.textContent {
|
||||
padding-top: 20px;
|
||||
/* background-color: brown; */
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: 30%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.textInContent {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.chartsContent {
|
||||
width: 100%;
|
||||
height: 80%;
|
||||
/* background-color: blue; */
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.textInContent .smallText {
|
||||
font-size: 11px;
|
||||
color: #a9a9a9;
|
||||
}
|
||||
|
||||
.textInContent .bigText {
|
||||
font-size: 18px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.08em;
|
||||
color: transparent;
|
||||
margin-top: 0.3em;
|
||||
|
||||
}
|
||||
|
||||
.textContent :nth-child(1) .bigText {
|
||||
background: linear-gradient(to right, #ffdc92, #F7BDA7);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.textContent :nth-child(2) .bigText {
|
||||
background: linear-gradient(to right, #86D8F3, #6CDEDF);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.textContent :nth-child(3) .bigText {
|
||||
background: linear-gradient(to right, #6CDFBE, #A2E9D9);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.Tips {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
font-size: 10px;
|
||||
margin-top: 9px;
|
||||
margin-bottom: 8px;
|
||||
margin-left: 10px;
|
||||
height: 1.6em;
|
||||
/* width: 8em; */
|
||||
width: fit-content;
|
||||
padding: 0.23em 0.4em;
|
||||
color: rgb(210, 210, 210);
|
||||
background-color: #273F40;
|
||||
border-radius: 7px;
|
||||
letter-spacing: 0.1em;
|
||||
}
|
||||
|
||||
.icon {
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
.border {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.timeShow {
|
||||
background-color: #086C67;
|
||||
border-radius: 10px;
|
||||
// position: absolute;
|
||||
// right: 6px;
|
||||
// top: 12px;
|
||||
color: white;
|
||||
display: inline-flex;
|
||||
height: 1.5em;
|
||||
align-items: center;
|
||||
padding-right: 5px;
|
||||
border: 0;
|
||||
cursor: pointer;
|
||||
z-index: 10;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.timeShow::after {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-left: 5px solid transparent;
|
||||
border-right: 5px solid transparent;
|
||||
border-top: 5px solid white;
|
||||
margin-left: 5px;
|
||||
|
||||
}
|
||||
|
||||
.dropdown-list {
|
||||
position: absolute;
|
||||
top: 45px;
|
||||
right: 6px;
|
||||
background-color: #1a2a3a;
|
||||
border: 1px solid #086C67;
|
||||
border-radius: 5px;
|
||||
z-index: 999;
|
||||
min-width: 100px;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
||||
padding: 5px 0;
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.dropdown-item {
|
||||
padding: 8px 12px;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
transition: background-color 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
background-color: #0d4a46;
|
||||
}
|
||||
|
||||
&.is-active {
|
||||
background-color: #086C67; // 选中项的背景色
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.buttonContent {
|
||||
margin-top: 5px;
|
||||
padding-right: 10px;
|
||||
padding-left: 5.2em;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
// background-color: #6CDEDF;
|
||||
}
|
||||
|
||||
|
||||
.buttonContent span {
|
||||
|
||||
font-size: 15px;
|
||||
color: #ffffff;
|
||||
letter-spacing: 2px;
|
||||
font-weight: 550;
|
||||
text-shadow: -4px -4px 10px #3B8ED4;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
}
|
||||
</style>
|
@ -1,58 +0,0 @@
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { MaxTrimConfig } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
import { chartInitConfig } from '@/settings/designSetting'
|
||||
|
||||
export enum WritingModeEnum {
|
||||
HORIZONTAL = '水平',
|
||||
VERTICAL = '垂直'
|
||||
}
|
||||
|
||||
export const WritingModeObject = {
|
||||
[WritingModeEnum.HORIZONTAL]: 'horizontal-tb',
|
||||
[WritingModeEnum.VERTICAL]: 'vertical-rl'
|
||||
}
|
||||
|
||||
export enum FontWeightEnum {
|
||||
NORMAL = '常规',
|
||||
BOLD = '加粗',
|
||||
}
|
||||
|
||||
export enum FontStyleEnum {
|
||||
NORMAL = '常规',
|
||||
ITALIC = '斜体',
|
||||
}
|
||||
|
||||
export const FontWeightObject = {
|
||||
[FontWeightEnum.NORMAL]: 'normal',
|
||||
[FontWeightEnum.BOLD]: 'bold',
|
||||
}
|
||||
|
||||
export const FontStyleObject = {
|
||||
[FontStyleEnum.NORMAL]: 'normal',
|
||||
[FontStyleEnum.ITALIC]: 'italic',
|
||||
}
|
||||
|
||||
export const option = {
|
||||
dataset: '储罐区监控',
|
||||
fontSize: 38,
|
||||
fontColor: '#ffffff',
|
||||
paddingX: 35,
|
||||
paddingY: 6,
|
||||
textAlign: 'start', // 水平对齐方式
|
||||
fontWeight: 'bold',
|
||||
fontStyle: 'italic',
|
||||
// 字间距
|
||||
letterSpacing: 10,
|
||||
writingMode: 'horizontal-tb',
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = MaxTrimConfig.key
|
||||
public chartConfig = cloneDeep(MaxTrimConfig)
|
||||
public attr = { ...chartInitConfig, x: 0, y: 0, w: 1920, h: 94, zIndex: 1 }
|
||||
public option = cloneDeep(option)
|
||||
}
|
@ -1,96 +0,0 @@
|
||||
<template>
|
||||
<collapse-item name="信息" :expanded="true">
|
||||
<setting-item-box name="标题" :alone="true">
|
||||
<setting-item>
|
||||
<n-input v-model:value="optionData.dataset" type="textarea" size="small"></n-input>
|
||||
</setting-item>
|
||||
</setting-item-box>
|
||||
</collapse-item>
|
||||
|
||||
<collapse-item name="样式" :expanded="true">
|
||||
<setting-item-box name="标题">
|
||||
<setting-item name="颜色">
|
||||
<n-color-picker size="small" :modes="['hex']" v-model:value="optionData.fontColor"></n-color-picker>
|
||||
</setting-item>
|
||||
<setting-item name="阴影颜色">
|
||||
<n-color-picker size="small" :modes="['hex']" v-model:value="optionData.fontShadowColor"></n-color-picker>
|
||||
</setting-item>
|
||||
<setting-item name="字体大小">
|
||||
<n-input-number v-model:value="optionData.fontSize" size="small" placeholder="字体大小"></n-input-number>
|
||||
</setting-item>
|
||||
<setting-item name="字体粗细">
|
||||
<n-select v-model:value="optionData.fontWeight" size="small" :options="fontWeightOptions" />
|
||||
</setting-item>
|
||||
<setting-item name="字体风格">
|
||||
<n-select v-model:value="optionData.fontStyle" size="small" :options="fontStyleOptions" />
|
||||
</setting-item>
|
||||
<setting-item name="X轴内边距">
|
||||
<n-input-number v-model:value="optionData.paddingX" size="small" placeholder="输入内边距"></n-input-number>
|
||||
</setting-item>
|
||||
<setting-item name="Y轴内边距">
|
||||
<n-input-number v-model:value="optionData.paddingY" size="small" placeholder="输入内边距"></n-input-number>
|
||||
</setting-item>
|
||||
|
||||
<setting-item name="水平对齐">
|
||||
<n-select v-model:value="optionData.textAlign" size="small" :options="textAlignOptions" />
|
||||
</setting-item>
|
||||
<setting-item name="文本方向">
|
||||
<n-select v-model:value="optionData.writingMode" size="small" :options="verticalOptions" />
|
||||
</setting-item>
|
||||
|
||||
<setting-item name="字间距">
|
||||
<n-input-number v-model:value="optionData.letterSpacing" size="small" placeholder="输入字间距"></n-input-number>
|
||||
</setting-item>
|
||||
</setting-item-box>
|
||||
</collapse-item>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { PropType } from 'vue'
|
||||
import { option, WritingModeEnum, WritingModeObject, FontWeightEnum, FontWeightObject, FontStyleEnum, FontStyleObject } from './config'
|
||||
import { CollapseItem, SettingItemBox, SettingItem } from '@/components/Pages/ChartItemSetting'
|
||||
const props = defineProps({
|
||||
optionData: {
|
||||
type: Object as PropType<typeof option>,
|
||||
required: true
|
||||
}
|
||||
})
|
||||
|
||||
const textAlignOptions = [
|
||||
{ label: '左对齐', value: 'start' },
|
||||
{ label: '居中', value: 'center' },
|
||||
{ label: '右对齐', value: 'end' }
|
||||
]
|
||||
|
||||
const verticalOptions = [
|
||||
{
|
||||
label: WritingModeEnum.HORIZONTAL,
|
||||
value: WritingModeObject[WritingModeEnum.HORIZONTAL]
|
||||
},
|
||||
{
|
||||
label: WritingModeEnum.VERTICAL,
|
||||
value: WritingModeObject[WritingModeEnum.VERTICAL]
|
||||
}
|
||||
]
|
||||
const fontWeightOptions = [
|
||||
{
|
||||
label: FontWeightEnum.NORMAL,
|
||||
value: FontWeightObject[FontWeightEnum.NORMAL]
|
||||
},
|
||||
{
|
||||
label: FontWeightEnum.BOLD,
|
||||
value: FontWeightObject[FontWeightEnum.BOLD]
|
||||
}
|
||||
]
|
||||
const fontStyleOptions = [
|
||||
{
|
||||
label: FontStyleEnum.NORMAL,
|
||||
value: FontStyleObject[FontStyleEnum.NORMAL]
|
||||
},
|
||||
{
|
||||
label: FontStyleEnum.ITALIC,
|
||||
value: FontStyleObject[FontStyleEnum.ITALIC]
|
||||
}
|
||||
]
|
||||
|
||||
</script>
|
@ -1,14 +0,0 @@
|
||||
import { ConfigType, ChartFrameEnum } from '@/packages/index.d'
|
||||
|
||||
export const MaxTrimConfig: ConfigType = {
|
||||
key: 'MaxTrim',
|
||||
chartKey: 'VMaxTrim',
|
||||
conKey: 'VCMaxTrim',
|
||||
title: '最大装饰条',
|
||||
category: 'MyComponents',
|
||||
categoryName: '自定义组件',
|
||||
package: 'Charts',
|
||||
chartFrame: ChartFrameEnum.COMMON,
|
||||
image: 'MaxTrim.png'
|
||||
}
|
||||
export default MaxTrimConfig
|
File diff suppressed because one or more lines are too long
@ -1,18 +0,0 @@
|
||||
import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { SmallBorderConfig } from './index'
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
import { chartInitConfig } from '@/settings/designSetting'
|
||||
|
||||
export const option = {
|
||||
colors: ['#1089ff', '#0000ff'],
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = SmallBorderConfig.key
|
||||
public chartConfig = cloneDeep(SmallBorderConfig)
|
||||
public option = cloneDeep(option)
|
||||
public attr = { ...chartInitConfig, x: 0, y: 0, w: 450, h: 300, zIndex: 1 }
|
||||
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
<template>
|
||||
<CollapseItem name="边框" :expanded="true">
|
||||
<SettingItemBox
|
||||
:name="`颜色-${index + 1}`"
|
||||
v-for="(item, index) in optionData.colors"
|
||||
:key="index"
|
||||
>
|
||||
<SettingItem name="颜色">
|
||||
<n-color-picker
|
||||
size="small"
|
||||
:modes="['hex']"
|
||||
v-model:value="optionData.colors[index]"
|
||||
></n-color-picker>
|
||||
</SettingItem>
|
||||
<SettingItem>
|
||||
<n-button
|
||||
size="small"
|
||||
@click="optionData.colors[index] = option.colors[index]"
|
||||
>
|
||||
恢复默认
|
||||
</n-button>
|
||||
</SettingItem>
|
||||
</SettingItemBox>
|
||||
</CollapseItem>
|
||||
|
||||
<CollapseItem name="背景" :expanded="true">
|
||||
<SettingItemBox name="颜色">
|
||||
<SettingItem>
|
||||
<n-color-picker
|
||||
size="small"
|
||||
:modes="['hex']"
|
||||
v-model:value="optionData.backgroundColor"
|
||||
></n-color-picker>
|
||||
</SettingItem>
|
||||
</SettingItemBox>
|
||||
</CollapseItem>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { PropType } from 'vue'
|
||||
import {
|
||||
CollapseItem,
|
||||
SettingItemBox,
|
||||
SettingItem
|
||||
} from '@/components/Pages/ChartItemSetting'
|
||||
import { option } from './config'
|
||||
|
||||
const props = defineProps({
|
||||
optionData: {
|
||||
type: Object as PropType<typeof option>,
|
||||
required: true
|
||||
}
|
||||
})
|
||||
</script>
|
@ -1,17 +0,0 @@
|
||||
import { ConfigType, PackagesCategoryEnum, ChartFrameEnum } from '@/packages/index.d'
|
||||
// import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d'
|
||||
// 曲线图
|
||||
export const SmallBorderConfig: ConfigType = {
|
||||
key: 'SmallBorder',
|
||||
chartKey: 'VSmallBorder',
|
||||
conKey: 'VCSmallBorder',
|
||||
title: '带标题小边框',
|
||||
category: 'MyComponents',
|
||||
categoryName: '自定义组件',
|
||||
package: 'Charts',
|
||||
chartFrame: ChartFrameEnum.COMMON,
|
||||
image: "SmallBorder.png",
|
||||
}
|
||||
|
||||
// 默认导出配置对象
|
||||
export default SmallBorderConfig
|
File diff suppressed because one or more lines are too long
@ -2,29 +2,24 @@ import { PublicConfigClass } from '@/packages/public'
|
||||
import { CreateComponentType } from '@/packages/index.d'
|
||||
import { TopAlarmsConfig } from './index'
|
||||
import dataJson from './data.json'
|
||||
import { chartInitConfig } from '@/settings/designSetting'
|
||||
|
||||
export const option = {
|
||||
dataset: dataJson.source,
|
||||
title: '未处置报警数TOP5',
|
||||
titleColor: '#ffffff',
|
||||
titleSize: 17,
|
||||
rankColor: '#5AA1AD',
|
||||
nameColor: '#eeeeee',
|
||||
valueColor: '#eeeeee',
|
||||
barColorStart: '#2f72b5',
|
||||
barColorEnd: '#99C6E6',
|
||||
titleSize: 18,
|
||||
rankColor: '#ffffff',
|
||||
nameColor: '#B0E0E6',
|
||||
valueColor: '#ffffff',
|
||||
barColorStart: '#00D9FF',
|
||||
barColorEnd: '#0055FF',
|
||||
dropdownOptions: ['当日', '当月', '当年'],
|
||||
dropdownDefault: '当日',
|
||||
iconColor: '#00E5FF',
|
||||
letterSpacing:2,
|
||||
paddingX: 40,
|
||||
paddingY: -5,
|
||||
isShowButton: false
|
||||
iconColor: '#00E5FF'
|
||||
}
|
||||
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = TopAlarmsConfig.key
|
||||
public chartConfig = TopAlarmsConfig
|
||||
public option = option
|
||||
public attr = { ...chartInitConfig, x: 0, y: 0, w: 450, h: 300, zIndex: 1 }
|
||||
}
|
||||
|
@ -1,64 +1,54 @@
|
||||
<template>
|
||||
<SmallBorder class="SmallBorder">
|
||||
<div class="go-top-alarms">
|
||||
<div class="header">
|
||||
<div class="title">
|
||||
<!-- <div class="title-prefix">
|
||||
<svg-icon icon-class="rocket" class="title-icon" :style="{ color: option.iconColor }"></svg-icon>
|
||||
</div> -->
|
||||
<div class="title-text">
|
||||
<span :style="{
|
||||
color: option.titleColor,
|
||||
fontSize: option.titleSize + 'px',
|
||||
marginTop: option.paddingY + 'px',
|
||||
marginLeft: option.paddingX + 'px',
|
||||
letterSpacing: option.letterSpacing + 'px'
|
||||
}">{{ option.title }}</span>
|
||||
</div>
|
||||
<div class="go-top-alarms">
|
||||
<div class="header">
|
||||
<div class="title">
|
||||
<div class="title-prefix">
|
||||
<svg-icon icon-class="rocket" class="title-icon" :style="{ color: option.iconColor }"></svg-icon>
|
||||
</div>
|
||||
<div class="title-text">
|
||||
<span :style="{ color: option.titleColor, fontSize: option.titleSize + 'px' }">{{ option.title }}</span>
|
||||
</div>
|
||||
<n-dropdown v-if='option.isShowButton' trigger="hover" :options="dropdownOptions" @select="handleSelect">
|
||||
<div class="dropdown-button">
|
||||
{{ selectedOption }}
|
||||
<svg-icon icon-class="arrow-down" class="arrow-down-icon" />
|
||||
</div>
|
||||
</n-dropdown>
|
||||
</div>
|
||||
<div class="content">
|
||||
<ul>
|
||||
<li v-for="(item, index) in option.dataset" :key="index" class="alarm-item">
|
||||
<div class="item-info">
|
||||
<span class="rank" :style="{ color: option.rankColor }">
|
||||
<span class="rank-icon"></span>
|
||||
{{ item.rank }}
|
||||
</span>
|
||||
<span class="name" :style="{ color: option.nameColor }">{{ item.name }}</span>
|
||||
|
||||
</div>
|
||||
<div class="item-value">
|
||||
<span class="value" :style="{ color: option.valueColor }">{{ item.value }}</span>
|
||||
</div>
|
||||
|
||||
<div class="progress-bar-wrapper">
|
||||
<div class="progress-bar">
|
||||
<div class="progress" :style="{
|
||||
<n-dropdown trigger="hover" :options="dropdownOptions" @select="handleSelect">
|
||||
<div class="dropdown-button">
|
||||
{{ selectedOption }}
|
||||
<svg-icon icon-class="arrow-down" class="arrow-down-icon" />
|
||||
</div>
|
||||
</n-dropdown>
|
||||
</div>
|
||||
<div class="content">
|
||||
<ul>
|
||||
<li v-for="(item, index) in option.dataset" :key="index" class="alarm-item">
|
||||
<div class="item-info">
|
||||
<span class="rank" :style="{ color: option.rankColor }">
|
||||
<span class="rank-icon"></span>
|
||||
{{ item.rank }}
|
||||
</span>
|
||||
<span class="name" :style="{ color: option.nameColor }">{{ item.name }}</span>
|
||||
</div>
|
||||
<div class="item-value">
|
||||
<span class="value" :style="{ color: option.valueColor }">{{ item.value }}</span>
|
||||
</div>
|
||||
<div class="progress-bar-wrapper">
|
||||
<div class="progress-bar">
|
||||
<div
|
||||
class="progress"
|
||||
:style="{
|
||||
width: calculateWidth(item.value),
|
||||
background: `linear-gradient(to right, ${option.barColorStart}, ${option.barColorEnd})`
|
||||
}"></div>
|
||||
</div>
|
||||
}"
|
||||
></div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</SmallBorder>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, computed, PropType } from 'vue'
|
||||
import { option as configOption } from './config'
|
||||
import SmallBorder from '../SmallBorder/index.vue'
|
||||
|
||||
|
||||
const props = defineProps({
|
||||
chartConfig: {
|
||||
@ -94,18 +84,10 @@ const handleSelect = (key: string) => {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.SmallBorder {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.go-top-alarms {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin-top: -10px;
|
||||
// background-color: #0a162b;
|
||||
background-color: #0a162b;
|
||||
padding: 15px;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
@ -121,28 +103,25 @@ const handleSelect = (key: string) => {
|
||||
.title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
// .title-prefix {
|
||||
// width: 40px;
|
||||
// height: 35px;
|
||||
// background-image: linear-gradient(to bottom, #2e69e0, #1e55a7);
|
||||
// clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%);
|
||||
// display: flex;
|
||||
// justify-content: center;
|
||||
// align-items: center;
|
||||
|
||||
// .title-icon {
|
||||
// font-size: 22px;
|
||||
// }
|
||||
// }
|
||||
|
||||
.title-prefix {
|
||||
width: 40px;
|
||||
height: 35px;
|
||||
background-image: linear-gradient(to bottom, #2e69e0, #1e55a7);
|
||||
clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.title-icon {
|
||||
font-size: 22px;
|
||||
}
|
||||
}
|
||||
.title-text {
|
||||
height: 35px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
// background-image: linear-gradient(to bottom, #17325f, #0e2142);
|
||||
background-image: linear-gradient(to bottom, #17325f, #0e2142);
|
||||
padding: 0 20px 0 20px;
|
||||
margin-left: 0px;
|
||||
margin-left: -10px;
|
||||
clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
|
||||
}
|
||||
}
|
||||
@ -157,7 +136,6 @@ const handleSelect = (key: string) => {
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
color: #fff;
|
||||
|
||||
.arrow-down-icon {
|
||||
margin-left: 8px;
|
||||
font-size: 14px;
|
||||
@ -167,10 +145,6 @@ const handleSelect = (key: string) => {
|
||||
|
||||
.content {
|
||||
flex: 1;
|
||||
margin-top: -15px;
|
||||
padding-right: 10px;
|
||||
font-size: 12.5px;
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
@ -190,10 +164,7 @@ const handleSelect = (key: string) => {
|
||||
'info value'
|
||||
'bar bar';
|
||||
align-items: center;
|
||||
// margin-right: 10px;
|
||||
padding: 0 10px;
|
||||
gap: 6px 15px;
|
||||
// background-color: antiquewhite;
|
||||
gap: 5px 15px;
|
||||
|
||||
.item-info {
|
||||
grid-area: info;
|
||||
@ -202,61 +173,52 @@ const handleSelect = (key: string) => {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
// background-color: yellowgreen;
|
||||
|
||||
.rank {
|
||||
font-weight: normal;
|
||||
font-weight: bold;
|
||||
margin-right: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
// background-color: #fff;
|
||||
|
||||
.rank-icon {
|
||||
display: inline-block;
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background-color: #00e5ff;
|
||||
margin-right: 8px;
|
||||
margin-left: 6px;
|
||||
box-shadow: 0 0 6px #00e5ff;
|
||||
box-shadow: 0 0 5px #00e5ff;
|
||||
}
|
||||
}
|
||||
|
||||
.name {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
flex-grow: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.item-value {
|
||||
grid-area: value;
|
||||
text-align: right;
|
||||
// font-size: 16px;
|
||||
font-weight: normal;
|
||||
// background-color: aquamarine;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.progress-bar-wrapper {
|
||||
grid-area: bar;
|
||||
width: calc(100% - 60px);
|
||||
/* Adjust width to not overlap value */
|
||||
width: calc(100% - 60px); /* Adjust width to not overlap value */
|
||||
position: relative;
|
||||
left: 20px;
|
||||
/* Align with name */
|
||||
left: 60px; /* Align with name */
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 5px;
|
||||
// background-color: rgba(42, 58, 91, 0.5);
|
||||
border-radius: 1px;
|
||||
background-color: rgba(42, 58, 91, 0.5);
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
|
||||
.progress {
|
||||
height: 100%;
|
||||
border-radius: 1px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,14 +6,8 @@ import { WorkshopSceneConfig } from './WorkshopScene/index'
|
||||
import { DeviceStatusConfig } from './DeviceStatus/index'
|
||||
import { LineDropdownConfig } from './LineDropdown/index'
|
||||
import { PieCenterConfig } from './PieCenter/index'
|
||||
// import { LineGraph01Config } from './LineGraph01/index'
|
||||
// import { LineGraph02Config } from './LineGraph02/index'
|
||||
import { MaxTrimConfig } from './MaxTrim/index'
|
||||
import { SmallBorderConfig } from './SmallBorder/index'
|
||||
|
||||
|
||||
export default [
|
||||
SmallBorderConfig,
|
||||
AlarmListConfig,
|
||||
SceneDistributionConfig,
|
||||
TopAlarmsConfig,
|
||||
@ -22,7 +16,4 @@ export default [
|
||||
DeviceStatusConfig,
|
||||
LineDropdownConfig,
|
||||
PieCenterConfig,
|
||||
MaxTrimConfig,
|
||||
// LineGraph01Config,
|
||||
// LineGraph02Config,
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user