4c65c9a8 by yangjianbin

init

1 parent 3e1c02b0
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
7 <span>资料清单</span> 7 <span>资料清单</span>
8 </div> 8 </div>
9 9
10 <form action="" id="form1">
10 <div class="tabCon"> 11 <div class="tabCon">
11 <?php 12 <?php
12 if($clientUnitOutputVO->jobType == 1){ //打工类 13 if($clientUnitOutputVO->jobType == 1){ //打工类
...@@ -16,6 +17,7 @@ ...@@ -16,6 +17,7 @@
16 } 17 }
17 ?> 18 ?>
18 </div> 19 </div>
20 </form>
19 21
20 <div class="tabCon"> 22 <div class="tabCon">
21 <?php $this->load->view('work/图片上传'); ?> 23 <?php $this->load->view('work/图片上传'); ?>
...@@ -48,6 +50,39 @@ ...@@ -48,6 +50,39 @@
48 uploadList(); 50 uploadList();
49 51
50 function submit() { 52 function submit() {
53 layer.confirm('确认要提交尽调?', {
54 btn: ['是','否'],
55 title: '确认',
56 icon: 3
57 }, function(){
58 var targetUrl = 'dueDiligence';
59 var data = $("form1").serializeJson();
60 $.ajax({
61 type: 'post',
62 url: apiBaseUrl + targetUrl,
63 cache: false,
64 dataType: 'json',
65 data: JSON.stringify(data),
66 contentType: "application/json; charset=UTF-8",
67 success: function (data) {
68 if (data.msg) {
69 layer.alert(data.msg);
70 } else if (data.code != 0) {
71 layer.alert('操作失败');
72 } else {
73 layer.alert('操作成功');
74 }
75 setTimeout(function () {
76 if(!data.code) {
77 table.fnDraw();
78 layer_close();
79 }
80 },500);
81 },
82 error: function () {
83 layer.alert("操作失败")
84 }
85 })
51 86
52 } 87 }
53 </script> 88 </script>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!