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
99
100
101
102
103
104
105
106
107
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>修改项目指标项</title>
 
[#include "/business/pages/include/static.html" /]
[#include "/component/cfgcateSelector.html" /]
</head>
<body class="end_task_body widthauto">
<link rel="stylesheet" href="${common_static}/static/plugins/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script type="text/javascript" src="${common_static}/static/plugins/ztree/js/jquery.ztree.all-3.5.min.js"></script>
 
[#include "/component/newsel.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;
        }});
        
        
        $("#item_name").formValidator({empty: false, onShow: "不能为空", onFocus: "指标名称不能为空!"}).inputValidator({min: 1, onError: "指标名称不能为空!"});
        $("#item_note").formValidator({empty: false, onShow: "不能为空", onFocus: "指标说明不能为空!"}).inputValidator({min: 1, onError: "指标说明不能为空!"});
        $("#get_steps").formValidator({empty: false, onShow: "不能为空", onFocus: "采集步骤不能为空!"}).inputValidator({min: 1, onError: "采集步骤不能为空!"});
        $("#normal_value").formValidator({empty: false, onShow: "不能为空"}).inputValidator({min: 1, max: 200, onError: "正常值不能为空!"});
        $("#except_value").formValidator({empty: false, onShow: "不能为空", onFocus: "异常值及处理方式不能为空!"}).inputValidator({min: 1, onError: "异常值及处理方式不能为空!"});
        $("#order_num").formValidator({empty:false,onFocus:"请输入顺序号"}).inputValidator({min:1,max:5,onError:"顺序号必须为1到5位数字"})
        .regexValidator({regExp:"intege", dataType:"enum", onError:"顺序号必须为1到5位数字"});
        
})
</script>
 
<div class="edit_txt">
    <form id="myform" action="${base}/business/pages/customerconfig/slacustomer/saveCustomerItem.html" method="post">
         <input type="hidden" value="${RequestParameters.id}" name="id" />
         <table class="edit_layout2" style = "width:90%">
                <tr><th><label class="required">指标名称:</label></th>
                    <td><input class="general" type="text" name="item_name" id="item_name" value="${item.ITEM_NAME}" style="width:300px;"/>
                       <div id="item_nameTip" style="display:inline-block;"></div>
                    </td>
                </tr>
                <tr>
                    <th><label class="required">配置分类:</label></th>
                    <td>
                        [@cfgcate id="full_cate_id" name="full_cate_name" lv="2" value="${item.full_cate_id}" text="${item.full_cate_name}" /]
                    </td>
                </tr>
                <tr><th nowrap><label class="required">指标说明:</label></th>
                    <td><textarea style="width:70%" class="general"  name="item_note" id="item_note" />${item.ITEM_NOTE}</textarea>
                       <div id="item_noteTip" style="display:inline-block;"></div>
                    </td>
                </tr>
                
                
                <tr><th nowrap><label class="required">采集步骤:</label></th>
                    <td><textarea style="width:70%" class="general" name="get_steps" id="get_steps" />${item.GET_STEPS}</textarea>
                       <div id="get_stepsTip" style="display:inline-block;"></div>
                    </td>
                </tr>
                
                
                <tr><th><label class="required">正常值:</label></th>
                    <td><input class="general" type="text" name="normal_value" id="normal_value" value="${item.NORMAL_VALUE}"/>
                       <div id="normal_valueTip" style="display:inline-block;"></div>
                    </td>
                </tr>
                
                
                <tr><th nowrap><label class="required">异常值及处理方式:</label></th>
                    <td>
                       <textarea style="width:70%" class="general" name="except_value" id="except_value" />${item.EXCEPT_VALUE}</textarea>
                       <div id="except_valueTip" style="display:inline-block;"></div>
                    </td>
                </tr>
                
                
                <tr><th><label class="required">显示顺序:</label></th>
                    <td><input class="general" type="text" name="order_num" id="order_num" value="${item.ORDER_NUM}"/>
                        <div id="order_numTip" style="display:inline-block;"></div>
                    </td>
                </tr>
                
            </table>
     </form>
</div>
 
 
 
<script type="text/javascript">
function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
            var full_id = $("#full_cate_id").val();
            var full_name = $("#full_cate_name").val();
            if(full_id!=''){
                $("#business_id").val(full_id.substring(full_id.lastIndexOf("-")+1));
                $("#business_name").val(full_name.substring(full_name.lastIndexOf("-")+1));
            }
            $("#myform").submit();
        }
    }
</script>
 
</body>
</html>