fixed
This commit is contained in:
@@ -46,12 +46,15 @@ class Reportty
|
|||||||
|
|
||||||
$answer_json_arr = [];
|
$answer_json_arr = [];
|
||||||
|
|
||||||
$ticket = input('ticket');
|
//$ticket = input('ticket');
|
||||||
if(empty($ticket)){
|
//if(empty($ticket)){
|
||||||
|
// return json(Tools::set_fail('ticket必须'));
|
||||||
return json(Tools::set_fail('ticket必须'));
|
//}
|
||||||
|
$username = input('username');
|
||||||
|
if(empty($username)){
|
||||||
|
return json(Tools::set_fail('username必须'));
|
||||||
}
|
}
|
||||||
$user = Db::table('fa_ty_users')->where('ticket',$ticket)->find();
|
$user = Db::table('fa_ty_users')->where('username',$username)->find();
|
||||||
if(empty($user)){
|
if(empty($user)){
|
||||||
return json(Tools::set_fail('用户不存在'));
|
return json(Tools::set_fail('用户不存在'));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,11 +44,35 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|||||||
$('#add_follow_report').on('click',function () {
|
$('#add_follow_report').on('click',function () {
|
||||||
let dataid = $('#add_follow_report').attr('data-id');
|
let dataid = $('#add_follow_report').attr('data-id');
|
||||||
//添加随访记录
|
//添加随访记录
|
||||||
layer.msg(111);
|
|
||||||
let url = 'tt/Followup/addfollowup';
|
let url = 'tt/Followup/addfollowup';
|
||||||
$.post(url,{report_dataid:dataid},function (res) {
|
$.post(url,{report_dataid:dataid},function (res) {
|
||||||
|
|
||||||
},'html');
|
layer.open({
|
||||||
|
type: 1,
|
||||||
|
title:'添加随访',
|
||||||
|
area: '80%',
|
||||||
|
content:res.data,
|
||||||
|
btn: ['按钮一', '按钮二', '按钮三'],
|
||||||
|
yes: function(index, layero){
|
||||||
|
//按钮【按钮一】的回调
|
||||||
|
},
|
||||||
|
btn2: function(index, layero){
|
||||||
|
//按钮【按钮二】的回调
|
||||||
|
|
||||||
|
//return false 开启该代码可禁止点击该按钮关闭
|
||||||
|
},
|
||||||
|
btn3: function(index, layero){
|
||||||
|
//按钮【按钮三】的回调
|
||||||
|
|
||||||
|
//return false 开启该代码可禁止点击该按钮关闭
|
||||||
|
},
|
||||||
|
cancel: function(){
|
||||||
|
//右上角关闭回调
|
||||||
|
|
||||||
|
//return false 开启该代码可禁止点击该按钮关闭
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},'json');
|
||||||
});
|
});
|
||||||
|
|
||||||
Controller.api.bindevent();
|
Controller.api.bindevent();
|
||||||
|
|||||||
Reference in New Issue
Block a user