去掉无用的模板文件
封装ajax提示方法
This commit is contained in:
@@ -1883,12 +1883,6 @@ select.input-sm, select.form-group-sm .form-control {
|
||||
.gdoo-list-page {
|
||||
display: none;
|
||||
}
|
||||
.gdoo-list-page .search-inline-form .form-group {
|
||||
margin-left: 4px;
|
||||
}
|
||||
.gdoo-list-page .btn-group {
|
||||
margin-left: 4px;
|
||||
}
|
||||
.gdoo-list {
|
||||
border-color: transparent;
|
||||
border-width: 0;
|
||||
|
||||
Vendored
-16624
File diff suppressed because one or more lines are too long
Vendored
-3173
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+23
-41
@@ -98,9 +98,7 @@
|
||||
if(gets === false) {
|
||||
return;
|
||||
}
|
||||
var loading = layer.msg('数据提交中...', {
|
||||
icon: 16, shade: 0.1, time: 1000 * 120
|
||||
});
|
||||
var loading = showLoading();
|
||||
$.post(app.url(uri + '/flowAudit'), query + '&' + $.param(gets), function (res) {
|
||||
if (res.status) {
|
||||
reloadGrid(table);
|
||||
@@ -126,9 +124,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var loading = layer.msg('数据提交中...', {
|
||||
icon: 16, shade: 0.1, time: 1000 * 120
|
||||
});
|
||||
var loading = showLoading();
|
||||
|
||||
var event = gdoo.event.get('grid.' + table);
|
||||
|
||||
@@ -172,9 +168,9 @@
|
||||
if(gets === false) {
|
||||
return;
|
||||
}
|
||||
var loading = layer.msg('数据提交中...', {
|
||||
icon: 16, shade: 0.1, time: 1000 * 120
|
||||
});
|
||||
|
||||
var loading = showLoading();
|
||||
|
||||
$.post(app.url(uri + '/store'), query + '&' + $.param(gets), function (res) {
|
||||
if (res.status) {
|
||||
reloadGrid(table);
|
||||
@@ -192,9 +188,9 @@
|
||||
}, read: function (table) {
|
||||
var uri = $('#' + table).find('#master_uri').val();
|
||||
var query = $('#' + table).serialize();
|
||||
var loading = layer.msg('数据提交中...', {
|
||||
icon: 16, shade: 0.1
|
||||
});
|
||||
|
||||
var loading = showLoading();
|
||||
|
||||
$.post(app.url(uri + '/flowRead'), query, function (res) {
|
||||
if (res.status) {
|
||||
reloadGrid(table);
|
||||
@@ -212,9 +208,9 @@
|
||||
if (btn == true) {
|
||||
var uri = $('#' + table).find('#master_uri').val();
|
||||
var query = $('#' + table).serialize();
|
||||
var loading = layer.msg('数据提交中...', {
|
||||
icon: 16, shade: 0.1
|
||||
});
|
||||
|
||||
var loading = showLoading();
|
||||
|
||||
$.post(app.url(uri + '/flowReset'), query, function (res) {
|
||||
if (res.status) {
|
||||
location.reload();
|
||||
@@ -280,11 +276,10 @@
|
||||
text: "提交",
|
||||
'class': "btn-info",
|
||||
click: function () {
|
||||
var me = this;
|
||||
var query = $('#myrecall').serialize();
|
||||
var loading = layer.msg('数据提交中...', {
|
||||
icon: 16, shade: 0.1, time: 1000 * 120
|
||||
});
|
||||
|
||||
var loading = showLoading();
|
||||
|
||||
$.post(app.url(uri + '/recall'), query, function (res) {
|
||||
if (res.status) {
|
||||
reloadGrid(table);
|
||||
@@ -319,11 +314,10 @@
|
||||
text: "提交",
|
||||
'class': "btn-info",
|
||||
click: function () {
|
||||
var me = this;
|
||||
var query = $('#myabort').serialize();
|
||||
var loading = layer.msg('数据提交中...', {
|
||||
icon: 16, shade: 0.1, time: 1000 * 120
|
||||
});
|
||||
|
||||
var loading = showLoading();
|
||||
|
||||
$.post(app.url(uri + '/abort'), query, function (res) {
|
||||
if (res.status) {
|
||||
reloadGrid(table);
|
||||
@@ -346,9 +340,7 @@
|
||||
var uri = $('#' + table).find('#master_uri').val();
|
||||
$.messager.confirm('操作警告', '确定要审核单据吗', function(btn) {
|
||||
if (btn == true) {
|
||||
var loading = layer.msg('数据提交中...', {
|
||||
icon: 16, shade: 0.1
|
||||
});
|
||||
var loading = showLoading();
|
||||
$.post(app.url(uri + '/audit'), {key: key}, function (res) {
|
||||
if (res.status) {
|
||||
reloadGrid(table);
|
||||
@@ -370,9 +362,7 @@
|
||||
var uri = $('#' + table).find('#master_uri').val();
|
||||
$.messager.confirm('操作警告', '确定要弃审单据吗', function(btn) {
|
||||
if (btn == true) {
|
||||
var loading = layer.msg('数据提交中...', {
|
||||
icon: 16, shade: 0.1, time: 1000 * 30
|
||||
});
|
||||
var loading = showLoading();
|
||||
$.post(app.url(uri + '/abort'), {key: key}, function (res) {
|
||||
if (res.status) {
|
||||
reloadGrid(table);
|
||||
@@ -459,9 +449,7 @@
|
||||
var id = rows[0].id;
|
||||
top.$.messager.confirm('操作提醒', '是否要关闭选中的行数据?', function(btn) {
|
||||
if (btn == true) {
|
||||
var loading = layer.msg('数据提交中...', {
|
||||
icon: 16, shade: 0.1, time: 1000 * 120
|
||||
});
|
||||
var loading = showLoading();
|
||||
$.post(app.url(me.bill_url + '/closeRow'), {table: table,id: id}, function(res) {
|
||||
if (res.status) {
|
||||
toastrSuccess(res.data);
|
||||
@@ -490,9 +478,7 @@
|
||||
if (ids.length > 0) {
|
||||
top.$.messager.confirm('操作提醒', '是否要关闭所有行数据?', function(btn) {
|
||||
if (btn == true) {
|
||||
var loading = layer.msg('数据提交中...', {
|
||||
icon: 16, shade: 0.1, time: 1000 * 120
|
||||
});
|
||||
var loading = showLoading();
|
||||
$.post(app.url(me.bill_url + '/closeAllRow'), {table: table,ids: ids}, function(res) {
|
||||
if (res.status) {
|
||||
toastrSuccess(res.data);
|
||||
@@ -559,9 +545,7 @@
|
||||
onSubmit: function() {
|
||||
var fd = new FormData();
|
||||
fd.append("file", $('#import_file')[0].files[0]);
|
||||
var loading = layer.msg('数据提交中...', {
|
||||
icon: 16, shade: 0.1, time: 1000 * 120
|
||||
});
|
||||
var loading = showLoading();
|
||||
$.ajax({
|
||||
url: app.url(me.bill_url + '/import'),
|
||||
type: "POST",
|
||||
@@ -598,9 +582,7 @@
|
||||
var content = ids.length + '个' + me.name + '将被删除?';
|
||||
top.$.messager.confirm('删除' + me.name, content, function(btn) {
|
||||
if (btn == true) {
|
||||
var loading = layer.msg('数据提交中...', {
|
||||
icon: 16, shade: 0.1, time: 1000 * 120
|
||||
});
|
||||
var loading = showLoading();
|
||||
$.post(app.url(me.bill_url + '/delete'), {id: ids}, function(res) {
|
||||
if (res.status) {
|
||||
toastrSuccess(res.data);
|
||||
|
||||
@@ -554,9 +554,7 @@ function formDialog(options)
|
||||
return;
|
||||
}
|
||||
|
||||
var loading = layer.msg('数据提交中...', {
|
||||
icon: 16, shade: 0.1, time: 1000 * 120
|
||||
});
|
||||
var loading = showLoading();
|
||||
|
||||
$.post(action, query + '&' + $.param(gets), function(res) {
|
||||
if (res.status) {
|
||||
@@ -849,9 +847,7 @@ function ajaxSubmit(table, callback) {
|
||||
|
||||
data = data +'&'+ $.param(rows);
|
||||
|
||||
var loading = layer.msg('数据提交中...', {
|
||||
icon: 16, shade: 0.1, time: 1000 * 120
|
||||
});
|
||||
var loading = showLoading();
|
||||
|
||||
$.post(url, data, function(res) {
|
||||
if (typeof callback === 'function') {
|
||||
@@ -900,6 +896,18 @@ function getIframeDocument(iframe_id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 数据加载提示
|
||||
*/
|
||||
function showLoading(msg) {
|
||||
var loading = layer.msg(msg || '数据提交中...', {
|
||||
icon: 16,
|
||||
shade: 0.1,
|
||||
time: 1000 * 120
|
||||
});
|
||||
return loading;
|
||||
}
|
||||
|
||||
/**
|
||||
* 格式化文件大小
|
||||
* @param {*} fileSize
|
||||
|
||||
@@ -462,7 +462,6 @@
|
||||
});
|
||||
content.html(iframe);
|
||||
|
||||
//layer.msg('页面加载中,请稍候...', {icon: 2,shade: 0, time: 1000 * 120});
|
||||
layer.load(2);
|
||||
iframe.load(function() {
|
||||
layer.closeAll('loading');
|
||||
|
||||
Reference in New Issue
Block a user