Commit 0565b489 authored by agping's avatar agping

1

parent 19b3244e
define(['doT', 'text!temp/attendance_template_tpl.html', 'css!style/home.css', 'ckfinder', 'ckfinderStart', "datetimepicker",'pagination', 'bootstrapJs','blow-up'], function(doT, template) {
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
cost = {
pageNo: 1,
/*第几页*/
......@@ -108,11 +109,13 @@ define(['doT', 'text!temp/attendance_template_tpl.html', 'css!style/home.css', '
$("#file_input").change(function() {
var _this = $(this);
var formData = new FormData();
// formData.append('AuthToken', user_info_obj.AuthToken);
formData.append('type', 'excel_import');
formData.append('file', _this[0].files[0]);
console.log(_this[0].files[0]);
$.ajax({
type: 'post',
url: ServerHostImageLiu + '/index/importStoreFee',
url: '/index/importStoreFee',
data: formData,
dataType: 'json',
contentType: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment