| | |
| | | logger.error("查询设备更换列表错误", e); |
| | | logInfoService.save("查询资产信息错误", e.toString(), StaticKeys.LOG_XTCZ); |
| | | } |
| | | return "failurelogging/list"; |
| | | return "failog/list"; |
| | | } |
| | | |
| | | @RequestMapping(value = "save") |
| | |
| | | if (StringUtils.isEmpty(id)) { |
| | | model.addAttribute("failureLogging", failureLogging); |
| | | |
| | | return "failureLogging/add"; |
| | | return "failog/add"; |
| | | } |
| | | failureLogging = failureLoggingService.selectById(id); |
| | | model.addAttribute("failureLogging", failureLogging); |
| | |
| | | logger.error(errorMsg, e); |
| | | logInfoService.save(errorMsg, e.toString(), StaticKeys.LOG_XTCZ); |
| | | } |
| | | return "failurelogging/add"; |
| | | return "failog/add"; |
| | | } |
| | | |
| | | /** |
| | |
| | | logger.error(errorMsg, e); |
| | | logInfoService.save(errorMsg, e.toString(), StaticKeys.LOG_XTCZ); |
| | | } |
| | | return "failurelogging/view"; |
| | | return "failog/view"; |
| | | } |
| | | |
| | | |
| | |
| | | logger.error("查询设备更换列表错误", e); |
| | | logInfoService.save("查询资产信息错误", e.toString(), StaticKeys.LOG_XTCZ); |
| | | } |
| | | return "inspectionTask/list"; |
| | | return "instask/tasklist"; |
| | | } |
| | | |
| | | @RequestMapping(value = "save") |
| | |
| | | try { |
| | | if (StringUtils.isEmpty(id)) { |
| | | model.addAttribute("inspectionTask", inspectionTask); |
| | | return "inspectionTask/add"; |
| | | return "instask/add"; |
| | | } |
| | | inspectionTask = inspectionTaskService.selectById(id); |
| | | model.addAttribute("inspectionTask", inspectionTask); |
| | |
| | | logger.error(errorMsg, e); |
| | | logInfoService.save(errorMsg, e.toString(), StaticKeys.LOG_XTCZ); |
| | | } |
| | | return "inspectionTask/add"; |
| | | return "instask/add"; |
| | | } |
| | | |
| | | /** |
| | |
| | | try { |
| | | if (StringUtils.isEmpty(id)) { |
| | | model.addAttribute("taskInfo", taskInfo); |
| | | return "inspectionTask/infoedit"; |
| | | return "instask/infoedit"; |
| | | } |
| | | taskInfo = taskInfoService.selectById(id); |
| | | model.addAttribute("taskInfo", taskInfo); |
| | |
| | | logger.error(errorMsg, e); |
| | | logInfoService.save(errorMsg, e.toString(), StaticKeys.LOG_XTCZ); |
| | | } |
| | | return "inspectionTask/infoedit"; |
| | | return "instask/infoedit"; |
| | | } |
| | | |
| | | /** |
| | |
| | | logger.error(errorMsg, e); |
| | | logInfoService.save(errorMsg, e.toString(), StaticKeys.LOG_XTCZ); |
| | | } |
| | | return "inspectionTask/view"; |
| | | return "instask/view"; |
| | | } |
| | | |
| | | |
| | |
| | | logger.error("查询任务详情错误", e); |
| | | logInfoService.save("查询任务详情错误", e.toString(), StaticKeys.LOG_XTCZ); |
| | | } |
| | | return "inspectionTask/taskinfo"; |
| | | return "instask/taskinfo"; |
| | | } |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 速率 |
| | | */ |
| | | private Integer actualSpeed; |
| | | private Long actualSpeed; |
| | | |
| | | /** |
| | | * 工作模式 |
| | |
| | | session.setAttribute("menuActive", "81"); |
| | | return; |
| | | } |
| | | if (uri.indexOf("/report") > -1) { |
| | | session.setAttribute("menuActive", "91"); |
| | | if (uri.indexOf("/equipment") > -1) { |
| | | session.setAttribute("menuActive", "81"); |
| | | return; |
| | | } |
| | | if (uri.indexOf("/inspectionTask") > -1) { |
| | | session.setAttribute("menuActive", "c1"); |
| | | return; |
| | | } |
| | | if (uri.indexOf("/failurelogging") > -1) { |
| | | session.setAttribute("menuActive", "c2"); |
| | | return; |
| | | } |
| | | session.setAttribute("menuActive", "11"); |
| | |
| | | Map<String, Object> stringObjectMap = interfaceStatusList.get(i); |
| | | SnmpInterfaceInfo snmpInterfaceInfo = interfaceInfos.get(i); |
| | | for (Map.Entry<String, Object> stringObjectEntry : stringObjectMap.entrySet()) { |
| | | snmpInterfaceInfo.setIsUp(Integer.parseInt(stringObjectEntry.getValue().toString().trim())); |
| | | try { |
| | | snmpInterfaceInfo.setIsUp(Integer.parseInt(stringObjectEntry.getValue().toString().trim())); |
| | | }catch (Exception e){ |
| | | snmpInterfaceInfo.setIsUp(0); |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | Map<String, Object> stringObjectMap = actualSpeedList.get(i); |
| | | SnmpInterfaceInfo snmpInterfaceInfo = interfaceInfos.get(i); |
| | | for (Map.Entry<String, Object> stringObjectEntry : stringObjectMap.entrySet()) { |
| | | snmpInterfaceInfo.setActualSpeed(Integer.parseInt(stringObjectEntry.getValue().toString().trim())); |
| | | try { |
| | | snmpInterfaceInfo.setActualSpeed(Long.parseLong(stringObjectEntry.getValue().toString().trim())); |
| | | }catch (Exception e){ |
| | | snmpInterfaceInfo.setActualSpeed(100000L); |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | Map<String, Object> stringObjectMap = workMTUList.get(i); |
| | | SnmpInterfaceInfo snmpInterfaceInfo = interfaceInfos.get(i); |
| | | for (Map.Entry<String, Object> stringObjectEntry : stringObjectMap.entrySet()) { |
| | | snmpInterfaceInfo.setWorkMTU(Integer.parseInt(stringObjectEntry.getValue().toString().trim())); |
| | | try { |
| | | snmpInterfaceInfo.setWorkMTU(Integer.parseInt(stringObjectEntry.getValue().toString().trim())); |
| | | }catch (Exception e){ |
| | | snmpInterfaceInfo.setWorkMTU(1500); |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | Map<String, Object> stringObjectMap = actualMTUList.get(i); |
| | | SnmpInterfaceInfo snmpInterfaceInfo = interfaceInfos.get(i); |
| | | for (Map.Entry<String, Object> stringObjectEntry : stringObjectMap.entrySet()) { |
| | | snmpInterfaceInfo.setActualMTU(Integer.parseInt(stringObjectEntry.getValue().toString().trim())); |
| | | try { |
| | | snmpInterfaceInfo.setActualMTU(Integer.parseInt(stringObjectEntry.getValue().toString().trim())); |
| | | }catch (Exception e){ |
| | | snmpInterfaceInfo.setActualMTU(1500); |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | Map<String, Object> stringObjectMap = loopbackList.get(i); |
| | | SnmpInterfaceInfo snmpInterfaceInfo = interfaceInfos.get(i); |
| | | for (Map.Entry<String, Object> stringObjectEntry : stringObjectMap.entrySet()) { |
| | | snmpInterfaceInfo.setLoopback(Integer.parseInt(stringObjectEntry.getValue().toString().trim())); |
| | | try { |
| | | snmpInterfaceInfo.setLoopback(Integer.parseInt(stringObjectEntry.getValue().toString().trim())); |
| | | }catch (Exception e){ |
| | | snmpInterfaceInfo.setLoopback(0); |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | Map<String, Object> stringObjectMap = descriptionList.get(i); |
| | | SnmpInterfaceInfo snmpInterfaceInfo = interfaceInfos.get(i); |
| | | for (Map.Entry<String, Object> stringObjectEntry : stringObjectMap.entrySet()) { |
| | | snmpInterfaceInfo.setDescription(stringObjectEntry.getValue().toString().trim()); |
| | | try { |
| | | snmpInterfaceInfo.setDescription(stringObjectEntry.getValue().toString().trim()); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | pdu.add(new VariableBinding(new OID(nextOid))); |
| | | } |
| | | System.out.println("list的大小 = " +list.size()); |
| | | System.out.println(list); |
| | | return list; |
| | | |
| | | } catch (IOException e) { |
| | |
| | | </th:block> |
| | | |
| | | <td width="10%"> |
| | | <form class="form-inline ml-3 float-sm-right" action="/wgcloud/appInfo/view"> |
| | | <form class="form-inline ml-3 float-sm-right" action="/tssw/appInfo/view"> |
| | | <input type="hidden" name="id" th:value="${appInfo.id}"/> |
| | | <div class="input-group input-group-sm"> |
| | | <input type="text" autocomplete="off" value="" class="validate[maxSize[50]] form-control" th:value="${startTime}" name="startTime" id="startTime" placeholder="开始时间" style="margin-right:5px;"> |
| | |
| | | </a> |
| | | </li> |
| | | |
| | | <th:block th:if="${#strings.startsWith(session.menuActive,'8')}"> |
| | | <th:block th:if="${#strings.startsWith(session.menuActive,'c')}"> |
| | | <li class="nav-item has-treeview menu-open"> |
| | | <a href="javascript:void(0);" class="nav-link active"> |
| | | </th:block> |
| | | <th:block th:unless="${#strings.startsWith(session.menuActive,'8')}"> |
| | | <th:block th:unless="${#strings.startsWith(session.menuActive,'c')}"> |
| | | <li class="nav-item has-treeview"> |
| | | <a href="javascript:void(0);" class="nav-link"> |
| | | </th:block> |
| | | <i class="nav-icon fas fa-network-wired"></i> |
| | | <i class="nav-icon fas fa-table"></i> |
| | | <p title="巡检管理"> |
| | | 巡检管理 |
| | | <i class="fas fa-angle-left right"></i> |
| | |
| | | </a> |
| | | <ul class="nav nav-treeview"> |
| | | <li class="nav-item"> |
| | | <th:block th:if="${session.menuActive eq '81'}"> |
| | | <th:block th:if="${session.menuActive eq 'c1'}"> |
| | | <a th:href="@{'/inspectionTask/list'}" class="nav-link active"> |
| | | </th:block> |
| | | <th:block th:unless="${session.menuActive eq '81'}"> |
| | | <th:block th:unless="${session.menuActive eq 'c1'}"> |
| | | <a th:href="@{'/inspectionTask/list'}" class="nav-link"> |
| | | </th:block> |
| | | <i class="nav-icon far fa-circle text-info"></i> |
| | |
| | | </a> |
| | | </li> |
| | | <li class="nav-item"> |
| | | <th:block th:if="${session.menuActive eq '82'}"> |
| | | <th:block th:if="${session.menuActive eq 'c2'}"> |
| | | <a th:href="@{'/failurelogging/list'}" class="nav-link active"> |
| | | </th:block> |
| | | <th:block th:unless="${session.menuActive eq '82'}"> |
| | | <th:block th:unless="${session.menuActive eq 'c2'}"> |
| | | <a th:href="@{'/failurelogging/list'}" class="nav-link"> |
| | | </th:block> |
| | | <i class="far fa-circle nav-icon"></i> |
| | |
| | | } |
| | | if(confirm('你确定要删除所选数据吗?')) { |
| | | var vals = chk_value.join(","); |
| | | $.ajax("/wgcloud"+url,{ |
| | | $.ajax("/tssw"+url,{ |
| | | type:"post", |
| | | data:{"id":vals}, |
| | | success:function(data){ |
| | |
| | | |
| | | //跳转到系统日志查询 |
| | | function goHrefLogInfo(param) { |
| | | window.location.href = "/wgcloud/log/list?hostname="+param; |
| | | window.location.href = "/tssw/log/list?hostname="+param; |
| | | } |
| | | |
| | | //启用弹出框popover |
| | |
| | | <footer class="main-footer" style="margin-left: 10px"> |
| | | <input type="hidden" id="serverInfoIdentify" th:value="${application.serverInfoId}"/> |
| | | <th:block th:if="${application.copyRight eq 'true'}"> |
| | | <strong>Copyright ©2017-<span id="copyyear">now</span> <a target="_blank" href="http://www.wgstart.com">www.wgstart.com</a>.</strong> |
| | | <strong>Copyright ©2017-<span id="copyyear">now</span> <a target="_blank" href="http://www.10086.cn">中国移动</a></strong> |
| | | All Rights Reserved. |
| | | </th:block> |
| | | <th:block th:if="${application.copyRight eq 'false'}"> </th:block> |
| | |
| | | toastr.options.timeOut = 15000; |
| | | //启用弹出框popover |
| | | $("[data-toggle='popover']").popover(); |
| | | </script> |
| | | </script> |
| | |
| | | </th:block> |
| | | </li> |
| | | <li class="nav-item dropdown"> |
| | | <a class="nav-link" style="cursor:pointer;" title="退出" data-toggle="dropdown" onclick="javascript:window.location.href='/wgcloud/login/loginOut';" > |
| | | <a class="nav-link" style="cursor:pointer;" title="退出" data-toggle="dropdown" onclick="javascript:window.location.href='/tssw/login/loginOut';" > |
| | | <i class="fa fa-window-close"></i> |
| | | </a> |
| | | </li> |
| | |
| | | |
| | | </ul> |
| | | </nav> |
| | | <!-- /.navbar --> |
| | | <!-- /.navbar --> |
| | |
| | | </div> |
| | | <div class="form-group"> |
| | | <label><font color="red">*</font>自定义监控项执行的指令或脚本<span class="text-muted" th:text="${blockStr}">敏感字符串过滤</span></label> |
| | | <input type="text" autocomplete="off" th:value="${customInfo.customShell}" class="validate[required,maxSize[255]] form-control" name="customShell" id="customShell" placeholder="如:/wgcloud/fileCount.sh"> |
| | | <input type="text" autocomplete="off" th:value="${customInfo.customShell}" class="validate[required,maxSize[255]] form-control" name="customShell" id="customShell" placeholder="如:/tssw/fileCount.sh"> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label >告警表达式<span class="text-muted">(表达式成立时即告警,不成立不告警,如:<code class="highlighter-rouge" style="font-size:100%">result>=100</code>,其中<code class="highlighter-rouge" style="font-size:100%">result</code>为固定写法,标识为上面的指令或脚本输出结果值(系统会自动替换为数值),注意表达式需为英文输入法拼写)</span></label> |
| | |
| | | </span> |
| | | </li> |
| | | <li class="breadcrumb-item active">监控概要</li> |
| | | <li class="breadcrumb-item "><a href="/wgcloud/systemInfo/systemInfoList?dashView=1">主机列表</a></li> |
| | | <li class="breadcrumb-item "><a href="/tssw/systemInfo/systemInfoList?dashView=1">主机列表</a></li> |
| | | <!--<li class="breadcrumb-item active"><a target="_blank" href="https://www.wgstart.com/elasticsearch-head/index.html">ES监控工具</a></li>--> |
| | | </ol> |
| | | </div><!-- /.col --> |
| | |
| | | <p>监控进程</p> |
| | | </div> |
| | | <div class="icon"> |
| | | <i class="ion " style="opacity:0.6; filter: alpha(opacity=60);"><img src="/wgcloud/static/images/jincheng.png"/></i> |
| | | <i class="ion " style="opacity:0.6; filter: alpha(opacity=60);"><img src="/tssw/static/images/jincheng.png"/></i> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <p>DOCKER</p> |
| | | </div> |
| | | <div class="icon"> |
| | | <i class="ion " style="opacity:0.6; filter: alpha(opacity=60);"><img src="/wgcloud/static/images/docker.png"/></i> |
| | | <i class="ion " style="opacity:0.6; filter: alpha(opacity=60);"><img src="/tssw/static/images/docker.png"/></i> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <p>数据源</p> |
| | | </div> |
| | | <div class="icon"> |
| | | <i class="ion " style="opacity:0.6; filter: alpha(opacity=60);"><img src="/wgcloud/static/images/db.png"/></i> |
| | | <i class="ion " style="opacity:0.6; filter: alpha(opacity=60);"><img src="/tssw/static/images/db.png"/></i> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <p>数通PING设备</p> |
| | | </div> |
| | | <div class="icon"> |
| | | <i class="ion " style="opacity:0.6; filter: alpha(opacity=60);"><img src="/wgcloud/static/images/yun.png"/></i> |
| | | <i class="ion " style="opacity:0.6; filter: alpha(opacity=60);"><img src="/tssw/static/images/yun.png"/></i> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <p>日志监控</p> |
| | | </div> |
| | | <div class="icon"> |
| | | <i class="ion " style="opacity:0.6; filter: alpha(opacity=60);"><img src="/wgcloud/static/images/log.png"/></i> |
| | | <i class="ion " style="opacity:0.6; filter: alpha(opacity=60);"><img src="/tssw/static/images/log.png"/></i> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <p>服务接口</p> |
| | | </div> |
| | | <div class="icon"> |
| | | <i class="ion " style="opacity:0.6; filter: alpha(opacity=60);"><img src="/wgcloud/static/images/api.png"/></i> |
| | | <i class="ion " style="opacity:0.6; filter: alpha(opacity=60);"><img src="/tssw/static/images/api.png"/></i> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <p>监控主机</p> |
| | | </div> |
| | | <div class="icon"> |
| | | <i class="ion " style="opacity:0.6; filter: alpha(opacity=60);"><img src="/wgcloud/static/images/pc.png"/></i> |
| | | <i class="ion " style="opacity:0.6; filter: alpha(opacity=60);"><img src="/tssw/static/images/pc.png"/></i> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <p>端口监控</p> |
| | | </div> |
| | | <div class="icon"> |
| | | <i class="ion " style="opacity:0.6; filter: alpha(opacity=60);"><img src="/wgcloud/static/images/telnet.png"/></i> |
| | | <i class="ion " style="opacity:0.6; filter: alpha(opacity=60);"><img src="/tssw/static/images/telnet.png"/></i> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <i style="font-size:0.95rem;" class="far fa-bell-slash"></i> |
| | | </span> |
| | | </li> |
| | | <li class="breadcrumb-item "><a href="/wgcloud/dash/main?dashView=1">监控概要</a></li> |
| | | <li class="breadcrumb-item "><a href="/wgcloud/systemInfo/systemInfoList?dashView=1">主机列表</a></li> |
| | | <li class="breadcrumb-item "><a href="/tssw/dash/main?dashView=1">监控概要</a></li> |
| | | <li class="breadcrumb-item "><a href="/tssw/systemInfo/systemInfoList?dashView=1">主机列表</a></li> |
| | | <!-- <li class="breadcrumb-item active"><a target="_blank" href="https://www.wgstart.com/elasticsearch-head/index.html">ES监控工具</a></li>--> |
| | | </ol> |
| | | </div> |
| | |
| | | <i style="font-size:0.95rem;" class="far fa-bell-slash"></i> |
| | | </span> |
| | | </li> |
| | | <li class="breadcrumb-item "><a href="/wgcloud/dash/main?dashView=1">监控概要</a></li> |
| | | <li class="breadcrumb-item "><a href="/wgcloud/systemInfo/systemInfoList?dashView=1">主机列表</a></li> |
| | | <li class="breadcrumb-item "><a href="/tssw/dash/main?dashView=1">监控概要</a></li> |
| | | <li class="breadcrumb-item "><a href="/tssw/systemInfo/systemInfoList?dashView=1">主机列表</a></li> |
| | | <!-- <li class="breadcrumb-item active"><a target="_blank" href="https://www.wgstart.com/elasticsearch-head/index.html">ES监控工具</a></li>--> |
| | | </ol> |
| | | </div> |
| | |
| | | </th:block> |
| | | |
| | | <td width="10%"> |
| | | <form class="form-inline ml-3 float-sm-right" action="/wgcloud/dceInfo/view"> |
| | | <form class="form-inline ml-3 float-sm-right" action="/tssw/dceInfo/view"> |
| | | <input type="hidden" name="id" th:value="${dceInfo.id}"/> |
| | | <div class="input-group input-group-sm"> |
| | | <input type="text" autocomplete="off" value="" class="validate[maxSize[50]] form-control" th:value="${startTime}" name="startTime" id="startTime" placeholder="开始时间" style="margin-right:5px;"> |
| | |
| | | </th:block> |
| | | |
| | | <td width="10%"> |
| | | <form class="form-inline ml-3 float-sm-right" action="/wgcloud/dockerInfo/view"> |
| | | <form class="form-inline ml-3 float-sm-right" action="/tssw/dockerInfo/view"> |
| | | <input type="hidden" name="id" th:value="${dockerInfo.id}"/> |
| | | <div class="input-group input-group-sm"> |
| | | <input type="text" autocomplete="off" value="" class="validate[maxSize[50]] form-control" th:value="${startTime}" name="startTime" id="startTime" placeholder="开始时间" style="margin-right:5px;"> |
| | |
| | | </div> |
| | | <div class="form-group"> |
| | | <label><font color="red">*</font>服务接口URL<span class="text-muted">(URL需为http或https接口)</span></label> |
| | | <input type="text" autocomplete="off" th:value="${heathMonitor.heathUrl}" class="validate[required,maxSize[255]] form-control" name="heathUrl" id="heathUrl" placeholder="如http://192.168.1.1:9999/wgcloud/heath"> |
| | | <input type="text" autocomplete="off" th:value="${heathMonitor.heathUrl}" class="validate[required,maxSize[255]] form-control" name="heathUrl" id="heathUrl" placeholder="如http://192.168.1.1:9999/tssw/heath"> |
| | | </div> |
| | | <div class="form-group clearfix"> |
| | | <label><font color="red">*</font>接口请求方式</label></br> |
| | |
| | | <th th:if="${application.hostGroup == 'true'}">分组</th> |
| | | </th:block> |
| | | <th:block th:unless="${#strings.indexOf(session.HostListHideColsInfo ,'13') > -1 }"> |
| | | <th th:if="${application.userInfoManage == 'true' && session.LOGIN_KEY.role == 'admin'}">账号</th> |
| | | </th:block> |
| | | <!-- <th th:if="${application.userInfoManage == 'true' && session.LOGIN_KEY.role == 'admin'}">账号</th>--> |
| | | <!-- </th:block>--> |
| | | <th:block th:unless="${#strings.indexOf(session.HostListHideColsInfo ,'15') > -1 }"> |
| | | <th>备注</th> |
| | | </th:block> |
| | |
| | | </th:block> |
| | | |
| | | <td width="10%"> |
| | | <form class="form-inline ml-3 float-sm-right" action="/wgcloud/systemInfo/chart"> |
| | | <form class="form-inline ml-3 float-sm-right" action="/tssw/systemInfo/chart"> |
| | | <input type="hidden" name="id" th:value="${systemInfo.id}"/> |
| | | <div class="input-group input-group-sm"> |
| | | <input type="text" autocomplete="off" value="" class="validate[maxSize[50]] form-control" th:value="${startTime}" name="startTime" id="startTime" placeholder="开始时间" style="margin-right:5px;"> |
| | |
| | | }); |
| | | |
| | | function test() { |
| | | $("#form1").attr("action","/wgcloud/mailset/test"); |
| | | $("#form1").attr("action","/tssw/mailset/test"); |
| | | $("#form1").submit(); |
| | | } |
| | | |
| | | function del(id) { |
| | | if(confirm('你确定要删除吗?')){ |
| | | window.location.href = "/wgcloud/mailset/del?id="+id; |
| | | window.location.href = "/tssw/mailset/del?id="+id; |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | }); |
| | | function onSubmit() { |
| | | $("#form1").attr("action","/wgcloud/dbInfo/save"); |
| | | $("#form1").attr("action","/tssw/dbInfo/save"); |
| | | return true; |
| | | } |
| | | |
| | | function test(){ |
| | | $("#form1").attr("action","/wgcloud/dbInfo/validate"); |
| | | $("#form1").attr("action","/tssw/dbInfo/validate"); |
| | | $("#form1").ajaxSubmit(function(message) { |
| | | var msg = JSON.parse(message); |
| | | if(msg.code!=""){ |
| | |
| | | }); |
| | | |
| | | function goback() { |
| | | window.location.href = "/wgcloud/dbTable/list"; |
| | | window.location.href = "/tssw/dbTable/list"; |
| | | } |
| | | var msg = [[${msg}]]; |
| | | if(msg!='' && msg!=null){ |
| | |
| | | </th:block> |
| | | |
| | | <td width="10%"> |
| | | <form class="form-inline ml-3 float-sm-right" action="/wgcloud/dbTable/viewChart"> |
| | | <form class="form-inline ml-3 float-sm-right" action="/tssw/dbTable/viewChart"> |
| | | <input type="hidden" name="id" th:value="${dbTable.id}"/> |
| | | <div class="input-group input-group-sm"> |
| | | <input type="text" autocomplete="off" value="" class="validate[maxSize[50]] form-control" th:value="${startTime}" name="startTime" id="startTime" placeholder="开始时间" style="margin-right:5px;"> |
| | |
| | | </div> |
| | | <div class="form-group"> |
| | | <label><font color="red">*</font>下发指令<span class="text-muted" th:text="${blockStr}">敏感字符串过滤</span></label> |
| | | <input type="text" autocomplete="off" th:value="${shellInfo.shell}" class="validate[required,maxSize[500]] form-control" name="shell" id="shell" placeholder="如:/home/wgcloud/agent/start.sh"> |
| | | <input type="text" autocomplete="off" th:value="${shellInfo.shell}" class="validate[required,maxSize[500]] form-control" name="shell" id="shell" placeholder="如:/home/tssw/agent/start.sh"> |
| | | </div> |
| | | <div class="form-group clearfix"> |
| | | <label><font color="red">*</font>下发时间</label></br> |