...
|
...
|
@@ -140,8 +140,10 @@ |
|
|
<label class="col-sm-2 control-label"> <span style="color:red">*</span>SQL:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
<input type="text" class="form-control" id="influxSql" name="influxSql"
|
|
|
placeholder="SQL" size="40"/>
|
|
|
<textarea rows="3" cols="40" id="influxSql" name="influxSql" placeholder="SQL"></textarea>
|
|
|
|
|
|
<%-- <input type="text" class="form-control" id="influxSql" name="influxSql"
|
|
|
placeholder="SQL" size="40"/>--%>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- <div class="form-group">
|
...
|
...
|
@@ -163,8 +165,9 @@ |
|
|
<label class="col-sm-2 control-label"> <span style="color:red">*</span>短信:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
<input type="text" class="form-control" id="sms" name="sms"
|
|
|
placeholder="短信,${_}替换符" size="40"/>
|
|
|
<textarea rows="3" cols="40" id="sms" name="sms" placeholder="短信,${_}替换符"></textarea>
|
|
|
<%-- <input type="text" class="form-control" id="sms" name="sms"
|
|
|
placeholder="短信,${_}替换符" size="40"/>--%>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
...
|
...
|
@@ -319,13 +322,14 @@ |
|
|
field: "id",
|
|
|
width: "5%"
|
|
|
}, {
|
|
|
title: "列名",
|
|
|
field: "fields",
|
|
|
width: "12%"
|
|
|
title: "短信内容",
|
|
|
field: "sms",
|
|
|
align:"left",
|
|
|
width: "20%"
|
|
|
}, {
|
|
|
title: "数据库",
|
|
|
field: "database",
|
|
|
width: "10%"
|
|
|
width: "8%"
|
|
|
}, {
|
|
|
title: "告警类型",
|
|
|
field: "type",
|
...
|
...
|
@@ -380,7 +384,7 @@ |
|
|
}, {
|
|
|
title: "上次执行",
|
|
|
field: "lastTime",
|
|
|
width: "15%"
|
|
|
width: "10%"
|
|
|
}, {
|
|
|
title: "操作",
|
|
|
formatter: function (value, rowData, rowIndex) {
|
...
|
...
|
@@ -404,9 +408,11 @@ |
|
|
$("input[name='influxdbs']").val("");
|
|
|
$("input[name='database']").val("");
|
|
|
$("input[name='tags']").val("");
|
|
|
$("input[name='influxSql']").val("");
|
|
|
// $("input[name='influxSql']").val("");
|
|
|
$("#influxSql").val("");
|
|
|
$("input[name='mobile']").val("");
|
|
|
$("input[name='sms']").val("");
|
|
|
// $("input[name='sms']").val("");
|
|
|
$("#sms").val("");
|
|
|
$("input[name='type']").val("");
|
|
|
$("input[name='interval']").val("");
|
|
|
$("input[name='relaxStartTime']").val("");
|
...
|
...
|
@@ -435,9 +441,11 @@ |
|
|
$("input[name='influxdbs']").val(taskModel.influxdbs);
|
|
|
$("input[name='database']").val(taskModel.database);
|
|
|
$("input[name='tags']").val(taskModel.tags);
|
|
|
$("input[name='influxSql']").val(taskModel.influxSql);
|
|
|
// $("input[name='influxSql']").val(taskModel.influxSql);
|
|
|
$("#influxSql").val(taskModel.influxSql);
|
|
|
$("input[name='mobile']").val(taskModel.mobile);
|
|
|
$("input[name='sms']").val(taskModel.sms);
|
|
|
// $("input[name='sms']").val(taskModel.sms);
|
|
|
$("#sms").val(taskModel.sms);
|
|
|
$("input[name='type']").val(taskModel.type);
|
|
|
$("input[name='interval']").val(taskModel.interval);
|
|
|
$("input[name='relaxStartTime']").val(taskModel.relaxStartTime);
|
...
|
...
|
@@ -504,9 +512,11 @@ |
|
|
var influxdbs = $("input[name='influxdbs']").val();
|
|
|
var database = $("input[name='database']").val();
|
|
|
var tags = $("input[name='tags']").val();
|
|
|
var influxSql = $("input[name='influxSql']").val();
|
|
|
// var influxSql = $("input[name='influxSql']").val();
|
|
|
var influxSql = $("#influxSql").val();
|
|
|
//var mobile = $("input[name='mobile']").val();
|
|
|
var sms = $("input[name='sms']").val();
|
|
|
// var sms = $("input[name='sms']").val();
|
|
|
var sms = $("#sms").val();
|
|
|
var type = $("input[name='type']").val();
|
|
|
var interval = $("input[name='interval']").val();
|
|
|
var relaxStartTime = $("input[name='relaxStartTime']").val();
|
...
|
...
|
|