|
@@ -423,7 +423,23 @@
|
|
|
});
|
|
|
|
|
|
markName.on("click", function(){
|
|
|
- window.open("/business/manager/hikcameracontroller/demo_window_simple_preview_wall_special_user?ID="+option.id);
|
|
|
+ let flag = $("#flag", window.parent.document).val();
|
|
|
+ console.log(typeof flag != "undefined" && flag );
|
|
|
+ try{
|
|
|
+ if(typeof flag != "undefined" && flag ){
|
|
|
+ window.open("/business/manager/hikcameracontroller/demo_window_simple_preview_wall_special_user?ID="+option.id);
|
|
|
+ }else{
|
|
|
+ $.ajax({
|
|
|
+ url : 'http://localhost:8899/camera_id='+res.hikIp+","+res.hikPort+","+res.hikUsername+","+res.hikPassword+","+res.hikDeviceport,
|
|
|
+ error :function () {
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }catch (e) {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
//window.open('http://localhost:8899/camera_id='+option.hik_ip+","+option.hik_port+","+option.hik_username+","+option.hik_password+","+option.hik_deviceport)
|