|
@@ -4,18 +4,20 @@ import { loginCipher } from '/@/settings/encryptionSetting';
|
|
|
|
|
|
|
|
|
|
|
|
|
enum Api {
|
|
enum Api {
|
|
|
- getDevice = '/monitor/device',
|
|
|
|
|
- getCameraUrl = '/monitor/camera/queryByCameraCode',
|
|
|
|
|
- devicecontrol = '/safety/ventanalyMonitorData/devicecontrol_ssl',
|
|
|
|
|
- //insertSyncRule = '/ventanaly-device/synccontrol/upcoming/saveOrUpdateRule',
|
|
|
|
|
- insertSyncRule = '/ventanaly-device/monitor/timeSync/insertSyncRule',
|
|
|
|
|
- upcoming = '/ventanaly-device/synccontrol/upcoming',
|
|
|
|
|
- GetSyncRule='/ventanaly-device/synccontrol/upcoming/GetSyncRule',
|
|
|
|
|
- GetSyncRuleOperationLog='/ventanaly-device/synccontrol/upcoming/GetSyncRuleOperationLog',
|
|
|
|
|
- GetSyncRuleExecLog='/ventanaly-device/synccontrol/upcoming/GetSyncRuleExecLog',
|
|
|
|
|
- list='/safety/ventanalyDeviceInfo/list',
|
|
|
|
|
- edit='/ventanaly-device/safety/ventanalyDeviceInfo/batchEdit',
|
|
|
|
|
- manualTimeSync='/ventanaly-device/monitor/timeSync/manualTimeSync'
|
|
|
|
|
|
|
+getDevice = '/monitor/device',
|
|
|
|
|
+getCameraUrl = '/monitor/camera/queryByCameraCode',
|
|
|
|
|
+devicecontrol = '/safety/ventanalyMonitorData/devicecontrol_ssl',
|
|
|
|
|
+//insertSyncRule = '/ventanaly-device/synccontrol/upcoming/saveOrUpdateRule',
|
|
|
|
|
+insertSyncRule = '/ventanaly-device/monitor/timeSync/insertSyncRuleClock',
|
|
|
|
|
+upcoming = '/ventanaly-device/synccontrol/upcoming',
|
|
|
|
|
+GetSyncRule='/ventanaly-device/synccontrol/upcoming/GetSyncRule',
|
|
|
|
|
+GetSyncRuleOperationLog='/ventanaly-device/synccontrol/upcoming/GetSyncRuleOperationLog',
|
|
|
|
|
+GetSyncRuleExecLog='/ventanaly-device/synccontrol/upcoming/GetSyncRuleExecLog',
|
|
|
|
|
+list='/safety/ventanalyDeviceInfo/list',
|
|
|
|
|
+edit='/ventanaly-device/safety/ventanalyDeviceInfo/batchEdit',
|
|
|
|
|
+manualTimeSync='/ventanaly-device/monitor/timeSync/manualTimeSync',
|
|
|
|
|
+isPasswordCurrect='/ventanaly-device/monitor/timeSync/isPasswordCurrect'
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -33,10 +35,10 @@ export const cameraAddr = (params) => defHttp.get({ url: Api.getCameraUrl, param
|
|
|
* @param params
|
|
* @param params
|
|
|
*/
|
|
*/
|
|
|
export const devicecontrol = (params) => {
|
|
export const devicecontrol = (params) => {
|
|
|
- // 加密password
|
|
|
|
|
- const encryption = new AesEncryption({ key: loginCipher.key, iv: loginCipher.iv });
|
|
|
|
|
- params.password = encryption.encryptByAES(params.password);
|
|
|
|
|
- return defHttp.put({ url: Api.devicecontrol, params });
|
|
|
|
|
|
|
+// 加密password
|
|
|
|
|
+const encryption = new AesEncryption({ key: loginCipher.key, iv: loginCipher.iv });
|
|
|
|
|
+params.password = encryption.encryptByAES(params.password);
|
|
|
|
|
+return defHttp.put({ url: Api.devicecontrol, params });
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -49,7 +51,7 @@ export const GetSyncRule = (params) => defHttp.post({ url: Api.GetSyncRule, para
|
|
|
* @param params
|
|
* @param params
|
|
|
*/
|
|
*/
|
|
|
export const insertSyncRule = (params) => {
|
|
export const insertSyncRule = (params) => {
|
|
|
- return defHttp.post({ url: Api.insertSyncRule, params });
|
|
|
|
|
|
|
+return defHttp.post({ url: Api.insertSyncRule, params });
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
//读取未来30秒内的预告
|
|
//读取未来30秒内的预告
|
|
@@ -66,3 +68,5 @@ export const controlList = (params) => defHttp.get({ url: Api.list, params });
|
|
|
export const confirmChoice = (params) => defHttp.put({ url: Api.edit, params });
|
|
export const confirmChoice = (params) => defHttp.put({ url: Api.edit, params });
|
|
|
//同步PLC时钟
|
|
//同步PLC时钟
|
|
|
export const manualTimeSync = () => defHttp.post({ url: Api.manualTimeSync });
|
|
export const manualTimeSync = () => defHttp.post({ url: Api.manualTimeSync });
|
|
|
|
|
+//设备集控选择密码设置
|
|
|
|
|
+export const isPasswordCurrect = (params) => defHttp.post({ url: Api.isPasswordCurrect,params });
|