1
13693261870
2022-09-16 21ddee1a38257297288b88bc6c0476ec96a5f867
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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<!DOCTYPE html>
<html>
 
<head>
    <title>系统模块操作日志表</title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <script src="paramconfig.js"></script>
    <script type="text/javascript">
        //脚本,css引用
        remoteToLoadCss('BootStrap4/assets/css/style.css');
        remoteToLoadCss('BootStrap4/expand/css/bootstrap-extract.css');
        loadLocalCss('jquery-ui.min.css');
        remoteToLoadCss('BootStrap4/assets/plugins/bootstrap-datepicker/old_datepaker/datepicker.css');
 
        remoteToLoadCss('BootStrap4/assets/css/style.css');
        remoteToLoadCss('BootStrap4/expand/css/bootstrap-extract.css');
        remoteToLoadCss('BootStrap4/expand/plugins/jqgrid/ui.jqgrid-bootstrap.css');
 
        remoteToLoadCss('BootStrap4/expand/css/jqGridCommon.css');
 
 
        remoteToLoadJs('BootStrap4/assets/js/jquery.min.js');
        remoteToLoadJs('BootStrap4/expand/plugins/layer/layer.js');
        remoteToLoadJs('BootStrap4/assets/js/tether.min.js');
        remoteToLoadJs('BootStrap4/assets/js/bootstrap.min.js');
 
        loadLocalJs('vue.min.js');
 
        remoteToLoadJs('BootStrap4/expand/plugins/jqgrid/grid.locale-cn.js');
        remoteToLoadJs('BootStrap4/expand/plugins/jqgrid/jquery.jqGrid.min.js');
        loadLocalJs('jquery-ui.min.js');
        remoteToLoadJs('BootStrap4/assets/plugins/bootstrap-datepicker/old_datepaker/bootstrap-datepicker.js');
        remoteToLoadJs('BootStrap4/assets/plugins/bootstrap-datepicker/old_datepaker/bootstrap-datepicker.zh-CN.min.js');
 
        loadLocalJs('common.js');
    </script>
    <style>
        html {
            overflow-x: hidden;
        }
 
        body {
            background-color: white;
            padding-bottom: 0;
        }
 
        th {
            text-align: center;
        }
 
        .col-xs-12,
        .col-sm-12,
        .col-md-6,
        .col-lg-4,
        .col-xl-3 {
            padding-left: 0;
            padding-right: 0;
        }
 
        .ui-autocomplete {
            max-height: 100px;
            overflow-y: auto;
            overflow-x: hidden;
        }
 
        #searchForm .col-sm-4 {
            padding: 0;
        }
 
        .ui-jqgrid .ui-jqgrid-btable tbody tr.jqgrow td {
            white-space: nowrap !important;
        }
 
        .panel-heading {
            background-color: #b1d1fd;
            margin-bottom: 10px;
        }
    </style>
</head>
 
<body>
    <div id="rapp" v-cloak>
        <div v-show="showList">
            <div class="panel panel-default">
                <div class="panel-body SearchBox">
                    <div class="panel-heading"> 修改区 </div>
                    <div class="row" style="padding: 0px;height: 45px;">
                        <div class="col-sm-3">
                            <label class="control-label">服务名称</label>
                            <div class="controls">
                                <input type="text" disabled class="form-control" id="fwmc" name="UserName"
                                    placeholder="输入服务名称">
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <label class="control-label">服务地址</label>
                            <div class="controls">
                                <input type="text" disabled class="form-control" id="fwdz" name="UserName"
                                    placeholder="输入服务地址">
                            </div>
                        </div>
                    </div>
                    <div class="row" style="padding: 0px;height: 45px;">
                        <div class="col-sm-3">
                            <label class="control-label">代理后地址</label>
                            <div class="controls">
                                <input type="text" disabled class="form-control" id="dlhdz" name="UserName"
                                    placeholder="输入代理后服务地址">
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <label class="control-label">资源ID</label>
                            <div class="controls">
                                <input type="text" disabled class="form-control" id="zyid" name="UserName"
                                    placeholder="输入资源ID">
                            </div>
                        </div>
 
                    </div>
                    <div class="row" style="padding: 0px;height: 45px;">
                        <div class="col-sm-3">
                            <label class="control-label">来源系统</label>
                            <div class="controls">
                                <input type="text" disabled class="form-control" id="lyxt" name="UserName"
                                    placeholder="输入来源系统">
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <label class="control-label">是否公开</label>
                            <div class="controls">
                                <!-- <input type="text" class="form-control" id="sfgk" name="UserName"
                                        placeholder="输入是否公开"> -->
                                <select id="sfgk" class="form-control" name="UserName">
                                    <option value="1">是</option>
                                    <option value="0">否</option>
                                </select>
                            </div>
                        </div>
                    </div>
 
                    <div class="row" style="padding: 0px;height: 45px;">
                        <div class="col-sm-3">
                            <label class="control-label">后缀ID</label>
                            <div class="controls">
                                <input type="text" disabled class="form-control" id="hzid" name="UserName"
                                    placeholder="输入后缀ID">
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <label class="control-label">是否上线</label>
                            <div class="controls">
                                <!-- <input type="text" class="form-control" id="sfsx" name="UserName"
                                        placeholder="输入是否上线"> -->
                                <select id="sfsx" class="form-control" name="UserName">
                                    <option value="0">否</option>
                                    <option value="1">是</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="row" style="padding: 0px;height: 45px;">
                        <div class="col-sm-3">
                            <label class="control-label">主键</label>
                            <div class="controls">
                                <input type="text" disabled class="form-control" id="zhujian" name="UserName"
                                    placeholder="输入主键">
                            </div>
                        </div>
 
                    </div>
                    <div class="col-sm-9" style="display:block;    width: 200px;
                        height: 100px;
                        float: left;
                        margin-left: 400px;
                        margin-top: 38px;
                        position: absolute;">
                        <div style="float: right;padding-right: 0.75em;">
                            <a class="btn btn-primary-outline" onclick="save()"><i class="fa fa-search"></i>&nbsp;保存</a>
                            <a class="btn btn-primary-outline" onclick="close()"><i
                                    class="fa fa-trash-o"></i>&nbsp;关闭</a>
                        </div>
                    </div>
                </div>
            </div>
 
        </div>
 
    </div>
    <script src="resourcelist.js" charset="GB2312"></script>
    <script type="text/javascript">
        function GetQueryStringByUrl(url, name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
            var r = url.substring(url.indexOf('?') + 1).match(reg);
            if (r != null) return unescape(r[2]);
            return null;
        }
        var ID, SERVERNAME, ISPUBLIC, SERVERURL,ENABLE
        window.onload = function () {
 
            var url = decodeURIComponent(window.location.href);
            var ENABLE = (GetQueryStringByUrl(url, "ENABLE"));
            var FROMSYS = (GetQueryStringByUrl(url, "FROMSYS"));
            ID = (GetQueryStringByUrl(url, "ID"));
            ISPUBLIC = (GetQueryStringByUrl(url, "ISPUBLIC"));
            var PROXYSERVERURL = (GetQueryStringByUrl(url, "PROXYSERVERURL"));
            var RESOURCEID = (GetQueryStringByUrl(url, "RESOURCEID"));
            SERVERNAME = (GetQueryStringByUrl(url, "SERVERNAME"));
            SERVERURL = (GetQueryStringByUrl(url, "SERVERURL"));
            var SUFFIX = (GetQueryStringByUrl(url, "SUFFIX"));
 
            $("#fwmc").val(SERVERNAME);
            $("#fwdz").val(SERVERURL);
            $("#dlhdz").val(PROXYSERVERURL);
            $("#zyid").val(RESOURCEID);
            $("#lyxt").val(FROMSYS);
            $("#sfgk").val(ISPUBLIC);
            $("#hzid").val(SUFFIX);
            $("#sfsx").val(ENABLE);
            $("#zhujian").val(ID);
            // $("fwmc").val(SERVERNAME);
 
 
        }
 
        function save() {
            // debugger
            ISPUBLIC = $("#sfgk").val();
            ENABLE = $("#sfsx").val();
 
            $.ajax({
                type: "GET",
                url: terraProxyUrl + "serverRegister/updateArcGisServer",
                data: {
                    id: ID,
                    isPublic: ISPUBLIC,
                    enable:ENABLE
                },
                dataType: "text",
                success: function (data) {
                    window.opener.vm.reload();
                    window.close()
                },
                error: function (obj) {
                    alert("error");
                }
            })
 
        }
 
        function close1() {
            alert(1)
            //window.close()
        }
        window.ongb = function () {
            alert(2);
        }
    </script>
</body>
 
</html>