Authored by mlge

瑕疵质检--前端修改

... ... @@ -34,7 +34,7 @@
<form name="categoryEditForm" id="categoryEditForm" method="post" enctype="multipart/form-data">
<div class="goods-image" style="margin-top: 5px;margin-left: 30px;height: 60%">
<div style="width:20%;margin-top:5px;" >
<span style="color:red">*</span><label>上传瑕疵图片</label>
<span style="color:red">*</span><label id="imageLabel"></label>
</div>
<div id="imageUpload"></div>
</div>
... ... @@ -63,6 +63,7 @@
};
var data = paramObject.mkData;
debugger
$("#imageLabel").html(data.imageLabel==null ? "图片":data.imageLabel);
//查看页面
if (data.flag) {
//上传图片
... ...
... ... @@ -34,7 +34,7 @@
<form name="categoryEditForm" id="categoryEditForm" method="post" enctype="multipart/form-data">
<div class="goods-image" style="margin-top: 5px;margin-left: 30px;height: 60%">
<div style="width:20%;margin-top:5px;" >
<span style="color:red">*</span><label>上传质检图片</label>
<span style="color:red">*</span><label id="imageLabel"></label>
</div>
<div id="imageUpload"></div>
</div>
... ... @@ -62,6 +62,7 @@
imageUpload: $('#categoryEditForm #imageUpload')
};
var data = paramObject.mkData;
$("#imageLabel").html(data.imageLabel==null ? "图片":data.imageLabel);
debugger
//查看页面
if (data.flag) {
... ...
... ... @@ -864,6 +864,11 @@ function addOrQueryminiFault(id,flag) {
function showMiniFaultDialog(data,dialogTitle,flag,htmlUrl) {
var div = $("<div id='passDiv'>").appendTo($(document.body));
data.flag = flag;
if(flag){
data.imageLabel = "上传瑕疵图片";
}else{
data.imageLabel = "瑕疵图片";
}
//传递参数
window.self.paramObject.mkData = data;
$(div).myDialog({
... ... @@ -925,6 +930,11 @@ function showMiniFaultDialog(data,dialogTitle,flag,htmlUrl) {
function showCheckNotPassDialog(data,dialogTitle,flag,htmlUrl) {
var div = $("<div id='passDiv'>").appendTo($(document.body));
data.flag = flag;
if(flag){
data.imageLabel = "上传质检图片";
}else{
data.imageLabel = "质检图片";
}
//传递参数
window.self.paramObject.mkData = data;
$(div).myDialog({
... ...