mirror of https://gitee.com/karson/fastadmin.git
parent
e927a7b09d
commit
1bcb46dbee
|
|
@ -74,6 +74,11 @@ body.is-dialog {
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
.layui-layer-iframe .layui-layer-content.ios-iframe-fix {
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
overflow: auto;
|
||||||
|
overflow-y: auto!important;
|
||||||
|
}
|
||||||
@media only screen and (min-width: 481px) {
|
@media only screen and (min-width: 481px) {
|
||||||
.row-flex {
|
.row-flex {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -80,7 +80,7 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'adminlte', 'form'], functi
|
||||||
});
|
});
|
||||||
|
|
||||||
//版本检测
|
//版本检测
|
||||||
var checkupdate = function (ignoreversion, tips = false) {
|
var checkupdate = function (ignoreversion, tips) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: Config.fastadmin.api_url + '/version/check',
|
url: Config.fastadmin.api_url + '/version/check',
|
||||||
type: 'post',
|
type: 'post',
|
||||||
|
|
@ -114,12 +114,12 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'adminlte', 'form'], functi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
//读取版本检测信息
|
//读取版本检测信息
|
||||||
var ignoreversion = localStorage.getItem("ignoreversion");
|
var ignoreversion = localStorage.getItem("ignoreversion");
|
||||||
if (ignoreversion !== "*") {
|
if (ignoreversion !== "*") {
|
||||||
checkupdate(ignoreversion);
|
checkupdate(ignoreversion, false);
|
||||||
}
|
}
|
||||||
//手动检测版本信息
|
//手动检测版本信息
|
||||||
$("a[data-toggle='checkupdate']").on('click', function () {
|
$("a[data-toggle='checkupdate']").on('click', function () {
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine
|
||||||
url = Fast.api.fixurl(url);
|
url = Fast.api.fixurl(url);
|
||||||
url = url + (url.indexOf("?") > -1 ? "&" : "?") + "dialog=1";
|
url = url + (url.indexOf("?") > -1 ? "&" : "?") + "dialog=1";
|
||||||
var area = [$(window).width() > 800 ? '800px' : '95%', $(window).height() > 600 ? '600px' : '95%'];
|
var area = [$(window).width() > 800 ? '800px' : '95%', $(window).height() > 600 ? '600px' : '95%'];
|
||||||
Layer.open($.extend({
|
options = $.extend({
|
||||||
type: 2,
|
type: 2,
|
||||||
title: title,
|
title: title,
|
||||||
shadeClose: true,
|
shadeClose: true,
|
||||||
|
|
@ -158,7 +158,12 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine
|
||||||
// observer.disconnect();
|
// observer.disconnect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, options ? options : {}));
|
}, options ? options : {});
|
||||||
|
if (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream && top.$(".tab-pane.active").size() > 0) {
|
||||||
|
options.area = [top.$(".tab-pane.active").width() + "px", top.$(".tab-pane.active").height() + "px"];
|
||||||
|
options.offset = "lt";
|
||||||
|
}
|
||||||
|
Layer.open(options);
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
//关闭窗口并回传数据
|
//关闭窗口并回传数据
|
||||||
|
|
@ -183,33 +188,25 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine
|
||||||
$(">", footer).wrapAll("<div class='row'></div>");
|
$(">", footer).wrapAll("<div class='row'></div>");
|
||||||
}
|
}
|
||||||
footer.insertAfter(layero.find('.layui-layer-content'));
|
footer.insertAfter(layero.find('.layui-layer-content'));
|
||||||
}
|
//绑定事件
|
||||||
var heg = frame.outerHeight();
|
|
||||||
var titHeight = layero.find('.layui-layer-title').outerHeight() || 0;
|
|
||||||
var btnHeight = layero.find('.layui-layer-btn').outerHeight() || 0;
|
|
||||||
|
|
||||||
var oldheg = heg + titHeight + btnHeight;
|
|
||||||
var maxheg = $(window).height() < 600 ? $(window).height() : 600;
|
|
||||||
if (frame.outerWidth() < 768 || that.area[0].indexOf("%") > -1) {
|
|
||||||
maxheg = $(window).height();
|
|
||||||
}
|
|
||||||
// 如果有.layer-footer或窗口小于600则重新排
|
|
||||||
if (layerfooter.size() > 0 || oldheg < maxheg || that.area[0].indexOf("%") > -1) {
|
|
||||||
var footerHeight = layero.find('.layui-layer-footer').outerHeight() || 0;
|
|
||||||
footerHeight = 0;
|
|
||||||
if (oldheg >= maxheg) {
|
|
||||||
heg = Math.min(maxheg, oldheg) - titHeight - btnHeight - footerHeight;
|
|
||||||
}
|
|
||||||
layero.css({height: heg + titHeight + btnHeight + footerHeight});
|
|
||||||
layero.find("iframe").css({height: heg});
|
|
||||||
}
|
|
||||||
if (layerfooter.size() > 0) {
|
|
||||||
footer.on("click", ".btn", function () {
|
footer.on("click", ".btn", function () {
|
||||||
if ($(this).hasClass("disabled") || $(this).parent().hasClass("disabled")) {
|
if ($(this).hasClass("disabled") || $(this).parent().hasClass("disabled")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$(".btn:eq(" + $(this).index() + ")", layerfooter).trigger("click");
|
$(".btn:eq(" + $(this).index() + ")", layerfooter).trigger("click");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var titHeight = layero.find('.layui-layer-title').outerHeight() || 0;
|
||||||
|
var btnHeight = layero.find('.layui-layer-btn').outerHeight() || 0;
|
||||||
|
//重设iframe高度
|
||||||
|
$("iframe", layero).height(layero.height() - titHeight - btnHeight);
|
||||||
|
}
|
||||||
|
//修复iOS下弹出窗口的高度和iOS下iframe无法滚动的BUG
|
||||||
|
if (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) {
|
||||||
|
var titHeight = layero.find('.layui-layer-title').outerHeight() || 0;
|
||||||
|
var btnHeight = layero.find('.layui-layer-btn').outerHeight() || 0;
|
||||||
|
$("iframe", layero).parent().addClass("ios-iframe-fix").css("height", layero.height() - titHeight - btnHeight);
|
||||||
|
$("iframe", layero).css("height", "100%");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
success: function (options, callback) {
|
success: function (options, callback) {
|
||||||
|
|
|
||||||
|
|
@ -2041,7 +2041,7 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
||||||
url = Fast.api.fixurl(url);
|
url = Fast.api.fixurl(url);
|
||||||
url = url + (url.indexOf("?") > -1 ? "&" : "?") + "dialog=1";
|
url = url + (url.indexOf("?") > -1 ? "&" : "?") + "dialog=1";
|
||||||
var area = [$(window).width() > 800 ? '800px' : '95%', $(window).height() > 600 ? '600px' : '95%'];
|
var area = [$(window).width() > 800 ? '800px' : '95%', $(window).height() > 600 ? '600px' : '95%'];
|
||||||
Layer.open($.extend({
|
options = $.extend({
|
||||||
type: 2,
|
type: 2,
|
||||||
title: title,
|
title: title,
|
||||||
shadeClose: true,
|
shadeClose: true,
|
||||||
|
|
@ -2083,7 +2083,12 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
||||||
// observer.disconnect();
|
// observer.disconnect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, options ? options : {}));
|
}, options ? options : {});
|
||||||
|
if (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream && top.$(".tab-pane.active").size() > 0) {
|
||||||
|
options.area = [top.$(".tab-pane.active").width() + "px", top.$(".tab-pane.active").height() + "px"];
|
||||||
|
options.offset = "lt";
|
||||||
|
}
|
||||||
|
Layer.open(options);
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
//关闭窗口并回传数据
|
//关闭窗口并回传数据
|
||||||
|
|
@ -2108,33 +2113,25 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
||||||
$(">", footer).wrapAll("<div class='row'></div>");
|
$(">", footer).wrapAll("<div class='row'></div>");
|
||||||
}
|
}
|
||||||
footer.insertAfter(layero.find('.layui-layer-content'));
|
footer.insertAfter(layero.find('.layui-layer-content'));
|
||||||
}
|
//绑定事件
|
||||||
var heg = frame.outerHeight();
|
|
||||||
var titHeight = layero.find('.layui-layer-title').outerHeight() || 0;
|
|
||||||
var btnHeight = layero.find('.layui-layer-btn').outerHeight() || 0;
|
|
||||||
|
|
||||||
var oldheg = heg + titHeight + btnHeight;
|
|
||||||
var maxheg = $(window).height() < 600 ? $(window).height() : 600;
|
|
||||||
if (frame.outerWidth() < 768 || that.area[0].indexOf("%") > -1) {
|
|
||||||
maxheg = $(window).height();
|
|
||||||
}
|
|
||||||
// 如果有.layer-footer或窗口小于600则重新排
|
|
||||||
if (layerfooter.size() > 0 || oldheg < maxheg || that.area[0].indexOf("%") > -1) {
|
|
||||||
var footerHeight = layero.find('.layui-layer-footer').outerHeight() || 0;
|
|
||||||
footerHeight = 0;
|
|
||||||
if (oldheg >= maxheg) {
|
|
||||||
heg = Math.min(maxheg, oldheg) - titHeight - btnHeight - footerHeight;
|
|
||||||
}
|
|
||||||
layero.css({height: heg + titHeight + btnHeight + footerHeight});
|
|
||||||
layero.find("iframe").css({height: heg});
|
|
||||||
}
|
|
||||||
if (layerfooter.size() > 0) {
|
|
||||||
footer.on("click", ".btn", function () {
|
footer.on("click", ".btn", function () {
|
||||||
if ($(this).hasClass("disabled") || $(this).parent().hasClass("disabled")) {
|
if ($(this).hasClass("disabled") || $(this).parent().hasClass("disabled")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$(".btn:eq(" + $(this).index() + ")", layerfooter).trigger("click");
|
$(".btn:eq(" + $(this).index() + ")", layerfooter).trigger("click");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var titHeight = layero.find('.layui-layer-title').outerHeight() || 0;
|
||||||
|
var btnHeight = layero.find('.layui-layer-btn').outerHeight() || 0;
|
||||||
|
//重设iframe高度
|
||||||
|
$("iframe", layero).height(layero.height() - titHeight - btnHeight);
|
||||||
|
}
|
||||||
|
//修复iOS下弹出窗口的高度和iOS下iframe无法滚动的BUG
|
||||||
|
if (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) {
|
||||||
|
var titHeight = layero.find('.layui-layer-title').outerHeight() || 0;
|
||||||
|
var btnHeight = layero.find('.layui-layer-btn').outerHeight() || 0;
|
||||||
|
$("iframe", layero).parent().addClass("ios-iframe-fix").css("height", layero.height() - titHeight - btnHeight);
|
||||||
|
$("iframe", layero).css("height", "100%");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
success: function (options, callback) {
|
success: function (options, callback) {
|
||||||
|
|
@ -7859,14 +7856,14 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
|
||||||
// 添加按钮事件
|
// 添加按钮事件
|
||||||
$(toolbar).on('click', Table.config.addbtn, function () {
|
$(toolbar).on('click', Table.config.addbtn, function () {
|
||||||
var ids = Table.api.selectedids(table);
|
var ids = Table.api.selectedids(table);
|
||||||
Fast.api.open(options.extend.add_url + "/ids" + (ids.length > 0 ? '/' : '') + ids.join(","), __('Add'));
|
Fast.api.open(options.extend.add_url + (ids.length > 0 ? (options.extend.add_url.match(/(\?|&)+/) ? "&ids=" : "/ids/") + ids.join(",") : ''), __('Add'));
|
||||||
});
|
});
|
||||||
// 批量编辑按钮事件
|
// 批量编辑按钮事件
|
||||||
$(toolbar).on('click', Table.config.editbtn, function () {
|
$(toolbar).on('click', Table.config.editbtn, function () {
|
||||||
var ids = Table.api.selectedids(table);
|
var ids = Table.api.selectedids(table);
|
||||||
//循环弹出多个编辑框
|
//循环弹出多个编辑框
|
||||||
$.each(ids, function (i, j) {
|
$.each(ids, function (i, j) {
|
||||||
Fast.api.open(options.extend.edit_url + "/ids/" + j, __('Edit'));
|
Fast.api.open(options.extend.edit_url + (options.extend.edit_url.match(/(\?|&)+/) ? "&ids=" : "/ids/") + j, __('Edit'));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
// 批量操作按钮事件
|
// 批量操作按钮事件
|
||||||
|
|
@ -7930,7 +7927,7 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
|
||||||
});
|
});
|
||||||
$(table).on("click", "[data-id].btn-edit", function (e) {
|
$(table).on("click", "[data-id].btn-edit", function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
Fast.api.open(options.extend.edit_url + "/ids/" + $(this).data("id"), __('Edit'));
|
Fast.api.open(options.extend.edit_url + (options.extend.edit_url.match(/(\?|&)+/) ? "&ids=" : "/ids/") + $(this).data("id"), __('Edit'));
|
||||||
});
|
});
|
||||||
$(table).on("click", "[data-id].btn-del", function (e) {
|
$(table).on("click", "[data-id].btn-del", function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
@ -7969,7 +7966,7 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
|
||||||
'click .btn-editone': function (e, value, row, index) {
|
'click .btn-editone': function (e, value, row, index) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
var options = $(this).closest('table').bootstrapTable('getOptions');
|
var options = $(this).closest('table').bootstrapTable('getOptions');
|
||||||
Fast.api.open(options.extend.edit_url + "/ids/" + row[options.pk], __('Edit'));
|
Fast.api.open(options.extend.edit_url + (options.extend.edit_url.match(/(\?|&)+/) ? "&ids=" : "/ids/") + row[options.pk], __('Edit'));
|
||||||
},
|
},
|
||||||
'click .btn-delone': function (e, value, row, index) {
|
'click .btn-delone': function (e, value, row, index) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
|
||||||
|
|
@ -2053,7 +2053,7 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
||||||
url = Fast.api.fixurl(url);
|
url = Fast.api.fixurl(url);
|
||||||
url = url + (url.indexOf("?") > -1 ? "&" : "?") + "dialog=1";
|
url = url + (url.indexOf("?") > -1 ? "&" : "?") + "dialog=1";
|
||||||
var area = [$(window).width() > 800 ? '800px' : '95%', $(window).height() > 600 ? '600px' : '95%'];
|
var area = [$(window).width() > 800 ? '800px' : '95%', $(window).height() > 600 ? '600px' : '95%'];
|
||||||
Layer.open($.extend({
|
options = $.extend({
|
||||||
type: 2,
|
type: 2,
|
||||||
title: title,
|
title: title,
|
||||||
shadeClose: true,
|
shadeClose: true,
|
||||||
|
|
@ -2095,7 +2095,12 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
||||||
// observer.disconnect();
|
// observer.disconnect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, options ? options : {}));
|
}, options ? options : {});
|
||||||
|
if (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream && top.$(".tab-pane.active").size() > 0) {
|
||||||
|
options.area = [top.$(".tab-pane.active").width() + "px", top.$(".tab-pane.active").height() + "px"];
|
||||||
|
options.offset = "lt";
|
||||||
|
}
|
||||||
|
Layer.open(options);
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
//关闭窗口并回传数据
|
//关闭窗口并回传数据
|
||||||
|
|
@ -2120,33 +2125,25 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
||||||
$(">", footer).wrapAll("<div class='row'></div>");
|
$(">", footer).wrapAll("<div class='row'></div>");
|
||||||
}
|
}
|
||||||
footer.insertAfter(layero.find('.layui-layer-content'));
|
footer.insertAfter(layero.find('.layui-layer-content'));
|
||||||
}
|
//绑定事件
|
||||||
var heg = frame.outerHeight();
|
|
||||||
var titHeight = layero.find('.layui-layer-title').outerHeight() || 0;
|
|
||||||
var btnHeight = layero.find('.layui-layer-btn').outerHeight() || 0;
|
|
||||||
|
|
||||||
var oldheg = heg + titHeight + btnHeight;
|
|
||||||
var maxheg = $(window).height() < 600 ? $(window).height() : 600;
|
|
||||||
if (frame.outerWidth() < 768 || that.area[0].indexOf("%") > -1) {
|
|
||||||
maxheg = $(window).height();
|
|
||||||
}
|
|
||||||
// 如果有.layer-footer或窗口小于600则重新排
|
|
||||||
if (layerfooter.size() > 0 || oldheg < maxheg || that.area[0].indexOf("%") > -1) {
|
|
||||||
var footerHeight = layero.find('.layui-layer-footer').outerHeight() || 0;
|
|
||||||
footerHeight = 0;
|
|
||||||
if (oldheg >= maxheg) {
|
|
||||||
heg = Math.min(maxheg, oldheg) - titHeight - btnHeight - footerHeight;
|
|
||||||
}
|
|
||||||
layero.css({height: heg + titHeight + btnHeight + footerHeight});
|
|
||||||
layero.find("iframe").css({height: heg});
|
|
||||||
}
|
|
||||||
if (layerfooter.size() > 0) {
|
|
||||||
footer.on("click", ".btn", function () {
|
footer.on("click", ".btn", function () {
|
||||||
if ($(this).hasClass("disabled") || $(this).parent().hasClass("disabled")) {
|
if ($(this).hasClass("disabled") || $(this).parent().hasClass("disabled")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$(".btn:eq(" + $(this).index() + ")", layerfooter).trigger("click");
|
$(".btn:eq(" + $(this).index() + ")", layerfooter).trigger("click");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var titHeight = layero.find('.layui-layer-title').outerHeight() || 0;
|
||||||
|
var btnHeight = layero.find('.layui-layer-btn').outerHeight() || 0;
|
||||||
|
//重设iframe高度
|
||||||
|
$("iframe", layero).height(layero.height() - titHeight - btnHeight);
|
||||||
|
}
|
||||||
|
//修复iOS下弹出窗口的高度和iOS下iframe无法滚动的BUG
|
||||||
|
if (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) {
|
||||||
|
var titHeight = layero.find('.layui-layer-title').outerHeight() || 0;
|
||||||
|
var btnHeight = layero.find('.layui-layer-btn').outerHeight() || 0;
|
||||||
|
$("iframe", layero).parent().addClass("ios-iframe-fix").css("height", layero.height() - titHeight - btnHeight);
|
||||||
|
$("iframe", layero).css("height", "100%");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
success: function (options, callback) {
|
success: function (options, callback) {
|
||||||
|
|
|
||||||
|
|
@ -157,14 +157,14 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
|
||||||
// 添加按钮事件
|
// 添加按钮事件
|
||||||
$(toolbar).on('click', Table.config.addbtn, function () {
|
$(toolbar).on('click', Table.config.addbtn, function () {
|
||||||
var ids = Table.api.selectedids(table);
|
var ids = Table.api.selectedids(table);
|
||||||
Fast.api.open(options.extend.add_url + "/ids" + (ids.length > 0 ? '/' : '') + ids.join(","), __('Add'));
|
Fast.api.open(options.extend.add_url + (ids.length > 0 ? (options.extend.add_url.match(/(\?|&)+/) ? "&ids=" : "/ids/") + ids.join(",") : ''), __('Add'));
|
||||||
});
|
});
|
||||||
// 批量编辑按钮事件
|
// 批量编辑按钮事件
|
||||||
$(toolbar).on('click', Table.config.editbtn, function () {
|
$(toolbar).on('click', Table.config.editbtn, function () {
|
||||||
var ids = Table.api.selectedids(table);
|
var ids = Table.api.selectedids(table);
|
||||||
//循环弹出多个编辑框
|
//循环弹出多个编辑框
|
||||||
$.each(ids, function (i, j) {
|
$.each(ids, function (i, j) {
|
||||||
Fast.api.open(options.extend.edit_url + "/ids/" + j, __('Edit'));
|
Fast.api.open(options.extend.edit_url + (options.extend.edit_url.match(/(\?|&)+/) ? "&ids=" : "/ids/") + j, __('Edit'));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
// 批量操作按钮事件
|
// 批量操作按钮事件
|
||||||
|
|
@ -228,7 +228,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
|
||||||
});
|
});
|
||||||
$(table).on("click", "[data-id].btn-edit", function (e) {
|
$(table).on("click", "[data-id].btn-edit", function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
Fast.api.open(options.extend.edit_url + "/ids/" + $(this).data("id"), __('Edit'));
|
Fast.api.open(options.extend.edit_url + (options.extend.edit_url.match(/(\?|&)+/) ? "&ids=" : "/ids/") + $(this).data("id"), __('Edit'));
|
||||||
});
|
});
|
||||||
$(table).on("click", "[data-id].btn-del", function (e) {
|
$(table).on("click", "[data-id].btn-del", function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
@ -267,7 +267,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
|
||||||
'click .btn-editone': function (e, value, row, index) {
|
'click .btn-editone': function (e, value, row, index) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
var options = $(this).closest('table').bootstrapTable('getOptions');
|
var options = $(this).closest('table').bootstrapTable('getOptions');
|
||||||
Fast.api.open(options.extend.edit_url + "/ids/" + row[options.pk], __('Edit'));
|
Fast.api.open(options.extend.edit_url + (options.extend.edit_url.match(/(\?|&)+/) ? "&ids=" : "/ids/") + row[options.pk], __('Edit'));
|
||||||
},
|
},
|
||||||
'click .btn-delone': function (e, value, row, index) {
|
'click .btn-delone': function (e, value, row, index) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,11 @@ body.is-dialog {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.layui-layer-iframe .layui-layer-content.ios-iframe-fix {
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
overflow: auto;
|
||||||
|
overflow-y: auto!important;
|
||||||
|
}
|
||||||
@media only screen and (min-width : 481px) {
|
@media only screen and (min-width : 481px) {
|
||||||
.row-flex {
|
.row-flex {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue