cy
2022-06-28 2ba5c891b24d4d0cd6ce7ef833592e4f576ee5e8
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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title></title>
[#include "/business/pages/include/static.html" /]
</head>
<body class="end_task_body widthauto">
[#include "/component/newsel.html"/]
[#include "/component/DatePicker.html" /]
[#include "/component/cfgcateSelector.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;
    }});
 
    $("#cus_id").formValidator({empty: false, onShow:"请选择${Constants.CUSTOMER_CONSTANTS}!",onFocus: "请选择${Constants.CUSTOMER_CONSTANTS}名称"}).inputValidator({min: 1,onError: "${Constants.CUSTOMER_CONSTANTS}不能为空"});
    $("#ciname").formValidator({empty: false, onShow:"请输入配置名称!",onFocus: "请输入配置名称"}).inputValidator({min: 1,max:60,onError: "配置名称为1到30个汉字"});
    $("#sn_no").formValidator({empty: false, onShow:"请输入SN序列号!",onFocus: "请输入SN序列号"}).inputValidator({min: 1,max:24,onError: "SN序列号为1到24个字符"});
    $("#note").formValidator({empty: true}).inputValidator({max:400,onError: "备注不超过400个字符"});
})
</script>
    <form action="editCfg.html" method="post"  id="myform" name="myform">
         <input type="hidden" name="id" value="${RequestParameters.id}" />
         <input type="hidden" id="bus_id" name="bus_id" value="${info.bus_id}" />
         <input type="hidden" id="bus_id" name="flow_flag" value="${RequestParameters.flow_flag}" />
         <table class="edit_layout2">
                 [#if info.lv1_id??&&info.lv1_id!=""]
                 <tr>
                     <th><label class="required">配置分类:</label></th>
                     <td colspan="3">
                         ${info.lv1_name}-${info.lv2_name}-${info.lv3_name}
                         <input type="hidden" name="lv2_id" value="${info.lv2_id}"/>
                         <input type="hidden" name="lv3_id" value="${info.lv3_id}"/>
                     </td>
                 </tr>
                 [#else]
                 <tr>
                    <th ><label class="required">配置分类:</label></th>
                    <td colspan="3">
                    [@cfgcate id="full_cate_id" name="full_cate_name" call="showTemplate"/]
                    </td>
                </tr>
                 [/#if]
           </table>
           <div id="template">
           [#if info.id??]
           [#include "/business/pages/cfg/cfgTemplate.html" /]
           [/#if]
           </div> 
     </form>
 
<script type="text/javascript">
 
function showTemplate(full_id){
    if(full_id!=''){
        var arr = full_id.split("-");
        $("#template").load("${base}/business/pages/cfg/cfgTemplate.html",{"linkId":arr[2]});
    }
}
 
function onDialogBtnClick(btnID, dialogID, config){
    if(btnID == "btnSure"){
        if($("#full_cate_id").val()==""){
            window.top.popupTips("请选择配置分类");
            return;
        }
        $("#myform").submit();
    }
}
</script>
 
</body>
</html>