| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | {% extends "../../theme.html" %}{% block content %}{%include 'menu.html'%}<div class="pannel">    <div class="ul5">        {% for v in data['list'] %}        <dl>            <dt>            	{{v['gatewayName']}}/{{v['deviceName']}}	            <div class="right r-btns">	            {% if v['status'] == True %}	            <a href="javascript:;" onclick="Farm.Cancel(this, '{{v['id']}}', '/device/update_set_condition?id={{v['id']}}')" class="link primary">取消设置</a>	           	{% else %}	           	{{v['cdates']}} <a href="javascript:;" onclick="Farm.Recovery(this, '{{v['id']}}', '/device/update_set_condition?id={{v['id']}}')" class="link primary">恢复</a>	            {% end %}	            </div>            </dt>            <dt><span class="gray">{{v['condition']}} {{v['value']}} {{v['unit']}}</span></dt>            <dt>{{v['oper']}} {% if v['notice'] %}报警{% end %}</dt>            {% for dv in v['device'] %}            <dd>{{dv['name']}}</dd>            {% end %}        </dl>        {% end %}    </div></div>{%set url = data['url']['condition'] %}{%include '../../inc/page.html'%}{% end %}{% block script %}<script>function device(e) {	var val = e.val();	url = '/device/get?id=' + val;	$.get(url, function(t){		$("#update_device").html(t);	})}</script>{% end %}
 |