befly-admin-ui 1.8.15 → 1.8.17
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/package.json +2 -2
- package/utils/arrayToTree.js +1 -4
- package/views/config/dict/index.vue +3 -3
- package/views/config/dictType/index.vue +3 -3
- package/views/config/system/index.vue +3 -3
- package/views/log/email/index.vue +3 -3
- package/views/log/login/index.vue +3 -3
- package/views/log/operate/index.vue +3 -3
- package/views/people/admin/index.vue +3 -3
- package/views/permission/role/index.vue +3 -3
package/package.json
CHANGED
package/utils/arrayToTree.js
CHANGED
|
@@ -62,14 +62,11 @@ export function arrayToTree(items, id = "id", pid = "pid", children = "children"
|
|
|
62
62
|
const nodeObj = node;
|
|
63
63
|
const raw = nodeObj[sortKey];
|
|
64
64
|
if (typeof raw !== "number") {
|
|
65
|
-
return
|
|
65
|
+
return 1;
|
|
66
66
|
}
|
|
67
67
|
if (!Number.isFinite(raw)) {
|
|
68
68
|
return 999999;
|
|
69
69
|
}
|
|
70
|
-
if (raw < 1) {
|
|
71
|
-
return 999999;
|
|
72
|
-
}
|
|
73
70
|
return raw;
|
|
74
71
|
};
|
|
75
72
|
const compareNode = (a, b) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<PageTableDetail class="page-dict page-table" :columns="$Data.columns" :endpoints="$Data.endpoints">
|
|
3
3
|
<template #toolLeft>
|
|
4
4
|
<TButton theme="primary" @click="onAdd">
|
|
5
5
|
<template #icon>
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<template #dialogs="scope">
|
|
47
47
|
<EditDialog v-if="$Data.editVisible" v-model="$Data.editVisible" :action-type="$Data.actionType" :row-data="$Data.rowData" :type-list="$Data.typeList" @success="onDialogSuccess(scope.reload)" />
|
|
48
48
|
</template>
|
|
49
|
-
</
|
|
49
|
+
</PageTableDetail>
|
|
50
50
|
</template>
|
|
51
51
|
|
|
52
52
|
<script setup>
|
|
@@ -56,7 +56,7 @@ import { Button as TButton, Dropdown as TDropdown, DropdownItem as TDropdownItem
|
|
|
56
56
|
import { AddIcon, ChevronDownIcon, DeleteIcon, EditIcon, RefreshIcon, SearchIcon } from "tdesign-icons-vue-next";
|
|
57
57
|
import EditDialog from "./components/edit.vue";
|
|
58
58
|
import { $Http } from "@/plugins/http";
|
|
59
|
-
import
|
|
59
|
+
import PageTableDetail from "@/components/pagedTableDetail.vue";
|
|
60
60
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
61
61
|
|
|
62
62
|
const $Data = reactive({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<PageTableDetail class="page-dict-type page-table" :columns="$Data.columns" :endpoints="$Data.endpoints">
|
|
3
3
|
<template #toolLeft>
|
|
4
4
|
<TButton theme="primary" @click="onAdd">
|
|
5
5
|
<template #icon>
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<template #dialogs="scope">
|
|
44
44
|
<EditDialog v-if="$Data.editVisible" v-model="$Data.editVisible" :action-type="$Data.actionType" :row-data="$Data.rowData" @success="onDialogSuccess(scope.reload)" />
|
|
45
45
|
</template>
|
|
46
|
-
</
|
|
46
|
+
</PageTableDetail>
|
|
47
47
|
</template>
|
|
48
48
|
|
|
49
49
|
<script setup>
|
|
@@ -51,7 +51,7 @@ import { reactive } from "vue";
|
|
|
51
51
|
import { Button as TButton, Dropdown as TDropdown, DropdownItem as TDropdownItem, DropdownMenu as TDropdownMenu, Input as TInput } from "tdesign-vue-next";
|
|
52
52
|
import { AddIcon, ChevronDownIcon, DeleteIcon, EditIcon, RefreshIcon, SearchIcon } from "tdesign-icons-vue-next";
|
|
53
53
|
import EditDialog from "./components/edit.vue";
|
|
54
|
-
import
|
|
54
|
+
import PageTableDetail from "@/components/pagedTableDetail.vue";
|
|
55
55
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
56
56
|
|
|
57
57
|
const $Data = reactive({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<PageTableDetail class="page-sys-config page-table" :columns="$Data.columns" :endpoints="$Data.endpoints" :table-slot-names="['isSystem', 'valueType', 'state']">
|
|
3
3
|
<template #toolLeft="scope">
|
|
4
4
|
<TButton theme="primary" @click="onAdd">
|
|
5
5
|
<template #icon>
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
<template #dialogs="scope">
|
|
72
72
|
<EditDialog v-if="$Data.editVisible" v-model="$Data.editVisible" :action-type="$Data.actionType" :row-data="$Data.rowData" @success="onDialogSuccess(scope.reload)" />
|
|
73
73
|
</template>
|
|
74
|
-
</
|
|
74
|
+
</PageTableDetail>
|
|
75
75
|
</template>
|
|
76
76
|
|
|
77
77
|
<script setup>
|
|
@@ -80,7 +80,7 @@ import { Button as TButton, Dropdown as TDropdown, DropdownItem as TDropdownItem
|
|
|
80
80
|
import { AddIcon, ChevronDownIcon, DeleteIcon, EditIcon, RefreshIcon } from "tdesign-icons-vue-next";
|
|
81
81
|
import EditDialog from "./components/edit.vue";
|
|
82
82
|
import DetailPanel from "@/components/detailPanel.vue";
|
|
83
|
-
import
|
|
83
|
+
import PageTableDetail from "@/components/pagedTableDetail.vue";
|
|
84
84
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
85
85
|
|
|
86
86
|
// 响应式数据
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<PageTableDetail class="page-email page-table" :columns="$Data.columns" :endpoints="$Data.endpoints" :table-slot-names="['sendResult', 'sendTime']">
|
|
3
3
|
<template #toolLeft>
|
|
4
4
|
<TButton theme="primary" @click="openSendDialog">
|
|
5
5
|
<template #icon>
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
</TForm>
|
|
66
66
|
</PageDialog>
|
|
67
67
|
</template>
|
|
68
|
-
</
|
|
68
|
+
</PageTableDetail>
|
|
69
69
|
</template>
|
|
70
70
|
|
|
71
71
|
<script setup>
|
|
@@ -75,7 +75,7 @@ import { CheckCircleIcon, RefreshIcon, SendIcon } from "tdesign-icons-vue-next";
|
|
|
75
75
|
import PageDialog from "@/components/pageDialog.vue";
|
|
76
76
|
import DetailPanel from "@/components/detailPanel.vue";
|
|
77
77
|
import { $Http } from "@/plugins/http";
|
|
78
|
-
import
|
|
78
|
+
import PageTableDetail from "@/components/pagedTableDetail.vue";
|
|
79
79
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
80
80
|
const sendFormRef = ref(null);
|
|
81
81
|
|
|
@@ -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,7 +35,7 @@
|
|
|
35
35
|
</template>
|
|
36
36
|
</DetailPanel>
|
|
37
37
|
</template>
|
|
38
|
-
</
|
|
38
|
+
</PageTableDetail>
|
|
39
39
|
</template>
|
|
40
40
|
|
|
41
41
|
<script setup>
|
|
@@ -43,7 +43,7 @@ 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
45
|
import DetailPanel from "@/components/detailPanel.vue";
|
|
46
|
-
import
|
|
46
|
+
import PageTableDetail from "@/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,7 +58,7 @@
|
|
|
58
58
|
</template>
|
|
59
59
|
</DetailPanel>
|
|
60
60
|
</template>
|
|
61
|
-
</
|
|
61
|
+
</PageTableDetail>
|
|
62
62
|
</template>
|
|
63
63
|
|
|
64
64
|
<script setup>
|
|
@@ -66,7 +66,7 @@ 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
68
|
import DetailPanel from "@/components/detailPanel.vue";
|
|
69
|
-
import
|
|
69
|
+
import PageTableDetail from "@/components/pagedTableDetail.vue";
|
|
70
70
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
71
71
|
|
|
72
72
|
// 响应式数据
|
|
@@ -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 "@/components/pagedTableDetail.vue";
|
|
56
56
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
57
57
|
|
|
58
58
|
// 响应式数据
|
|
@@ -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 "@/components/pagedTableDetail.vue";
|
|
81
81
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
82
82
|
|
|
83
83
|
// 响应式数据
|