瀏覽代碼

修改模块

Enford 5 年之前
父節點
當前提交
e49021d328

+ 2 - 9
src/main/webapp/webpage/modules/sg/managementcenter/moduleacquisition/moduleBlockForm.jsp

@@ -17,13 +17,6 @@
 		});
 		function save() {
 		    var mdImg = $("#mdImg").val();
-            if (null!=mdImg&&mdImg!=""){
-                var valueArray = mdImg.split(",");
-                if (valueArray.length>1){
-                    jp.error("只允许上传一张");
-                    return false;
-				}
-			}
             var isValidate = jp.validateForm('#inputForm');//校验表单
             if(!isValidate){
                 return false;
@@ -52,9 +45,9 @@
 			<tbody>
 				<form:input id="versionId"  path="mdVersion" htmlEscape="false" class="form-control" type="hidden"/>
 				<tr>
-					<td class="width-15 active"><label class="pull-right"><font color="red">*</font>上传图纸:</label></td>
+					<td class="width-15 active"><label class="pull-right"><font color="red">*</font>上传附件:</label></td>
 					<td class="width-35">
-						<sys:fileUpload  path="mdImg" fileNumLimit="50" fileSizeLimit="50" value="${moduleBlock.mdImg}" type="image" uploadPath="/pick"></sys:fileUpload>
+						<sys:fileUpload  path="mdImg" fileNumLimit="50" fileSizeLimit="50" value="${moduleBlock.mdImg}"   uploadPath="/pick"></sys:fileUpload>
 					</td>
 				</tr>
 			</tbody>

+ 1 - 1
src/main/webapp/webpage/modules/sg/managementcenter/moduleacquisition/moduleBlockList.jsp

@@ -53,7 +53,7 @@
 				</shiro:hasPermission>
 				<shiro:hasPermission name="managementcenter:moduleacquisition:edit">
 					<button id="edit" class="btn btn-success" disabled onclick="edit()">
-						<i class="glyphicon glyphicon-edit"></i> 上传图片
+						<i class="glyphicon glyphicon-edit"></i> 上传附件
 					</button>
 				</shiro:hasPermission>
 				<shiro:hasPermission name="managementcenter:moduleacquisition:insertVersion">

+ 2 - 9
src/main/webapp/webpage/modules/sg/managementcenter/moduleacquisition/moduleBlockNewForm.jsp

@@ -17,13 +17,6 @@
 		});
 		function save() {
             var mdImg = $("#mdImg").val();
-            if (null!=mdImg&&mdImg!=""){
-                var valueArray = mdImg.split(",");
-                if (valueArray.length>1){
-                    jp.error("只允许上传一张");
-                    return false;
-                }
-            }
             var isValidate = jp.validateForm('#inputForm');//校验表单
             if(!isValidate){
                 return false;
@@ -71,9 +64,9 @@
 					</td>
 				</tr>
 				<tr>
-					<td class="width-15 active"><label class="pull-right"><font color="red">*</font>上传图纸:</label></td>
+					<td class="width-15 active"><label class="pull-right"><font color="red">*</font>上传附件:</label></td>
 					<td class="width-35">
-						<sys:fileUpload  path="mdImg" fileNumLimit="50" fileSizeLimit="50" value="${moduleBlock.mdImg}" type="image" uploadPath="/pick"></sys:fileUpload>
+						<sys:fileUpload  path="mdImg" fileNumLimit="50" fileSizeLimit="50" value="${moduleBlock.mdImg}" uploadPath="/pick"></sys:fileUpload>
 					</td>
 				</tr>
 			</tbody>