lgq
2025-11-18 956f10584a109456c1bb8c72c9a4e02494812c03
local/www/detail-ups.html
@@ -11,14 +11,14 @@
</head>
<body class="pdgxq-body">
<div class="i-container">
<div class="i-container div-body">
    <div class="jmkt-main">
        <div class="layui-fluid">
            <div class="pdgxq-m1 layui-row layui-col-space20">
                <div class="layui-col-lg5 layui-col-md5">
                    <div class="pdgxq-m1-left pdgxq-m1-box" style="height: 730px">
                    <div class="pdgxq-m1-left pdgxq-m1-box" style="">
                        <div class="pdgxq-H">
                            <h3><i></i>实时监控</h3>
                        </div>
@@ -203,7 +203,7 @@
                    }
                    html += "<tr><td>"+cur.name+"</td><td>"+str+"</td><td>"+time+"</td></tr>";
                }else{
                    html += "<tr><td>"+cur.name+"</td><td>"+renderValue(device.id,device.type,cur.passcode,cur.value)+"</td><td>"+time+"</td></tr>";
                    html += "<tr><td>"+cur.name+"</td><td>"+renderValue(device.id,device.type,cur)+"</td><td>"+time+"</td></tr>";
                    //渲染列表
@@ -284,7 +284,7 @@
                    }
                    html += "<tr><td>"+cur.name+"</td><td>"+str+"</td><td>"+time+"</td></tr>";
                }else{
                    html += "<tr><td>"+cur.name+"</td><td>"+renderValue(device.id,device.type,cur.passcode,cur.value)+"</td><td>"+time+"</td></tr>";
                    html += "<tr><td>"+cur.name+"</td><td>"+renderValue(device.id,device.type,cur)+"</td><td>"+time+"</td></tr>";
                    //渲染列表
                    // html += "<tr><td>"+cur.name+"</td><td>"+(cur.value?cur.value:"")+"</td><td>"+time+"</td></tr>";
@@ -357,8 +357,8 @@
        }
    }
    function renderValue(id,type,code,value) {
        var res = value;
    function renderValue(id,type,cur) {
        var res = cur.value;
        // if(type == "1001"){
        //     if(code == 3 || code == 5){