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) { 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 = { cost = {
pageNo: 1, pageNo: 1,
/*第几页*/ /*第几页*/
...@@ -108,11 +109,13 @@ define(['doT', 'text!temp/attendance_template_tpl.html', 'css!style/home.css', ' ...@@ -108,11 +109,13 @@ define(['doT', 'text!temp/attendance_template_tpl.html', 'css!style/home.css', '
$("#file_input").change(function() { $("#file_input").change(function() {
var _this = $(this); var _this = $(this);
var formData = new FormData(); var formData = new FormData();
// formData.append('AuthToken', user_info_obj.AuthToken);
formData.append('type', 'excel_import'); formData.append('type', 'excel_import');
formData.append('file', _this[0].files[0]); formData.append('file', _this[0].files[0]);
console.log(_this[0].files[0]);
$.ajax({ $.ajax({
type: 'post', type: 'post',
url: ServerHostImageLiu + '/index/importStoreFee', url: '/index/importStoreFee',
data: formData, data: formData,
dataType: 'json', dataType: 'json',
contentType: false, 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