瀏覽代碼

修改ptsbug

liujiankang 7 年之前
父節點
當前提交
77015fe8df
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      watero-rst-web/src/main/webapp/WEB-INF/views/pts/machinePtras/ptras_add.ftl

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

@@ -297,7 +297,7 @@
             success: function (data) {
                 if(data.returnCode == 200){
                     $('#componentsImg').val(data.returnMsg.imgUrl);
-                    $('#partsImg').attr("src",${path}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()">');