浏览代码

修改ptsbug

liujiankang 7 年之前
父节点
当前提交
21975720af
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      watero-rst-web/src/main/webapp/WEB-INF/views/pts/machinePtras/ptras_add.ftl

+ 2 - 2
watero-rst-web/src/main/webapp/WEB-INF/views/pts/machinePtras/ptras_add.ftl

@@ -71,7 +71,7 @@
             <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>零件图片:</label>
             <div class="formControls col-xs-8 col-sm-9" id="fileDiv">
                 <input type="file" name="file" id="fileid" style="opacity: 0; position: absolute; width: 90px;height: 80px;">
-                <img alt="介绍图" src="/common/images/pts/addparts.jpg" id="partsImg" width="90" height="80">
+                <img alt="介绍图" src="${path}/common/images/pts/addparts.jpg" id="partsImg" width="90" height="80">
                 <input type="hidden" id="componentsImg" name="componentsImg" value=""/>
                 <#--<button type="button" class="btn" style="background: #32a3d8;color: #fff;-webkit-transform:translateY(-5%);" id="uploadSubmit"><i class="Hui-iconfont">&#xe665;</i> 上传</button>-->
             </div>
@@ -297,7 +297,7 @@
             success: function (data) {
                 if(data.returnCode == 200){
                     $('#componentsImg').val(data.returnMsg.imgUrl);
-                    $('#partsImg').attr("src",data.returnMsg.imgUrl);
+                    $('#partsImg').attr("src",${path}data.returnMsg.imgUrl);
                     $("#fileid").remove();
                     /*<input type="file" name="file" id="fileid" style="opacity: 0; position: absolute; width: 90px;height: 80px;">*/
                     $("#fileDiv").prepend('<input type="file" name="file" id="fileid" style="opacity: 0; position: absolute; width: 90px;height: 80px;" onchange="fileUpload()">');