Commit 9eab74aa authored by 方建宇's avatar 方建宇

远程控制初始化-静态数据

parent 10394bf0
export const remoteModules={
"data": [
{
"moduleId": "ca869cdc-9f97-4288-8d8d-a939cfb4b5d1",
"moduleCode": "RemoteTransferStatus",
"moduleName": "远程设备状态",
"navigateUrl": "/Remote/RemoteTransferStatus",
"orderNum": 1
},
{
"moduleId": "0a3f7030-f1c2-4e13-999f-10bab405281a",
"moduleCode": "RemoteTransferReg",
"moduleName": "远程寄存器值",
"navigateUrl": "/Remote/RemoteTransferReg",
"orderNum": 2
},
{
"moduleId": "75bc8007-1274-42fd-b2c2-55528517e701",
"moduleCode": "HolidayControl",
"moduleName": "节假日参数设定",
"navigateUrl": "/Remote/HolidayControl",
"orderNum": 3
},
{
"moduleId": "a47b0543-09dc-49ad-8f69-1e3e6de188f9",
"moduleCode": "NightControl",
"moduleName": "夜间降温参数组",
"navigateUrl": "/Remote/NightControl",
"orderNum": 4
},
{
"moduleId": "d9eb1695-b135-42e6-a0ee-6369e04660cb",
"moduleCode": "SecTempControl",
"moduleName": "二次网供水温度参数组",
"navigateUrl": "/Remote/SecTempControl",
"orderNum": 5
},
{
"moduleId": "106f63fe-aa2a-4b2e-b84f-eac17191647d",
"moduleCode": "WeatherControl",
"moduleName": "气象仪参数组",
"navigateUrl": "/Remote/WeatherControl",
"orderNum": 7
},
{
"moduleId": "1edfbffb-21b4-4f58-83a6-cd39b92387de",
"moduleCode": "LimitControl",
"moduleName": "温度上下限",
"navigateUrl": "/Remote/LimitControl",
"orderNum": 8
},
{
"moduleId": "547b1832-9cf0-4f41-8f71-5fba8030e52b",
"moduleCode": "TransferPumpPressure",
"moduleName": "循环泵压差控制",
"navigateUrl": "/Remote/TransferPump",
"orderNum": 11
},
{
"moduleId": "2de9cbc4-54a0-4d10-b165-fcf94f12aec7",
"moduleCode": "SecPlan",
"moduleName": "二次网供水温度参数组",
"navigateUrl": "/Remote/SecPlan",
"orderNum": 13
},
{
"moduleId": "45320b16-0a19-4497-a5a6-c36b4d4bbf50",
"moduleCode": "SecondTemp",
"moduleName": "二次网方案",
"navigateUrl": "/Remote/CtrlSecondTemp",
"orderNum": 14
},
{
"moduleId": "8c7c2e8e-00ab-49d8-a517-b3d4871e16fb",
"moduleCode": "AIStationRemote",
"moduleName": "AI无人站参数组",
"navigateUrl": "/Remote/AIStationRemote",
"orderNum": 15
},
{
"moduleId": "09fdb44b-5fdc-4223-bbaa-30d279892239",
"moduleCode": "BoilerRemote",
"moduleName": "锅炉远程控制",
"navigateUrl": "/Remote/Boiler",
"orderNum": 36
},
{
"moduleId": "1234d172-618f-4010-b69d-77c0d95c2761",
"moduleCode": "WeatherManage",
"moduleName": "气象干预",
"navigateUrl": "/Scheduling/WeatherManage",
"orderNum": 50
},
{
"moduleId": "ec80421e-259a-4b71-8348-86c18aecbd4a",
"moduleCode": "ConfigBoiler",
"moduleName": "锅炉参数配置",
"navigateUrl": "/Scheduling/ConfigBoiler",
"orderNum": 53
},
{
"moduleId": "d6911397-7626-444a-a04e-7d7af4be0ee5",
"moduleCode": "WindManage",
"moduleName": "风力配置管理",
"navigateUrl": "/Scheduling/WindManage",
"orderNum": 56
},
{
"moduleId": "24532aaf-5a43-422e-ae96-64d5bd9ce5a4",
"moduleCode": "AnnualParam",
"moduleName": "年度参数管理",
"navigateUrl": "/Scheduling/AnnualParam",
"orderNum": 57
}
]
}
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
import HeatControl from '../../components/Remote/HeatControl.vue'; import HeatControl from '../../components/Remote/HeatControl.vue';
//import OutdoorTempControl from '../../components/Remote/OutdoorTempControl.vue'; //import OutdoorTempControl from '../../components/Remote/OutdoorTempControl.vue';
import NightFrequency from '../../components/Remote/NightFrequency.vue'; import NightFrequency from '../../components/Remote/NightFrequency.vue';
import {remoteModules} from '@/dataJson/Remote/RemoteModules';
const radioTitle = ref('供热站'); const radioTitle = ref('供热站');
const options = reactive([]); const options = reactive([]);
const enterpriseId = ref(null); const enterpriseId = ref(null);
...@@ -132,11 +132,52 @@ ...@@ -132,11 +132,52 @@
} }
//根据权限初始化远程控制页列表 //根据权限初始化远程控制页列表
// function initRomateList(){
// http.post("/api/module/RemoteModules", '').then((result) => {
// if(result.data !== null){
// //console.log(result.data);
// result.data.forEach(item =>{
// if(item.moduleCode ==="RemoteTransferStatus"){
// isTransferStatus.value = true;
// }
// if(item.moduleCode ==="RemoteTransferReg"){
// isTransferRegControl.value = true;
// }
// if(item.moduleCode ==="HolidayControl"){
// isHolidayControl.value = true;
// }
// if(item.moduleCode ==="NightControl"){
// isNightControl.value = true;
// }
// if(item.moduleCode ==="SecTempControl"){
// isSecTempControl.value = true;
// }
// if(item.moduleCode ==="CurveControl"){
// isCurveControl.value = true;
// }
// if(item.moduleCode ==="WeatherControl"){
// isWeatherControl.value = true;
// }
// if(item.moduleCode ==="LimitControl"){
// isLimitControl.value = true;
// }
// if(item.moduleCode ==="WinDirectionControl"){
// isWinDirectionControl.value = true;
// }
// if(item.moduleCode ==="HeatControl"){
// isHeatControl.value = true;
// }
// if(item.moduleCode ==="NightFrequency"){
// isNightFrequency.value = true;
// }
// })
// }
// });
// }
function initRomateList(){ function initRomateList(){
http.post("/api/module/RemoteModules", '').then((result) => {
if(result.data !== null){
//console.log(result.data); //console.log(result.data);
result.data.forEach(item =>{ remoteModules.data.forEach(item =>{
if(item.moduleCode ==="RemoteTransferStatus"){ if(item.moduleCode ==="RemoteTransferStatus"){
isTransferStatus.value = true; isTransferStatus.value = true;
} }
...@@ -172,8 +213,6 @@ ...@@ -172,8 +213,6 @@
} }
}) })
} }
});
}
initPage(); initPage();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment