Showing
1 changed file
with
6 additions
and
10 deletions
@@ -98,7 +98,7 @@ function getQueryString(url,name) { | @@ -98,7 +98,7 @@ function getQueryString(url,name) { | ||
98 | 消息图片<span class="red-must-edit">*</span> | 98 | 消息图片<span class="red-must-edit">*</span> |
99 | </div> | 99 | </div> |
100 | <div class="row-right"> | 100 | <div class="row-right"> |
101 | - <div id="messageImage" style='position: relative;top:15px;'><img id="oldImage"></div> | 101 | + <div id="messageImage" style='position: relative;top:15px;'></div> |
102 | </div> | 102 | </div> |
103 | </div> | 103 | </div> |
104 | <div class="row-input"> | 104 | <div class="row-input"> |
@@ -150,19 +150,11 @@ function getQueryString(url,name) { | @@ -150,19 +150,11 @@ function getQueryString(url,name) { | ||
150 | $("#priority").textbox("setValue", data.data.priority); | 150 | $("#priority").textbox("setValue", data.data.priority); |
151 | $("#startTime").datetimebox("setValue", data.data.startTimeStr); | 151 | $("#startTime").datetimebox("setValue", data.data.startTimeStr); |
152 | $("#endTime").datetimebox("setValue", data.data.endTimeStr); | 152 | $("#endTime").datetimebox("setValue", data.data.endTimeStr); |
153 | - $("#oldImage").attr("src", data.data.image); | ||
154 | - $("#oldImage").attr("onclick", "updateImage()"); | ||
155 | - }else { | ||
156 | - window.self.$.messager.alert("失败", "失败!", "error"); | ||
157 | - } | ||
158 | - }); | ||
159 | - } | ||
160 | - | ||
161 | - function updateImage(){ | ||
162 | $("#messageImage").imageUpload({ | 153 | $("#messageImage").imageUpload({ |
163 | width:500, | 154 | width:500, |
164 | heigth:50, | 155 | heigth:50, |
165 | realInputName : "unionShareMessagePic", | 156 | realInputName : "unionShareMessagePic", |
157 | + value: data.data.image, | ||
166 | url:contextPath + '/fileupload/upload', | 158 | url:contextPath + '/fileupload/upload', |
167 | queryParams : { | 159 | queryParams : { |
168 | bucket : "unionimg" | 160 | bucket : "unionimg" |
@@ -174,6 +166,10 @@ function getQueryString(url,name) { | @@ -174,6 +166,10 @@ function getQueryString(url,name) { | ||
174 | return data.data; | 166 | return data.data; |
175 | } | 167 | } |
176 | }); | 168 | }); |
169 | + }else { | ||
170 | + window.self.$.messager.alert("失败", "失败!", "error"); | ||
171 | + } | ||
172 | + }); | ||
177 | } | 173 | } |
178 | 174 | ||
179 | $(function () { | 175 | $(function () { |
-
Please register or login to post a comment