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