{% extends 'base.html' %} {% block title %}{{ '改' if editing else '新增' }}{{ meta.cn }}{% endblock %} {% block body %}

{{ '编辑' if editing else '新增' }}{{ meta.cn }}

主键 {{ meta.pk|join(' + ') }} · {{ meta.cols|length }} 个字段 · 保存后采集进程 5 秒内热重载点表
{% if editing and row.get('wind_id') %} {% endif %}
{% if err %}
{{ err }}
{% endif %} {% if ok %}
{{ ok }}
{% endif %}
{% for col, cn, req in meta.cols %} {% set chosen = row.get(col) or '' %} {% set is_pk = col in meta.pk %}
{% if col == 'farm_id' and table != 'farm' and opts.get('farm_id') %} {{ '主键,改风场等于换记录,请删掉重建' if editing and is_pk else '从风场台账里选' }} {% elif is_pk %} 主键{% if editing %},保存时以链接里的原值为准{% endif %} {% elif col == 'enabled' %} 停用只改台账,采集进程要重启才不监听这个端口 {% else %}   {% endif %}
{% endfor %}
{% if editing and pk_qs %}
{% endif %} {% endblock %}