| | |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> |
| | | <link rel="icon" href="<%= BASE_URL %>favicon.ico"> |
| | | <!-- <script type="text/javascript" src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=AWqwD701uOy6kaLIxBY2NDjATvE6x5IG"></script> |
| | | <script type="text/javascript" src="http://localhost:8919/baidumapv2/baidumap_offline_v2_load.js"></script> |
| | | <script type="text/javascript" src="http://localhost:8919/baidumapv2/library/searchInfoWindow.js"></script> |
| | | <script type="text/javascript" src="../baidumapv2/baidumap_offline_v2_load.js"></script> |
| | | <script type="text/javascript" src="../baidumapv2/library/searchInfoWindow.js"></script> --> |
| | | <script type="text/javascript" src="./static/map3.0_load.js"></script> |
| | | <!-- 导入百度地图API --> |
| | | <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=QAerSFEiGDCx1oHPB7Z5XYcBHI6R3qwx"></script> |
| | | <script type="text/javascript" src="https://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.js"></script> |
| | | <link rel="stylesheet" href="https://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.css" /> |
| | | <!-- <script type="text/javascript" src="./static/map3.0_load.js"></script> --> |
| | | <title><%= htmlWebpackPlugin.options.title %></title> |
| | | </head> |
| | | <body> |
| | |
| | | export const settingEdit = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Alarm_paramAction!update", |
| | | url: "Alarm_paramAction!update", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const settingSearch = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Alarm_paramAction!serchByCondition", |
| | | url: "Alarm_paramAction!serchByCondition", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const historySeroom = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Battalarm_data_historyAction!serchByInfo", |
| | | url: "Battalarm_data_historyAction!serchByInfo", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const historyTrye = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup", |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const historyStation = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchStationNameInGroup", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchStationNameInGroup", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const historyBattery = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchBattgroupidInGroup", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchBattgroupidInGroup", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const hisDelet = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Battalarm_data_historyAction!delete", |
| | | url: "Battalarm_data_historyAction!delete", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const dataType = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup", |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const roomsStation = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchStationNameInGroup", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchStationNameInGroup", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const batterySeach = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchBattgroupidInGroup", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchBattgroupidInGroup", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const deletionRecord = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Battalarm_dataAction!delete", |
| | | url: "Battalarm_dataAction!delete", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const reporTemergency = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Battalarm_dataAction!update", |
| | | url: "Battalarm_dataAction!update", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const CancelTheAlarm = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Battalarm_dataAction!cancelalarm ", |
| | | url: "Battalarm_dataAction!cancelalarm ", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const newsAlarm = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Battalarm_dataAction!serchByCondition ", |
| | | url: "Battalarm_dataAction!serchByCondition ", |
| | | data: qs.stringify(data, {allowDots: true} ) |
| | | }) |
| | | } |
| | |
| | | export const deviceRecord = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Batt_devalarm_data_historyAction!serchByCondition ", |
| | | url: "Batt_devalarm_data_historyAction!serchByCondition ", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const deviceArea = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup", |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const deviserchSeions = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchStationNameInGroup", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchStationNameInGroup", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const deviceArarmdel = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Batt_devalarm_data_historyAction!deletePro", |
| | | url: "Batt_devalarm_data_historyAction!deletePro", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const deviceAlarm = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Batt_devalarm_dataAction!serchByInfo", |
| | | url: "Batt_devalarm_dataAction!serchByInfo", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const deviceOk = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Batt_devalarm_dataAction!updatePro", |
| | | url: "Batt_devalarm_dataAction!updatePro", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const deviceDelete = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Batt_devalarm_dataAction!deletePro ", |
| | | url: "Batt_devalarm_dataAction!deletePro ", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const deviceTypes = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup ", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup ", |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const deviceSeions = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchStationNameInGroup ", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchStationNameInGroup ", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const devSetting = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Dev_paramAction!update", |
| | | url: "Dev_paramAction!update", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const devSearchs = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchStationByStationName1", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchStationByStationName1", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const devSeidd = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Dev_paramAction!serchByInfo", |
| | | url: "Dev_paramAction!serchByInfo", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const devSearnumbe = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Dev_paramAction!serchByCondition", |
| | | url: "Dev_paramAction!serchByCondition", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const initDBPool = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/LoginAction!initDBPool", |
| | | url: "LoginAction!initDBPool", |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const login = (username, password) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: '/yckj/' + `fg/LoginAction_login?uinf.UName=${username}&uinf.Upassword=${md5(password)}&uinf.UId=0`, |
| | | url: `LoginAction_login?uinf.UName=${username}&uinf.Upassword=${md5(password)}&uinf.UId=0`, |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const checkLoginSession = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/LoginAction!getSessionByString", |
| | | url: "LoginAction!getSessionByString", |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const searchProvince = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BattInfAction!serchAllStationName1", |
| | | url: "BattInfAction!serchAllStationName1", |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const searchCity = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BattInfAction!serchAllStationName2", |
| | | url: "BattInfAction!serchAllStationName2", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const searchCounty = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BattInfAction!serchAllStationName5", |
| | | url: "BattInfAction!serchAllStationName5", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const searchPowerOff = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BattPower_offAction!serchPowerOff", |
| | | url: "BattPower_offAction!serchPowerOff", |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const searchBattGood = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Battalarm_dataAction!serchGood", |
| | | url: "Battalarm_dataAction!serchGood", |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const addMapStation = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BattMap_informationAction!add", |
| | | url: "BattMap_informationAction!add", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const addMapSetdian = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BattMap_informationAction!serchNotInBattMapByUid", |
| | | url: "BattMap_informationAction!serchNotInBattMapByUid", |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const searchMapStation = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BattMap_informationAction!serchStationName3", |
| | | url: "BattMap_informationAction!serchStationName3", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const searchStation = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BattInfAction!serchAllStationName", |
| | | url: "BattInfAction!serchAllStationName", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const searchBattInfo = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BattInfAction!serchAllBattinf", |
| | | url: "BattInfAction!serchAllBattinf", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const searchMap = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BattMap_informationAction!searchUserManageStation", |
| | | url: "BattMap_informationAction!searchUserManageStation", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const searchRooms = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BattInfAction!serchByIdLow", |
| | | url: "BattInfAction!serchByIdLow", |
| | | data: "result=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const searchDeletRoom = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BattMap_informationAction!del", |
| | | url: "BattMap_informationAction!del", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const searchRoomLocation = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BattMap_informationAction!serchAddressByStationName3", |
| | | url: "BattMap_informationAction!serchAddressByStationName3", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const searchCoordinate = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Positiomap_usrAction!add", |
| | | url: "Positiomap_usrAction!add", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const searchCoordinateMove = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Positiomap_usrAction!serchByCondition", |
| | | url: "Positiomap_usrAction!serchByCondition", |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const addNavigation = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/CustompageAction!searchAll", |
| | | url: "CustompageAction!searchAll", |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const searchAlarm = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Battalarm_dataAction!serchAlm", |
| | | url: "Battalarm_dataAction!serchAlm", |
| | | data: "bmd.binf.StationName=" |
| | | }); |
| | | } |
| | |
| | | export const searchBattState = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Batt_rtstateAction!serchBattStateRate", |
| | | url: "Batt_rtstateAction!serchBattStateRate", |
| | | data: null |
| | | }); |
| | | } |
| | |
| | | export const checkUserLogin = ()=>{ |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/LoginAction_check", |
| | | url: "LoginAction_check", |
| | | data: null |
| | | }); |
| | | } |
| | |
| | | search(data) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/BattInfAction!searchInform', |
| | | url: 'BattInfAction!searchInform', |
| | | data: 'json='+JSON.stringify(data), |
| | | }); |
| | | }, |
| | |
| | | searchBattProducer() { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/BattInfAction_serchByBattProducer', |
| | | url: 'BattInfAction_serchByBattProducer', |
| | | data: null, |
| | | }); |
| | | |
| | |
| | | add(data) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/BattInfAction_add', |
| | | url: 'BattInfAction_add', |
| | | data: 'json='+JSON.stringify(data), |
| | | }); |
| | | }, |
| | |
| | | del(data) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/BattInfAction!delete', |
| | | url: 'BattInfAction!delete', |
| | | data: 'json='+JSON.stringify(data), |
| | | }); |
| | | }, |
| | |
| | | edit(data) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/BattInfAction!update', |
| | | url: 'BattInfAction!update', |
| | | data: 'json='+JSON.stringify(data), |
| | | }); |
| | | } |
| | |
| | | search() { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/Process_surveyAction!searchAll', |
| | | url: 'Process_surveyAction!searchAll', |
| | | data: null |
| | | }); |
| | | }, |
| | |
| | | checkPwd(pwd) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/Process_surveyAction!judgeRestart', |
| | | url: 'Process_surveyAction!judgeRestart', |
| | | data: 'json='+pwd |
| | | }); |
| | | }, |
| | |
| | | updateState(data) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/Process_surveyAction!updateFlag', |
| | | url: 'Process_surveyAction!updateFlag', |
| | | data: 'json='+JSON.stringify(data) |
| | | }); |
| | | }, |
| | |
| | | update(data) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/Process_surveyAction!updateAll', |
| | | url: 'Process_surveyAction!updateAll', |
| | | data: 'json='+JSON.stringify(data) |
| | | }); |
| | | }, |
| | |
| | | // 请求后台查询内容 |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/fg/Fbs9100_setparamAction_action_serchbyDev_id', |
| | | url: 'Fbs9100_setparamAction_action_serchbyDev_id', |
| | | data: 'json='+JSON.stringify(data), |
| | | }); |
| | | }, |
| | |
| | | // 请求后台 |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/fg/Fbs9100_setparamAction_action_update61850Param', |
| | | url: 'Fbs9100_setparamAction_action_update61850Param', |
| | | data: 'json='+JSON.stringify(data), |
| | | }); |
| | | }, |
| | |
| | | // 请求后台查询内容 |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/fg/Fbs9100_setparamAction_action_serchbyDev_id', |
| | | url: 'Fbs9100_setparamAction_action_serchbyDev_id', |
| | | data: 'json='+JSON.stringify(data), |
| | | }); |
| | | }, |
| | |
| | | // 请求后台查询内容 |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/fg/Fbs9100_setparamAction_action_serchbyDev_id', |
| | | url: 'Fbs9100_setparamAction_action_serchbyDev_id', |
| | | data: 'json='+JSON.stringify(data), |
| | | }); |
| | | }, |
| | |
| | | searchAll() { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/BattInfAction_serchByStationName', |
| | | url: 'BattInfAction_serchByStationName', |
| | | data: 'bif.StationName1='+"", |
| | | }); |
| | | }, |
| | |
| | | searchBaojiHome(id) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_battgroup_baojigroupAction!serchByInfo', |
| | | url: 'User_battgroup_baojigroupAction!serchByInfo', |
| | | data: "us.baoji_group_id="+id, |
| | | }); |
| | | } |
| | |
| | | data: 'json='+JSON.stringify({categoryId:2}) |
| | | }); |
| | | }, |
| | | /** |
| | | * 批量添加 |
| | | * |
| | | * @param {Array} list id的集合 |
| | | * |
| | | */ |
| | | add(list) { |
| | | // 处理数据,格式化成需要的数据 |
| | | let searchParams = list.map(item=>{ |
| | | return { |
| | | id: item, |
| | | status: 1, |
| | | } |
| | | }); |
| | | // 请求后台 |
| | | return axios({ |
| | | method: 'post', |
| | | url: 'PageParamAction!batchUpdate', |
| | | data: 'json='+JSON.stringify(searchParams) |
| | | }); |
| | | }, |
| | | /** |
| | | * 批量移除 |
| | | * |
| | | * @param {Array} list id的集合 |
| | | * |
| | | */ |
| | | remove(list) { |
| | | // 处理数据,格式化成需要的数据 |
| | | let searchParams = list.map(item=>{ |
| | | return { |
| | | id: item, |
| | | status: 0, |
| | | } |
| | | }); |
| | | // 请求后台 |
| | | return axios({ |
| | | method: 'post', |
| | | url: 'PageParamAction!batchUpdate', |
| | | data: 'json='+JSON.stringify(searchParams) |
| | | }); |
| | | }, |
| | | } |
| | |
| | | // 请求后台查询内容 |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/fg/Fbs9100_sysparamAction_action_serchByCondition', |
| | | url: 'Fbs9100_sysparamAction_action_serchByCondition', |
| | | data: 'json='+JSON.stringify(data), |
| | | }); |
| | | }, |
| | |
| | | // 请求后台查询内容 |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/fg/Fbs9100_sysparamAction_action_update61850', |
| | | url: 'Fbs9100_sysparamAction_action_update61850', |
| | | data: 'json='+JSON.stringify(data), |
| | | }); |
| | | }, |
| | |
| | | searchBaojiGroup() { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_ChartAction!searchAll', |
| | | url: 'User_ChartAction!searchAll', |
| | | data: null |
| | | }); |
| | | }, |
| | |
| | | search() { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_battgroup_baojigroupAction!searchAll', |
| | | url: 'User_battgroup_baojigroupAction!searchAll', |
| | | data: null |
| | | }); |
| | | }, |
| | |
| | | add(name){ |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_battgroup_baojigroupAction!add', |
| | | url: 'User_battgroup_baojigroupAction!add', |
| | | data: "us.baoji_group_name="+name |
| | | }); |
| | | }, |
| | |
| | | edit(id, name) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_battgroup_baojigroupAction!update', |
| | | url: 'User_battgroup_baojigroupAction!update', |
| | | data: 'us.baoji_group_id='+id+'&us.baoji_group_name='+name |
| | | }); |
| | | }, |
| | |
| | | del(id, name) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_battgroup_baojigroupAction!delete', |
| | | url: 'User_battgroup_baojigroupAction!delete', |
| | | data: 'us.baoji_group_id='+id+'&us.baoji_group_name='+name |
| | | }); |
| | | }, |
| | |
| | | addUser(data) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_battgroup_baojigroup_usrAction!add', |
| | | url: 'User_battgroup_baojigroup_usrAction!add', |
| | | data: 'json='+JSON.stringify(data) |
| | | }); |
| | | }, |
| | |
| | | removeUser(data) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_battgroup_baojigroup_usrAction!delPro', |
| | | url: 'User_battgroup_baojigroup_usrAction!delPro', |
| | | data: 'json='+JSON.stringify(data) |
| | | }); |
| | | }, |
| | |
| | | addHome(data) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_battgroup_baojigroup_battgroupAction!addPro_CS', |
| | | url: 'User_battgroup_baojigroup_battgroupAction!addPro_CS', |
| | | data: 'result='+JSON.stringify(data) |
| | | }); |
| | | }, |
| | |
| | | removeHome(data) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_battgroup_baojigroup_battgroupAction!delPro_CS', |
| | | url: 'User_battgroup_baojigroup_battgroupAction!delPro_CS', |
| | | data: 'result='+JSON.stringify(data) |
| | | }); |
| | | }, |
| | |
| | | searchAll() { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_infAction_searchAll', |
| | | url: 'User_infAction_searchAll', |
| | | data: null |
| | | }); |
| | | } |
| | |
| | | search(data) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_logAction!serchByCondition', |
| | | url: 'User_logAction!serchByCondition', |
| | | data: 'result='+JSON.stringify(data) |
| | | }); |
| | | } |
| | |
| | | searchAll() { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_infAction!searchCS_All', |
| | | url: 'User_infAction!searchCS_All', |
| | | data: null, |
| | | }); |
| | | }, |
| | |
| | | searchBaojiUser(id) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_battgroup_baojigroupAction!serchByCondition', |
| | | url: 'User_battgroup_baojigroupAction!serchByCondition', |
| | | data: "us.baoji_group_id="+id, |
| | | }); |
| | | }, |
| | |
| | | searchPowerUser(id) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_permitgroupAction!serchByPermit', |
| | | url: 'User_permitgroupAction!serchByPermit', |
| | | data: "up.permit_group_id="+id, |
| | | }); |
| | | }, |
| | |
| | | search(data) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_infAction!searchAll', |
| | | url: 'User_infAction!searchAll', |
| | | data: data, |
| | | }); |
| | | }, |
| | |
| | | add(data) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_infAction!add', |
| | | url: 'User_infAction!add', |
| | | data: 'addjson='+JSON.stringify(data), |
| | | }); |
| | | }, |
| | |
| | | edit(data) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_infAction!update', |
| | | url: 'User_infAction!update', |
| | | data: 'upjson='+JSON.stringify(data), |
| | | }); |
| | | }, |
| | |
| | | del(data) { |
| | | return axios({ |
| | | method: 'post', |
| | | url: '/yckj/zijing_sx/User_infAction!delete', |
| | | url: 'User_infAction!delete', |
| | | data: 'upjson='+JSON.stringify(data), |
| | | }); |
| | | |
| | |
| | | |
| | | // 添加请求拦截器 |
| | | axios.interceptors.request.use(function (config) { |
| | | if (process.env.NODE_ENV != 'dev') { |
| | | config.url = config.url.replace('/yckj/fg/', ''); |
| | | }else { |
| | | config.url = config.url.replace('/yckj/fg', ''); |
| | | } |
| | | // 在发送请求之前做些什么 |
| | | return config; |
| | | }, function (error) { |
| | |
| | | export const serachMonomer = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Batt_attentionAction!serchByCondition", |
| | | url: "Batt_attentionAction!serchByCondition", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const unfollow = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Batt_attentionAction!delete", |
| | | url: "Batt_attentionAction!delete", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const MaintenanceArea = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const computerSite = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchStationNameInGroup", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchStationNameInGroup", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const storageBattery = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchBattgroupidInGroup", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchBattgroupidInGroup", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const selectBattery = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BattInfAction!serchByMonNum", |
| | | url: "BattInfAction!serchByMonNum", |
| | | // data: "json=" + JSON.stringify(data) |
| | | data: data |
| | | }) |
| | |
| | | export const dataSeachroms = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BattTest_ResAction!serchByCondition", |
| | | url: "BattTest_ResAction!serchByCondition", |
| | | data: "result=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const dataArea = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup", |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const dataComputersite = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchStationNameInGroup", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchStationNameInGroup", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const dataBattery = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchBattgroupidInGroup", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchBattgroupidInGroup", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const dataSawait = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BattTest_ResAction!serchByCondition", |
| | | url: "BattTest_ResAction!serchByCondition", |
| | | data: "result=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const dataDelete = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BattTest_ResAction!delete", |
| | | url: "BattTest_ResAction!delete", |
| | | data: "result=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const BatteryInformation = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/attInfAction!serchByBattGroupName", |
| | | url: "attInfAction!serchByBattGroupName", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const assertClaim = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchStationName1InGroup", |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const serachStation = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchStationNameInGroup", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchStationNameInGroup", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const serachBattery = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchBattgroupidInGroup", |
| | | url: "User_battgroup_baojigroup_battgroupAction!serchBattgroupidInGroup", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const readParameter = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Fbs9100_setparamAction_action_serchbyDev_id", |
| | | url: "Fbs9100_setparamAction_action_serchbyDev_id", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const addDevicerecord = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Devstate_usrAction!serchByCondition", |
| | | url: "Devstate_usrAction!serchByCondition", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const dataDischarge = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Batt_dischargeAction!serchByCondition", |
| | | url: "Batt_dischargeAction!serchByCondition", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | export const searchBattTestData = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Batttestdata_infAction_searchBattTestInfDataById", |
| | | url: "Batttestdata_infAction_searchBattTestInfDataById", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const searchBattTestDataStop = (BattGroupId, count) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BatttestdatastopAction_findByInfo", |
| | | url: "BatttestdatastopAction_findByInfo", |
| | | data: "btds.BattGroupId="+BattGroupId+"&btds.test_record_count="+count |
| | | }) |
| | | } |
| | |
| | | export const searchHistory = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BatttestdataAction!findhistory", |
| | | url: "BatttestdataAction!findhistory", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const realTimeMonitoring = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Batt_param_lowAction_searchAll", |
| | | url: "Batt_param_lowAction_searchAll", |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const realTimePower = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/JhStateAction_action_serchByCondition", |
| | | url: "JhStateAction_action_serchByCondition", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const realTimePowerOff = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Fbs9100_stateAction_action_serchContactorState", |
| | | url: "Fbs9100_stateAction_action_serchContactorState", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const realTimeGroup = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Batt_rtstateAction_serchByCondition", |
| | | url: "Batt_rtstateAction_serchByCondition", |
| | | data: "rtstate.battGroupId="+params |
| | | }) |
| | | } |
| | |
| | | export const realTimeSearch = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Batt_rtdataAction_serchByCondition", |
| | | url: "Batt_rtdataAction_serchByCondition", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const realTimeAlarm = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Dev_paramAction!serchParamById", |
| | | url: "Dev_paramAction!serchParamById", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const realTimeNot = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Batt_attentionAction!judgeInOrNot", |
| | | url: "Batt_attentionAction!judgeInOrNot", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const realTimeAdd = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Batt_attentionAction!add", |
| | | url: "Batt_attentionAction!add", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const realTimeState = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Batt_rtstateAction!serchDisOrChargrNew", |
| | | url: "Batt_rtstateAction!serchDisOrChargrNew", |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const realTimeColor = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Chart_ColorAction!serchByCondition", |
| | | url: "Chart_ColorAction!serchByCondition", |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const realTimeColorParams = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Chart_ColorAction!update", |
| | | url: "Chart_ColorAction!update", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | export const realTimeAlarmStatus = () => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Fbs9100_stateAction_action_serchBy61850Alarms", |
| | | url: "Fbs9100_stateAction_action_serchBy61850Alarms", |
| | | data: null |
| | | }) |
| | | } |
| | |
| | | export const realTimeCurve = (params) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/BattresdataAction!serchByMonHistory", |
| | | url: "BattresdataAction!serchByMonHistory", |
| | | data: "json=" + JSON.stringify(params) |
| | | }) |
| | | } |
| | |
| | | <span>蓄电池监控平台</span> |
| | | <span class="sys-version">V{{version}}</span> |
| | | </div> |
| | | <div class="page-header-content"> |
| | | <!-- <div class="page-header-content"> |
| | | <div class="header-info-list"> |
| | | <div class="header-info-item"> |
| | | <progress-bar |
| | |
| | | <hdw-badge-btn text="未完成放电计划数" :value="0"></hdw-badge-btn> |
| | | <hdw-badge-btn text="核容测试设备" :value="0"></hdw-badge-btn> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> --> |
| | | <div class="page-header-right" slot="footer"> |
| | | <div class="hdw-avatar"> |
| | | <span class="hdw-avatar-icon"> |
| | |
| | | |
| | | <script> |
| | | import config from '../../package.json' |
| | | import HdwBadgeBtn from './HdwBadgeBtn' |
| | | // import HdwBadgeBtn from './HdwBadgeBtn' |
| | | |
| | | export default { |
| | | components: { |
| | | HdwBadgeBtn |
| | | // HdwBadgeBtn |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | // src: "#/internalTest", |
| | | // closable: true |
| | | // }, |
| | | { |
| | | label: "历史数据管理", |
| | | name: "historyInfoMager", |
| | | src: "#/dataMager/historyInfo", |
| | | closable: true |
| | | }, |
| | | // { |
| | | // label: "历史数据管理", |
| | | // name: "historyInfoMager", |
| | | // src: "#/dataMager/historyInfo", |
| | | // closable: true |
| | | // }, |
| | | { |
| | | label: "电池关注管理", |
| | | name: "batteryMager", |
| | |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "告警管理", |
| | | name: "alarmMager", |
| | | src: "", |
| | | icon: "el-icon-message-solid", |
| | | closable: false, |
| | | childrens: [ |
| | | { |
| | | label: "电池告警历史查询", |
| | | name: "batteryrHistoryquery", |
| | | src: "#/batteryrHistoryquery", |
| | | closable: true |
| | | }, |
| | | { |
| | | label: "电池告警实时查询", |
| | | name: "batteryrTimequery", |
| | | src: "#/batteryrTimequery", |
| | | closable: true |
| | | }, |
| | | { |
| | | label: "设备告警历史查询", |
| | | name: "deviceHistoryquery", |
| | | src: "#/deviceHistoryquery", |
| | | closable: true |
| | | }, |
| | | { |
| | | label: "设备告警实时查询", |
| | | name: "deviceTimequery", |
| | | src: "#/deviceTimequery", |
| | | closable: true |
| | | }, |
| | | { |
| | | label: "电池告警参数设置", |
| | | name: "batterypaSetting", |
| | | src: "#/batterypaSetting", |
| | | closable: true |
| | | }, |
| | | { |
| | | label: "设备告警参数设置", |
| | | name: "devicepaSetting", |
| | | src: "#/devicepaSetting", |
| | | closable: true |
| | | } |
| | | ] |
| | | }, |
| | | // { |
| | | // label: "告警管理", |
| | | // name: "alarmMager", |
| | | // src: "", |
| | | // icon: "el-icon-message-solid", |
| | | // closable: false, |
| | | // childrens: [ |
| | | // { |
| | | // label: "电池告警历史查询", |
| | | // name: "batteryrHistoryquery", |
| | | // src: "#/batteryrHistoryquery", |
| | | // closable: true |
| | | // }, |
| | | // { |
| | | // label: "电池告警实时查询", |
| | | // name: "batteryrTimequery", |
| | | // src: "#/batteryrTimequery", |
| | | // closable: true |
| | | // }, |
| | | // { |
| | | // label: "设备告警历史查询", |
| | | // name: "deviceHistoryquery", |
| | | // src: "#/deviceHistoryquery", |
| | | // closable: true |
| | | // }, |
| | | // { |
| | | // label: "设备告警实时查询", |
| | | // name: "deviceTimequery", |
| | | // src: "#/deviceTimequery", |
| | | // closable: true |
| | | // }, |
| | | // { |
| | | // label: "电池告警参数设置", |
| | | // name: "batterypaSetting", |
| | | // src: "#/batterypaSetting", |
| | | // closable: true |
| | | // }, |
| | | // { |
| | | // label: "设备告警参数设置", |
| | | // name: "devicepaSetting", |
| | | // src: "#/devicepaSetting", |
| | | // closable: true |
| | | // } |
| | | // ] |
| | | // }, |
| | | { |
| | | label: "用户管理", |
| | | name: "userMager", |
| | |
| | | <div class="e-chart-container"> |
| | | <div class="e-chart" :id="id" :ref="id"></div> |
| | | </div> |
| | | <object ref="resizeBox" |
| | | tabindex="-1" |
| | | type="text/html" |
| | | aria-hidden='true' |
| | | data="about:blank" |
| | | class="resize-box"></object> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | this.$G.chartManage.set(this.id, chart); |
| | | // 设置配置项 |
| | | this.setOption(); |
| | | |
| | | // 容器大小发生变化 |
| | | this.$refs.resizeBox.contentDocument.defaultView.addEventListener('resize',()=>{ |
| | | chart.resize(); |
| | | }); |
| | | } |
| | | } |
| | | </script> |
| | |
| | | height: 100%; |
| | | box-sizing: border-box; |
| | | } |
| | | .resize-box { |
| | | display: block; |
| | | position: absolute; |
| | | top: 0px; |
| | | left: 0px; |
| | | width: 100%; |
| | | height: 100%; |
| | | border: none; |
| | | padding: 0px; |
| | | margin: 0px; |
| | | opacity: 0; |
| | | z-index: -1000; |
| | | pointer-events: none |
| | | } |
| | | </style> |
| | |
| | | <div class="e-chart-container"> |
| | | <div class="e-chart" :id="id" :ref="id"></div> |
| | | </div> |
| | | <object ref="resizeBox" |
| | | tabindex="-1" |
| | | type="text/html" |
| | | aria-hidden='true' |
| | | data="about:blank" |
| | | class="resize-box"></object> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | ] |
| | | }] |
| | | }); |
| | | console.log(this.$refs.resizeBox) |
| | | // 容器大小发生变化 |
| | | this.$refs.resizeBox.contentDocument.defaultView.addEventListener('resize',()=>{ |
| | | chart.resize(); |
| | | }); |
| | | } |
| | | } |
| | | </script> |
| | |
| | | height: 100%; |
| | | box-sizing: border-box; |
| | | } |
| | | .resize-box { |
| | | display: block; |
| | | position: absolute; |
| | | top: 0px; |
| | | left: 0px; |
| | | width: 100%; |
| | | height: 100%; |
| | | border: none; |
| | | padding: 0px; |
| | | margin: 0px; |
| | | opacity: 0; |
| | | z-index: -1000; |
| | | pointer-events: none |
| | | } |
| | | </style> |
| | | |
| | |
| | | </div> |
| | | </div> |
| | | <div class="page-content"> |
| | | <div class="page-content-tools"> |
| | | <div class="page-content-tools" v-if="control.show"> |
| | | <el-popover |
| | | placement="bottom" |
| | | trigger="hover" |
| | | v-show="showControl"> |
| | | trigger="hover"> |
| | | <div class="hdw-menu-list"> |
| | | <ul> |
| | | <li class="hdw-menu-item"><a @click="dischargeDialog.show = true" href="javascript:void(0);">启动核容测试</a></li> |
| | | <li class="hdw-menu-item"><a @click="stopTest" href="javascript:void(0);">停止测试</a></li> |
| | | <li class="hdw-menu-item"><a @click="systemDialog.show = true" href="javascript:void(0);">系统参数设置</a></li> |
| | | <li class="hdw-menu-item"><a href="javascript:void(0);">清除告警</a></li> |
| | | <li class="hdw-menu-item"><a href="javascript:void(0);">启动养护/除硫</a></li> |
| | | <li class="hdw-menu-item"><a href="javascript:void(0);">停止养护/除硫</a></li> |
| | | <li class="hdw-menu-item"><a href="javascript:void(0);">启动离线养护</a></li> |
| | | <li class="hdw-menu-item"><a href="javascript:void(0);">停止离线养护</a></li> |
| | | <li class="hdw-menu-item"><a href="javascript:void(0);">定期重启设备</a></li> |
| | | <li class="hdw-menu-item"><a href="javascript:void(0);">重启设备</a></li> |
| | | <li class="hdw-menu-item" v-if="control.data.startTest.show"> |
| | | <a @click="dischargeDialog.show = true" href="javascript:void(0);">启动核容测试</a> |
| | | </li> |
| | | <li class="hdw-menu-item" v-if="control.data.stopTest.show"> |
| | | <a @click="stopTest" href="javascript:void(0);">停止测试</a> |
| | | </li> |
| | | <li class="hdw-menu-item" v-if="control.data.setSystemParams"> |
| | | <a @click="systemDialog.show = true" href="javascript:void(0);">系统参数设置</a> |
| | | </li> |
| | | <li class="hdw-menu-item" v-if="control.data.clearWarn.show"> |
| | | <a href="javascript:void(0);">清除告警</a> |
| | | </li> |
| | | <li class="hdw-menu-item" v-if="control.data.startYH.show"> |
| | | <a href="javascript:void(0);">启动养护/除硫</a> |
| | | </li> |
| | | <li class="hdw-menu-item" v-if="control.data.stopYH.show"> |
| | | <a href="javascript:void(0);">停止养护/除硫</a> |
| | | </li> |
| | | <li class="hdw-menu-item" v-if="control.data.startOutlineYH.show"> |
| | | <a href="javascript:void(0);">启动离线养护</a> |
| | | </li> |
| | | <li class="hdw-menu-item" v-if="control.data.stopOutlineYH.show"> |
| | | <a href="javascript:void(0);">停止离线养护</a> |
| | | </li> |
| | | <li class="hdw-menu-item" v-if="control.data.circleRestart.show"> |
| | | <a href="javascript:void(0);">定期重启设备</a> |
| | | </li> |
| | | <li class="hdw-menu-item" v-if="control.data.restart.show"> |
| | | <a href="javascript:void(0);">重启设备</a> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | <button class="hdw-btn" slot="reference"> |
| | |
| | | systemDialog: { |
| | | show: false, |
| | | }, |
| | | control: { |
| | | show: true, |
| | | data: { |
| | | startTest: { // 启动核容测试 |
| | | show: true, |
| | | id: 11, |
| | | }, |
| | | stopTest: { // 停止测试 |
| | | show: true, |
| | | id: 12 |
| | | }, |
| | | setSystemParams: { // 系统参数设置 |
| | | show: true, |
| | | id: 13 |
| | | }, |
| | | clearWarn: { // 清理告警 |
| | | show: true, |
| | | id: 14 |
| | | }, |
| | | startYH: { // 启动养护/除硫 |
| | | show: true, |
| | | id: 15 |
| | | }, |
| | | stopYH: { // 停止养护/除硫 |
| | | show: true, |
| | | id: 16 |
| | | }, |
| | | startOutlineYH: { // 启动离线养护/除硫 |
| | | show: true, |
| | | id: 17 |
| | | }, |
| | | stopOutlineYH: { // 停止离线养护/除硫 |
| | | show: true, |
| | | id: 18 |
| | | }, |
| | | circleRestart: { // 定期重启 |
| | | show: true, |
| | | id: 19 |
| | | }, |
| | | restart: { // 重启 |
| | | show: true, |
| | | id: 20 |
| | | }, |
| | | } |
| | | } |
| | | }; |
| | | }, |
| | | methods: { |
| | |
| | | // 提示信息 |
| | | this.$layer.msg('停止测试失败,停止测试请求异常!'); |
| | | }); |
| | | } |
| | | }, |
| | | }, |
| | | computed: { |
| | | battFullName() { |
| | |
| | | :titles="['未添加状态信息', '已添加状态信息']" |
| | | :button-texts="['移除', '添加']" |
| | | :data="status.data" |
| | | class="transfer-width320"> |
| | | class="transfer-width320" |
| | | @change="handlerChange"> |
| | | </el-transfer> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="功能列表"> |
| | | <el-tab-pane label="功能列表" class="el-transfer-container"> |
| | | <el-transfer |
| | | v-model="status.value" |
| | | v-model="control.value" |
| | | filterable |
| | | :props="status.props" |
| | | :titles="['未添加状态信息', '已添加状态信息']" |
| | | :props="control.props" |
| | | :titles="['未添加功能', '已添加功能']" |
| | | :button-texts="['移除', '添加']" |
| | | :data="status.data" |
| | | class="transfer-width320"> |
| | | :data="control.data" |
| | | class="transfer-width320" |
| | | @change="handlerChange"> |
| | | </el-transfer> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | |
| | | }).catch(error=>{ |
| | | console.log(error); |
| | | }) |
| | | }, |
| | | searchControl() { |
| | | this.$apis.pageSetting.realTime.searchControl().then(res=>{ |
| | | let rs = JSON.parse(res.data.result); |
| | | let data = []; |
| | | let addData = []; |
| | | if(rs.code == 1) { |
| | | data = rs.data; |
| | | addData = data.filter(item=>{ |
| | | return item.status; |
| | | }).map(item=>{ |
| | | return item.id; |
| | | }); |
| | | } |
| | | this.control.data = data; |
| | | this.control.value = addData; |
| | | }).catch(error=>{ |
| | | console.log(error); |
| | | }) |
| | | }, |
| | | handlerChange(list, type, values) { |
| | | // 根据类型确定事件 |
| | | switch(type) { |
| | | case 'left': |
| | | this.remove(values); |
| | | break; |
| | | case 'right': |
| | | this.add(values); |
| | | break; |
| | | } |
| | | }, |
| | | add(list) { |
| | | this.$apis.pageSetting.realTime.add(list).then(res=>{ |
| | | let rs = JSON.parse(res.data.result); |
| | | if(rs.code == 1) { |
| | | // 提示信息 |
| | | this.$message({ |
| | | type: 'success', |
| | | message: rs.msg, |
| | | }); |
| | | }else { |
| | | // 提示信息 |
| | | this.$message({ |
| | | type: 'error', |
| | | message: rs.msg, |
| | | }); |
| | | } |
| | | // 更新数据 |
| | | this.searchStatus(); |
| | | this.searchControl(); |
| | | }).catch(error=>{ |
| | | console.log(error); |
| | | }); |
| | | }, |
| | | remove(list) { |
| | | this.$apis.pageSetting.realTime.remove(list).then(res=>{ |
| | | let rs = JSON.parse(res.data.result); |
| | | if(rs.code == 1) { |
| | | // 提示信息 |
| | | this.$message({ |
| | | type: 'success', |
| | | message: rs.msg, |
| | | }); |
| | | }else { |
| | | // 提示信息 |
| | | this.$message({ |
| | | type: 'error', |
| | | message: rs.msg, |
| | | }); |
| | | } |
| | | // 更新数据 |
| | | this.searchStatus(); |
| | | this.searchControl(); |
| | | }).catch(error=>{ |
| | | console.log(error); |
| | | }); |
| | | } |
| | | }, |
| | | mounted() { |
| | | // 查询状态信息 |
| | | this.searchStatus(); |
| | | |
| | | // 查询控制信息 |
| | | this.searchControl(); |
| | | } |
| | | } |
| | | </script> |
| | |
| | | module.exports = { |
| | | publicPath: './', |
| | | productionSourceMap: false, |
| | | configureWebpack: config=> { |
| | | config.externals = { |
| | | BMap: "BMap" |