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
5535da69
authored
Nov 18, 2024
by
lujunyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开店状态
parent
eaba5317
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
app/Admin/Controllers/PharmacyController.php
+2
-0
database/migrations/2024_11_18_112046_add_is_open_to_pharmacy_table.php
+28
-0
lang/zh_CN/pharmacy.php
+1
-0
No files found.
app/Admin/Controllers/PharmacyController.php
View file @
5535da69
...
@@ -28,6 +28,7 @@ protected function grid()
...
@@ -28,6 +28,7 @@ protected function grid()
$grid
->
column
(
'id'
)
->
sortable
();
$grid
->
column
(
'id'
)
->
sortable
();
$grid
->
column
(
'status'
)
->
switch
();
$grid
->
column
(
'status'
)
->
switch
();
$grid
->
column
(
'is_open'
)
->
switch
()
->
help
(
'药店控制'
);
$grid
->
column
(
'name'
);
$grid
->
column
(
'name'
);
// $grid->column('business_license')->image('', 50, 50);
// $grid->column('business_license')->image('', 50, 50);
// $grid->column('drug_biz_license')->image('', 50, 50);
// $grid->column('drug_biz_license')->image('', 50, 50);
...
@@ -120,6 +121,7 @@ protected function form()
...
@@ -120,6 +121,7 @@ protected function form()
$form
->
map
(
'lat'
,
'lng'
,
'经纬度坐标'
);
$form
->
map
(
'lat'
,
'lng'
,
'经纬度坐标'
);
$form
->
select
(
'user_id'
)
->
options
(
User
::
all
()
->
pluck
(
'openid'
,
'id'
))
->
width
(
4
)
->
help
(
'实际后台操作可以不用关联'
);
$form
->
select
(
'user_id'
)
->
options
(
User
::
all
()
->
pluck
(
'openid'
,
'id'
))
->
width
(
4
)
->
help
(
'实际后台操作可以不用关联'
);
$form
->
switch
(
'status'
)
->
width
(
4
);
$form
->
switch
(
'status'
)
->
width
(
4
);
$form
->
switch
(
'is_open'
)
->
width
(
4
);
$form
->
display
(
'created_at'
)
->
width
(
4
);
$form
->
display
(
'created_at'
)
->
width
(
4
);
$form
->
display
(
'updated_at'
)
->
width
(
4
);
$form
->
display
(
'updated_at'
)
->
width
(
4
);
...
...
database/migrations/2024_11_18_112046_add_is_open_to_pharmacy_table.php
0 → 100644
View file @
5535da69
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
return
new
class
extends
Migration
{
/**
* Run the migrations.
*/
public
function
up
()
:
void
{
Schema
::
table
(
'pharmacy'
,
function
(
Blueprint
$table
)
{
$table
->
boolean
(
'is_open'
)
->
default
(
0
)
->
comment
(
'是否开店[0=闭店,1=开店]'
);
});
}
/**
* Reverse the migrations.
*/
public
function
down
()
:
void
{
Schema
::
table
(
'pharmacy'
,
function
(
Blueprint
$table
)
{
//
});
}
};
lang/zh_CN/pharmacy.php
View file @
5535da69
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
'lat'
=>
'纬度'
,
'lat'
=>
'纬度'
,
'status'
=>
'启用'
,
'status'
=>
'启用'
,
'user_id'
=>
'关联用户'
,
'user_id'
=>
'关联用户'
,
'is_open'
=>
'开店状态'
,
],
],
'options'
=>
[
'options'
=>
[
],
],
...
...
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