befly-admin-ui 1.8.16 → 1.8.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/detailPanel.vue +195 -0
- package/components/pageDialog.vue +199 -0
- package/components/pagedTableDetail.vue +514 -0
- package/layouts/1.vue +5 -0
- package/layouts/default.vue +489 -0
- package/package.json +6 -5
- package/views/config/dict/components/edit.vue +1 -1
- package/views/config/dict/index.vue +3 -3
- package/views/config/dictType/components/edit.vue +1 -1
- package/views/config/dictType/index.vue +3 -3
- package/views/config/system/components/edit.vue +1 -1
- package/views/config/system/index.vue +4 -4
- package/views/index/components/addonList.vue +1 -0
- package/views/index/components/operationLogs.vue +1 -0
- package/views/log/email/index.vue +5 -5
- package/views/log/login/index.vue +4 -4
- package/views/log/operate/index.vue +4 -4
- package/views/people/admin/components/edit.vue +1 -1
- package/views/people/admin/index.vue +3 -3
- package/views/permission/api/index.vue +1 -1
- package/views/permission/menu/index.vue +1 -1
- package/views/permission/role/components/api.vue +1 -1
- package/views/permission/role/components/edit.vue +1 -1
- package/views/permission/role/components/menu.vue +1 -1
- package/views/permission/role/index.vue +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<PageTableDetail class="page-login-log page-table" :columns="$Data.columns" :endpoints="$Data.endpoints" :table-slot-names="['loginResult', 'loginTime', 'deviceType']">
|
|
3
3
|
<template #toolRight="scope">
|
|
4
4
|
<TButton shape="circle" @click="onReload(scope.reload)">
|
|
5
5
|
<template #icon>
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
</template>
|
|
36
36
|
</DetailPanel>
|
|
37
37
|
</template>
|
|
38
|
-
</
|
|
38
|
+
</PageTableDetail>
|
|
39
39
|
</template>
|
|
40
40
|
|
|
41
41
|
<script setup>
|
|
42
42
|
import { reactive } from "vue";
|
|
43
43
|
import { Button as TButton, Tag as TTag } from "tdesign-vue-next";
|
|
44
44
|
import { RefreshIcon } from "tdesign-icons-vue-next";
|
|
45
|
-
import DetailPanel from "
|
|
46
|
-
import
|
|
45
|
+
import DetailPanel from "befly-admin-ui/components/detailPanel.vue";
|
|
46
|
+
import PageTableDetail from "befly-admin-ui/components/pagedTableDetail.vue";
|
|
47
47
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
48
48
|
|
|
49
49
|
// 响应式数据
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<PageTableDetail class="page-operate-log page-table" :columns="$Data.columns" :endpoints="$Data.endpoints" :table-slot-names="['result', 'operateTime', 'duration', 'action']">
|
|
3
3
|
<template #toolLeft="scope">
|
|
4
4
|
<TSelect v-model="$Data.filter.module" placeholder="操作模块" clearable style="width: 150px" @change="handleFilter(scope.reload)">
|
|
5
5
|
<TOption v-for="item in $Data.moduleOptions" :key="item.value" :label="item.label" :value="item.value" />
|
|
@@ -58,15 +58,15 @@
|
|
|
58
58
|
</template>
|
|
59
59
|
</DetailPanel>
|
|
60
60
|
</template>
|
|
61
|
-
</
|
|
61
|
+
</PageTableDetail>
|
|
62
62
|
</template>
|
|
63
63
|
|
|
64
64
|
<script setup>
|
|
65
65
|
import { reactive } from "vue";
|
|
66
66
|
import { Button as TButton, Option as TOption, Select as TSelect, Tag as TTag } from "tdesign-vue-next";
|
|
67
67
|
import { RefreshIcon } from "tdesign-icons-vue-next";
|
|
68
|
-
import DetailPanel from "
|
|
69
|
-
import
|
|
68
|
+
import DetailPanel from "befly-admin-ui/components/detailPanel.vue";
|
|
69
|
+
import PageTableDetail from "befly-admin-ui/components/pagedTableDetail.vue";
|
|
70
70
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
71
71
|
|
|
72
72
|
// 响应式数据
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
Radio as TRadio,
|
|
39
39
|
MessagePlugin
|
|
40
40
|
} from "tdesign-vue-next";
|
|
41
|
-
import PageDialog from "
|
|
41
|
+
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
42
42
|
import { $Http } from "@/plugins/http";
|
|
43
43
|
import { fieldClear } from "befly-admin-ui/utils/fieldClear";
|
|
44
44
|
import { hashPassword } from "befly-admin-ui/utils/hashPassword";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<PageTableDetail class="page-admin" :columns="$Data.columns" :endpoints="$Data.endpoints">
|
|
3
3
|
<template #toolLeft>
|
|
4
4
|
<TButton theme="primary" @click="onAdd">
|
|
5
5
|
<template #icon>
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<template #dialogs="scope">
|
|
45
45
|
<EditDialog v-if="$Data.editVisible" v-model="$Data.editVisible" :action-type="$Data.actionType" :row-data="$Data.rowData" @success="onDialogSuccess(scope.reload)" />
|
|
46
46
|
</template>
|
|
47
|
-
</
|
|
47
|
+
</PageTableDetail>
|
|
48
48
|
</template>
|
|
49
49
|
|
|
50
50
|
<script setup>
|
|
@@ -52,7 +52,7 @@ import { reactive } from "vue";
|
|
|
52
52
|
import { Button as TButton, Dropdown as TDropdown, DropdownItem as TDropdownItem, DropdownMenu as TDropdownMenu, Tag as TTag } from "tdesign-vue-next";
|
|
53
53
|
import { AddIcon, ChevronDownIcon, DeleteIcon, EditIcon, RefreshIcon } from "tdesign-icons-vue-next";
|
|
54
54
|
import EditDialog from "./components/edit.vue";
|
|
55
|
-
import
|
|
55
|
+
import PageTableDetail from "befly-admin-ui/components/pagedTableDetail.vue";
|
|
56
56
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
57
57
|
|
|
58
58
|
// 响应式数据
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
import { reactive } from "vue";
|
|
63
63
|
import { Button as TButton, Table as TTable, Tag as TTag, Input as TInput, MessagePlugin } from "tdesign-vue-next";
|
|
64
64
|
import { RefreshIcon, SearchIcon } from "tdesign-icons-vue-next";
|
|
65
|
-
import DetailPanel from "
|
|
65
|
+
import DetailPanel from "befly-admin-ui/components/detailPanel.vue";
|
|
66
66
|
import { $Http } from "@/plugins/http";
|
|
67
67
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
68
68
|
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
import { reactive } from "vue";
|
|
34
34
|
import { Button as TButton, Table as TTable, Tag as TTag, MessagePlugin } from "tdesign-vue-next";
|
|
35
35
|
import { RefreshIcon } from "tdesign-icons-vue-next";
|
|
36
|
-
import DetailPanel from "
|
|
36
|
+
import DetailPanel from "befly-admin-ui/components/detailPanel.vue";
|
|
37
37
|
import { $Http } from "@/plugins/http";
|
|
38
38
|
import { arrayToTree } from "befly-admin-ui/utils/arrayToTree";
|
|
39
39
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
@@ -36,7 +36,7 @@ import { computed, reactive } from "vue";
|
|
|
36
36
|
|
|
37
37
|
import { Input as TInput, CheckboxGroup as TCheckboxGroup, Checkbox as TCheckbox, MessagePlugin } from "tdesign-vue-next";
|
|
38
38
|
import { SearchIcon } from "tdesign-icons-vue-next";
|
|
39
|
-
import PageDialog from "
|
|
39
|
+
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
40
40
|
import { $Http } from "@/plugins/http";
|
|
41
41
|
|
|
42
42
|
const $Prop = defineProps({
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
Radio as TRadio,
|
|
39
39
|
MessagePlugin
|
|
40
40
|
} from "tdesign-vue-next";
|
|
41
|
-
import PageDialog from "
|
|
41
|
+
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
42
42
|
import { $Http } from "@/plugins/http";
|
|
43
43
|
import { fieldClear } from "befly-admin-ui/utils/fieldClear";
|
|
44
44
|
|
|
@@ -37,7 +37,7 @@ import { computed, reactive } from "vue";
|
|
|
37
37
|
|
|
38
38
|
import { CheckboxGroup as TCheckboxGroup, Checkbox as TCheckbox, Input as TInput, MessagePlugin } from "tdesign-vue-next";
|
|
39
39
|
import { SearchIcon } from "tdesign-icons-vue-next";
|
|
40
|
-
import PageDialog from "
|
|
40
|
+
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
41
41
|
import { $Http } from "@/plugins/http";
|
|
42
42
|
import { arrayToTree } from "befly-admin-ui/utils/arrayToTree";
|
|
43
43
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<PageTableDetail class="page-role page-table" :columns="$Data.columns" :endpoints="$Data.endpoints" :table-slot-names="['state', 'menuCount', 'apiCount']">
|
|
3
3
|
<template #toolLeft>
|
|
4
4
|
<TButton theme="primary" @click="onAdd">
|
|
5
5
|
<template #icon>
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
<!-- 接口权限对话框组件 -->
|
|
68
68
|
<ApiDialog v-if="$Data.apiVisible" v-model="$Data.apiVisible" :row-data="$Data.rowData" @success="onDialogSuccess(scope.reload)" />
|
|
69
69
|
</template>
|
|
70
|
-
</
|
|
70
|
+
</PageTableDetail>
|
|
71
71
|
</template>
|
|
72
72
|
|
|
73
73
|
<script setup>
|
|
@@ -77,7 +77,7 @@ import { AddIcon, ChevronDownIcon, CodeIcon, DeleteIcon, EditIcon, RefreshIcon,
|
|
|
77
77
|
import EditDialog from "./components/edit.vue";
|
|
78
78
|
import MenuDialog from "./components/menu.vue";
|
|
79
79
|
import ApiDialog from "./components/api.vue";
|
|
80
|
-
import
|
|
80
|
+
import PageTableDetail from "befly-admin-ui/components/pagedTableDetail.vue";
|
|
81
81
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
82
82
|
|
|
83
83
|
// 响应式数据
|