Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵增煜
/
tzt-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f74ffb87
authored
Nov 28, 2024
by
赵增煜
Browse files
Options
Browse Files
Download
Plain Diff
药店增加逻辑删除
parents
5cebe9c2
4756f199
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
app/Admin/Controllers/PharmacistController.php
+1
-1
app/Admin/Controllers/PharmacyController.php
+2
-1
app/Api/Controllers/UserController.php
+6
-0
No files found.
app/Admin/Controllers/PharmacistController.php
View file @
f74ffb87
...
@@ -185,7 +185,7 @@ protected function form()
...
@@ -185,7 +185,7 @@ protected function form()
});
});
$form
->
column
(
6
,
function
(
Form
$form
)
{
$form
->
column
(
6
,
function
(
Form
$form
)
{
$form
->
image
(
'practicing_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
required
();
$form
->
image
(
'practicing_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
required
();
$form
->
image
(
'physician_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
required
()
;
$form
->
image
(
'physician_license'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
);
$form
->
image
(
'signed_pic'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
help
(
"<span style='color:red;'>图片尺寸要求:600x400,即3:2的比例</span>"
);
$form
->
image
(
'signed_pic'
)
->
accept
(
'jpg,png,jpeg'
)
->
uniqueName
()
->
autoUpload
()
->
retainable
()
->
removable
(
false
)
->
help
(
"<span style='color:red;'>图片尺寸要求:600x400,即3:2的比例</span>"
);
});
});
...
...
app/Admin/Controllers/PharmacyController.php
View file @
f74ffb87
...
@@ -106,12 +106,13 @@ protected function grid()
...
@@ -106,12 +106,13 @@ protected function grid()
});
});
$grid
->
setActionClass
(
Grid\Displayers\Actions
::
class
);
$grid
->
setActionClass
(
Grid\Displayers\Actions
::
class
);
// 行按钮控制
// 行按钮控制
$grid
->
disableDeleteButton
();
// 禁用删除按钮
//
$grid->disableDeleteButton(); // 禁用删除按钮
$grid
->
disableViewButton
();
// 禁用详情按钮
$grid
->
disableViewButton
();
// 禁用详情按钮
// 工具栏按钮控制
// 工具栏按钮控制
$grid
->
disableBatchActions
();
// 禁用批量操作
$grid
->
disableBatchActions
();
// 禁用批量操作
}
}
});
});
}
}
...
...
app/Api/Controllers/UserController.php
View file @
f74ffb87
...
@@ -158,6 +158,8 @@ public function bindRole(Request $request)
...
@@ -158,6 +158,8 @@ public function bindRole(Request $request)
$user
->
last_login_type
=
0
;
$user
->
last_login_type
=
0
;
$user
->
save
();
$user
->
save
();
}
}
// 把所有user_id:$authInfo->id的置为0
PharmacyModel
::
where
(
'user_id'
,
$authInfo
->
id
)
->
update
([
'user_id'
=>
0
]);
$pharmacy
->
user_id
=
$authInfo
->
id
;
$pharmacy
->
user_id
=
$authInfo
->
id
;
$pharmacy
->
save
();
$pharmacy
->
save
();
...
@@ -172,6 +174,10 @@ public function bindRole(Request $request)
...
@@ -172,6 +174,10 @@ public function bindRole(Request $request)
$user
->
last_login_type
=
0
;
$user
->
last_login_type
=
0
;
$user
->
save
();
$user
->
save
();
}
}
// 把所有user_id:$authInfo->id的置为0
DoctorModel
::
where
(
'user_id'
,
$authInfo
->
id
)
->
update
([
'user_id'
=>
0
]);
$doctor
->
user_id
=
$authInfo
->
id
;
$doctor
->
user_id
=
$authInfo
->
id
;
$doctor
->
save
();
$doctor
->
save
();
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment