2
13693261870
2022-09-16 653761a31dfeb50dd3d007e892d69c90bf0cdafc
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
<div class="portlet box ltblue" xmlns:th="http://www.w3.org/1999/xhtml">
    <div class="portlet-title">
        空间服务参数
        <div class="caption">
            <i class="fa fa-reorder"></i>
        </div>
        <div class="tools">
            <a class="collapse" onclick="portlet_body_ShowOrHide(this);"></a>
        </div>
    </div>
    <div class="portlet-body" style="padding: 30px">
        <table class="table">
            <tr>
                <th>参数序号</th>
                <th>参数名称</th>
                <th>参数别名</th>
                <th>参数类型</th>
                <th>参数数据类型</th>
                <th>参数默认值</th>
                <th>参数是否必填</th>
            </tr>
            <tr th:each="spaces,spacesStat : ${res_spacesParams}">
                <td th:text="${spaces.orderindex}"></td>
                <td>
                    <a style="cursor: pointer;" target="_blank" th:text="${spaces.paramname}" th:onclick="'javascript:skip('+${spaces.paramid}+','+${spaces.resourceid}+')'"></a>
                </td>
                <th th:text="${spaces.paramalias}"></th>
                <th th:text="${spaces.paramtype}"></th>
                <th th:text="${spaces.datatype}"></th>
                <th th:text="${spaces.defaultValue}"></th>
                <th th:text="${spaces.required}==1?'是':'否'"></th>
            </tr>
        </table>
        <div class="form-actions navbar-fixed-bottom" style="z-index: 0;position: absolute;">
            <div style="float: right;">
                <button class="btn btn-primary" id="NewServiceParameters" onclick="ServiceParameters()" type="button">
                    <i class="fa fa-trash-o"></i> 新增服务参数
                </button>
            </div>
        </div>
    </div>
</div>
<script th:inline="javascript">
    //服务参数页面新增
    function ServiceParameters() {
        var resMainInfoId = $("#resMainInfoId").val();
        layer.open({
            type: 2,
            title: '空间服务参数',
            id: 'ServiceParameters',
            shadeClose: true,
            shade: false,
            maxmin: false, //开启最大化最小化按钮
            area: ['900px', '700px'],
            content: 'SpaceParameters?resourceid=' + resMainInfoId
        });
    }
 
    //点击链接跳转页面
    function skip(paramid, resourceid) {
        layer.open({
            type: 2,
            title: '空间服务参数',
            id: 'ServiceParameters',
            shadeClose: true,
            shade: false,
            maxmin: false, //开启最大化最小化按钮
            area: ['900px', '700px'],
            content: 'SpaceParameters?paramid=' + paramid + '&resourceid=' + resourceid
        });
    }
</script>