Authored by chenly5

编辑文章增加分发渠道

... ... @@ -63,6 +63,15 @@
</tr>
<tr style="height: 60px">
<td style="width:100%;">
<div style="float: left;width:700px;" >
<span style="color:red">*</span><label style="font-size: 14px;">选择分发渠道</label> <br>
<input class="easyui-combobox" id="dispatchChannelExt" name="dispatchChannel" style="width:600px ">
</div>
</td>
</tr>
<tr style="height: 60px">
<td style="width:100%; word-wrap:break-word;" >
<label style="font-size: 14px;">标题</label> <br>
... ... @@ -281,6 +290,14 @@
}
});
$("#dispatchChannelExt").combobox({
valueField : "value",
textField : "text",
required:true,
prompt: "选择分发渠道",
data:[{text:"全部",value:"0"},{text:"社区",value:"1"},{text:"导购",value:"2"}]
});
$("#articleUid").textbox({
required: true,
missingMessage: "发布用户不能为空",
... ... @@ -748,11 +765,16 @@
var data = paramObject.mkData;
if (data){
debugger;
$("#articleUid").textbox("setValue", data.authorUid);
$("#draftArticleId").val(data.articleId);
$("#title").textbox("setValue",data.articleTitle);
//分发渠道
if(data.dispatchChannel !=null && data.dispatchChannel !=-1){
$("#dispatchChannelExt").combobox('setValue',data.dispatchChannel);
}
// $("#content").val(data.articleContent);
$("#content").emojioneArea()[0].emojioneArea.setText(data.articleContent);
/*字数限制提示*/
... ...