fixed
This commit is contained in:
@@ -120,11 +120,13 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
||||
// $("#money").text(data.extend.money);
|
||||
// $("#price").text(data.extend.price);
|
||||
|
||||
//
|
||||
let load_index = layer.load(1);
|
||||
$.post('Gewechatfriends/getFriendList',{},function (res) {
|
||||
layer.close(load_index);
|
||||
},'json');
|
||||
//查询并缓存
|
||||
// let load_index = layer.load(1);
|
||||
// $.post('Gewechatfriends/getFriendList',{},function (res) {
|
||||
// layer.close(load_index);
|
||||
// },'json');
|
||||
|
||||
|
||||
// $("#c-rel_wx").data("eSelect", function(data){
|
||||
// //后续操作
|
||||
// console.log(data);
|
||||
@@ -145,22 +147,35 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
||||
// $("#c-category").data("format-item", function(row){
|
||||
// return row.title + " - " + row.author;
|
||||
// });
|
||||
//设置下拉框后的值
|
||||
//关联微信下拉改变
|
||||
$(document).on("change", "#c-rel_wx", function(data){
|
||||
// console.log('关联微信下拉改变',$('#c-rel_wx').val());
|
||||
//变更后的回调事件
|
||||
// console.log(data.currentTarget.defaultValue);
|
||||
$('#c-rel_wx').attr('data-wx_id',data.currentTarget.defaultValue);
|
||||
});
|
||||
$(document).on("change", "#c-firmfollowuptemplate_id", function(data){
|
||||
//变更后的回调事件
|
||||
console.log(data.currentTarget.defaultValue);
|
||||
let tmp_id = data.currentTarget.defaultValue;
|
||||
// $('#c-rel_wx').attr('data-wx_id',data.currentTarget.defaultValue);
|
||||
$.get('firmfollowuptemplatetimelist/index',{firmfollowuptemplate_id:tmp_id},function (res) {
|
||||
$('#c-rel_wx').attr('data-wx_id',$('#c-rel_wx').val());
|
||||
|
||||
|
||||
|
||||
//同时查询关联群
|
||||
let ai_config_id = $('#c-aicustomerservice_ids').val();
|
||||
$.get('Gechatroom/getChatroomList',{ai_config_id:ai_config_id},function (res) {
|
||||
//动态添加数据
|
||||
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_group').append(option);
|
||||
}
|
||||
},'json');
|
||||
});
|
||||
// $(document).on("change", "#c-firmfollowuptemplate_id", function(data){
|
||||
// //变更后的回调事件
|
||||
// // console.log(data.currentTarget.defaultValue);
|
||||
// let tmp_id = data.currentTarget.defaultValue;
|
||||
// $.get('firmfollowuptemplatetimelist/index',{firmfollowuptemplate_id:tmp_id},function (res) {
|
||||
//
|
||||
// },'json');
|
||||
// });
|
||||
|
||||
//点击同步按钮
|
||||
$('.firmcustomer-sync-info').on('click',function (e){
|
||||
//读取下拉框的值
|
||||
let wx_id = $('#c-rel_wx').attr('data-wx_id');
|
||||
@@ -172,6 +187,21 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
||||
//回显
|
||||
$('#c-headimage').val(res.data.smallHeadImgUrl);
|
||||
},'json');
|
||||
|
||||
});
|
||||
//选择AI客服时,获取该客服的微信好友列表并渲染在“关联微信”字段下拉框中
|
||||
$(document).on("change", "#c-aicustomerservice_ids", function(data){
|
||||
//变更后的回调事件
|
||||
// console.log('AI客服:',data.currentTarget.defaultValue);
|
||||
let ai_config_id = data.currentTarget.defaultValue;
|
||||
$.get('Gewechatfriends/getFriendsByAiConfigId',{ai_config_id:ai_config_id},function (res) {
|
||||
//动态添加数据
|
||||
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_wx').append(option);
|
||||
}
|
||||
},'json');
|
||||
});
|
||||
|
||||
// $(document).on("click", ".tag_add_url", function(data){
|
||||
|
||||
Reference in New Issue
Block a user