mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 07:52:42 +08:00
v1 vsersion
This commit is contained in:
51
templates/ci_audit_notify.html
Normal file
51
templates/ci_audit_notify.html
Normal file
@@ -0,0 +1,51 @@
|
||||
<body xmlns="http://www.w3.org/1999/html">
|
||||
<br>
|
||||
|
||||
<table dir="ltr" border="1" cellpadding="0"
|
||||
style="font-family:arial,sans-serif;font-size:13px; width:0;border-collapse:collapse;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>变更设备</th>
|
||||
<!--<th>来源</th>-->
|
||||
<th>变更字段</th>
|
||||
<th>原值</th>
|
||||
<th>变更值</th>
|
||||
<th>创建时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{%- for res in result %}
|
||||
{%- for v in res.get("values") %}
|
||||
<tr style="height: 20px">
|
||||
{%- if res.get("values").index(v) == 0 %}
|
||||
<td dir="ltr" rowspan="{{res.get('values') | length}}" style="min-width: 100px">
|
||||
{{res.get("ci_id")}}
|
||||
</td>
|
||||
{%- endif %}
|
||||
<td nowrap="" align="center" style="min-width:80px; padding-left:10px; text-align:left">
|
||||
{{ v.get('attr_name') }}
|
||||
</td>
|
||||
<td nowrap="" align="center" style="padding-left:10px; text-align:left">
|
||||
{{ v.get('cur_value') }}
|
||||
</td>
|
||||
<td nowrap="" align="center" style="padding-left:10px; text-align:left">
|
||||
{{ v.get('new_value') }}
|
||||
</td>
|
||||
<td nowrap="" align="center" style="padding-left:10px; text-align:left">
|
||||
{{ v.get('created_at') }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
{%- endfor %}
|
||||
{%- endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
<p class="MsoNormal"><span style="font-family:宋体; background-color: yellowgreen"></span>
|
||||
<span lang="EN-US"><u></u><u></u></span>
|
||||
<a href="http://web.cmdb.dp/audit/">查看详情</a>
|
||||
</p>
|
||||
<br>
|
||||
</div>
|
||||
</body>
|
27
templates/search.xml
Normal file
27
templates/search.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<responce>
|
||||
<numfound>{{ numfound }}</numfound>
|
||||
<page>{{ page }}</page>
|
||||
<cis>
|
||||
{% for ci in result %}
|
||||
<ci type="{{ ci['_type'] }}" id="{{ ci['_id'] }}" type_name="{{ ci['ci_type'] }}" >
|
||||
{% for k, v in ci.items() %}
|
||||
{% if not k.startswith('_') %}
|
||||
{% for item in v | convert_to_list %}
|
||||
<attribute name="{{ k }}">{{ item }}</attribute>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ci>
|
||||
{% endfor %}
|
||||
</cis>
|
||||
<facets>
|
||||
{% for k,v in facet.items() %}
|
||||
<facet attribute="{{ k }}">
|
||||
{% for item in v %}
|
||||
<value name="{{ item[0] }}">{{ item[1] }}</value>
|
||||
{% endfor %}
|
||||
</facet>
|
||||
{% endfor %}
|
||||
</facets>
|
||||
</responce>
|
19
templates/search_tidy.xml
Normal file
19
templates/search_tidy.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<responce>
|
||||
<code>{{ code }}</code>
|
||||
<cis>
|
||||
{% for k, v in ret.items() %}
|
||||
<group by="{{ k }}">
|
||||
{% for ci in v %}
|
||||
|
||||
<ci>
|
||||
{% for item in ci|convert_to_list %}
|
||||
<attribute name="{{ k }}">{{ item }}</attribute>
|
||||
{% endfor %}
|
||||
</ci>
|
||||
|
||||
{% endfor %}
|
||||
</group>
|
||||
{% endfor %}
|
||||
</cis>
|
||||
</responce>
|
Reference in New Issue
Block a user