main
kgdxpr 1 year ago
parent e61fa84650
commit 42ab2f47dc

@ -154,9 +154,9 @@
auto: true,
accept: 'file',
exts: 'xlsx',
before: function () {
before: function () {
layer.load(); //上传loading
system_id = this.id;
system_id = this.id;
},
data: {
system_id: function () {
@ -168,7 +168,7 @@
layer.closeAll('loading');
layer.msg("上传成功!", {
icon: 1,
time: 1300
time: 1500
});
} else {
alert(result.message);
@ -193,6 +193,8 @@
window.remove(obj);
} else if (obj.event === 'edit') {
window.edit(obj);
} else if (obj.event === 'download') {
window.download(obj);
}
});
@ -251,11 +253,10 @@
});
}
window.download = function (obj) {
console.log(obj.data.system_id);
window.location.href = '/QingLong/dataShare/downloadXlsx?system_id=' + obj.data.system_id;
}
window.edit = function (obj) {
layer.open({

Loading…
Cancel
Save