...
|
...
|
@@ -185,42 +185,6 @@ |
|
|
if (data && data.draftEditFlag == 1) {
|
|
|
$("#draftType").val(1);
|
|
|
}
|
|
|
if (data){
|
|
|
$("#articleUid").textbox("setValue", data.authorUid);
|
|
|
|
|
|
// $("#content").val(data.articleContent);
|
|
|
$("#content").emojioneArea()[0].emojioneArea.setText(data.articleContent);
|
|
|
/*字数限制提示*/
|
|
|
if(data.articleContent !=null && data.articleContent !=''){
|
|
|
var count = data.articleContent.length;
|
|
|
$("#content-count").text(count);
|
|
|
}
|
|
|
|
|
|
var labelIds = [];
|
|
|
if(data.labelList!=null && data.labelList.length>0){
|
|
|
for (var i=0;i<data.labelList.length;i++){
|
|
|
labelIds.push(data.labelList[i].id);
|
|
|
}
|
|
|
}
|
|
|
$("#labelId").combobox('setValues',labelIds);
|
|
|
if(data.topicGroupId !=null && data.topicId!=null){
|
|
|
$("#topicGroupId").combobox('setValue',data.topicGroupId);
|
|
|
$("#topicId").combobox('setValue',data.topicId);
|
|
|
}
|
|
|
|
|
|
htmlTopic(data.topicName);
|
|
|
|
|
|
if(data.sknList!=null && data.sknList.length>0){
|
|
|
checkedItems =data.sknList;
|
|
|
}
|
|
|
if(data.yohoList!=null && data.yohoList.length>0){
|
|
|
initGoods(data.yohoList,1);
|
|
|
}
|
|
|
if(data.ufoList!=null && data.ufoList.length>0){
|
|
|
initGoods(data.ufoList,2);
|
|
|
}
|
|
|
initGoodsDiv();
|
|
|
}
|
|
|
|
|
|
// 复制链接
|
|
|
new ClipboardJS('.copy');
|
...
|
...
|
@@ -351,6 +315,23 @@ |
|
|
labelList+='<span class="tag"><span>'+text+'</span><a href="#" class="labelTag" data-index="'+i+'">x</a></span>   '
|
|
|
}
|
|
|
$("#labelList").html(labelList);
|
|
|
},
|
|
|
onLoadSuccess:function () {
|
|
|
debugger;
|
|
|
var arr = $(this).combobox("getValues");
|
|
|
var textarr = $(this).combobox("getData");
|
|
|
var labelList='';
|
|
|
|
|
|
for (var i=0; i<arr.length;i++){
|
|
|
var text = '';
|
|
|
for (var j=0; j< textarr.length;j++){
|
|
|
if(arr[i] == textarr[j].id){
|
|
|
text=textarr[j].labelName;
|
|
|
}
|
|
|
}
|
|
|
labelList+='<span class="tag"><span>'+text+'</span><a href="#" class="labelTag" data-index="'+i+'">x</a></span>   '
|
|
|
}
|
|
|
$("#labelList").html(labelList);
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
@@ -591,6 +572,46 @@ |
|
|
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
if (data){
|
|
|
|
|
|
$("#articleUid").textbox("setValue", data.authorUid);
|
|
|
|
|
|
// $("#content").val(data.articleContent);
|
|
|
$("#content").emojioneArea()[0].emojioneArea.setText(data.articleContent);
|
|
|
/*字数限制提示*/
|
|
|
if(data.articleContent !=null && data.articleContent !=''){
|
|
|
var count = data.articleContent.length;
|
|
|
$("#content-count").text(count);
|
|
|
}
|
|
|
debugger;
|
|
|
var labelIds = [];
|
|
|
if(data.labelList!=null && data.labelList.length>0){
|
|
|
for (var i=0;i<data.labelList.length;i++){
|
|
|
labelIds.push(data.labelList[i].id);
|
|
|
}
|
|
|
}
|
|
|
$("#labelId").combobox('setValues',labelIds);
|
|
|
if(data.topicGroupId !=null && data.topicId!=null){
|
|
|
$("#topicGroupId").combobox('setValue',data.topicGroupId);
|
|
|
$("#topicId").combobox('setValue',data.topicId);
|
|
|
}
|
|
|
|
|
|
htmlTopic(data.topicName);
|
|
|
|
|
|
if(data.sknList!=null && data.sknList.length>0){
|
|
|
checkedItems =data.sknList;
|
|
|
}
|
|
|
if(data.yohoList!=null && data.yohoList.length>0){
|
|
|
initGoods(data.yohoList,1);
|
|
|
}
|
|
|
if(data.ufoList!=null && data.ufoList.length>0){
|
|
|
initGoods(data.ufoList,2);
|
|
|
}
|
|
|
initGoodsDiv();
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
|
...
|
...
|
@@ -727,7 +748,6 @@ |
|
|
text:textVar,
|
|
|
iconCls : "icon-save",
|
|
|
handler:function(){
|
|
|
;
|
|
|
|
|
|
$("#goodstd").html("<div id=\"good0\" style=\"float: left;margin-left: 30px;width: 300px\">\n" +
|
|
|
" </div>");
|
...
|
...
|
|