|
@@ -28,6 +28,7 @@
|
|
<th>编号</th>
|
|
<th>编号</th>
|
|
<th>应用名称</th>
|
|
<th>应用名称</th>
|
|
<th>地址&端口</th>
|
|
<th>地址&端口</th>
|
|
|
|
+ <th>类型</th>
|
|
<th>定时时间</th>
|
|
<th>定时时间</th>
|
|
<th>负责人</th>
|
|
<th>负责人</th>
|
|
<th>邮箱</th>
|
|
<th>邮箱</th>
|
|
@@ -72,6 +73,15 @@
|
|
<input type="text" class="form-control" id="ip-port" placeholder="服务器&端口" required>
|
|
<input type="text" class="form-control" id="ip-port" placeholder="服务器&端口" required>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="form-group margin-bottom">
|
|
|
|
+ <label class="col-sm-3 control-label"><span style="color:red;">* </span>服务类型</label>
|
|
|
|
+ <div class="col-sm-8">
|
|
|
|
+ <select class="form-control selectpicker" id="stype">
|
|
|
|
+ <option value = 1 selected>程序</option>
|
|
|
|
+ <option value = 2 >中间件</option>
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
<div class="form-group margin-bottom">
|
|
<div class="form-group margin-bottom">
|
|
<label class="col-sm-3 control-label"><span style="color:red;">* </span>定时时间</label>
|
|
<label class="col-sm-3 control-label"><span style="color:red;">* </span>定时时间</label>
|
|
<div class="col-sm-8">
|
|
<div class="col-sm-8">
|
|
@@ -145,6 +155,15 @@
|
|
<input type="text" class="form-control" id="edit-ip-port" placeholder="服务器&端口" required>
|
|
<input type="text" class="form-control" id="edit-ip-port" placeholder="服务器&端口" required>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="form-group margin-bottom">
|
|
|
|
+ <label class="col-sm-3 control-label"><span style="color:red;">* </span>服务类型</label>
|
|
|
|
+ <div class="col-sm-8">
|
|
|
|
+ <select class="form-control selectpicker" id="edit-stype">
|
|
|
|
+ <option value = 1 selected>程序</option>
|
|
|
|
+ <option value = 2 >中间件</option>
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
<div class="form-group margin-bottom">
|
|
<div class="form-group margin-bottom">
|
|
<label class="col-sm-3 control-label"><span style="color:red;">* </span>定时时间</label>
|
|
<label class="col-sm-3 control-label"><span style="color:red;">* </span>定时时间</label>
|
|
<div class="col-sm-8">
|
|
<div class="col-sm-8">
|
|
@@ -238,6 +257,13 @@
|
|
str = row["ip"] + ":" + row["port"]
|
|
str = row["ip"] + ":" + row["port"]
|
|
return str
|
|
return str
|
|
}, width: "10%",},
|
|
}, width: "10%",},
|
|
|
|
+ {"data": "stype", width: "4%", render: function (val) {
|
|
|
|
+ if (val === 1) {
|
|
|
|
+ return "程序"
|
|
|
|
+ } else {
|
|
|
|
+ return "中间件"
|
|
|
|
+ }
|
|
|
|
+ }},
|
|
{"data": "timing", width: "10%"},
|
|
{"data": "timing", width: "10%"},
|
|
{"data": "leader", width: "10%"},
|
|
{"data": "leader", width: "10%"},
|
|
{"data": "mail", width: "20%"},
|
|
{"data": "mail", width: "20%"},
|
|
@@ -270,6 +296,7 @@
|
|
const leader = $("#leader").val()
|
|
const leader = $("#leader").val()
|
|
const mail = $("#email").val()
|
|
const mail = $("#email").val()
|
|
const timing = $("#timing option:selected").text()
|
|
const timing = $("#timing option:selected").text()
|
|
|
|
+ const stype = $("#stype option:selected").val()
|
|
|
|
|
|
const app = {}
|
|
const app = {}
|
|
if (name === "" || ip_port === "" || leader === "" || mail === "") {
|
|
if (name === "" || ip_port === "" || leader === "" || mail === "") {
|
|
@@ -281,6 +308,7 @@
|
|
app['leader'] = leader
|
|
app['leader'] = leader
|
|
app['mail'] = mail
|
|
app['mail'] = mail
|
|
app['timing'] = timing
|
|
app['timing'] = timing
|
|
|
|
+ app['stype'] = stype
|
|
$.ajax({
|
|
$.ajax({
|
|
url: "/service/app/monitor/create",
|
|
url: "/service/app/monitor/create",
|
|
type: 'POST',
|
|
type: 'POST',
|
|
@@ -346,7 +374,7 @@
|
|
app['ip_port'] = ip_port
|
|
app['ip_port'] = ip_port
|
|
app['leader'] = leader
|
|
app['leader'] = leader
|
|
app['mail'] = mail
|
|
app['mail'] = mail
|
|
- app['timing'] = timing
|
|
|
|
|
|
+ app["stype"] = $("#edit-stype option:selected").val()
|
|
app["timing"] = $("#edit-timing option:selected").text()
|
|
app["timing"] = $("#edit-timing option:selected").text()
|
|
app["status"]= $("input[name='status']:checked").val()
|
|
app["status"]= $("input[name='status']:checked").val()
|
|
$.ajax({
|
|
$.ajax({
|