cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>配置审核</title>
[#include "/business/pages/include/static.html" /]
[#include "/component/userSelector.html" /]
<script type="text/javascript">
$(function() {
    $.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
                        document.getElementById("myform").target = window.top.openDialog("1","操作",
                         {},
                         {"width":40,"height":40},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
                         return true;
        }});
    $("#curId").formValidator({empty:false,onFocus:"请选择审核人",onShow:"请选择审核人"}).inputValidator({min:1,onError:"请选择审核人"});
    
    $("#isNext").change(function(){
        $("#sh_div").toggle();
    });
    
    /* $("input[name=flag]").change(function(){
        $(".next_div").toggle();
        if($("input[name=flag]:checked").val()=="2"){
            $("#sh_div").hide();
        }else{
            if($("#isNext").val()=="2"){
                $("#sh_div").hide();
            }else{
                $("#sh_div").show();
            }
        }
    }); */
})
function onDialogBtnClick(btnID, dialogID, config){
    if(btnID == "btnSure"){
        if($("#isNext").val()=='2'){
            $("#curId").attr("disabled",true).unFormValidator(true); 
        }
        $("#myform").submit();
    }    
}
</script>
</head>
<body class="end_task_body widthauto">
    <div id="template">
    [#if info.id??]
    [#include "/business/pages/cfg/cfgTemplateRead.html" /]
    [/#if]
    </div> 
    <form id="myform" action="comitSh.html" method="post">
    <input type="hidden" name="busId" value="${RequestParameters.busId}"/>
    <input type="hidden" name="cfgId" value="${RequestParameters.cfgId}"/>
    <div class="edit_title"><h3>审核信息</h3></div>
        <table class="edit_layout2">
        <!-- <tr>
               <th ><label>审核结果:</label></th>
            <td>
                <input class="audit" type="radio"  name="flag" value="1" checked/>通过
                <input class="audit" type="radio"  name="flag" value="2"/>不通过
            </td>
        </tr> -->
        
        <tr class="next_div"> 
               <th ><label>是否审核:</label></th>
            <td>
                <select name="isNext" id="isNext" class="mysel">
                    <option value="2">否</option>
                    <option value="1">是</option>
                </select>
            </td>
        </tr>
        
          <tr>
            <th ><label>备注:</label></th>
            <td>
            <textarea rows="5" cols="100" name="note" id="note" class="general"></textarea>
            </td>
        </tr>
        
          
        
        <tr id="sh_div" style="display:none;">
           <th><label>审核人:</label></th>
            <td>
                [@user id="curId" name="curName" iframe="{'lv1_id':'dialogIframedo'}"/]
                <div id="curIdTip" style="display:inline-block;width:180px;"></div>
            </td>
        </tr>                
    </table>
    </form>
</body>
</html>