Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
af5e550ddb | ||
![]() |
265077229d | ||
![]() |
1c3f606165 | ||
![]() |
439d897038 | ||
![]() |
70a47e35ec | ||
![]() |
b36dea2b0a | ||
![]() |
63b622ab2a |
@@ -11,19 +11,18 @@
|
|||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.1",
|
"php": "^8.2",
|
||||||
"ext-pdo": "*",
|
"ext-pdo": "*",
|
||||||
"ext-zip": "*",
|
"ext-zip": "*",
|
||||||
"doctrine/dbal": "^3.4",
|
"guzzlehttp/guzzle": "^7.8.1",
|
||||||
"guzzlehttp/guzzle": "^7.2",
|
"laravel/framework": "^v11.0.3",
|
||||||
"laravel/framework": "^10.0",
|
"laravel/tinker": "^v2.9.0",
|
||||||
"laravel/tinker": "^2.8",
|
"catchadmin/core": "^0.3.2"
|
||||||
"catchadmin/core": "^0.2.7"
|
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"fakerphp/faker": "^1.9.1",
|
"fakerphp/faker": "^v1.23.1",
|
||||||
"mockery/mockery": "^1.4.4",
|
"mockery/mockery": "^1.6.9",
|
||||||
"pestphp/pest": "^1.22"
|
"pestphp/pest": "^v2.34.2"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
@@ -92,14 +92,13 @@ class Schemas extends CatchModel
|
|||||||
|
|
||||||
$columns = [];
|
$columns = [];
|
||||||
|
|
||||||
foreach (getTableColumns($schema->name) as $columnString) {
|
foreach (\Illuminate\Support\Facades\Schema::getColumns($schema->name) as $column) {
|
||||||
$column = DB::connection()->getDoctrineColumn(DB::connection()->getTablePrefix().$schema->name, $columnString);
|
|
||||||
$columns[] = [
|
$columns[] = [
|
||||||
'name' => $column->getName(),
|
'name' => $column['name'],
|
||||||
'type' => $column->getType()->getName(),
|
'type' => $column['type_name'],
|
||||||
'nullable' => ! $column->getNotnull(),
|
'nullable' => $column['nullable'],
|
||||||
'default' => $column->getDefault(),
|
'default' => $column['default'],
|
||||||
'comment' => $column->getComment()
|
'comment' => $column['comment'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -13,7 +13,7 @@ import { useShow } from '/admin/composables/curd/useShow'
|
|||||||
import { onMounted } from 'vue'
|
import { onMounted } from 'vue'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
primary: String | Number,
|
primary: [String, Number],
|
||||||
api: String,
|
api: String,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@@ -6,6 +6,7 @@ use Catch\CatchAdmin;
|
|||||||
use Catch\Traits\DB\BaseOperate;
|
use Catch\Traits\DB\BaseOperate;
|
||||||
use Catch\Traits\DB\ScopeTrait;
|
use Catch\Traits\DB\ScopeTrait;
|
||||||
use Catch\Traits\DB\Trans;
|
use Catch\Traits\DB\Trans;
|
||||||
|
use Catch\Traits\DB\WithAttributes;
|
||||||
use Illuminate\Contracts\Http\Kernel;
|
use Illuminate\Contracts\Http\Kernel;
|
||||||
use Illuminate\Database\Eloquent\Casts\Attribute;
|
use Illuminate\Database\Eloquent\Casts\Attribute;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
@@ -16,7 +17,7 @@ use Symfony\Component\HttpFoundation\Response;
|
|||||||
|
|
||||||
class LogOperate extends Model
|
class LogOperate extends Model
|
||||||
{
|
{
|
||||||
use BaseOperate, Trans, ScopeTrait;
|
use WithAttributes,BaseOperate, Trans, ScopeTrait;
|
||||||
|
|
||||||
protected $table = 'log_operate';
|
protected $table = 'log_operate';
|
||||||
|
|
||||||
|
@@ -12,7 +12,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<div class="pt-4">
|
||||||
<slot />
|
<slot />
|
||||||
|
</div>
|
||||||
<template #footer v-if="showFooter">
|
<template #footer v-if="showFooter">
|
||||||
<span class="dialog-footer">
|
<span class="dialog-footer">
|
||||||
<el-button @click="close">{{ $t('system.cancel') }}</el-button>
|
<el-button @click="close">{{ $t('system.cancel') }}</el-button>
|
||||||
|
Reference in New Issue
Block a user