diff --git a/hx-ai-intelligent/src/api/alarmSettings/energyAlarm.ts b/hx-ai-intelligent/src/api/alarmSettings/energyAlarm.ts
index 0ea6ebc..88a661d 100644
--- a/hx-ai-intelligent/src/api/alarmSettings/energyAlarm.ts
+++ b/hx-ai-intelligent/src/api/alarmSettings/energyAlarm.ts
@@ -2,8 +2,8 @@ export enum energyAlarms {
getTableList = '/carbon-smart/api/AlarmEnergyConsumption/selectAlarmEnergyConsumption', //能耗告警分页
addOrUpNewData = '/carbon-smart/api/AlarmEnergyConsumption/creatOrUpdate', //能耗告警添加 修改
del = '/carbon-smart/api/AlarmEnergyConsumption/delete', //能耗删除
- configGetTableList = '/carbon-smart/api/AlarmEquipmentRule/selectAlarmEquipmentRule', //配置设备告警分页
- configAddOrUpNewData = '/carbon-smart/api/AlarmEquipmentRule/creatOrUpdate', //配置设备告警添加 修改
- configFindById = '/carbon-smart/api/AlarmEquipmentRule/findById', //配置设备告警 查询详情
- configDel = '/carbon-smart/api/AlarmEquipmentRule/delete', //配置设备告警删除
+ configGetTableList = '/carbon-smart/api/AlarmEnergyConsumptionRule/selectAlarmEnergyConsumptionRule', //配置设备告警分页
+ configAddOrUpNewData = '/carbon-smart/api/AlarmEnergyConsumptionRule/creatOrUpdate', //配置设备告警添加 修改
+ configFindById = '/carbon-smart/api/AlarmEnergyConsumptionRule/findById', //配置设备告警 查询详情
+ configDel = '/carbon-smart/api/AlarmEnergyConsumptionRule/delete', //配置设备告警删除
}
diff --git a/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts b/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts
index 8f30f9a..7783915 100644
--- a/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts
+++ b/hx-ai-intelligent/src/api/carbonEmissionFactorLibrary.ts
@@ -8,6 +8,9 @@ export enum carbonEmissionFactorLibrary {
getCarbonFactorTree = '/carbon-smart/api/carbon/emission/type/getCarbonFactorTree',
creat = '/carbon-smart/api/carbon/emission/type/creatOrUpdate',
delTreeNode = '/carbon-smart/api/carbon/emission/type/del',
+ // 单位管理
+ dictionaryUnitManagement = '/carbon-smart/api/carbon/emission/factor/dictionaryUnitManagement',
+ findOutermost = '/carbon-smart/api/carbon/emission/factor/findOutermost',
}
// 碳排管理-碳排统计接口
export enum energyConsumption {
diff --git a/hx-ai-intelligent/src/view/alarmManagement/alarmOverview/index.vue b/hx-ai-intelligent/src/view/alarmManagement/alarmOverview/index.vue
index bf0c008..4793714 100644
--- a/hx-ai-intelligent/src/view/alarmManagement/alarmOverview/index.vue
+++ b/hx-ai-intelligent/src/view/alarmManagement/alarmOverview/index.vue
@@ -30,7 +30,9 @@
style="flex: 1; height: 100%; background-color: white; border-radius: 4px; padding: 12px">
@@ -49,8 +51,10 @@
const info = ref({});
let chartInstance: echarts.ECharts | null = null;
let chartInstanceOne: echarts.ECharts | null = null;
+ let chartInstanceTow: echarts.ECharts | null = null;
const graphChart = ref(null);
const echartPieOne = ref(null);
+ const echartPieTow = ref(null);
const getGraphChart = () => {
let dayData = [];
let energyAlarm = [];
@@ -294,7 +298,7 @@
},
textAlign: 'center',
x: '44.3%',
- y: '46%',
+ y: '43%',
},
],
tooltip: {
@@ -327,9 +331,10 @@
clockwise: false, //饼图的扇区是否是顺时针排布
avoidLabelOverlap: false,
label: {
+ show: true,
normal: {
show: true,
- position: 'outter',
+ position: 'outside',
textStyle: {
fontSize: 14,
fontWeight: 'bold',
@@ -342,7 +347,7 @@
labelLine: {
show: true, // 控制标签线是否显示
length: 10, // 标签线长度
- length2: 20, // 标签线引出部分长度
+ length2: 0, // 标签线引出部分长度
// 其他样式属性,如 lineStyle 等
},
data: m2R2Data,
@@ -352,11 +357,107 @@
chartInstanceOne = echarts.init(echartPieOne.value);
chartInstanceOne.setOption(option);
};
+ const getEchartPieTow = () => {
+ if (chartInstanceTow) {
+ chartInstanceTow.dispose();
+ }
+ chartInstanceTow = echarts.init(echartPieTow.value);
+ var m2R2Data = [
+ { value: 335, name: '紧急', itemStyle: { color: '#F56E53' } },
+ { value: 310, name: '重要', itemStyle: { color: '#F7C122' } },
+ { value: 234, name: '一般', itemStyle: { color: '#3BC27F' } },
+ ];
+ const option = {
+ title: [
+ {
+ text: '优先级 / 近30天',
+ textStyle: {
+ fontSize: 16,
+ fontWeight: 'normal',
+ color: '#aaaaaa',
+ },
+ left: '2%',
+ top: '2%',
+ },
+ {
+ text: '优先级',
+ subtext: 12312 + '个',
+ textStyle: {
+ fontSize: 24,
+ color: 'black',
+ },
+ subtextStyle: {
+ fontSize: 24,
+ fontWeight: '700',
+ color: 'black',
+ },
+ textAlign: 'center',
+ x: '44.3%',
+ y: '43%',
+ },
+ ],
+ tooltip: {
+ trigger: 'item',
+ formatter: function (parms) {
+ var str = parms.marker + ' :' + parms.data.value;
+ return str;
+ },
+ },
+ legend: {
+ // 设置图例靠右,上下居中,垂直排列
+ right: 50,
+ top: 'center',
+ orient: 'vertical',
+ // 图例图标设置为圆形
+ icon: 'circle',
+ itemWidth: 12,
+ itemHeight: 12,
+ itemGap: 16,
+ textStyle: {
+ fontSize: 14,
+ },
+ },
+ series: [
+ {
+ name: '优先级',
+ type: 'pie',
+ center: ['45%', '50%'],
+ radius: ['50%', '70%'],
+ clockwise: false, //饼图的扇区是否是顺时针排布
+ avoidLabelOverlap: false,
+ label: {
+ show: true,
+ normal: {
+ show: true,
+ position: 'outside',
+ textStyle: {
+ fontSize: 14,
+ fontWeight: 'bold',
+ },
+ formatter: function (parms) {
+ return '[ ' + parms.data.name + ' ] : ' + parms.data.value;
+ },
+ },
+ },
+ labelLine: {
+ show: true, // 控制标签线是否显示
+ length: 10, // 标签线长度
+ length2: 0, // 标签线引出部分长度
+ // 其他样式属性,如 lineStyle 等
+ },
+ data: m2R2Data,
+ },
+ ],
+ };
+ chartInstanceTow = echarts.init(echartPieTow.value);
+ chartInstanceTow.setOption(option);
+ };
onMounted(() => {
//渲染第三个图表
getGraphChart();
//优先级
getEchartPieOne();
+ getEchartPieTow();
});
diff --git a/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/notificationManagement/linkPeople/index.vue b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/notificationManagement/linkPeople/index.vue
new file mode 100644
index 0000000..dd498ad
--- /dev/null
+++ b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/notificationManagement/linkPeople/index.vue
@@ -0,0 +1,45 @@
+
+
+
+
Some contents...
+
Some contents...
+
Some contents...
+
+
+
+
+
diff --git a/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/ts/equipmentAlarmConfig.ts b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/ts/equipmentAlarmConfig.ts
index 5bcee5e..16cc06a 100644
--- a/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/ts/equipmentAlarmConfig.ts
+++ b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/ts/equipmentAlarmConfig.ts
@@ -14,7 +14,7 @@ const tableKeyMap = [
},
{
title: '优先级',
- dataIndex: 'priority',
+ dataIndex: 'prioritys',
},
{
title: '告警标题',
@@ -26,8 +26,7 @@ const tableKeyMap = [
},
{
title: '重复次数',
- dataIndex: 'repetitions',
- textEllipsis: true,
+ dataIndex: 'repetition',
},
{
title: '监测时长',
@@ -104,6 +103,9 @@ export const equipmentAlarmTableConfig = (
name: 'FeedBackDetail',
dynamicParams: ['uuid', 'appealType'],
handle: (data: any) => {
+ data.priority = data.priority.value;
+ data.repetitions = data.repetitions.value;
+ data.monitorTimeUnit = data.monitorTimeUnit.value;
editEquipmentAlarm.value.toggle(data);
},
},
diff --git a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionFactorLibrary/index.vue b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionFactorLibrary/index.vue
index 54cee22..94b132f 100644
--- a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionFactorLibrary/index.vue
+++ b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionFactorLibrary/index.vue
@@ -36,27 +36,31 @@
:expanded-keys="expandedKeys"
:auto-expand-parent="autoExpandParent"
@expand="onExpand">
-
-
- {{ emissionName.substring(0, emissionName.indexOf(selectTreeDataValue)) }}
- {{ selectTreeDataValue }}
- {{ emissionName.substring(emissionName.indexOf(selectTreeDataValue) + selectTreeDataValue.length) }}
-
- {{ emissionName }}
-
-
-
-
-
-
编辑
-
新增子节点
-
上移
-
下移
-
删除
+
+
+
+
+ {{ data.emissionName.substring(0, data.emissionName.indexOf(selectTreeDataValue)) }}
+ {{ selectTreeDataValue }}
+ {{ data.emissionName.substring(data.emissionName.indexOf(selectTreeDataValue) + selectTreeDataValue.length) }}
+
+ {{ data.emissionName }}
+
+
+
+
+
编辑
+
新增子节点
+
上移
+
下移
+
删除
+
+
+
+
-
-
+
@@ -92,6 +96,66 @@
确定
+
+
+
+
+
+
+
+ {{ item.cnValue }}
+
+
+
+
+
+
+
+ {{ data.cnValue }}
+
+
+
+
+
编辑
+
新增子节点
+
上移
+
下移
+
删除
+
+
+
+
+
+
+
+
+
+ 取消
+ 确定
+
+
diff --git a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/config.ts b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/config.ts
index f5bc524..09b276d 100644
--- a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/config.ts
+++ b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/config.ts
@@ -77,4 +77,46 @@ export const tableColumns = [
key: 'action',
width: 130
},
+];
+export const columns = [
+ {
+ title: '序号',
+ customRender: (text: any) => {
+ return text.index + 1;
+ },
+ },
+ {
+ title: '因子值',
+ dataIndex: 'energyType',
+ },
+ {
+ title: '计量单位',
+ className: 'unit',
+ dataIndex: 'unit',
+ },
+ {
+ title: '更新时间',
+ className: 'unit',
+ dataIndex: 'unit',
+ },
+ {
+ title: '启用时间',
+ className: 'unit',
+ dataIndex: 'unit',
+ },
+ {
+ title: '结束时间',
+ className: 'unit',
+ dataIndex: 'unit',
+ },
+ {
+ title: '数据来源',
+ className: 'unit',
+ dataIndex: 'unit',
+ },
+ {
+ title: '操作',
+ key: 'action',
+ width: 130
+ },
];
\ No newline at end of file
diff --git a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/quickCalculation/index copy.vue b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/quickCalculation/index copy.vue
new file mode 100644
index 0000000..81d30db
--- /dev/null
+++ b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/quickCalculation/index copy.vue
@@ -0,0 +1,401 @@
+
+
+
+
+
+
+
+ 排放分类
+
+
+
+
+
+ {{ emissionName.substring(0, emissionName.indexOf(selectTreeDataValue)) }}
+ {{ selectTreeDataValue }}
+ {{ emissionName.substring(emissionName.indexOf(selectTreeDataValue) + selectTreeDataValue.length) }}
+
+ {{ emissionName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确定
+
+
+
+
+
+
+
diff --git a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/quickCalculation/index.vue b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/quickCalculation/index.vue
index 2a74ad5..f9df2af 100644
--- a/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/quickCalculation/index.vue
+++ b/hx-ai-intelligent/src/view/carbonEmissionManage/carbonEmissionStatistics/quickCalculation/index.vue
@@ -1,16 +1,14 @@
-
-
- 排放分类
+ 因子分类
-
-
- {{ emissionName.substring(0, emissionName.indexOf(selectTreeDataValue)) }}
- {{ selectTreeDataValue }}
- {{ emissionName.substring(emissionName.indexOf(selectTreeDataValue) + selectTreeDataValue.length) }}
+ :tree-data="gData"
+ @expand="onExpand"
+ style="padding: 0 16px !important;"
+ >
+
+
+ {{ title.substring(0, title.indexOf(searchValue)) }}
+ {{ searchValue }}
+ {{ title.substring(title.indexOf(searchValue) + searchValue.length) }}
- {{ emissionName }}
+ {{ title }}
-
+
+
+
+
+ 编辑
+
+ 删除
+
+
+
+
+ 排放因子库
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+ {{ item.cnValue }}
+
+
+
+
+
+ 取消
+ 确定
+
+
-
-
-
-
-
-
-
-
- 取消
- 确定
-
-
+
+
+
\ No newline at end of file
diff --git a/hx-ai-intelligent/src/view/equipmentControl/lightingManage/dialogStyle.less b/hx-ai-intelligent/src/view/equipmentControl/lightingManage/dialogStyle.less
new file mode 100644
index 0000000..7dee3a5
--- /dev/null
+++ b/hx-ai-intelligent/src/view/equipmentControl/lightingManage/dialogStyle.less
@@ -0,0 +1,141 @@
+.out-dialog {
+ position: fixed;
+ right: 496px;
+ width: 500px;
+ height: 100%;
+ top: 0;
+ bottom: 0;
+ margin: auto;
+ box-sizing: border-box;
+ color: rgb(255, 83, 0);
+ background: black;
+ display: flex;
+ padding: 25px;
+ flex-direction: column;
+ .content {
+ overflow-y: scroll;
+ .div-operation {
+ display: inline-block;
+ width: 3px;
+ height: 13px;
+ opacity: 1;
+ border-radius: 1px;
+ background: rgba(67, 136, 251, 1);
+ }
+ .text-operation {
+ display: inline-block;
+ color: rgba(255, 255, 255, 1);
+ font-size: 16px;
+ font-weight: 700;
+ margin-left: 5px;
+ }
+ .j-box {
+ background-color: #000;
+ opacity: 1;
+ z-index: 99999;
+ overflow-y: scroll;
+ .journal {
+ padding: 1% 3%;
+ width: 100%;
+ height: 150px;
+ background-color: rgba(0, 0, 0);
+ border-radius: 12px;
+ border: 2px solid transparent;
+ border-image: linear-gradient(to bottom, #0077ff, #00f6ff, #000000) 1;
+ }
+ .imgText {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+
+ .ztzm {
+ display: flex;
+ align-items: center;
+ }
+
+ .cxbtn {
+ color: rgba(255, 255, 255, 1);
+ border: none;
+ border-radius: 6px;
+ width: 59.79px;
+ height: 32px;
+ opacity: 1;
+ background: linear-gradient(
+ 180deg,
+ rgba(255, 187, 0, 1) 0%,
+ rgba(255, 112, 3, 1) 91.21%,
+ rgba(255, 129, 3, 1) 100%
+ );
+ }
+ }
+ .btn-box {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ grid-template-rows: 1fr 1fr;
+ grid-row-gap: 15px;
+ .btn-item {
+ text-align: center;
+ display: flex;
+ align-content: space-between;
+ .left {
+ width: 70px;
+ height: 35px;
+ line-height: 35px;
+ border-radius: 4px;
+ background: linear-gradient(
+ 180deg,
+ rgba(1, 206, 255, 1) 0%,
+ rgba(0, 150, 229, 1) 100%
+ );
+ color: rgba(255, 255, 255, 1);
+ font-size: 14px;
+ font-weight: 400;
+ }
+ .right {
+ width: 140px;
+ height: 35px;
+ line-height: 35px;
+ span {
+ vertical-align: middle;
+ }
+ img {
+ padding: 0 5px;
+ }
+ }
+ }
+ }
+ }
+ }
+
+ .button-box {
+ width: 100%;
+ box-sizing: border-box;
+ padding: 10px;
+ height: 60px;
+ position: absolute;
+ background-color: transparent;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ .execute, .cancel {
+ margin-right: 10px;
+ width: 74px;
+ height: 40px;
+ opacity: 1;
+ cursor: pointer;
+ border-radius: 4px;
+ font-size: 14px;
+ font-weight: 400;
+ border: 0;
+ margin-left: 10px;
+ }
+ .execute {
+ background: rgb(67, 136, 251);
+ color: white;
+ }
+ .cancel {
+ background: white;
+ color: black;
+ }
+ }
+}
\ No newline at end of file
diff --git a/hx-ai-intelligent/src/view/equipmentControl/lightingManage/index.less b/hx-ai-intelligent/src/view/equipmentControl/lightingManage/index.less
index 5d707a0..dd02f25 100644
--- a/hx-ai-intelligent/src/view/equipmentControl/lightingManage/index.less
+++ b/hx-ai-intelligent/src/view/equipmentControl/lightingManage/index.less
@@ -1,952 +1,156 @@
-//
\ No newline at end of file
+// 页面容器
+.lighting-box {
+ // width: 100%;
+ // height: 100%;
+ position: relative;
+ // background: linear-gradient(#badaff, #8cabeb, #7095de);
+ // 照明设备功能总容器
+ .lighting-img-box {
+ position: relative;
+ width: 1280px;
+ height: 720px;
+ user-select: none;
+ background-image: url(../image/bg.jpg);
+ // 由于背景是俯视图,会产生有交点的透视效果,故使用透视属性
+ perspective: 1000px;
+ perspective-origin: 850px -160px;
+ // 左上角区域切换功能
+ .btn-box {
+ width: 120px;
+ position: sticky;
+ top: 10px;
+ left: 10px;
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ .btn-item {
+ cursor: pointer;
+ width: 100%;
+ height: 40px;
+ border-radius: 4px;
+ background: rgba(39, 120, 255, 1);
+ border: 1px solid rgba(51, 199, 255, 1);
+ box-shadow: 0px 10px 15px rgba(0, 54, 136, 0.3);
+ font-size: 18px;
+ color: white;
+ }
+ .btn-item:hover {
+ color: black;
+ }
+ }
+ // 大区分区
+ .area{
+ position: absolute;
+ bottom: 170px;
+ left: 240px;
+ width: 780px;
+ height: 240px;
+ transform: rotateX(79deg) rotateZ(-22deg) skew(29deg);
+ display: flex;
+ gap: 8px;
+ .area1 {
+ width: 170px;
+ background: rgba(0, 251, 91, 0.3);
+ border: 2px solid rgb(0, 251, 91);
+ display: flex;
+ }
+ .area2 {
+ width: 240px;
+ background: rgba(255, 165, 0, 0.3);
+ border: 2px solid rgb(255, 165, 0);
+ display: flex;
+ }
+ .area3 {
+ width: 110px;
+ background: rgba(255, 0, 0, 0.3);
+ border: 2px solid rgb(255, 0, 0);
+ }
+ .area4 {
+ flex: 1;
+ background: rgba(80, 236, 244, 0.3);
+ border: 2px solid rgb(80, 236, 244);
+ }
+ // .area-item:hover {
+ // transform: scale(1.05);
+ // }
+ .area-item {
+ cursor: pointer;
+ transition: all ease 0.2s;
+ >.light-group {
+ height: 100%;
+ flex: 1;
+ display:flex;
+ justify-content: center;
+ align-items: center;
+ .group-shadow1 {
+ width: 35px;
+ height: 150px;
+ border-radius: 20px;
+ background: rgba(0, 0, 0, 0.1);
+ }
+ .group-shadow2 {
+ width: 35px;
+ height: 180px;
+ border-radius: 20px;
+ background: rgba(0, 0, 0, 0.1);
+ }
+ .group-shadow3 {
+ width: 40px;
+ height: 180px;
+ border-radius: 20px;
+ background: rgba(0, 0, 0, 0.1);
+ }
+ .group-shadow4 {
+ width: 40px;
+ height: 160px;
+ border-radius: 20px;
+ background: rgba(0, 0, 0, 0.1);
+ }
+ }
+ // .group-shadow {
+ // transition: all ease 0.2s;
+ // }
+ // .group-shadow:hover {
+ // transform: scale(1.05);
+ // }
+ }
+ }
+ }
+}
+// 总容器与抽屉按钮
+.ns-content-main {
+ position: relative;
+ // 抽屉打开按钮
+ .drawer-box-in {
+ width: 30px;
+ height: 40px;
+ border-radius: 2px;
+ position: fixed;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ margin: auto;
+ background: rgba(0, 0 ,0 ,0.5);
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ cursor: pointer;
+ }
+ // 抽屉关闭按钮
+ .drawer-box-out {
+ width: 30px;
+ height: 40px;
+ border-radius: 2px;
+ position: fixed;
+ right: 496px;
+ top: 0;
+ bottom: 0;
+ margin: auto;
+ background: rgba(0, 0 ,0 ,0.5);
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ cursor: pointer;
+ }
+
+}
diff --git a/hx-ai-intelligent/src/view/equipmentControl/lightingManage/indexs.less b/hx-ai-intelligent/src/view/equipmentControl/lightingManage/indexs.less
deleted file mode 100644
index dd02f25..0000000
--- a/hx-ai-intelligent/src/view/equipmentControl/lightingManage/indexs.less
+++ /dev/null
@@ -1,156 +0,0 @@
-// 页面容器
-.lighting-box {
- // width: 100%;
- // height: 100%;
- position: relative;
- // background: linear-gradient(#badaff, #8cabeb, #7095de);
- // 照明设备功能总容器
- .lighting-img-box {
- position: relative;
- width: 1280px;
- height: 720px;
- user-select: none;
- background-image: url(../image/bg.jpg);
- // 由于背景是俯视图,会产生有交点的透视效果,故使用透视属性
- perspective: 1000px;
- perspective-origin: 850px -160px;
- // 左上角区域切换功能
- .btn-box {
- width: 120px;
- position: sticky;
- top: 10px;
- left: 10px;
- display: flex;
- flex-direction: column;
- gap: 8px;
- .btn-item {
- cursor: pointer;
- width: 100%;
- height: 40px;
- border-radius: 4px;
- background: rgba(39, 120, 255, 1);
- border: 1px solid rgba(51, 199, 255, 1);
- box-shadow: 0px 10px 15px rgba(0, 54, 136, 0.3);
- font-size: 18px;
- color: white;
- }
- .btn-item:hover {
- color: black;
- }
- }
- // 大区分区
- .area{
- position: absolute;
- bottom: 170px;
- left: 240px;
- width: 780px;
- height: 240px;
- transform: rotateX(79deg) rotateZ(-22deg) skew(29deg);
- display: flex;
- gap: 8px;
- .area1 {
- width: 170px;
- background: rgba(0, 251, 91, 0.3);
- border: 2px solid rgb(0, 251, 91);
- display: flex;
- }
- .area2 {
- width: 240px;
- background: rgba(255, 165, 0, 0.3);
- border: 2px solid rgb(255, 165, 0);
- display: flex;
- }
- .area3 {
- width: 110px;
- background: rgba(255, 0, 0, 0.3);
- border: 2px solid rgb(255, 0, 0);
- }
- .area4 {
- flex: 1;
- background: rgba(80, 236, 244, 0.3);
- border: 2px solid rgb(80, 236, 244);
- }
- // .area-item:hover {
- // transform: scale(1.05);
- // }
- .area-item {
- cursor: pointer;
- transition: all ease 0.2s;
- >.light-group {
- height: 100%;
- flex: 1;
- display:flex;
- justify-content: center;
- align-items: center;
- .group-shadow1 {
- width: 35px;
- height: 150px;
- border-radius: 20px;
- background: rgba(0, 0, 0, 0.1);
- }
- .group-shadow2 {
- width: 35px;
- height: 180px;
- border-radius: 20px;
- background: rgba(0, 0, 0, 0.1);
- }
- .group-shadow3 {
- width: 40px;
- height: 180px;
- border-radius: 20px;
- background: rgba(0, 0, 0, 0.1);
- }
- .group-shadow4 {
- width: 40px;
- height: 160px;
- border-radius: 20px;
- background: rgba(0, 0, 0, 0.1);
- }
- }
- // .group-shadow {
- // transition: all ease 0.2s;
- // }
- // .group-shadow:hover {
- // transform: scale(1.05);
- // }
- }
- }
- }
-}
-// 总容器与抽屉按钮
-.ns-content-main {
- position: relative;
- // 抽屉打开按钮
- .drawer-box-in {
- width: 30px;
- height: 40px;
- border-radius: 2px;
- position: fixed;
- right: 0;
- top: 0;
- bottom: 0;
- margin: auto;
- background: rgba(0, 0 ,0 ,0.5);
- display: flex;
- justify-content: center;
- align-items: center;
- cursor: pointer;
- }
- // 抽屉关闭按钮
- .drawer-box-out {
- width: 30px;
- height: 40px;
- border-radius: 2px;
- position: fixed;
- right: 496px;
- top: 0;
- bottom: 0;
- margin: auto;
- background: rgba(0, 0 ,0 ,0.5);
- display: flex;
- justify-content: center;
- align-items: center;
- cursor: pointer;
- }
-
-}
diff --git a/hx-ai-intelligent/src/view/equipmentControl/lightingManage/indexs.vue b/hx-ai-intelligent/src/view/equipmentControl/lightingManage/indexs.vue
index 7557a9c..a1c1006 100644
--- a/hx-ai-intelligent/src/view/equipmentControl/lightingManage/indexs.vue
+++ b/hx-ai-intelligent/src/view/equipmentControl/lightingManage/indexs.vue
@@ -3,19 +3,19 @@
-
-
-
+
+
+
@@ -40,16 +40,18 @@
placement="right"
:body-style="{ background: 'rgba(0, 0, 0)', opacity: 0.8 }"
:closable="false"
- id="Odrawer"
+ id="drawer"
:maskStyle="{ 'background-color': 'rgba(0, 0, 0, 0)' }">
-
+
+
+
+
-
@@ -61,15 +63,17 @@ import { ref } from 'vue';
import { treeData } from './treeData'
import light from './light.vue';
import tabs1 from './tabs1.vue'
+import tabs2 from './tabs2.vue'
+import tabs3 from './tabs3.vue'
// ICON
import {
DoubleLeftOutlined,
DoubleRightOutlined
} from '@ant-design/icons-vue';
-// 分区 - 当前选择的分区 - 默认选择一区
-let area = ref(['1'])
-// 分区 - 分区小灯泡
+// 分区 - 当前选择的分区序号 - 默认选择一区
+const area = ref(['1'])
+// 分区 - 分区小灯泡 - 此处位置需前端写死
const bulbs = ref([
{
styleText: { left: '190px', bottom: '200px' },
@@ -121,6 +125,16 @@ const bulbs = ref([
},
])
+// 分区 - 左上角分区切换
+const changeArea = (area: number) => {
+ if (area == 1) {
+ console.log('1F')
+ } else if (area == 2) {
+ console.log('2F')
+ } else if (area == 3) {
+ console.log('站台')
+ }
+}
// 分区 - 单个分区切换
const getArea = (result: any) => {
// 如果传入的值是数组
@@ -132,16 +146,14 @@ const getArea = (result: any) => {
area.value[0] = String(result)
}
}
-// 分区 - 多个分区切换,只有照明回路能够触发多个分区
// 分区 - 样式函数
-const computedClass = (number: number) => {
- if (area.value.indexOf(number) != -1) {
- return `isActive area-item area${number}`
+const computedClass = (string: string) => {
+ if (area.value.indexOf(string) != -1) {
+ return `isActive area-item area${string}`
} else {
- return `area-item area${number}`
+ return `area-item area${string}`
}
}
-
// 抽屉 - 当前选择的tab
let activeKey = ref('1');
// 抽屉 - 打开状态
@@ -153,7 +165,7 @@ const toggleDrawer = () => {
diff --git a/hx-ai-intelligent/src/view/equipmentControl/lightingManage/tabs3.vue b/hx-ai-intelligent/src/view/equipmentControl/lightingManage/tabs3.vue
new file mode 100644
index 0000000..96b21d7
--- /dev/null
+++ b/hx-ai-intelligent/src/view/equipmentControl/lightingManage/tabs3.vue
@@ -0,0 +1,255 @@
+
+
+
+
+ 序号 |
+ 执行时间 |
+ 操作内容 |
+ 操作人 |
+
+
+
+
+ {{ row.key }} |
+ {{ row.data }} |
+ {{ row.planName }} |
+ {{ row.status }} |
+
+
+
+
+
+
+
+
+
+
+
+
{{
+ item.name }}
+
+
+
+
+
控制模式
+
+
手动
+
+
自动
+
+
+
+
+ 亮度
+
+
+
100lux
+
+
30lux
+
+
+
+
+ 控制场景
+
+
+
手动
+
+
自动
+
+
+
+
+ 色温
+
+
+
4000k
+
+
3800k
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+