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