Authored by chenly5

编辑文章增加分发渠道

@@ -63,6 +63,15 @@ @@ -63,6 +63,15 @@
63 </tr> 63 </tr>
64 64
65 <tr style="height: 60px"> 65 <tr style="height: 60px">
  66 + <td style="width:100%;">
  67 + <div style="float: left;width:700px;" >
  68 + <span style="color:red">*</span><label style="font-size: 14px;">选择分发渠道</label> <br>
  69 + <input class="easyui-combobox" id="dispatchChannelExt" name="dispatchChannel" style="width:600px ">
  70 + </div>
  71 + </td>
  72 + </tr>
  73 +
  74 + <tr style="height: 60px">
66 <td style="width:100%; word-wrap:break-word;" > 75 <td style="width:100%; word-wrap:break-word;" >
67 <label style="font-size: 14px;">标题</label> <br> 76 <label style="font-size: 14px;">标题</label> <br>
68 77
@@ -281,6 +290,14 @@ @@ -281,6 +290,14 @@
281 } 290 }
282 }); 291 });
283 292
  293 + $("#dispatchChannelExt").combobox({
  294 + valueField : "value",
  295 + textField : "text",
  296 + required:true,
  297 + prompt: "选择分发渠道",
  298 + data:[{text:"全部",value:"0"},{text:"社区",value:"1"},{text:"导购",value:"2"}]
  299 + });
  300 +
284 $("#articleUid").textbox({ 301 $("#articleUid").textbox({
285 required: true, 302 required: true,
286 missingMessage: "发布用户不能为空", 303 missingMessage: "发布用户不能为空",
@@ -748,11 +765,16 @@ @@ -748,11 +765,16 @@
748 var data = paramObject.mkData; 765 var data = paramObject.mkData;
749 if (data){ 766 if (data){
750 767
751 - 768 + debugger;
752 $("#articleUid").textbox("setValue", data.authorUid); 769 $("#articleUid").textbox("setValue", data.authorUid);
753 $("#draftArticleId").val(data.articleId); 770 $("#draftArticleId").val(data.articleId);
754 $("#title").textbox("setValue",data.articleTitle); 771 $("#title").textbox("setValue",data.articleTitle);
755 772
  773 + //分发渠道
  774 + if(data.dispatchChannel !=null && data.dispatchChannel !=-1){
  775 + $("#dispatchChannelExt").combobox('setValue',data.dispatchChannel);
  776 + }
  777 +
756 // $("#content").val(data.articleContent); 778 // $("#content").val(data.articleContent);
757 $("#content").emojioneArea()[0].emojioneArea.setText(data.articleContent); 779 $("#content").emojioneArea()[0].emojioneArea.setText(data.articleContent);
758 /*字数限制提示*/ 780 /*字数限制提示*/