Compare commits
3 Commits
190467701e
...
dc3f0bdc97
| Author | SHA1 | Date |
|---|---|---|
|
|
dc3f0bdc97 | |
|
|
97331f810b | |
|
|
6bc1c3c7e1 |
|
|
@ -9,6 +9,7 @@
|
||||||
<script src="lib/flex.js"></script>
|
<script src="lib/flex.js"></script>
|
||||||
<link rel="stylesheet" href="css/safetyproduction.css"/>
|
<link rel="stylesheet" href="css/safetyproduction.css"/>
|
||||||
<link rel="stylesheet" href="../res/assets/css/xfk.css"/>
|
<link rel="stylesheet" href="../res/assets/css/xfk.css"/>
|
||||||
|
<script src="~/res/js/crypto-js.min.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<form id="form1" runat="server">
|
<form id="form1" runat="server">
|
||||||
|
|
@ -451,9 +452,12 @@
|
||||||
|
|
||||||
|
|
||||||
} else if (type == 'Video') {
|
} else if (type == 'Video') {
|
||||||
var videoURL ='<%=VideoURL %>'
|
var videoURL = '<%=VideoURL %>'
|
||||||
window.open(videoURL + "#/screen", '_blank'); //视频监控
|
var username = 'admin'
|
||||||
|
var password = '<%=PassWord %>';
|
||||||
|
var sign = CryptoJS.AES.encrypt(username + "$" + password + "$" + Date.now(), "nbd").toString();
|
||||||
|
sign = encodeURIComponent(sign);
|
||||||
|
window.open(videoURL + "login.html?sign=" + sign, '_blank');
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (type == 'HighRiskWorkPermit') {
|
else if (type == 'HighRiskWorkPermit') {
|
||||||
|
|
@ -981,6 +985,6 @@
|
||||||
aPassChart.setOption(opt);
|
aPassChart.setOption(opt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,28 @@ namespace FineUIPro.Web.common
|
||||||
{
|
{
|
||||||
public partial class main_new0 : PageBase
|
public partial class main_new0 : PageBase
|
||||||
{
|
{
|
||||||
|
protected string VideoURL
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return ConfigurationManager.AppSettings["Video_URL"] ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
protected string PassWord
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
var sysSet17 = (from x in Funs.DB.Sys_Set where x.SetName == "视频监控密码" select x).ToList().FirstOrDefault();
|
||||||
|
if (sysSet17 != null)
|
||||||
|
{
|
||||||
|
|
||||||
|
return Funs.EncryptionPassword(sysSet17.SetValue);
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public static List<Model.Solution_LargerHazard> LargerHazard = new List<Model.Solution_LargerHazard>();
|
public static List<Model.Solution_LargerHazard> LargerHazard = new List<Model.Solution_LargerHazard>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -166,13 +188,7 @@ namespace FineUIPro.Web.common
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected string VideoURL
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return ConfigurationManager.AppSettings["Video_URL"] + "#/screen";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#region 加载项目信息
|
#region 加载项目信息
|
||||||
protected void getProjectInfo()
|
protected void getProjectInfo()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue