25dd2cb6 by yangjianbin

init

1 parent 27bd04c3
...@@ -17,7 +17,9 @@ ...@@ -17,7 +17,9 @@
17 </div> 17 </div>
18 18
19 <div class="tabCon"> 19 <div class="tabCon">
20 <form action="" id="form1">
20 <?php $this->load->view('/work/审批/电核结果'); ?> 21 <?php $this->load->view('/work/审批/电核结果'); ?>
22 </form>
21 </div> 23 </div>
22 <div class="tabCon pb-20"> 24 <div class="tabCon pb-20">
23 <div class="cl pd-5 bg-1"> 25 <div class="cl pd-5 bg-1">
...@@ -68,7 +70,7 @@ ...@@ -68,7 +70,7 @@
68 <button class="btn btn-danger btn-block" onclick="refuse()">拒绝</button> 70 <button class="btn btn-danger btn-block" onclick="refuse()">拒绝</button>
69 </div> 71 </div>
70 <div class="col-sm-2"> 72 <div class="col-sm-2">
71 <button class="btn btn-primary btn-block" onclick="loadIframe('<?=site_url('/work/check/9');?>', '审核意见');">通过</button> 73 <button class="btn btn-primary btn-block" onclick="pass()">通过</button>
72 </div> 74 </div>
73 </div> 75 </div>
74 76
...@@ -104,6 +106,38 @@ ...@@ -104,6 +106,38 @@
104 content: '<?=site_url('work/telRefuse')?>' 106 content: '<?=site_url('work/telRefuse')?>'
105 }); 107 });
106 } 108 }
109
110 function pass() {
111 var data = $("#form1").serializeJson();
112 var url = '<?=site_url('/work/check/9/' . $id);?>';
113 $.ajax({
114 type: 'post',
115 url: apiBaseUrl + 'audit/phoneReport',
116 cache: false,
117 data: JSON.stringify(data),
118 dataType: 'json',
119 contentType: "application/json; charset=UTF-8",
120 success: function (data) {
121 if (data.msg) {
122 layer.alert(data.msg);
123 } else if (data.code != 0) {
124 layer.alert('操作失败');
125 } else {
126 layer.alert('操作成功');
127 }
128 if(!data.code){
129 setTimeout(function () {
130 loadIframe(url, '审核意见');
131 }, 500)
132 }
133 },
134 error: function () {
135 layer.alert("操作失败")
136 }
137
138 })
139
140 }
107 </script> 141 </script>
108 </body> 142 </body>
109 </html> 143 </html>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!