Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
19b3244e
Commit
19b3244e
authored
Aug 20, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
23d41d7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
2 deletions
+42
-2
attendanceList.html
application/index/view/cost/attendanceList.html
+2
-1
attendanceList.js
public/resource/js/attendanceList.js
+40
-1
No files found.
application/index/view/cost/attendanceList.html
View file @
19b3244e
...
...
@@ -104,7 +104,8 @@
</select>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
style=
"float:left"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
style=
"float:left"
>
重置
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
""
style=
"float: left;"
>
批量上传
</span>
<!--<span class="btn btn-info btn3 ld-Marheight" id="" style="float: left;">批量上传</span>-->
<input
type=
"file"
id=
"file_input"
style=
"float:left;width: 80px;"
class=
"ld-Marheight"
/>
<span
class=
"fore-span ld-Marheight"
style=
"font-size:700;font-size:16px;float:left;line-height:20px;margin-top:15px;margin-left:30px"
id=
"dataStr"
>
2019-06
</span>
<span
class=
"btn btn-info btn3 ld-Marheight checked"
data-index=
"1"
style=
"float: left;"
>
考勤 核对无误
</span>
<span
class=
"btn btn-info btn3 ld-Marheight checked"
data-index=
"2"
style=
"float: left;"
>
社保 核对无误
</span>
...
...
public/resource/js/attendanceList.js
View file @
19b3244e
...
...
@@ -104,7 +104,46 @@ define(['doT', 'text!temp/attendance_template_tpl.html', 'css!style/home.css', '
$
(
document
).
on
(
'click'
,
'.checked'
,
function
(
e
){
that
.
checkFinish
(
e
.
target
.
dataset
.
index
)
})
//附件上传处理事件
$
(
"#file_input"
).
change
(
function
()
{
var
_this
=
$
(
this
);
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'excel_import'
);
formData
.
append
(
'file'
,
_this
[
0
].
files
[
0
]);
$
.
ajax
({
type
:
'post'
,
url
:
ServerHostImageLiu
+
'/index/importStoreFee'
,
data
:
formData
,
dataType
:
'json'
,
contentType
:
false
,
cache
:
false
,
processData
:
false
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
_data
.
code
==
200
)
{
// var _url = _data.data.internet_img_name;
// _this.parent().next().prepend('<li class="pdf-pre-li"><a data-filename="{3}" class="pdf-pre-a pdf-pre-a-new" href="javascript:;" title="保存之后才可以点击下载">{4}</a><a href="javascript:;" class="delet-pic-btn">删除</a></li>'.stringFormatObj({
// '0': _url,
// '1': decodeURI(_url.slice(_url.lastIndexOf('/') + 1)),
// '2': dealFileName(decodeURI(_url.slice(_url.lastIndexOf('/') + 1))),//dealFileName不要忘记
// '3': _data.data.img_path,
// '4': _data.data.imgformer_name
// }));
}
else
{
alert
(
_data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
//部门门店二级联动
that
.
getDistrictPanFang
(
function
(){
//有了列表 点击 调用门店列表
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment