4c65c9a8 by yangjianbin

init

1 parent 3e1c02b0
......@@ -7,6 +7,7 @@
<span>资料清单</span>
</div>
<form action="" id="form1">
<div class="tabCon">
<?php
if($clientUnitOutputVO->jobType == 1){ //打工类
......@@ -16,6 +17,7 @@
}
?>
</div>
</form>
<div class="tabCon">
<?php $this->load->view('work/图片上传'); ?>
......@@ -48,6 +50,39 @@
uploadList();
function submit() {
layer.confirm('确认要提交尽调?', {
btn: ['是','否'],
title: '确认',
icon: 3
}, function(){
var targetUrl = 'dueDiligence';
var data = $("form1").serializeJson();
$.ajax({
type: 'post',
url: apiBaseUrl + targetUrl,
cache: false,
dataType: 'json',
data: JSON.stringify(data),
contentType: "application/json; charset=UTF-8",
success: function (data) {
if (data.msg) {
layer.alert(data.msg);
} else if (data.code != 0) {
layer.alert('操作失败');
} else {
layer.alert('操作成功');
}
setTimeout(function () {
if(!data.code) {
table.fnDraw();
layer_close();
}
},500);
},
error: function () {
layer.alert("操作失败")
}
})
}
</script>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!