2025-07-18 09:09:30 +08:00
|
|
|
<div class="mycol" style="width:100%;padding: 10px">
|
2025-05-19 09:54:33 +08:00
|
|
|
<div class="myrow" style="height: 40px">
|
|
|
|
|
<button id="secpolicyBtn" class="btn btn-success btn-lg" style="width: 120px"
|
|
|
|
|
onclick="initSubpage('secpolicy')">安全策略</button>
|
|
|
|
|
<button id="secrecordBtn" class="btn btn-primary" style="width: 120px; margin-left: 10px"
|
|
|
|
|
onclick="initSubpage('secrecord')">安全日志</button>
|
|
|
|
|
</div>
|
|
|
|
|
<hr style="margin: 10px 0 10px 0;" />
|
|
|
|
|
|
|
|
|
|
<div id="secpolicy" style="display: block">
|
|
|
|
|
<button class="btn btn-success" style="width: 90px" onclick="showPop('secpolicy')">新增</button>
|
|
|
|
|
<table id="secpolicyTable" class="stripe" style="width: 100%; margin-top: 10px"></table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="secrecord" style="display: none">
|
|
|
|
|
<table id="secrecordTable" class="stripe" style="width: 100%; margin-top: 10px"></table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="secpolicyPop" class="mask">
|
|
|
|
|
<div class="pop" style="height: 600px">
|
|
|
|
|
<p id="secpolicyPopTitle" class="pop_title"></p>
|
|
|
|
|
<form id="secpolicyForm" class="was-validated" style="margin: 0 80px 0 80px; padding-top: 30px">
|
|
|
|
|
<div class="input-group mb-3">
|
|
|
|
|
<span class="input-group-text" style="width: 90px; background-color: #a6c0da">事件名称*</span>
|
|
|
|
|
<input id="secpolicyForm_name" type="text" class="form-control" required />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-group mb-3">
|
|
|
|
|
<span class="input-group-text" style="width: 90px; background-color: #a6c0da">事件类型*</span>
|
|
|
|
|
<select id="secpolicyForm_type" class="form-select">
|
|
|
|
|
<option value="1">系统</option>
|
|
|
|
|
<option value="2">光伏设备</option>
|
|
|
|
|
<option value="3">储能设备</option>
|
|
|
|
|
<option value="4">充电设备</option>
|
|
|
|
|
<option value="5">负荷设备</option>
|
2025-07-31 17:56:08 +08:00
|
|
|
<option value="0">其它</option>
|
2025-05-19 09:54:33 +08:00
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-group mb-3">
|
|
|
|
|
<span class="input-group-text" style="width: 90px; background-color: #a6c0da">事件编号*</span>
|
|
|
|
|
<input id="secpolicyForm_code" type="text" class="form-control" required />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-group mb-3">
|
|
|
|
|
<span class="input-group-text" style="width: 90px; background-color: #a6c0da">安全级别</span>
|
|
|
|
|
<select id="secpolicyForm_level" class="form-select">
|
|
|
|
|
<option value="1">L1</option>
|
|
|
|
|
<option value="2">L2</option>
|
|
|
|
|
<option value="3">L3</option>
|
|
|
|
|
<option value="4">L4</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-group mb-3">
|
|
|
|
|
<span class="input-group-text" style="width: 90px; height: 40px; background-color: #a6c0da">描述</span>
|
|
|
|
|
<textarea id="secpolicyForm_describe" class="form-control" style="height: 80px"></textarea>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-group mb-3">
|
|
|
|
|
<span class="input-group-text" style="width: 90px; background-color: #a6c0da">操作参数</span>
|
|
|
|
|
<input id="secpolicyForm_email" type="text" class="form-control" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-group mb-3">
|
|
|
|
|
<span class="input-group-text" style="width: 90px; background-color: #a6c0da">是否启用</span>
|
|
|
|
|
<div class="btn-group" style="margin-left: 5px">
|
|
|
|
|
<input id="secpolicyForm_on" type="checkbox" class="btn-check" autocomplete="off"
|
|
|
|
|
onclick="G.switchSetStatus('secpolicyForm_on', 'secpolicyForm_off', this.checked)" />
|
|
|
|
|
<label class="btn btn-outline-primary" for="secpolicyForm_on">开</label>
|
|
|
|
|
<input id="secpolicyForm_off" type="checkbox" class="btn-check" autocomplete="off"
|
|
|
|
|
onclick="G.switchSetStatus('secpolicyForm_on', 'secpolicyForm_off', !this.checked)" checked />
|
|
|
|
|
<label class="btn btn-outline-danger" for="secpolicyForm_off">关</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
<div style="display: flex; justify-content: center; padding: 20px 20px 20px 20px">
|
|
|
|
|
<button id="secpolicyFormOk" class="btn btn-success" style="width: 90px; margin-right: 20px"
|
|
|
|
|
disabled>确定</button>
|
|
|
|
|
<button id="secpolicyFormCannel" class="btn btn-danger" style="width: 90px; margin-left: 20px"
|
|
|
|
|
onclick="G.showElement('secpolicyPop', false)">取消</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|