This commit is contained in:
2025-03-27 16:41:52 +08:00
parent 04fdb4b1ad
commit eba74f88cd

View File

@@ -53,6 +53,19 @@ 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 () {