From 761c0fd8ea4bac8c6f3ae3076a9ef2e8aba0689b Mon Sep 17 00:00:00 2001
From: jhz <jinghz@oceic.com>
Date: 星期四, 11 八月 2022 19:50:04 +0800
Subject: [PATCH] 测试列宽
---
WebTM/views/user/login.html | 40 +++++++++++++++++++++++++++++++++++++++-
1 files changed, 39 insertions(+), 1 deletions(-)
diff --git a/WebTM/views/user/login.html b/WebTM/views/user/login.html
index 8c15345..cf6d621 100644
--- a/WebTM/views/user/login.html
+++ b/WebTM/views/user/login.html
@@ -113,14 +113,23 @@
if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
var data = result.data;
for (var i = 0; i < data.length; i++) {
+ if (i == 0)
+ Organization += '<option style="color:blue;" value="' + data[i].ID + '" selected>' + data[i].Name + '</option>';
+ else
Organization += '<option style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>';
+
}
$("#Organization").append(Organization);
form.render('select');
+
+ //璇诲彇閰嶇疆鏂囦欢
+ get_ReadConfigFile();
}
layer.closeAll("loading");
}
})
+
+
//form.render();
@@ -148,6 +157,33 @@
$("#LAY-user-login-password").focus();
}
})
+
+
+ //璇诲彇閰嶇疆鏂囦欢
+ function get_ReadConfigFile() {
+ //鑾峰彇鏈湴瀛樺偍鐨勬暟鎹�
+ var data = localStorage.getItem("data");
+ if (data != null) {
+ var data2 = JSON.parse(data);
+ $("#LAY-user-login-username").val(data2["UserID"]);
+ $("#Organization").val(data2["OrgID"]);
+ form.render('select');
+ }
+ console.log(JSON.parse(data));
+ }
+
+ //瀛樺偍閰嶇疆鏂囦欢
+ function get_WriteConfigFile() {
+ //娓呯┖鏈湴瀛樺偍鐨勬暟鎹�
+ localStorage.clear();
+ var data = {
+ UserID: sessionStorage["Czybm"]
+ , OrgID: sessionStorage["OrganizationID"]
+ }
+ //鏈湴瀛樺偍
+ localStorage.setItem("data", JSON.stringify(data));
+ }
+
//鐧诲綍
function loging() {
if ($("#Organization").val() == 0) {
@@ -207,6 +243,7 @@
} else {//PC绔�
window.location.href = '../../views/index.html'
}
+ get_WriteConfigFile();
}
else {
// $("#verifycode").click();
@@ -221,6 +258,7 @@
}
})
}
+
function playSound() {
var audio = document.getElementById("cs");
if (audio == null)
@@ -228,7 +266,7 @@
var audio = document.getElementById("cs");
audio.play();
}
-
+
});
</script>
</body>
--
Gitblit v1.9.1