|
@@ -13,6 +13,9 @@
|
|
|
<meta name="decorator" content="default"/>
|
|
|
<script type="text/javascript">
|
|
|
$(document).ready(function() {
|
|
|
+ if(${newCmSp.position eq 0}){
|
|
|
+ $('#positionShow').hide();
|
|
|
+ }
|
|
|
//$("#name").focus();
|
|
|
$("#inputForm").validate({
|
|
|
submitHandler: function(form){
|
|
@@ -30,12 +33,19 @@
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
+ function checkPosition(pos){
|
|
|
+ if(0 == pos){
|
|
|
+ $('#positionShow').hide();
|
|
|
+ }else{
|
|
|
+ $('#positionShow').show();
|
|
|
+ }
|
|
|
+ }
|
|
|
</script>
|
|
|
</head>
|
|
|
<body>
|
|
|
<ul class="nav nav-tabs">
|
|
|
<li><a href="${ctx}/user/cmSp/">协销人员管理列表</a></li>
|
|
|
- <li class="active"><a href="${ctx}/new/user/cmSp/cmSpForm?id=${cmSp.id}">协销人员管理</a></li>
|
|
|
+ <li class="active"><a href="${ctx}/new/user/cmSp/cmSpEdit?id=${newCmSp.id}">协销人员管理</a></li>
|
|
|
</ul><br/>
|
|
|
<form:form id="inputForm" modelAttribute="newCmSp" action="${ctx}/new/user/cmSp/cmSpSave" method="post" class="form-horizontal">
|
|
|
<form:hidden path="id"/>
|
|
@@ -55,12 +65,22 @@
|
|
|
<div class="control-group">
|
|
|
<label class="control-label"><span class="help-inline"><font color="red">*</font> </span>身份:</label>
|
|
|
<div class="controls">
|
|
|
- <form:select path="position" itemLabel="key" itemValue="value" htmlEscape="false">
|
|
|
+ <form:select path="position" itemLabel="key" itemValue="value" htmlEscape="false" onchange="checkPosition(this.value)">
|
|
|
<form:option value="0" label="内部协销"/>
|
|
|
<form:option value="2" label="外部协销"/>
|
|
|
</form:select>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="control-group" id="positionShow">
|
|
|
+ <label class="control-label"><span class="help-inline"><font color="red">*</font> </span>服务商</label>
|
|
|
+ <div class="controls">
|
|
|
+ <form:select path="providerId" class="input-medium required">
|
|
|
+ <form:option value="" label="请选择"/>
|
|
|
+ <form:options items="${providers}" itemLabel="name" itemValue="id"
|
|
|
+ htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="form-actions">
|
|
|
<shiro:hasPermission name="user:newCmClub:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/> </shiro:hasPermission>
|
|
|
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
|