Commit 995b56829cdc8d21c879f12929cafac631d696bf

Authored by 潘钊
2 parents ff1b8a72 37f94c0d

Merge branch 'minhang' into pudong

src/main/resources/static/pages/base/line/js/line-edit-form.js
@@ -100,7 +100,6 @@ @@ -100,7 +100,6 @@
100 selectTemp(function(){ 100 selectTemp(function(){
101 /** 根据ID查询详细信息 */ 101 /** 根据ID查询详细信息 */
102 $get('/line/' + lineId ,null, function(result){ 102 $get('/line/' + lineId ,null, function(result){
103 - debugger;  
104 // 如果不为空 103 // 如果不为空
105 if(result) { 104 if(result) {
106 // 定义日期格式 105 // 定义日期格式
@@ -244,20 +243,6 @@ @@ -244,20 +243,6 @@
244 if(lineCode[0].id == lineId) { 243 if(lineCode[0].id == lineId) {
245 // 提交 244 // 提交
246 submit(); 245 submit();
247 - } else {  
248 - /*// 定义已有的线路编码  
249 - var oldCode = params.lineCode;  
250 - // 重新设置提交参数线路编码值  
251 - params.lineCode = lineId;  
252 - // 弹出选择框;确认则提交;取消则返回  
253 - layer.confirm('线路编码【'+oldCode+'】已存在!自动顺延为如下:<br>线路编码:'+lineId, {  
254 - btn : [ '确认提示并提交', '取消' ]  
255 - }, submit);  
256 - */  
257 - layer.open({  
258 - title: '消息提示'  
259 - ,content: '线路编码【'+params.lineCode+'】已存在,请重新输入编码!'  
260 - });  
261 } 246 }
262 } else { 247 } else {
263 // 提交 248 // 提交
@@ -267,16 +252,16 @@ @@ -267,16 +252,16 @@
267 // 提交 252 // 提交
268 function submit() { 253 function submit() {
269 // 添加数据 254 // 添加数据
270 - $post('/line', params, function(result) { 255 + $post('/line/update', params, function(result) {
271 // 如果返回结果不为空 256 // 如果返回结果不为空
272 if(result){ 257 if(result){
273 // 返回状态码为"SUCCESS" ,则添加成功;返回状态码为"ERROR" ,则添加失败 258 // 返回状态码为"SUCCESS" ,则添加成功;返回状态码为"ERROR" ,则添加失败
274 if(result.status=='SUCCESS') { 259 if(result.status=='SUCCESS') {
275 // 弹出添加成功提示消息 260 // 弹出添加成功提示消息
276 - layer.msg('添加成功...'); 261 + layer.msg('修改成功...');
277 } else if(result.status=='ERROR') { 262 } else if(result.status=='ERROR') {
278 // 弹出添加失败提示消息 263 // 弹出添加失败提示消息
279 - layer.msg('添加失败...'); 264 + layer.msg('修改失败...');
280 } 265 }
281 } 266 }
282 // 返回list.html页面 267 // 返回list.html页面
src/main/resources/static/pages/base/station/js/station-list-edit.js
@@ -7,6 +7,8 @@ @@ -7,6 +7,8 @@
7 */ 7 */
8 8
9 (function(){ 9 (function(){
  10 + // 关闭左侧栏
  11 + if (!$('body').hasClass('page-sidebar-closed')) {$('.menu-toggler.sidebar-toggler').click();}
10 // 获取参站点路由路ID 12 // 获取参站点路由路ID
11 var no = []; 13 var no = [];
12 no = $.url().param('no').split(","); 14 no = $.url().param('no').split(",");