|
@@ -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()">');
|