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
94
95
96
97
98
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>新增DSL版本</title>
 
[#include "/business/pages/include/static.html" /]
</head>
<body>
<script type="text/javascript">
$(function() {
    $.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
                        document.getElementById("myform").target = window.top.openDialog("tip","操作",
                         {},
                         {"width":40,"height":40},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
                         return true;
        }});
        
        
        $("#edition").formValidator({empty:false,onFocus:"版本号不能为空",onShow:"请输入版本号!"}).inputValidator({min:1,onError:"版本号不能为空"});
})
</script>
 
<div class="edit_txt">
    <form id="myform" action="" method="post">
         <input type="hidden" value="${RequestParameters.dslId}" name="dsl_id" />
         <input type="hidden" value="${userId}" name="dealer_user_id" />
         <input type="hidden" value="${userName}" name="dealer_user_name" />
         <input type="hidden" value="${RequestParameters.flowId}" name="create_flow_id" />
         <table class="edit_layout">
                <tr><th width="20%"><label>DSL名称:</label></th>
                        <td style="width:160px;">
                        <label>${dsl.DSL_NAME}</label>
                        </td>
                    </tr>
                    <tr><th><label>DSL分类:</label></th>
                        <td style="width:160px;">
                        <label>${dsl.DSL_FIRST_CATEGORY_NAME}-${dsl.DSL_SECOND_CATEGORY_NAME}-${dsl.DSL_THIRD_CATEGORY_NAME}</label>
                        </td>
                    </tr>
                    
                    <tr><th><label>原版本:</label></th>
                        <td style="width:160px;">
                        <label>${dsl.EDITION}</label>
                        </td>
                    </tr>
                
                <tr><th width="20%"><label class="required">版本号:</label></th>
                    <td style="width:160px;"><input class="general" type="text" name="edition" id="edition" />
                    <div id="editionTip" style="display:inline-block;"></div>
                    </td>
                </tr>
                
                <tr><th><label >备注:</label></th>
                    <td ><textarea class="general" name="note" id="note" /></textarea>
                    </td>
                </tr>
            </table>
     </form>
</div>
 
 
 
<script type="text/javascript">
function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
            $("#myform").submit();
        }
    }
    
    
    function showDslCate() {
        var dslCateName = $("#dslCateName").val();
        var dslCateId = $("#dslCateId").val();
        var url = "${base}/business/pages/servicelist/dsl/dslLevelTree.html";
        if(!$.util.isEmpty(dslCateId)&&!$.util.isEmpty(dslCateName)) {
            var names = dslCateName.split("-");
            var ids = dslCateId.split("-");
            if(ids.length==3) {
                url += "?cates="+ids[2];
            }
        }
        
        window.top.openDialog("selectDslCate","选择DSL分类",
                             {},
                             {"width":80,"height":80},
                             [{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],url);
    }
    
    
    function showName(labelId,labelName) {
        $("#dslCateName").val(labelName);
        $("#dslCateId").val(labelId);
    }
</script>
 
</body>
</html>