mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-07-03 22:58:10 +08:00
Compare commits
3 Commits
4ae7d3484f
...
bd4bdd8ed7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bd4bdd8ed7 | ||
|
|
de6207ce6f | ||
|
|
3ee82df090 |
@ -9,7 +9,7 @@
|
||||
</div>
|
||||
<div class="layui-card-body">
|
||||
<div class="layui-btn layui-btn-radius margin-left-0 margin-right-5 margin-bottom-5" ng-class="{true:'layui-btn-normal',false:'layui-btn-warm'}[x.status]" ng-click="SetActiveProvince(x)" ng-repeat="x in items">
|
||||
<label class="think-checkbox margin-right-0"><input ng-change="SetChangeCity(x,x.status)" ng-model="x.status" type="checkbox"></label><span ng-bind="x.name"></span>
|
||||
<label class="think-checkbox margin-right-0"><input ng-change="SetChangeCity(x,x.status)" ng-model="x.status" type="checkbox" lay-ignore></label><span ng-bind="x.name"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -18,7 +18,7 @@
|
||||
<div class="layui-card-header layui-bg-gray border-bottom-line"><b class="color-green" ng-bind="province.name"></b><span class="font-s12 color-desc margin-left-10">配送城市</span></div>
|
||||
<div class="layui-card-body">
|
||||
<div class="layui-btn layui-btn-radius margin-left-0 margin-right-5 margin-bottom-5" ng-class="{true:'layui-btn-normal',false:'layui-btn-warm'}[x.status]" ng-click="SetActiveCity(x)" ng-repeat="x in province.subs">
|
||||
<label class="think-checkbox margin-right-0"><input ng-change="SetChangeCity(x,x.status)" ng-model="x.status" type="checkbox"></label><span ng-bind="x.name"></span>
|
||||
<label class="think-checkbox margin-right-0"><input ng-change="SetChangeCity(x,x.status)" ng-model="x.status" type="checkbox" lay-ignore></label><span ng-bind="x.name"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -27,7 +27,7 @@
|
||||
<div class="layui-card-header layui-bg-gray border-bottom-line"><b class="color-green" ng-bind="city.name"></b><span class="font-s12 color-desc margin-left-10">配送区域</span></div>
|
||||
<div class="layui-card-body">
|
||||
<div class="layui-btn layui-btn-radius margin-left-0 margin-right-5 margin-bottom-5" ng-class="{true:'layui-btn-normal',false:'layui-btn-warm'}[x.status]" ng-repeat="x in city.subs">
|
||||
<label class="think-checkbox margin-right-0"><input ng-model="x.status" type="checkbox"></label><span ng-bind="x.name"></span>
|
||||
<label class="think-checkbox margin-right-0"><input ng-model="x.status" type="checkbox" lay-ignore></label><span ng-bind="x.name"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -304,11 +304,11 @@ $(function () {
|
||||
});
|
||||
};
|
||||
/*! 以 HASH 打开新网页 */
|
||||
this.href = function (url, ele) {
|
||||
// 重置表格页数缓存
|
||||
if (ele && ele.dataset.menuNode) layui.sessionData('pages', null);
|
||||
if (url !== '#') location.hash = $.menu.parseUri(url, ele);
|
||||
else if (ele && ele.dataset.menuNode) $('[data-menu-node^="' + ele.dataset.menuNode + '-"]:first').trigger('click');
|
||||
this.href = function (url, elem) {
|
||||
this.isMenu = elem && elem.dataset.menuNode;
|
||||
if (this.isMenu) layui.sessionData('pages', null);
|
||||
if (url !== '#') return location.hash = $.menu.parseUri(url, elem);
|
||||
if (this.isMenu) return $('[data-menu-node^="' + elem.dataset.menuNode + '-"]:first').trigger('click');
|
||||
};
|
||||
/*! 加载 HTML 到 BODY 位置 */
|
||||
this.open = function (url, data, call, load, tips) {
|
||||
@ -721,11 +721,11 @@ $(function () {
|
||||
data = $.extend({}, data, (opts = opts || {}).where || {});
|
||||
opts = bindData($.extend({}, opts, {loading: true}));
|
||||
if (evt.type.indexOf('reload') > -1) {
|
||||
var $that = $table.data('that');
|
||||
if ($that && $that.page && $that.page.jump) {
|
||||
$that.sort = $that.initSort = opts.initSort, $that.where = data;
|
||||
if (opts.page && opts.page.curr) $that.page.curr = opts.page.curr || 1;
|
||||
$that.page.jump({curr: $that.page.curr, limit: option.limit});
|
||||
var $next = $table.data('next');
|
||||
if ($next && $next.page && $next.page.jump) {
|
||||
$next.sort = $next.initSort = opts.initSort, $next.where = data;
|
||||
if (opts.page && opts.page.curr) $next.page.curr = opts.page.curr || 1;
|
||||
$next.page.jump({curr: $next.page.curr, limit: option.limit});
|
||||
} else {
|
||||
layui.table.reloadData(table.id, opts);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user