...
|
...
|
@@ -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(){
|
...
|
...
|
|