liujiankang 7 vuotta sitten
vanhempi
commit
f8b03067b6

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

@@ -93,7 +93,7 @@
                             <td>${parts.componentsNo!''}</td>
                             <td>${parts.supplierName!''}</td>
                             <td>${parts.componentsName!''}</td>
-                            <td><img style="width: 50px;height: 50px;" src="${parts.componentsImg!''}"></td>
+                            <td><img style="width: 50px;height: 50px;" src="${path}${parts.componentsImg!''}"></td>
                             <td><#if parts.componentsStatus == 0 >停止使用</#if>
                                 <#if parts.componentsStatus == 1 >正常使用</#if></td>
                             <td>${parts.componentsCost/100!''}</td>

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

@@ -71,7 +71,7 @@
             <label class="form-label col-xs-4 col-sm-3">零件图片:</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="${ptsComponents.componentsImg!''}" id="partsImg" width="90" height="80">
+                <img alt="介绍图" src="${path}${ptsComponents.componentsImg!''}" id="partsImg" width="90" height="80">
                 <input type="hidden" id="componentsImg" name="componentsImg" value=""/>
             </div>
         </div>
@@ -307,7 +307,7 @@
             success: function (data) {
                 if(data.returnCode == 200){
                     $('#componentsImg').val(data.returnMsg.imgUrl);
-                    $('#partsImg').attr("src",data.returnMsg.imgUrl);
+                    $('#partsImg').attr("src",root_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()">');