Authored by zhaoqing

匹配词

... ... @@ -60,8 +60,9 @@
<div class="form-group">
<label class="col-sm-2 control-label">显示频道<i class="red">*</i></label>
<div class="col-sm-8 " id="channelCheckBox">
<div style="float:left;margin-right: 5px"><input type="checkbox" name="channelIds" class="observe" data-field="channelIds" value="0">默认</div>
</div>
<input type="hidden" id="channelIds" name="channelIds" value="{channelIds}" for="checkbox" class="observe" data-field="channelIds"
<input type="hidden" id="channelIds" name="channelIds" value="{{channelIds}}" for="checkbox" class="observe" data-field="channelIds"
placeholder="显示频道" required/>
</div>
... ...
... ... @@ -173,15 +173,19 @@ function timeToSeconds(time) {
return false;
});
var html = '<div style="float:left;margin-right: 5px"><input type="checkbox" name="channelIds" class="observe" data-field="channelIds" value="0">默认</div>';
$("#channelCheckBox").append(html);
for(var i=0; i<categoryList.length; i++){
var categoryName = categoryList[i].categoryName;
var categoryId = categoryList[i].categoryId;
html = '<div style="float:left;margin-right: 5px"><input type="checkbox" name="channelIds" class="observe" data-field="channelIds" value="'+categoryId+'">'+categoryName+'</div>';
$("#channelCheckBox").append(html);
}
common.util.__ajax({
async:false,
url: "/salesCategory/querySCListByLevel",
data: {levelNumber:1}
}, function (res) {
categoryList = res.data;
for(var i=0; i<categoryList.length; i++){
var categoryName = categoryList[i].categoryName;
var categoryId = categoryList[i].categoryId;
html = '<div style="float:left;margin-right: 5px"><input type="checkbox" name="channelIds" class="observe" data-field="channelIds" value="'+categoryId+'">'+categoryName+'</div>';
$("#channelCheckBox").append(html);
}
},true);
e.on("validate", function() {
var matchWordName = $("#baseform").find("#matchWordName").val();
... ... @@ -203,7 +207,9 @@ function timeToSeconds(time) {
$(document).on('click', '.btn_edit', function() {
var item = tableGird.rows[$(this).data("index")];
console.log(item);
Bll.toast('/search/matchWords/save', item, "编辑匹配词");
$(":checkbox").attr("disabled", true);
});
$(function(){
... ...