mirror of https://gitee.com/karson/fastadmin.git
parent
adb3cc080a
commit
07679a3fe3
|
|
@ -161,8 +161,13 @@ class Addon extends Backend
|
||||||
try {
|
try {
|
||||||
Service::uninstall($name, $force);
|
Service::uninstall($name, $force);
|
||||||
if ($tables) {
|
if ($tables) {
|
||||||
|
$prefix = Config::get('database.prefix');
|
||||||
//删除插件关联表
|
//删除插件关联表
|
||||||
foreach ($tables as $index => $table) {
|
foreach ($tables as $index => $table) {
|
||||||
|
//忽略非插件标识的表名
|
||||||
|
if (!preg_match("/^{$prefix}{$name}/", $table)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Db::execute("DROP TABLE IF EXISTS `{$table}`");
|
Db::execute("DROP TABLE IF EXISTS `{$table}`");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -389,6 +394,14 @@ class Addon extends Backend
|
||||||
{
|
{
|
||||||
$name = $this->request->post("name");
|
$name = $this->request->post("name");
|
||||||
$tables = get_addon_tables($name);
|
$tables = get_addon_tables($name);
|
||||||
|
$prefix = Config::get('database.prefix');
|
||||||
|
foreach ($tables as $index => $table) {
|
||||||
|
//忽略非插件标识的表名
|
||||||
|
if (!preg_match("/^{$prefix}{$name}/", $table)) {
|
||||||
|
unset($tables[$index]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$tables = array_values($tables);
|
||||||
$this->success('', null, ['tables' => $tables]);
|
$this->success('', null, ['tables' => $tables]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
<small>{:__('Control panel')}</small>
|
<small>{:__('Control panel')}</small>
|
||||||
</h1>
|
</h1>
|
||||||
</section>
|
</section>
|
||||||
{if !IS_DIALOG && !$Think.config.fastadmin.multiplenav}
|
{if !IS_DIALOG && !$Think.config.fastadmin.multiplenav && $Think.config.fastadmin.breadcrumb}
|
||||||
<!-- RIBBON -->
|
<!-- RIBBON -->
|
||||||
<div id="ribbon">
|
<div id="ribbon">
|
||||||
<ol class="breadcrumb pull-left">
|
<ol class="breadcrumb pull-left">
|
||||||
|
|
|
||||||
|
|
@ -173,8 +173,11 @@ class Backend extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
// 设置面包屑导航数据
|
// 设置面包屑导航数据
|
||||||
|
$breadcrumb = [];
|
||||||
|
if (!IS_DIALOG && !config('fastadmin.multiplenav') && config('fastadmin.breadcrumb')) {
|
||||||
$breadcrumb = $this->auth->getBreadCrumb($path);
|
$breadcrumb = $this->auth->getBreadCrumb($path);
|
||||||
array_pop($breadcrumb);
|
array_pop($breadcrumb);
|
||||||
|
}
|
||||||
$this->view->breadcrumb = $breadcrumb;
|
$this->view->breadcrumb = $breadcrumb;
|
||||||
|
|
||||||
// 如果有使用模板布局
|
// 如果有使用模板布局
|
||||||
|
|
|
||||||
|
|
@ -277,6 +277,8 @@ return [
|
||||||
'multipletab' => true,
|
'multipletab' => true,
|
||||||
//后台皮肤,为空时表示使用skin-green
|
//后台皮肤,为空时表示使用skin-green
|
||||||
'adminskin' => '',
|
'adminskin' => '',
|
||||||
|
//后台是否启用面包屑
|
||||||
|
'breadcrumb' => false,
|
||||||
//允许跨域的域名,多个以,分隔
|
//允许跨域的域名,多个以,分隔
|
||||||
'cors_request_domain' => 'localhost,127.0.0.1',
|
'cors_request_domain' => 'localhost,127.0.0.1',
|
||||||
//版本号
|
//版本号
|
||||||
|
|
|
||||||
|
|
@ -1064,24 +1064,24 @@ table.table-nowrap thead > tr > th {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
min-height: 41px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.08);
|
box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.08);
|
||||||
}
|
}
|
||||||
|
.fixed-columns .fixed-table-body,
|
||||||
|
.fixed-columns-right .fixed-table-body {
|
||||||
|
min-height: 41px;
|
||||||
|
overflow-x: hidden !important;
|
||||||
|
}
|
||||||
.fixed-columns {
|
.fixed-columns {
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
.fixed-columns .fixed-table-body {
|
|
||||||
overflow: hidden !important;
|
|
||||||
}
|
|
||||||
.fixed-columns-right {
|
.fixed-columns-right {
|
||||||
right: 0;
|
right: 0;
|
||||||
box-shadow: -1px 0 8px rgba(0, 0, 0, 0.08);
|
box-shadow: -1px 0 8px rgba(0, 0, 0, 0.08);
|
||||||
}
|
}
|
||||||
.fixed-columns-right .fixed-table-body {
|
|
||||||
overflow-x: hidden !important;
|
|
||||||
}
|
|
||||||
.fix-sticky {
|
.fix-sticky {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -487,7 +487,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'template'], function
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Template.helper("__", __);
|
Template.helper("__", __);
|
||||||
Layer.confirm(Template("uninstalltpl", {addon: Config['addons'][name]}), function (index, layero) {
|
Layer.confirm(Template("uninstalltpl", {addon: Config['addons'][name]}), {focusBtn: false}, function (index, layero) {
|
||||||
uninstall(name, false, $("input[name='droptables']", layero).prop("checked"));
|
uninstall(name, false, $("input[name='droptables']", layero).prop("checked"));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1321,27 +1321,26 @@ table.table-nowrap {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
min-height: 41px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
box-shadow: 0 -1px 8px rgba(0, 0, 0, .08);
|
box-shadow: 0 -1px 8px rgba(0, 0, 0, .08);
|
||||||
|
|
||||||
|
.fixed-table-body {
|
||||||
|
min-height: 41px;
|
||||||
|
overflow-x: hidden !important
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.fixed-columns {
|
.fixed-columns {
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
||||||
.fixed-table-body {
|
|
||||||
overflow: hidden !important
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.fixed-columns-right {
|
.fixed-columns-right {
|
||||||
right: 0;
|
right: 0;
|
||||||
box-shadow: -1px 0 8px rgba(0, 0, 0, .08);
|
box-shadow: -1px 0 8px rgba(0, 0, 0, .08);
|
||||||
|
|
||||||
.fixed-table-body {
|
|
||||||
overflow-x: hidden !important
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.fix-sticky {
|
.fix-sticky {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue