fixed
This commit is contained in:
@@ -53,9 +53,35 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
||||
Table.api.bindevent(table);
|
||||
},
|
||||
add: function () {
|
||||
$(document).on("change", "#c-aicustomerservice_id", function(data){
|
||||
let ai_config_id = $('#c-aicustomerservice_id').val();
|
||||
let index = layer.load(1);
|
||||
$.get('Gewechatfriends/getFriendList',{ai_config_id:ai_config_id},function (res) {
|
||||
layer.close(index);
|
||||
//动态添加数据
|
||||
let list = res.list;
|
||||
for(let i=0;i<list.length;i++){
|
||||
let option = '<option value="'+list[i].id+'">'+list[i].name+'</option>';
|
||||
$('#c-rel_wxid').append(option);
|
||||
}
|
||||
},'json');
|
||||
});
|
||||
Form.api.bindevent($("form[role=form]"));
|
||||
},
|
||||
edit: function () {
|
||||
$(document).on("change", "#c-aicustomerservice_id", function(data){
|
||||
let ai_config_id = $('#c-aicustomerservice_id').val();
|
||||
let index = layer.load(1);
|
||||
$.get('Gewechatfriends/getFriendList',{ai_config_id:ai_config_id},function (res) {
|
||||
layer.close(index);
|
||||
//动态添加数据
|
||||
let list = res.list;
|
||||
for(let i=0;i<list.length;i++){
|
||||
let option = '<option value="'+list[i].id+'">'+list[i].name+'</option>';
|
||||
$('#c-rel_wxid').append(option);
|
||||
}
|
||||
},'json');
|
||||
});
|
||||
Form.api.bindevent($("form[role=form]"));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user