This commit is contained in:
2024-07-17 19:16:36 +08:00
parent c9ed869fd4
commit 78e8c518b5
3 changed files with 9 additions and 1 deletions

View File

@@ -81,7 +81,7 @@ class Userstt extends BaseHttpApi
->where('username',$username) ->where('username',$username)
->find(); ->find();
if(empty($user)){ if(empty($user)){
return Tools::set_fail('参数错误'); return Tools::set_fail('用户不存在');
} }
if($password != $user['password']){ if($password != $user['password']){
return Tools::set_fail('密码错误'); return Tools::set_fail('密码错误');

View File

@@ -27,6 +27,8 @@
<div class="form-group layer-footer"> <div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label> <label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8"> <div class="col-xs-12 col-sm-8">
<button type="button" id="add_follow_report" class="btn btn-danger btn-embossed " data-id="{:$row.id}">添加随访</button>
<button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button> <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
</div> </div>
</div> </div>

View File

@@ -41,6 +41,12 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
Controller.api.bindevent(); Controller.api.bindevent();
}, },
edit: function () { edit: function () {
$('#add_follow_report').on('click',function () {
let dataid = $('#add_follow_report').attr('data-id');
//添加随访记录
layer.msg(111);
});
Controller.api.bindevent(); Controller.api.bindevent();
}, },
api: { api: {