From 5baca146437e415572b48c35cfa1b7d702bda50b Mon Sep 17 00:00:00 2001
From: 18516761980 <56479841@qq.com>
Date: 星期二, 16 八月 2022 08:18:19 +0800
Subject: [PATCH] #
---
src/main/webapp/views/console.html | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 1093452..312f877 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -603,6 +603,7 @@
var id = this.id.split("-")[1];
$("#siteWindow").attr("style", "display:block;");//鏄剧ずdiv
$("#crnWindow").attr("style", "display:none;");
+ $("#locWindow").attr("style", "display:none;");
$(".detailed").empty();
$('.detailed').append(id + '绔欑偣璇︾粏淇℃伅');
$.ajax({
@@ -633,6 +634,7 @@
var id = this.id.split("-")[1];
$("#crnWindow").attr('style', 'display:block;');
$("#siteWindow").attr("style", "display:none;");
+ $("#locWindow").attr("style", "display:none;");
$('.detailed').empty();
$('.detailed').append(id + '鍙峰爢鍨涙満');
$.ajax({
@@ -671,7 +673,6 @@
},
method: 'post',
success: function (res) {
- console.log(res)
if (res.code === 200) {
$("#locWindow").attr('style', 'display:block;');
$("#siteWindow").attr("style", "display:none;");
@@ -679,9 +680,27 @@
$('.detailed').empty();
$('.detailed').append('搴撲綅鍙凤細' + id );
for (var val in res.data) {
- console.log(val)
+ switch (res.data[val]) {
+ case "LOC_STAY_OVER" :
+ res.data[val] = "闈欑疆瀹屾垚"
+ break;
+ case "LOC_STAY" :
+ res.data[val] = "鍦ㄥ簱闈欑疆涓�"
+ break;
+ case "LOC_WAIT_TESTINT" :
+ res.data[val] = "鍦ㄥ簱寰呮祴"
+ break;
+ case "LOC_TESTING" :
+ res.data[val] = "鍦ㄥ簱娴嬭瘯涓�"
+ break;
+ case "LOC_ERROR" :
+ res.data[val] = "寮傚父鎶ヨ"
+ break;
+ case "LOC_EMPTY" :
+ res.data[val] = "绌哄簱浣�"
+ break;
+ }
var find = $("#locWindow").find(":input[name='" + val + "']");
- console.log(find)
find.val(res.data[val]);
}
}
--
Gitblit v1.9.1