解算结果显示页面增加enabled
This commit is contained in:
parent
def9f4d7eb
commit
7abf19650e
@ -74,16 +74,14 @@
|
|||||||
}],
|
}],
|
||||||
cols: [[
|
cols: [[
|
||||||
{field: 'deviceid', title: '设备号'},
|
{field: 'deviceid', title: '设备号'},
|
||||||
{field: 'createtime', title: '上报时间', templet: "<div>{{layui.util.toDateString(d.createtime, 'yyyy-MM-dd HH:mm:ss')}}</div>"},
|
{field: 'createtime', title: '上报时间', width:'18%', templet: "<div>{{layui.util.toDateString(d.createtime, 'yyyy-MM-dd HH:mm:ss')}}</div>"},
|
||||||
{field: 'b562e', title: '原始东'},
|
{field: 'b562e', title: '原始东'},
|
||||||
{field: 'b562n', title: '原始北'},
|
{field: 'b562n', title: '原始北'},
|
||||||
{field: 'b562d', title: '原始天'},
|
{field: 'b562d', title: '原始天'},
|
||||||
{field: 'rb562e', title: '相对东'},
|
{field: 'rb562e', title: '相对东'},
|
||||||
{field: 'rb562n', title: '相对北'},
|
{field: 'rb562n', title: '相对北'},
|
||||||
{field: 'rb562d', title: '相对天'},
|
{field: 'rb562d', title: '相对天'},
|
||||||
{field: 'resulte', title: '融合东'},
|
{field: 'enabled', title: '有效',templet: '#enabledTrans'},
|
||||||
{field: 'resultn', title: '融合北'},
|
|
||||||
{field: 'resultd', title: '融合天'},
|
|
||||||
{field: 'pps', title: '平均延迟'}
|
{field: 'pps', title: '平均延迟'}
|
||||||
]],
|
]],
|
||||||
limits: [10, 15, 20, 25, 50, 100],
|
limits: [10, 15, 20, 25, 50, 100],
|
||||||
@ -246,4 +244,11 @@
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script type="text/html" id="enabledTrans">
|
||||||
|
{{# if(d.enabled == false){ }}
|
||||||
|
<span class="layui-badge layui-bg-gray">无效</span>
|
||||||
|
{{# } else { }}
|
||||||
|
<span class="layui-badge layui-bg-green">有效</span>
|
||||||
|
{{# } }}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user