<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>
|