| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <link href="../css/layer/need/layer.css" />
- <link rel="stylesheet" href="../css/init.css" />
- <title>监察</title>
- </head>
- <body>
- <div class="Common">
- <table >
- <tr>
- <th class="Importent title">督查意见:</th>
- <td><textarea id='overseeopinion'textarea name="" rows="" cols=""></textarea></td>
- </tr>
-
- </table>
- <div class="btn_box">
- <button class="btns DB">保存</button>
- <button class="btns JC">保存</button>
- </div>
- </div>
- <script >
- var wid = helper.request.queryString("wid");
- var type=helper.request.queryString("type");
- $(document).ready(function() {
- if(type==1){
- $(".title").text("督办意见")
- $(".JC").hide();
- }else{
- $(".title").text("监察意见")
- $(".DB").hide();
- }
- $(".DB").click(function(){
- type=1;
- JA();
- })
- $(".JC").click(function(){
- type=2;
- JA();
- })
- })
- //督察
- function JA() {
- $.post(huayi.config.callcenter_url + 'WorkOrder/RemindWorkOrder', {
- workorderid: wid,
- overseeopinion:$("#overseeopinion").val(),
- type:type,
- "token": $.cookie("token")
- }, function(result) {
- result = JSON.parse(result);
- if(result.state.toLowerCase() == "success") {
-
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- parent.load();
- parent.layer.msg("操作成功");
-
- }
- })
- }
- </script>
- </body>
- </html>
|