...
|
...
|
@@ -194,15 +194,16 @@ |
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<!--选择信息流结构-->
|
|
|
<!--<tr style="height: 60px">-->
|
|
|
<!--<td style="width:100%;">-->
|
|
|
<!--<div style="float: left;width:700px;" >-->
|
|
|
<!--<label style="font-size: 14px;">选择信息流结构</label> <br>-->
|
|
|
<!--<input class="easyui-combobox" id="flowTypeExt" name="flowType" style="width:200px ">-->
|
|
|
<!--</div>-->
|
|
|
<!--</td>-->
|
|
|
<!--</tr>-->
|
|
|
<tr style="height: 60px">
|
|
|
<td>
|
|
|
<label style="font-size: 14px;">选择分发渠道</label> <br>
|
|
|
<input id="channelId" name="channelId" class="easyui-combobox" style="width:600px; "/><br>
|
|
|
<input id="channelIds" name="channelIds" hidden="hidden"/>
|
|
|
<div id="channelList">
|
|
|
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr style="height: 60px">
|
|
|
<td style="width:100%;">
|
...
|
...
|
@@ -321,6 +322,51 @@ |
|
|
}
|
|
|
});
|
|
|
|
|
|
$("#channelId").combobox({
|
|
|
prompt: "请选择渠道",
|
|
|
required: false,
|
|
|
selectOnNavigation : true,
|
|
|
valueField: 'id',
|
|
|
textField: 'channelName',
|
|
|
multiple:true,
|
|
|
url : serverContextPath + "/grassChannelManage/getAllParentGrassChannel",
|
|
|
loadFilter: function (data) {
|
|
|
return defaultLoadFilter(data);
|
|
|
},
|
|
|
onChange:function (data) {
|
|
|
var arr = $(this).combobox("getValues");
|
|
|
var textarr = $(this).combobox("getData");
|
|
|
|
|
|
var channelList='';
|
|
|
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].channelName;
|
|
|
}
|
|
|
}
|
|
|
channelList+='<span class="tag"><span>'+text+'</span><a href="#" class="channelTag" data-index="'+i+'">x</a></span>   '
|
|
|
}
|
|
|
$("#channelList").html(channelList);
|
|
|
},
|
|
|
onLoadSuccess:function () {
|
|
|
var arr = $(this).combobox("getValues");
|
|
|
var textarr = $(this).combobox("getData");
|
|
|
|
|
|
var channelList='';
|
|
|
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].channelName;
|
|
|
}
|
|
|
}
|
|
|
channelList+='<span class="tag"><span>'+text+'</span><a href="#" class="channelTag" data-index="'+i+'">x</a></span>   '
|
|
|
}
|
|
|
$("#channelList").html(channelList);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$("#copyright").combobox({
|
|
|
valueField : "value",
|
|
|
textField : "text",
|
...
|
...
|
@@ -672,6 +718,12 @@ |
|
|
$("#labelId").combobox("unselect",arr[index]);
|
|
|
});
|
|
|
|
|
|
$(document).on("click", ".channelTag", function () {
|
|
|
var index = $(this).attr("data-index");
|
|
|
var arr = $("#channelId").combobox("getValues");
|
|
|
$("#channelId").combobox("unselect",arr[index]);
|
|
|
});
|
|
|
|
|
|
$(document).on("click", ".topicTag", function () {
|
|
|
$("#topicId").combobox("setValue","");
|
|
|
});
|
...
|
...
|
@@ -749,6 +801,18 @@ |
|
|
});
|
|
|
$("#labelIds").val(labels);
|
|
|
|
|
|
//发布渠道
|
|
|
var channels = '';
|
|
|
$("input[name='channelId']").each(function(j,item){
|
|
|
var id = item.value;
|
|
|
if(channels == ''){
|
|
|
channels = id;
|
|
|
}else{
|
|
|
channels = channels + ","+id;
|
|
|
}
|
|
|
});
|
|
|
$("#channelIds").val(channels);
|
|
|
|
|
|
var cover1 = $("input[type='hidden'][name='coverImage']").val();
|
|
|
var cover2 = $("input[type='hidden'][name='coverImage2']").val();
|
|
|
if(cover1 && cover2){
|
...
|
...
|
@@ -830,6 +894,18 @@ |
|
|
}
|
|
|
});
|
|
|
$("#labelIds").val(labels);
|
|
|
|
|
|
//发布渠道
|
|
|
var channels = '';
|
|
|
$("input[name='channelId']").each(function(j,item){
|
|
|
var id = item.value;
|
|
|
if(channels == ''){
|
|
|
channels = id;
|
|
|
}else{
|
|
|
channels = channels + ","+id;
|
|
|
}
|
|
|
});
|
|
|
$("#channelIds").val(channels);
|
|
|
var html = '';
|
|
|
|
|
|
var cover1 = $("input[type='hidden'][name='coverImage']").val();
|
...
|
...
|
@@ -938,6 +1014,17 @@ |
|
|
}
|
|
|
});
|
|
|
$("#labelIds").val(labels);
|
|
|
//发布渠道
|
|
|
var channels = '';
|
|
|
$("input[name='channelId']").each(function(j,item){
|
|
|
var id = item.value;
|
|
|
if(channels == ''){
|
|
|
channels = id;
|
|
|
}else{
|
|
|
channels = channels + ","+id;
|
|
|
}
|
|
|
});
|
|
|
$("#channelIds").val(channels);
|
|
|
var cover1 = $("input[type='hidden'][name='coverImage']").val();
|
|
|
var cover2 = $("input[type='hidden'][name='coverImage2']").val();
|
|
|
if(cover1 && cover2){
|
...
|
...
|
@@ -1058,6 +1145,13 @@ |
|
|
}
|
|
|
}
|
|
|
$("#labelId").combobox('setValues',labelIds);
|
|
|
var channelIds = [];
|
|
|
if(data.channelList!=null && data.channelList.length>0){
|
|
|
for (var i=0;i<data.channelList.length;i++){
|
|
|
channelIds.push(data.channelList[i].id);
|
|
|
}
|
|
|
}
|
|
|
$("#channelId").combobox('setValues',channelIds);
|
|
|
if(data.topicGroupId !=null && data.topicId!=null){
|
|
|
$("#topicGroupId").combobox('setValue',data.topicGroupId);
|
|
|
$("#topicId").combobox('setValue',data.topicId);
|
...
|
...
|
|