appDegradeEdit.jsp 1.79 KB
<%@page language="java" contentType="text/html;charset=utf-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<form class="form-horizontal" id="degradeInfoForm" name="degradeInfoForm">
    <div class="form-group">
        <label class="col-sm-2 control-label">接口名称:</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" id="apiName" readonly name="apiName" maxlength="100" size="40"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">接口编号:</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" id="apiCode" readonly name="apiCode" maxlength="100" size="40"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">接口描述:</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" id="apiDesc"  name="apiDesc" maxlength="100" size="40"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">开关:</label>
        <div class="col-sm-8">
            <select id="switchOn" name="switchOn" class="form-control">
                <option value="N">不降级</option>
                <option value="Y">降级</option>
            </select>
        </div>
    </div>
</form>
<script>
$(function(){
	$("#degradeInfoForm #switchOn").val(paramObj.switchOn);
    $("#degradeInfoForm #apiName").val(paramObj.apiName);
    $("#degradeInfoForm #apiDesc").val(paramObj.apiDesc);
    $("#degradeInfoForm #apiCode").val(paramObj.apiCode);
})
</script>