修改跳转

This commit is contained in:
邹景立 2021-03-26 19:11:52 +08:00
parent 0365e1db8e
commit c2844a36ee
2 changed files with 3 additions and 4 deletions

View File

@ -50,7 +50,7 @@ class BasePostageTemplate extends Controller
$data = $this->_vali(['nos.default' => '', 'oks.default' => '']);
if ($data['nos']) $this->app->db->name('DataBasePostageRegion')->whereIn('id', str2arr($data['nos']))->update(['status' => 0]);
if ($data['oks']) $this->app->db->name('DataBasePostageRegion')->whereIn('id', str2arr($data['oks']))->update(['status' => 1]);
$this->success('修改配送区域成功!');
$this->success('修改配送区域成功!', 'javascript:history.back()');
}
}

View File

@ -34,6 +34,7 @@
<div class="hr-line-dashed margin-top-40"></div>
<div class="layui-form-item text-center">
<button class="layui-btn layui-btn-danger" type="button" data-history-back>取消修改</button>
<button class="layui-btn" ng-click="Confirm()">确定修改</button>
</div>
</div>
@ -123,9 +124,7 @@
});
});
/*! 提交数据并返回结果 */
$.form.load('{:url("region")}', {nos: nos.join(','), oks: oks.join(',')}, 'post', function (ret) {
return ret.code ? $.msg.success(ret.info) : $.msg.error(ret.info), false;
});
$.form.load('{:url("region")}', {nos: nos.join(','), oks: oks.join(',')}, 'post');
};
}
});