riku
2022-06-17 3a5c011d9509d3bc0367921f463676c81ff2e374
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="/js/html5shiv.js"></script>
    <script type="text/javascript" src="/js/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="/h-ui/css/H-ui.min.css"/>
    <link rel="stylesheet" type="text/css" href="/h-ui.admin/css/H-ui.admin.css"/>
    <link rel="stylesheet" type="text/css" href="/js/Hui-iconfont/1.0.8/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="/h-ui.admin/skin/default/skin.css" id="skin"/>
    <link rel="stylesheet" type="text/css" href="/h-ui.admin/css/style.css"/>
    <!--[if IE 6]>
    <script type="text/javascript" src="/js/DD_belatedPNG_0.0.8a-min.js"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>添加场景</title>
</head>
<body>
<article class="page-container">
    <!--/*@thymesVar id="scenseVo" type="cn.flightfeather.supervision.lightshare.vo.ScenseVo"*/-->
    <form  method="post" action="/menu/scense-add" class="form form-horizontal" id="form-admin-add" th:object="${scenseVo}">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>场景名称:</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="" placeholder="" id="name" name="name" th:field="*{name}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>场景类别:</label>
            <div class="formControls col-xs-8 col-sm-9">
                <select class="select" name="typeid" size="1" onchange="scensetypeOnchange(this.options[this.options.selectedIndex])">
                    <option value=""></option>
                    <!--/*@thymesVar id="scensetype" type="cn.flightfeather.supervision.lightshare.vo.DomainitemVo"*/-->
                    <th:block th:each="scensetype:${scensetypes}">
                        <option value="0" th:value="${scensetype.value}" th:selected="${scensetype.text==scenseVo.type}">
                            <span th:text="${scensetype.text}">场景类别</span>
                        </option>
                    </th:block>
                </select>
                <input type="hidden" id="type" name="type" th:value="*{type}">
                <input type="hidden" id="guid" name="guid" th:value="*{guid}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>场景细分类型:</label>
            <div class="formControls col-xs-8 col-sm-9">
                <select class="select" name="scensesubtypeid" size="1" onchange="scensesubtypeOnchange(this.options[this.options.selectedIndex])">
                    <option value=""></option>
                    <!--/*@thymesVar id="scensesubtype" type="cn.flightfeather.supervision.lightshare.vo.DomainitemVo"*/-->
                    <th:block th:each="scensesubtype:${scensesubtypes}">
                        <option value="0" th:value="${scensesubtype.guid}" th:selected="${scensesubtype.guid==scenseVo.scensesubtypeid}">
                            <span th:text="${scensesubtype.text}">场景细分类型</span>
                        </option>
                    </th:block>
                </select>
                <input type="hidden" id="scensesubtype" name="scensesubtype" th:value="*{scensesubtype}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>场景地址:</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" id="location" name="location" th:field="*{location}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>场景经度:</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" id="longitude" name="longitude" th:field="*{longitude}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>场景纬度:</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" name="latitude" id="latitude" th:field="*{latitude}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">省份名称:</label>
            <div class="formControls col-xs-8 col-sm-9"> <span class="select-box" style="width:150px;">
            <!--/*@thymesVar id="process" type="cn.flightfeather.supervision.domain.ds1.entity.Province"*/-->
            <select class="select" name="provincecode" size="1" onchange="provincenameOnchange(this.options[this.options.selectedIndex])">
                <option value=""></option>
                <th:block th:each="process:${processlist}">
                    <option value="0" th:value="${process.provincecode}" th:selected="${process.provincecode==scenseVo.provincecode}">
                        <span th:text="${process.provincename}">省份</span>
                    </option>
                </th:block>
            </select>
                <input type="hidden" id="provincename" name="provincename" th:value="*{provincename}">
            </span></div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">地市名称:</label>
            <div class="formControls col-xs-8 col-sm-9"> <span class="select-box" style="width:150px;">
            <select class="select" name="citycode" size="1" onchange="citynameOnchange(this.options[this.options.selectedIndex])">
                <option value=""></option>
                <!--/*@thymesVar id="city" type="cn.flightfeather.supervision.domain.ds1.entity.City"*/-->
                <th:block th:each="city:${citylist}">
                    <option value="0" th:value="${city.citycode}" th:selected="${city.citycode==scenseVo.citycode}">
                        <span th:text="${city.cityname}">省份</span>
                    </option>
                </th:block>
            </select>
                <input type="hidden" id="cityname" name="cityname" th:value="*{cityname}">
            </span></div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">区县名称:</label>
            <div class="formControls col-xs-8 col-sm-9"> <span class="select-box" style="width:150px;">
            <select class="select" name="districtcode" size="1" onchange="districtnameOnchange(this.options[this.options.selectedIndex])">
                <option value=""></option>
                <!--/*@thymesVar id="district" type="cn.flightfeather.supervision.domain.ds1.entity.District"*/-->
                <th:block th:each="district:${districtlist}">
                    <option value="0" th:value="${district.districtcode}" th:selected="${district.districtcode==scenseVo.districtcode}">
                        <span th:text="${district.districtname}">省份</span>
                    </option>
                </th:block>
            </select>
                <input type="hidden" id="districtname" name="districtname" th:value="*{districtname}">
            </span></div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">街镇名称:</label>
            <div class="formControls col-xs-8 col-sm-9"> <span class="select-box" style="width:150px;">
            <select class="select" name="towncode" size="1" onchange="townnameOnchange(this.options[this.options.selectedIndex])">
                <option value=""></option>
                <!--/*@thymesVar id="town" type="cn.flightfeather.supervision.domain.ds1.entity.Town"*/-->
                <th:block th:each="town:${townlist}">
                    <option value="0" th:value="${town.towncode}" th:selected="${town.towncode==scenseVo.towncode}">
                        <span th:text="${town.townname}">省份</span>
                    </option>
                </th:block>
            </select>
                <input type="hidden" id="townname" name="townname" th:value="*{townname}">
            </span></div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>联系人手机号:</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" name="contactst" id="contactst" th:field="*{contactst}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>联系人微信号:</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" name="contactswx" id="contactswx" th:field="*{contactswx}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>联系人姓名:</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" name="contacts" id="contacts" th:field="*{contacts}">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">备注:</label>
            <div class="formControls col-xs-8 col-sm-9">
                <textarea name="remark" cols="" rows="" class="textarea" placeholder="说点什么...100个字符以内" dragonfly="true"
                          onKeyUp="$.Huitextarealength(this,100)"></textarea>
                <p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>
 
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/js/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/js/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->
 
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/js/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="/js/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="/js/jquery.validation/1.14.0/messages_zh.js"></script>
<!--/请在上方写此页面业务相关的脚本-->
 
<script>
    function scensetypeOnchange(v) {
        $("#type").val(v.text);
    }
 
    function scensesubtypeOnchange(v) {
        $("#scensesubtype").val(v.text);
    }
 
    function citynameOnchange(v) {
        $("#cityname").val(v.text);
    }
 
    function districtnameOnchange(v) {
        $("#districtname").val(v.text);
    }
 
    function townnameOnchange(v) {
        $("#townname").val(v.text);
    }
 
    function provincenameOnchange(v) {
        $("#provincename").val(v.text);
    }
</script>
</body>
</html>