Authored by 王涛

Merge branch 'master-v32-lushangqing' into 'master'

【#830】 停机计划管理,停机模式修改字段配置



See merge request !594
... ... @@ -498,6 +498,25 @@ layui.define(['table', 'form', 'laydate', 'admin', 'layer', 'laytpl', 'common',
resize: false,
area: ['80%', '90%'],
success: function (indexm, layero) {
//start 停机模式从数据字典中获取 2022-05-24
admin.req({
url: common.domainName + '/api-web/manage/ddic/findSucDdics/shutdown_plan_mode'
, method: 'POST'
, async: false
}).done(function (res) {
let radioData=res.data;
let htmlRadio='';
if(radioData && radioData.length>0){
radioData.map(item=>{
htmlRadio+=`<input type="radio" data-sort="`+item.ddicSort+`" name="cutoverMode" lay-filter="shutdownplanMode" value="`+item.ddicSort+`" title="`+item.ddicName+`">`
})
}
$('#shutdownDdic').html(htmlRadio);
$('#shutdownDdic [data-sort]:first-child').attr("checked",true)
}).error(function (error) {
console.error(error);
});
//end lsq 2022-05-24
},
yes: function (index, layero) {
$("#saveshutdownplanBtn").trigger("click");
... ...
... ... @@ -31,10 +31,11 @@
</div>
<div class="layui-form-item">
<label class="layui-form-label" style="min-width: 120px!important;max-width: 120px!important;">停机模式<span style="color: red">*</span></label>
<div class="layui-input-block">
<input type="radio" name="cutoverMode" lay-filter="shutdownplanMode" value="1" title="暂停告警" checked>
<div class="layui-input-block" id="shutdownDdic">
<!--//lsq 停机模式从数据字典中获取 2022-05-24-->
<!--<input type="radio" name="cutoverMode" lay-filter="shutdownplanMode" value="1" title="暂停告警" checked>
<input type="radio" name="cutoverMode" lay-filter="shutdownplanMode" value="2" title="暂停采集">
<input type="radio" name="cutoverMode" lay-filter="shutdownplanMode" value="3" title="暂停通知">
<input type="radio" name="cutoverMode" lay-filter="shutdownplanMode" value="3" title="暂停通知">-->
</div>
</div>
<div class="layui-form-item">
... ...