fixed
This commit is contained in:
@@ -38,20 +38,28 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|||||||
Table.api.bindevent(table);
|
Table.api.bindevent(table);
|
||||||
},
|
},
|
||||||
add: function () {
|
add: function () {
|
||||||
$('.shili_huashu_btn').on('click',function (e){
|
$('#add-form,#edit-form').on('click', '.shili_huashu_btn', function () {
|
||||||
//读取下拉框的值
|
let txt = $(this).closest('.form_group_add').find('.c-hui-fang-yao-dian');
|
||||||
var groupdiv=$('.shili_huashu_btn').parent().parent().find('form_group_add');
|
$.post('ai/talk_skill',{txt:txt.val()},function (res) {
|
||||||
console.log($(this));
|
|
||||||
let txt = $('#c-hui-fang-yao-dian').val();
|
|
||||||
// console.log(wx_id);
|
|
||||||
// console.log(e);
|
|
||||||
// let load_index = layer.load(1);
|
|
||||||
$.post('ai/talk_skill',{txt:txt},function (res) {
|
|
||||||
// layer.close(load_index);
|
// layer.close(load_index);
|
||||||
//回显
|
//回显
|
||||||
$('#c-content').val(res.data);
|
$(this).closest('.form_group_add').find('.c-content').val(res.data);
|
||||||
},'json');
|
},'json');
|
||||||
});
|
});
|
||||||
|
// $('.shili_huashu_btn').on('click',function (e){
|
||||||
|
// //读取下拉框的值
|
||||||
|
// var groupdiv=$('.shili_huashu_btn').parent().parent().find('form_group_add');
|
||||||
|
// console.log($(this).parent().find('.c-hui-fang-yao-dian').val());
|
||||||
|
// let txt = $('.c-hui-fang-yao-dian').val();
|
||||||
|
// console.log(txt);
|
||||||
|
// // console.log(e);
|
||||||
|
// // let load_index = layer.load(1);
|
||||||
|
// $.post('ai/talk_skill',{txt:txt},function (res) {
|
||||||
|
// // layer.close(load_index);
|
||||||
|
// //回显
|
||||||
|
// $('.c-content').val(res.data);
|
||||||
|
// },'json');
|
||||||
|
// });
|
||||||
$('#c-add_group_content').on('click',function (res){
|
$('#c-add_group_content').on('click',function (res){
|
||||||
res.preventDefault();
|
res.preventDefault();
|
||||||
var html = $('.form_group_add').html();
|
var html = $('.form_group_add').html();
|
||||||
|
|||||||
Reference in New Issue
Block a user