...
|
...
|
@@ -42,6 +42,24 @@ var g = new common.grid({ |
|
|
|
|
|
g.init("/activityTemplate/getProductListByCondition");
|
|
|
|
|
|
common.edit.ajaxfileupload("#uploadBox", {
|
|
|
params: {
|
|
|
type: "activityProduct",
|
|
|
__type: "batch-import",
|
|
|
args:id
|
|
|
},
|
|
|
valid_extensions: ['xls', 'xlsx'],
|
|
|
onComplete: function (response) {
|
|
|
if (response.status && response.code == 200) {
|
|
|
common.util.__tip(response.message, 'success');
|
|
|
g.reload();
|
|
|
}
|
|
|
else {
|
|
|
common.util.__tip(response.message, 'warning');
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//编辑
|
|
|
$(document).on("click", ".edit", function () {
|
|
|
var index = $(this).data("index");
|
...
|
...
|
@@ -84,4 +102,8 @@ $(document).on("click", "#filter-btn", function () { |
|
|
//输入限制
|
|
|
$(document).on("keyup",".number", function () {
|
|
|
$(this).val($(this).val().replace(/\D/g, ''));
|
|
|
});
|
|
|
|
|
|
$(document).on("click", "#chooseFile", function () {
|
|
|
$("#uploadBox").click();
|
|
|
}); |
|
|
\ No newline at end of file |
...
|
...
|
|