...
|
...
|
@@ -93,7 +93,7 @@ |
|
|
return '其他';
|
|
|
}
|
|
|
},
|
|
|
width : "12%"
|
|
|
width : "5%"
|
|
|
}, {
|
|
|
title : "安装软件",
|
|
|
field : "tags",
|
...
|
...
|
@@ -104,7 +104,11 @@ |
|
|
|
|
|
},
|
|
|
width : "12%"
|
|
|
}, {
|
|
|
}, {
|
|
|
title : "创建时间",
|
|
|
field : "createTime",
|
|
|
width : "10%"
|
|
|
},{
|
|
|
title : "操作",
|
|
|
field : "op",
|
|
|
formatter : function(value, rowData, rowIndex) {
|
...
|
...
|
@@ -210,12 +214,22 @@ |
|
|
onclick : function() {
|
|
|
var btn = $(this);
|
|
|
this.prop("disabled", "disabled");
|
|
|
var hostIp=$("#hostInfoForm #hostIp").val();
|
|
|
var regIp= /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/;
|
|
|
if(!regIp.test(hostIp)){
|
|
|
$("#hostInfoForm #messageAlert").alerts({
|
|
|
content : "请输入正确IP地址格式!",
|
|
|
type : "danger"
|
|
|
});
|
|
|
btn.removeAttr("disabled");
|
|
|
return;
|
|
|
}
|
|
|
var tags="";
|
|
|
$("input[name='appName']:checked").each(function(){
|
|
|
tags += $(this).attr('value')+',';
|
|
|
});
|
|
|
$("#hostInfoForm").form("submit", {
|
|
|
submitUrl : contextPath + "/hostInfo/saveHostInfo.do",
|
|
|
submitUrl : contextPath + "/hostInfo/saveHostInfo",
|
|
|
submitData : {
|
|
|
id : hoseInfoId,
|
|
|
tags:tags
|
...
|
...
|
|