修改用户修改功能

parent 794e1b87
...@@ -20,7 +20,8 @@ public class MyMvcConfig extends WebMvcConfigurerAdapter { ...@@ -20,7 +20,8 @@ public class MyMvcConfig extends WebMvcConfigurerAdapter {
registry.addViewController("/serviceform").setViewName("servicefrom"); registry.addViewController("/serviceform").setViewName("servicefrom");
registry.addViewController("/serviceupdate").setViewName("serviceupdate"); registry.addViewController("/serviceupdate").setViewName("serviceupdate");
registry.addViewController("/serviceCapability").setViewName("serviceCapability"); registry.addViewController("/serviceCapability").setViewName("serviceCapability");
registry.addViewController("/mebersform").setViewName("mebersfrom"); registry.addViewController("/mebersform").setViewName("mebersfrom");
registry.addViewController("/restfenye").setViewName("restfenye");
registry.addViewController("/resourcefenye").setViewName("resourcefenye");
} }
} }
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
</a> </a>
<ul class="sub-menu" style="display:none"> <ul class="sub-menu" style="display:none">
<li> <li>
<a href="./banner-list.html"> <a href="/restfenye">
<i class="iconfont">&#xe6a7;</i> <i class="iconfont">&#xe6a7;</i>
服务监控 服务监控
</a> </a>
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</ul> </ul>
<ul class="sub-menu" style="display:none"> <ul class="sub-menu" style="display:none">
<li> <li>
<a href="./banner-list.html"> <a href="/resourcefenye">
<i class="iconfont">&#xe6a7;</i> <i class="iconfont">&#xe6a7;</i>
资源监控 资源监控
</a> </a>
......
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
<script type="text/javascript" src="/js/common.js"></script> <script type="text/javascript" src="/js/common.js"></script>
<!-- 引入公共页面--> <!-- 引入公共页面-->
<jsp:include page="../common/index.jsp"></jsp:include> <jsp:include page="../common/index.jsp"></jsp:include>
<style>
.layui-form-selected dl{height:110px;}
</style>
</head> </head>
<body> <body>
<form class="layui-form" action="" method="post"> <form class="layui-form" action="" method="post">
...@@ -106,7 +109,6 @@ ...@@ -106,7 +109,6 @@
//监听提交 //监听提交
form.on('submit(formDemo)', function(data){ form.on('submit(formDemo)', function(data){
debugger;
var services=JSON.stringify(data.field); var services=JSON.stringify(data.field);
$.ajax({ $.ajax({
type: "POST", type: "POST",
...@@ -116,7 +118,6 @@ ...@@ -116,7 +118,6 @@
success: function(data){ success: function(data){
console.log(data.status); console.log(data.status);
if(data.status=="201"){ if(data.status=="201"){
debugger;
layer.msg("保存成功"); layer.msg("保存成功");
var index = parent.layer.getFrameIndex(window.name); var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);//关闭当前页 parent.layer.close(index);//关闭当前页
......
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
<script type="text/javascript" src="/js/common.js"></script> <script type="text/javascript" src="/js/common.js"></script>
<!-- 引入公共页面--> <!-- 引入公共页面-->
<jsp:include page="../common/index.jsp"></jsp:include> <jsp:include page="../common/index.jsp"></jsp:include>
<style>
.layui-form-selected dl{height:110px;}
</style>
</head> </head>
<body> <body>
<form class="layui-form" action="" method="post" > <form class="layui-form" action="" method="post" >
...@@ -112,7 +115,6 @@ ...@@ -112,7 +115,6 @@
//监听提交 //监听提交
form.on('submit(formDemo)', function(data){ form.on('submit(formDemo)', function(data){
debugger;
var services=JSON.stringify(data.field); var services=JSON.stringify(data.field);
$.ajax({ $.ajax({
type: "PUT", type: "PUT",
...@@ -122,7 +124,6 @@ ...@@ -122,7 +124,6 @@
success: function(data){ success: function(data){
console.log(data.status); console.log(data.status);
if(data.status=="201"){ if(data.status=="201"){
debugger;
layer.msg("修改成功"); layer.msg("修改成功");
var index = parent.layer.getFrameIndex(window.name); var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);//关闭当前页 parent.layer.close(index);//关闭当前页
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment