Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Chemex
Commits
bd10d007
Commit
bd10d007
authored
4 years ago
by
celaraze
Committed by
Gitee
4 years ago
Browse files
Options
Download
Plain Diff
!18 3.0.5
Merge pull request !18 from celaraze/dev
parents
a1f58c0d
bd122fda
Changes
230
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
README.md
+3
-1
README.md
app/Admin/Actions/Grid/BatchAction/ConsumableRecordBatchDeleteAction.php
+44
-0
...ns/Grid/BatchAction/ConsumableRecordBatchDeleteAction.php
app/Admin/Actions/Grid/BatchAction/ConsumableRecordBatchForceDeleteAction.php
+44
-0
...id/BatchAction/ConsumableRecordBatchForceDeleteAction.php
app/Admin/Actions/Grid/BatchAction/DeviceRecordBatchCreateUpdateTrackAction.php
+1
-1
.../BatchAction/DeviceRecordBatchCreateUpdateTrackAction.php
app/Admin/Actions/Grid/BatchAction/DeviceRecordBatchDeleteAction.php
+1
-1
...ctions/Grid/BatchAction/DeviceRecordBatchDeleteAction.php
app/Admin/Actions/Grid/BatchAction/DeviceRecordBatchForceDeleteAction.php
+44
-0
...s/Grid/BatchAction/DeviceRecordBatchForceDeleteAction.php
app/Admin/Actions/Grid/BatchAction/PartRecordBatchDeleteAction.php
+1
-1
.../Actions/Grid/BatchAction/PartRecordBatchDeleteAction.php
app/Admin/Actions/Grid/BatchAction/PartRecordBatchForceDeleteAction.php
+44
-0
...ons/Grid/BatchAction/PartRecordBatchForceDeleteAction.php
app/Admin/Actions/Grid/BatchAction/ServiceRecordBatchDeleteAction.php
+44
-0
...tions/Grid/BatchAction/ServiceRecordBatchDeleteAction.php
app/Admin/Actions/Grid/BatchAction/ServiceRecordBatchForceDeleteAction.php
+44
-0
.../Grid/BatchAction/ServiceRecordBatchForceDeleteAction.php
app/Admin/Actions/Grid/BatchAction/SoftwareRecordBatchDeleteAction.php
+1
-1
...ions/Grid/BatchAction/SoftwareRecordBatchDeleteAction.php
app/Admin/Actions/Grid/BatchAction/SoftwareRecordBatchForceDeleteAction.php
+44
-0
...Grid/BatchAction/SoftwareRecordBatchForceDeleteAction.php
app/Admin/Actions/Grid/BatchAction/UserBatchDeleteAction.php
+1
-1
app/Admin/Actions/Grid/BatchAction/UserBatchDeleteAction.php
app/Admin/Actions/Grid/BatchAction/UserBatchForceDeleteAction.php
+42
-0
...n/Actions/Grid/BatchAction/UserBatchForceDeleteAction.php
app/Admin/Actions/Grid/RowAction/ApprovalRecordDeleteAction.php
+1
-1
...min/Actions/Grid/RowAction/ApprovalRecordDeleteAction.php
app/Admin/Actions/Grid/RowAction/CheckRecordUpdateNoAction.php
+1
-1
...dmin/Actions/Grid/RowAction/CheckRecordUpdateNoAction.php
app/Admin/Actions/Grid/RowAction/CheckRecordUpdateYesAction.php
+1
-1
...min/Actions/Grid/RowAction/CheckRecordUpdateYesAction.php
app/Admin/Actions/Grid/RowAction/CheckTrackUpdateAction.php
+1
-1
app/Admin/Actions/Grid/RowAction/CheckTrackUpdateAction.php
app/Admin/Actions/Grid/RowAction/ConsumableRecordDeleteAction.php
+40
-0
...n/Actions/Grid/RowAction/ConsumableRecordDeleteAction.php
app/Admin/Actions/Grid/RowAction/DeviceRecordCreateUpdateTrackAction.php
+1
-1
...ns/Grid/RowAction/DeviceRecordCreateUpdateTrackAction.php
with
403 additions
and
11 deletions
+403
-11
README.md
+
3
-
1
View file @
bd10d007
...
...
@@ -78,7 +78,7 @@
`git`
,用于管理版本,部署和升级必要工具。
`PHP
7.4 +`
,已经支持 PHP8 ,建议使用
PHP8。
`PHP
8+`
,仅支持
PHP8。
`MySQL 8 +`
,数据库引擎,理论上
`MariaDB 10.2 +`
兼容支持。
...
...
@@ -113,6 +113,8 @@
OVF 中包含以下组件:Nginx MySQL PHP7.4,网络通过 NAT 实现。
> 此 OVF 中的 chemex 版本为支持 PHP7.4 的版本,但 chemex 从 3.0.4 开始将仅支持 PHP8.0 。
Ubuntu 账密:chemex/chemex
Web 程序主目录:/var/www/html
...
...
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/BatchAction/ConsumableRecordBatchDeleteAction.php
0 → 100755
+
44
-
0
View file @
bd10d007
<?php
namespace
App\Admin\Actions\Grid\BatchAction
;
use
App\Services\ConsumableService
;
use
Dcat\Admin\Actions\Response
;
use
Dcat\Admin\Grid\BatchAction
;
class
ConsumableRecordBatchDeleteAction
extends
BatchAction
{
public
function
__construct
(
$title
=
null
)
{
parent
::
__construct
(
$title
);
$this
->
title
=
'<i class="fa fa-fw feather icon-trash-2"></i> '
.
admin_trans_label
(
'Batch Delete'
);
}
/**
* 确认弹窗.
*
* @return string
*/
public
function
confirm
():
string
{
return
admin_trans_label
(
'Batch Delete Confirm'
);
}
/**
* 处理逻辑.
*
* @return \Dcat\Admin\Actions\Response
*/
public
function
handle
():
Response
{
$keys
=
$this
->
getKey
();
foreach
(
$keys
as
$key
)
{
ConsumableService
::
consumableDelete
(
$key
);
}
return
$this
->
response
()
->
success
(
trans
(
'main.success'
))
->
refresh
();
}
}
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/BatchAction/ConsumableRecordBatchForceDeleteAction.php
0 → 100755
+
44
-
0
View file @
bd10d007
<?php
namespace
App\Admin\Actions\Grid\BatchAction
;
use
App\Services\ConsumableService
;
use
Dcat\Admin\Actions\Response
;
use
Dcat\Admin\Grid\BatchAction
;
class
ConsumableRecordBatchForceDeleteAction
extends
BatchAction
{
public
function
__construct
()
{
parent
::
__construct
();
$this
->
title
=
'<i class="fa fa-fw feather icon-alert-octagon"></i> '
.
admin_trans_label
(
'Batch Force Delete'
);
}
/**
* 确认弹窗.
*
* @return string
*/
public
function
confirm
():
string
{
return
admin_trans_label
(
'Batch Force Delete Confirm'
);
}
/**
* 处理逻辑.
*
* @return \Dcat\Admin\Actions\Response
*/
public
function
handle
():
Response
{
$keys
=
$this
->
getKey
();
foreach
(
$keys
as
$key
)
{
ConsumableService
::
consumableForceDelete
(
$key
);
}
return
$this
->
response
()
->
success
(
trans
(
'main.success'
))
->
refresh
();
}
}
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/BatchAction/DeviceRecordBatchCreateUpdateTrackAction.php
+
1
-
1
View file @
bd10d007
...
...
@@ -11,7 +11,7 @@ class DeviceRecordBatchCreateUpdateTrackAction extends BatchAction
public
function
__construct
()
{
parent
::
__construct
();
$this
->
title
=
'
👨💼
'
.
admin_trans_label
(
'Batch Track Create Update'
);
$this
->
title
=
'
<i class="fa fa-fw feather icon-user-plus"></i>
'
.
admin_trans_label
(
'Batch Track Create Update'
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/BatchAction/DeviceRecordBatchDeleteAction.php
+
1
-
1
View file @
bd10d007
...
...
@@ -11,7 +11,7 @@ class DeviceRecordBatchDeleteAction extends BatchAction
public
function
__construct
()
{
parent
::
__construct
();
$this
->
title
=
'
🔨
'
.
admin_trans_label
(
'Batch Delete'
);
$this
->
title
=
'
<i class="fa fa-fw feather icon-trash"></i>
'
.
admin_trans_label
(
'Batch Delete'
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/BatchAction/DeviceRecordBatchForceDeleteAction.php
0 → 100755
+
44
-
0
View file @
bd10d007
<?php
namespace
App\Admin\Actions\Grid\BatchAction
;
use
App\Services\DeviceService
;
use
Dcat\Admin\Actions\Response
;
use
Dcat\Admin\Grid\BatchAction
;
class
DeviceRecordBatchForceDeleteAction
extends
BatchAction
{
public
function
__construct
()
{
parent
::
__construct
();
$this
->
title
=
'<i class="fa fa-fw feather icon-alert-octagon"></i> '
.
admin_trans_label
(
'Batch Force Delete'
);
}
/**
* 确认弹窗.
*
* @return string
*/
public
function
confirm
():
string
{
return
admin_trans_label
(
'Batch Force Delete Confirm'
);
}
/**
* 处理逻辑.
*
* @return \Dcat\Admin\Actions\Response
*/
public
function
handle
():
Response
{
$keys
=
$this
->
getKey
();
foreach
(
$keys
as
$key
)
{
DeviceService
::
deviceForceDelete
(
$key
);
}
return
$this
->
response
()
->
success
(
trans
(
'main.success'
))
->
refresh
();
}
}
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/BatchAction/PartRecordBatchDeleteAction.php
+
1
-
1
View file @
bd10d007
...
...
@@ -11,7 +11,7 @@ class PartRecordBatchDeleteAction extends BatchAction
public
function
__construct
(
$title
=
null
)
{
parent
::
__construct
(
$title
);
$this
->
title
=
'
🔨
'
.
admin_trans_label
(
'Batch Delete'
);
$this
->
title
=
'
<i class="fa fa-fw feather icon-trash-2"></i>
'
.
admin_trans_label
(
'Batch Delete'
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/BatchAction/PartRecordBatchForceDeleteAction.php
0 → 100755
+
44
-
0
View file @
bd10d007
<?php
namespace
App\Admin\Actions\Grid\BatchAction
;
use
App\Services\PartService
;
use
Dcat\Admin\Actions\Response
;
use
Dcat\Admin\Grid\BatchAction
;
class
PartRecordBatchForceDeleteAction
extends
BatchAction
{
public
function
__construct
()
{
parent
::
__construct
();
$this
->
title
=
'<i class="fa fa-fw feather icon-alert-octagon"></i> '
.
admin_trans_label
(
'Batch Force Delete'
);
}
/**
* 确认弹窗.
*
* @return string
*/
public
function
confirm
():
string
{
return
admin_trans_label
(
'Batch Force Delete Confirm'
);
}
/**
* 处理逻辑.
*
* @return \Dcat\Admin\Actions\Response
*/
public
function
handle
():
Response
{
$keys
=
$this
->
getKey
();
foreach
(
$keys
as
$key
)
{
PartService
::
partForceDelete
(
$key
);
}
return
$this
->
response
()
->
success
(
trans
(
'main.success'
))
->
refresh
();
}
}
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/BatchAction/ServiceRecordBatchDeleteAction.php
0 → 100755
+
44
-
0
View file @
bd10d007
<?php
namespace
App\Admin\Actions\Grid\BatchAction
;
use
App\Services\ServiceService
;
use
Dcat\Admin\Actions\Response
;
use
Dcat\Admin\Grid\BatchAction
;
class
ServiceRecordBatchDeleteAction
extends
BatchAction
{
public
function
__construct
(
$title
=
null
)
{
parent
::
__construct
(
$title
);
$this
->
title
=
'<i class="fa fa-fw feather icon-trash-2"></i> '
.
admin_trans_label
(
'Batch Delete'
);
}
/**
* 确认弹窗.
*
* @return string
*/
public
function
confirm
():
string
{
return
admin_trans_label
(
'Batch Delete Confirm'
);
}
/**
* 处理逻辑.
*
* @return \Dcat\Admin\Actions\Response
*/
public
function
handle
():
Response
{
$keys
=
$this
->
getKey
();
foreach
(
$keys
as
$key
)
{
ServiceService
::
serviceDelete
(
$key
);
}
return
$this
->
response
()
->
success
(
trans
(
'main.success'
))
->
refresh
();
}
}
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/BatchAction/ServiceRecordBatchForceDeleteAction.php
0 → 100755
+
44
-
0
View file @
bd10d007
<?php
namespace
App\Admin\Actions\Grid\BatchAction
;
use
App\Services\ServiceService
;
use
Dcat\Admin\Actions\Response
;
use
Dcat\Admin\Grid\BatchAction
;
class
ServiceRecordBatchForceDeleteAction
extends
BatchAction
{
public
function
__construct
()
{
parent
::
__construct
();
$this
->
title
=
'<i class="fa fa-fw feather icon-alert-octagon"></i> '
.
admin_trans_label
(
'Batch Force Delete'
);
}
/**
* 确认弹窗.
*
* @return string
*/
public
function
confirm
():
string
{
return
admin_trans_label
(
'Batch Force Delete Confirm'
);
}
/**
* 处理逻辑.
*
* @return \Dcat\Admin\Actions\Response
*/
public
function
handle
():
Response
{
$keys
=
$this
->
getKey
();
foreach
(
$keys
as
$key
)
{
ServiceService
::
serviceForceDelete
(
$key
);
}
return
$this
->
response
()
->
success
(
trans
(
'main.success'
))
->
refresh
();
}
}
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/BatchAction/SoftwareRecordBatchDeleteAction.php
+
1
-
1
View file @
bd10d007
...
...
@@ -11,7 +11,7 @@ class SoftwareRecordBatchDeleteAction extends BatchAction
public
function
__construct
(
$title
=
null
)
{
parent
::
__construct
(
$title
);
$this
->
title
=
'
🔨
'
.
admin_trans_label
(
'Batch Delete'
);
$this
->
title
=
'
<i class="fa fa-fw feather icon-trash-2"></i>
'
.
admin_trans_label
(
'Batch Delete'
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/BatchAction/SoftwareRecordBatchForceDeleteAction.php
0 → 100755
+
44
-
0
View file @
bd10d007
<?php
namespace
App\Admin\Actions\Grid\BatchAction
;
use
App\Services\SoftwareService
;
use
Dcat\Admin\Actions\Response
;
use
Dcat\Admin\Grid\BatchAction
;
class
SoftwareRecordBatchForceDeleteAction
extends
BatchAction
{
public
function
__construct
()
{
parent
::
__construct
();
$this
->
title
=
'<i class="fa fa-fw feather icon-alert-octagon"></i> '
.
admin_trans_label
(
'Batch Force Delete'
);
}
/**
* 确认弹窗.
*
* @return string
*/
public
function
confirm
():
string
{
return
admin_trans_label
(
'Batch Force Delete Confirm'
);
}
/**
* 处理逻辑.
*
* @return \Dcat\Admin\Actions\Response
*/
public
function
handle
():
Response
{
$keys
=
$this
->
getKey
();
foreach
(
$keys
as
$key
)
{
SoftwareService
::
softwareForceDelete
(
$key
);
}
return
$this
->
response
()
->
success
(
trans
(
'main.success'
))
->
refresh
();
}
}
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/BatchAction/UserBatchDeleteAction.php
+
1
-
1
View file @
bd10d007
...
...
@@ -11,7 +11,7 @@ class UserBatchDeleteAction extends BatchAction
public
function
__construct
(
$title
=
null
)
{
parent
::
__construct
(
$title
);
$this
->
title
=
'
🔨
'
.
admin_trans_label
(
'Batch Delete'
);
$this
->
title
=
'
<i class="fa fa-fw feather icon-trash-2"></i>
'
.
admin_trans_label
(
'Batch Delete'
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/BatchAction/UserBatchForceDeleteAction.php
0 → 100755
+
42
-
0
View file @
bd10d007
<?php
namespace
App\Admin\Actions\Grid\BatchAction
;
use
App\Services\UserService
;
use
Dcat\Admin\Actions\Response
;
use
Dcat\Admin\Grid\BatchAction
;
class
UserBatchForceDeleteAction
extends
BatchAction
{
public
function
__construct
(
$title
=
null
)
{
parent
::
__construct
(
$title
);
$this
->
title
=
'<i class="fa fa-fw feather icon-trash-2"></i> '
.
admin_trans_label
(
'Batch Force Delete'
);
}
/**
* 确认弹窗.
*
* @return string
*/
public
function
confirm
():
string
{
return
admin_trans_label
(
'Batch Force Delete Confirm'
);
}
/**
* 处理逻辑.
*
* @return \Dcat\Admin\Actions\Response
*/
public
function
handle
():
Response
{
$keys
=
$this
->
getKey
();
foreach
(
$keys
as
$key
)
{
UserService
::
userForceDelete
(
$key
);
}
return
$this
->
response
()
->
success
(
trans
(
'main.success'
))
->
refresh
();
}
}
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/RowAction/ApprovalRecordDeleteAction.php
+
1
-
1
View file @
bd10d007
...
...
@@ -11,7 +11,7 @@ class ApprovalRecordDeleteAction extends RowAction
public
function
__construct
()
{
parent
::
__construct
();
$this
->
title
=
'
🔨
'
.
admin_trans_label
(
'Delete'
);
$this
->
title
=
'
<i class="fa fa-fw feather icon-trash"></i>
'
.
admin_trans_label
(
'Delete'
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/RowAction/CheckRecordUpdateNoAction.php
+
1
-
1
View file @
bd10d007
...
...
@@ -13,7 +13,7 @@ class CheckRecordUpdateNoAction extends RowAction
public
function
__construct
()
{
parent
::
__construct
();
$this
->
title
=
'
❌
'
.
admin_trans_label
(
'Cancel Check'
);
$this
->
title
=
'
<i class="fa fa-fw feather icon-x"></i>
'
.
admin_trans_label
(
'Cancel Check'
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/RowAction/CheckRecordUpdateYesAction.php
+
1
-
1
View file @
bd10d007
...
...
@@ -13,7 +13,7 @@ class CheckRecordUpdateYesAction extends RowAction
public
function
__construct
()
{
parent
::
__construct
();
$this
->
title
=
'
⚡
'
.
admin_trans_label
(
'Finish Record'
);
$this
->
title
=
'
<i class="fa fa-fw feather icon-check"></i>
'
.
admin_trans_label
(
'Finish Record'
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/RowAction/CheckTrackUpdateAction.php
+
1
-
1
View file @
bd10d007
...
...
@@ -11,7 +11,7 @@ class CheckTrackUpdateAction extends RowAction
public
function
__construct
()
{
parent
::
__construct
();
$this
->
title
=
'
👨💼
'
.
admin_trans_label
(
'Update Track'
);
$this
->
title
=
'
<i class="fa fa-fw feather icon-clipboard"></i>
'
.
admin_trans_label
(
'Update Track'
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/RowAction/ConsumableRecordDeleteAction.php
0 → 100644
+
40
-
0
View file @
bd10d007
<?php
namespace
App\Admin\Actions\Grid\RowAction
;
use
App\Services\ConsumableService
;
use
Dcat\Admin\Actions\Response
;
use
Dcat\Admin\Grid\RowAction
;
class
ConsumableRecordDeleteAction
extends
RowAction
{
public
function
__construct
()
{
parent
::
__construct
();
$this
->
title
=
'<i class="fa fa-fw feather icon-trash"></i> '
.
admin_trans_label
(
'Delete'
);
}
/**
* 处理动作逻辑.
*
* @return Response
*/
public
function
handle
():
Response
{
ConsumableService
::
consumableDelete
(
$this
->
getKey
());
return
$this
->
response
()
->
success
(
trans
(
'main.success'
))
->
refresh
();
}
/**
* 对话框.
*
* @return string[]
*/
public
function
confirm
():
array
{
return
[
admin_trans_label
(
'Delete Confirm'
),
admin_trans_label
(
'Delete Confirm Description'
)];
}
}
This diff is collapsed.
Click to expand it.
app/Admin/Actions/Grid/RowAction/DeviceRecordCreateUpdateTrackAction.php
+
1
-
1
View file @
bd10d007
...
...
@@ -13,7 +13,7 @@ class DeviceRecordCreateUpdateTrackAction extends RowAction
public
function
__construct
(
$is_lend
)
{
parent
::
__construct
();
$this
->
title
=
'
👨💼
'
.
admin_trans_label
(
'Track Create Update'
);
$this
->
title
=
'
<i class="fa fa-fw feather icon-user-plus"></i>
'
.
admin_trans_label
(
'Track Create Update'
);
$this
->
is_lend
=
$is_lend
;
}
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
5
…
12
Next
Write
Preview
Supports
Markdown
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