fixed
This commit is contained in:
@@ -42,30 +42,33 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|||||||
},
|
},
|
||||||
edit: function () {
|
edit: function () {
|
||||||
$('#add_follow_report').on('click',function () {
|
$('#add_follow_report').on('click',function () {
|
||||||
let dataid = $('#add_follow_report').attr('data-id');
|
let report_dataid = $('#add_follow_report').attr('data-id');
|
||||||
//添加随访记录
|
//添加随访记录
|
||||||
let url = 'tt/Followup/addfollowup';
|
let url = 'tt/Followup/addfollowup';
|
||||||
$.post(url,{report_dataid:dataid},function (res) {
|
$.post(url,{report_dataid:report_dataid},function (res) {
|
||||||
|
|
||||||
layer.open({
|
layer.open({
|
||||||
type: 1,
|
type: 1,
|
||||||
title:'添加随访',
|
title:'添加随访',
|
||||||
area: '80%',
|
area: '80%',
|
||||||
content:res.data,
|
content:res.data,
|
||||||
btn: ['按钮一', '按钮二', '按钮三'],
|
btn: ['完成添加', '取消'],
|
||||||
yes: function(index, layero){
|
yes: function(index, layero){
|
||||||
//按钮【按钮一】的回调
|
//按钮【按钮一】的回调
|
||||||
|
|
||||||
|
let content = $('#c-content').val();
|
||||||
|
|
||||||
|
let url = 'tt/Followup/submitfollowup';
|
||||||
|
$.post(url,{content:content,report_dataid:report_dataid},function (res) {
|
||||||
|
|
||||||
|
layer.msg(res.msg);
|
||||||
|
},'json');
|
||||||
},
|
},
|
||||||
btn2: function(index, layero){
|
btn2: function(index, layero){
|
||||||
//按钮【按钮二】的回调
|
//按钮【按钮二】的回调
|
||||||
|
|
||||||
//return false 开启该代码可禁止点击该按钮关闭
|
//return false 开启该代码可禁止点击该按钮关闭
|
||||||
},
|
},
|
||||||
btn3: function(index, layero){
|
|
||||||
//按钮【按钮三】的回调
|
|
||||||
|
|
||||||
//return false 开启该代码可禁止点击该按钮关闭
|
|
||||||
},
|
|
||||||
cancel: function(){
|
cancel: function(){
|
||||||
//右上角关闭回调
|
//右上角关闭回调
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user