Authored by caoyan

Cps消息列表

... ... @@ -98,7 +98,7 @@ function getQueryString(url,name) {
消息图片<span class="red-must-edit">*</span>
</div>
<div class="row-right">
<div id="messageImage" style='position: relative;top:15px;'><img id="oldImage"></div>
<div id="messageImage" style='position: relative;top:15px;'></div>
</div>
</div>
<div class="row-input">
... ... @@ -150,32 +150,28 @@ function getQueryString(url,name) {
$("#priority").textbox("setValue", data.data.priority);
$("#startTime").datetimebox("setValue", data.data.startTimeStr);
$("#endTime").datetimebox("setValue", data.data.endTimeStr);
$("#oldImage").attr("src", data.data.image);
$("#oldImage").attr("onclick", "updateImage()");
$("#messageImage").imageUpload({
width:500,
heigth:50,
realInputName : "unionShareMessagePic",
value: data.data.image,
url:contextPath + '/fileupload/upload',
queryParams : {
bucket : "unionimg"
},
filterFileName : function(data) {
if (!data || data.code != 200) {
$.messager.alert("失败", data.message, "error");
}
return data.data;
}
});
}else {
window.self.$.messager.alert("失败", "失败!", "error");
}
});
}
function updateImage(){
$("#messageImage").imageUpload({
width:500,
heigth:50,
realInputName : "unionShareMessagePic",
url:contextPath + '/fileupload/upload',
queryParams : {
bucket : "unionimg"
},
filterFileName : function(data) {
if (!data || data.code != 200) {
$.messager.alert("失败", data.message, "error");
}
return data.data;
}
});
}
$(function () {
initForm();
... ...