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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
    <title>巡检计划</title>
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"/>
    <meta http-equiv="description" content="this is my page"/>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
   [#include "/business/pages/include/static.html" /]
    <script type="text/javascript">
        $(document).ready(function() {
            $.formValidator.initConfig({formID: "myform", onError: function (msg) {
               
            }, onSuccess: function() {
                document.getElementById("myform").target = window.top.openDialog(1, 30, 30, '操作提示:');
                return true;
            }});
            $("#item_note").formValidator({empty: false, onShow: "不能为空", onFocus: "指标说明不能为空!"}).inputValidator({min: 1, onError: "指标说明不能为空!"});
            $("#except_value").formValidator({empty: false, onShow: "不能为空", onFocus: "异常值及处理方式不能为空!"}).inputValidator({min: 1, onError: "异常值及处理方式不能为空!"});
            $("#get_steps").formValidator({empty: false, onShow: "不能为空", onFocus: "采集步骤不能为空!"}).inputValidator({min: 1, onError: "采集步骤不能为空!"});
            $("#item_name").formValidator({empty: false, onShow: "不能为空"}).inputValidator({min: 1, max: 200, onError: "指标名称不能为空!"});
            $("#normal_value").formValidator({empty: false, onShow: "不能为空"}).inputValidator({min: 1, max: 200, onError: "正常值不能为空!"});
            $("#order_num").formValidator({empty:false,onFocus:"请输入顺序号"}).inputValidator({min:1,max:5,onError:"顺序号必须为1到5位数字"})
        .regexValidator({regExp:"intege", dataType:"enum", onError:"顺序号必须为1到5位数字"});
        });
        
        
        //点击事件
        function onDialogBtnClick(btnID, dialogID, config){
            if(btnID == "btnSure"){
                $("#myform").submit();
            }
        }
    </script>
</head>
<body>
<div>
    <div >
        <div id="div_setting_1">
            <form action="" method="post" id="myform" name="myform">
                <input type="hidden" name="categoryid" value="${categoryid}"/>
                <table class="edit_layout" width="85%">
                    <br/>
                    <tr>
                        <th><label class="required">指标名称:</label></th>
                        <td>
                            <input type="text" class="general" name="item_name"  id="item_name" value="" style="width:100px;"/>
                            <div id="item_nameTip" style="display:inline-block;"></div>
                        </td>
                    </tr>
                    <tr>
                        <th align="right"><label class="required">指标说明:</label></th>
                        <td colspan="2">
                            <textarea  class="general" rows="3" cols="20" style="width: 80%" name="item_note"
                                   id="item_note"></textarea>
                            <div id="item_noteTip" style="display:inline-block;"></div>
                                   
                        </td>
                    </tr>
                    <tr>
                        <th align="right"><label class="required">采集步骤:</label></th>
                        <td colspan="2">
                            <textarea  class="general" rows="3" cols="20" style="width: 80%" name="get_steps"
                                   id="get_steps"></textarea>
                            <div id="get_stepsTip" style="display:inline-block;"></div>
                                   
                        </td>
                    </tr>
                    <tr>
                        <th align="right"><label class="required">正常值:</label></th>
                        <td>
                            <input type="text" class="general" name="normal_value"  id="normal_value" value="" style="width:100px;"/>
                            <div id="normal_valueTip" style="display:inline-block;"></div>
                        </td>
                    </tr>
                    <tr>
                        <th align="right"><label class="required">异常值及处理方式:</label></th>
                        <td colspan="2">
                            <textarea  class="general" rows="3" cols="20" style="width: 80%" name="except_value"
                                   id="except_value"></textarea>
                            <div id="except_valueTip" style="display:inline-block;"></div>       
                        </td>
                    </tr>
                     <tr>
                        <th align="right"><label class="required">显示顺序:</label></th>
                        <td>
                            <input type="text" class="general" id="order_num" name="order_num" value=""/>
                            <div id="order_numTip" style="display:inline-block;"></div>
                        </td>
                    </tr>
                </table>
                <input type="submit" id="btnOK" value="提交" style="display:none;"/>
            </form>
        </div>
    </div>
    <div id="dd"></div>
</div>
</body>
</html>