befly-admin-ui 1.10.7 → 1.10.9
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 +2 -1
- package/components/pageDialog.vue +1 -2
- package/components/pageTableDetail.vue +4 -2
- package/layouts/default.vue +4 -4
- package/package.json +2 -2
- package/utils/arrayToTree.js +14 -13
- package/views/config/dict/components/edit.vue +2 -2
- package/views/config/dict/index.vue +6 -5
- package/views/config/dictType/components/edit.vue +2 -2
- package/views/config/dictType/index.vue +5 -4
- package/views/config/system/components/edit.vue +2 -2
- package/views/config/system/index.vue +5 -4
- package/views/index/components/addonList.vue +3 -2
- package/views/index/components/environmentInfo.vue +2 -1
- package/views/index/components/operationLogs.vue +2 -2
- package/views/index/components/performanceMetrics.vue +2 -1
- package/views/index/components/quickActions.vue +1 -1
- package/views/index/components/serviceStatus.vue +2 -1
- package/views/index/components/systemNotifications.vue +2 -2
- package/views/index/components/systemOverview.vue +2 -2
- package/views/index/components/systemResources.vue +2 -1
- package/views/index/components/userInfo.vue +3 -2
- package/views/index/index.vue +3 -3
- package/views/log/email/index.vue +6 -5
- package/views/log/error/index.vue +3 -3
- package/views/log/login/index.vue +2 -2
- package/views/log/operate/index.vue +2 -2
- package/views/login_1/index.vue +5 -4
- package/views/people/admin/components/edit.vue +5 -5
- package/views/people/admin/index.vue +5 -4
- package/views/permission/api/index.vue +5 -4
- package/views/permission/menu/index.vue +4 -3
- package/views/permission/role/components/api.vue +3 -3
- package/views/permission/role/components/edit.vue +4 -4
- package/views/permission/role/components/menu.vue +4 -4
- package/views/permission/role/index.vue +6 -5
- package/views/resource/gallery/index.vue +4 -4
|
@@ -31,8 +31,9 @@
|
|
|
31
31
|
</template>
|
|
32
32
|
|
|
33
33
|
<script setup>
|
|
34
|
-
import { computed, reactive } from "vue";
|
|
35
34
|
import { Tag as TTag } from "tdesign-vue-next";
|
|
35
|
+
import { computed, reactive } from "vue";
|
|
36
|
+
|
|
36
37
|
import { formatFieldValue } from "../utils/formatFieldValue.js";
|
|
37
38
|
|
|
38
39
|
const $Prop = defineProps({
|
|
@@ -28,9 +28,8 @@
|
|
|
28
28
|
</template>
|
|
29
29
|
|
|
30
30
|
<script setup>
|
|
31
|
-
import { onBeforeUnmount, onMounted, reactive, watch } from "vue";
|
|
32
|
-
|
|
33
31
|
import { Button as TButton, Dialog as TDialog } from "tdesign-vue-next";
|
|
32
|
+
import { onBeforeUnmount, onMounted, reactive, watch } from "vue";
|
|
34
33
|
|
|
35
34
|
defineOptions({
|
|
36
35
|
inheritAttrs: false
|
|
@@ -41,11 +41,13 @@
|
|
|
41
41
|
</template>
|
|
42
42
|
|
|
43
43
|
<script setup>
|
|
44
|
-
import { computed, onMounted, reactive, useSlots } from "vue";
|
|
45
44
|
import { DialogPlugin, MessagePlugin, Pagination as TPagination, Table as TTable } from "tdesign-vue-next";
|
|
46
|
-
import
|
|
45
|
+
import { computed, onMounted, reactive, useSlots } from "vue";
|
|
46
|
+
|
|
47
47
|
import { $Http } from "@/plugins/http.js";
|
|
48
|
+
|
|
48
49
|
import { formatFieldValue } from "../utils/formatFieldValue.js";
|
|
50
|
+
import DetailPanel from "./detailPanel.vue";
|
|
49
51
|
|
|
50
52
|
const $Prop = defineProps({
|
|
51
53
|
columns: {
|
package/layouts/default.vue
CHANGED
|
@@ -98,16 +98,16 @@
|
|
|
98
98
|
</template>
|
|
99
99
|
|
|
100
100
|
<script setup>
|
|
101
|
-
import { arrayToTree } from "befly-admin-ui/utils/arrayToTree";
|
|
102
101
|
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
102
|
+
import { arrayToTree } from "befly-admin-ui/utils/arrayToTree";
|
|
103
103
|
import { hashPassword } from "befly-admin-ui/utils/hashPassword";
|
|
104
|
-
import { DialogPlugin, Dropdown as TDropdown, DropdownItem as TDropdownItem, DropdownMenu as TDropdownMenu, Form as TForm, FormItem as TFormItem, Input as TInput, Menu as TMenu, MenuItem as TMenuItem, MessagePlugin, Submenu as TSubmenu } from "tdesign-vue-next";
|
|
105
104
|
import { AppIcon, ChevronDownIcon, CloseCircleIcon, ControlPlatformIcon, HomeIcon, LockOnIcon, UserIcon } from "tdesign-icons-vue-next";
|
|
106
|
-
|
|
105
|
+
import { DialogPlugin, Dropdown as TDropdown, DropdownItem as TDropdownItem, DropdownMenu as TDropdownMenu, Form as TForm, FormItem as TFormItem, Input as TInput, Menu as TMenu, MenuItem as TMenuItem, MessagePlugin, Submenu as TSubmenu } from "tdesign-vue-next";
|
|
107
106
|
import { reactive, watch } from "vue";
|
|
108
107
|
import { useRoute, useRouter } from "vue-router";
|
|
109
|
-
|
|
108
|
+
|
|
110
109
|
import { $Config } from "@/plugins/config.js";
|
|
110
|
+
import { $Http } from "@/plugins/http.js";
|
|
111
111
|
import { $Store } from "@/plugins/store.js";
|
|
112
112
|
|
|
113
113
|
const router = useRouter();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "befly-admin-ui",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.9",
|
|
4
4
|
"gitHead": "071d17be177355cdd61f30659c6e4c5873f87d39",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Befly - 管理后台功能组件",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"registry": "https://registry.npmjs.org"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
|
-
"dev": "vite",
|
|
46
45
|
"build": "vite build",
|
|
46
|
+
"dev": "vite",
|
|
47
47
|
"preview": "vite preview"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
package/utils/arrayToTree.js
CHANGED
|
@@ -6,6 +6,16 @@
|
|
|
6
6
|
* - 内部会 clone 一份节点对象,并写入 children: []
|
|
7
7
|
* - 默认自带递归排序:按 sort 升序;sort 缺省/非法或 < 1 视为 999999;sort 相同按 id 自然序
|
|
8
8
|
*/
|
|
9
|
+
function normalizeTreeKey(value) {
|
|
10
|
+
if (typeof value === "string") {
|
|
11
|
+
return value;
|
|
12
|
+
}
|
|
13
|
+
if (typeof value === "number" && Number.isFinite(value)) {
|
|
14
|
+
return String(value);
|
|
15
|
+
}
|
|
16
|
+
return "";
|
|
17
|
+
}
|
|
18
|
+
|
|
9
19
|
export function arrayToTree(items, id = "id", pid = "pid", children = "children", sort = "sort") {
|
|
10
20
|
const idKey = typeof id === "string" && id.length > 0 ? id : "id";
|
|
11
21
|
const pidKey = typeof pid === "string" && pid.length > 0 ? pid : "pid";
|
|
@@ -14,21 +24,12 @@ export function arrayToTree(items, id = "id", pid = "pid", children = "children"
|
|
|
14
24
|
const map = new Map();
|
|
15
25
|
const flat = [];
|
|
16
26
|
const safeItems = Array.isArray(items) ? items : [];
|
|
17
|
-
const normalizeKey = (value) => {
|
|
18
|
-
if (typeof value === "string") {
|
|
19
|
-
return value;
|
|
20
|
-
}
|
|
21
|
-
if (typeof value === "number" && Number.isFinite(value)) {
|
|
22
|
-
return String(value);
|
|
23
|
-
}
|
|
24
|
-
return "";
|
|
25
|
-
};
|
|
26
27
|
for (const item of safeItems) {
|
|
27
28
|
const itemObj = typeof item === "object" && item !== null ? item : null;
|
|
28
29
|
const rawId = itemObj ? itemObj[idKey] : undefined;
|
|
29
30
|
const rawPid = itemObj ? itemObj[pidKey] : undefined;
|
|
30
|
-
const normalizedId =
|
|
31
|
-
const normalizedPid =
|
|
31
|
+
const normalizedId = normalizeTreeKey(rawId);
|
|
32
|
+
const normalizedPid = normalizeTreeKey(rawPid);
|
|
32
33
|
const nextNode = Object.assign({}, item);
|
|
33
34
|
const nextNodeObj = nextNode;
|
|
34
35
|
nextNodeObj[idKey] = normalizedId;
|
|
@@ -42,8 +43,8 @@ export function arrayToTree(items, id = "id", pid = "pid", children = "children"
|
|
|
42
43
|
const tree = [];
|
|
43
44
|
for (const node of flat) {
|
|
44
45
|
const nodeObj = node;
|
|
45
|
-
const selfId =
|
|
46
|
-
const parentId =
|
|
46
|
+
const selfId = normalizeTreeKey(nodeObj[idKey]);
|
|
47
|
+
const parentId = normalizeTreeKey(nodeObj[pidKey]);
|
|
47
48
|
if (parentId.length > 0 && parentId !== selfId) {
|
|
48
49
|
const parent = map.get(parentId);
|
|
49
50
|
if (parent) {
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
</template>
|
|
33
33
|
|
|
34
34
|
<script setup>
|
|
35
|
+
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
36
|
+
import { Form as TForm, FormItem as TFormItem, Input as TInput, Select as TSelect, Option as TOption, Textarea as TTextarea, InputNumber as TInputNumber, MessagePlugin } from "tdesign-vue-next";
|
|
35
37
|
import { computed, reactive } from "vue";
|
|
36
38
|
|
|
37
|
-
import { Form as TForm, FormItem as TFormItem, Input as TInput, Select as TSelect, Option as TOption, Textarea as TTextarea, InputNumber as TInputNumber, MessagePlugin } from "tdesign-vue-next";
|
|
38
|
-
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
39
39
|
import { $Http } from "@/plugins/http.js";
|
|
40
40
|
|
|
41
41
|
const $Prop = defineProps({
|
|
@@ -45,14 +45,15 @@
|
|
|
45
45
|
</template>
|
|
46
46
|
|
|
47
47
|
<script setup>
|
|
48
|
+
import PageTableDetail from "befly-admin-ui/components/pageTableDetail.vue";
|
|
49
|
+
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
50
|
+
import { AddIcon, ChevronDownIcon, DeleteIcon, EditIcon, SearchIcon } from "tdesign-icons-vue-next";
|
|
51
|
+
import { Button as TButton, Dropdown as TDropdown, DropdownItem as TDropdownItem, DropdownMenu as TDropdownMenu, Input as TInput, Option as TOption, Select as TSelect, MessagePlugin } from "tdesign-vue-next";
|
|
48
52
|
import { onMounted, reactive } from "vue";
|
|
49
53
|
|
|
50
|
-
import { Button as TButton, Dropdown as TDropdown, DropdownItem as TDropdownItem, DropdownMenu as TDropdownMenu, Input as TInput, Option as TOption, Select as TSelect, MessagePlugin } from "tdesign-vue-next";
|
|
51
|
-
import { AddIcon, ChevronDownIcon, DeleteIcon, EditIcon, SearchIcon } from "tdesign-icons-vue-next";
|
|
52
|
-
import EditDialog from "./components/edit.vue";
|
|
53
54
|
import { $Http } from "@/plugins/http.js";
|
|
54
|
-
|
|
55
|
-
import
|
|
55
|
+
|
|
56
|
+
import EditDialog from "./components/edit.vue";
|
|
56
57
|
|
|
57
58
|
const $Data = reactive({
|
|
58
59
|
typeList: [],
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
</template>
|
|
28
28
|
|
|
29
29
|
<script setup>
|
|
30
|
+
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
31
|
+
import { Form as TForm, FormItem as TFormItem, Input as TInput, Textarea as TTextarea, InputNumber as TInputNumber, MessagePlugin } from "tdesign-vue-next";
|
|
30
32
|
import { computed, reactive } from "vue";
|
|
31
33
|
|
|
32
|
-
import { Form as TForm, FormItem as TFormItem, Input as TInput, Textarea as TTextarea, InputNumber as TInputNumber, MessagePlugin } from "tdesign-vue-next";
|
|
33
|
-
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
34
34
|
import { $Http } from "@/plugins/http.js";
|
|
35
35
|
|
|
36
36
|
const $Prop = defineProps({
|
|
@@ -42,12 +42,13 @@
|
|
|
42
42
|
</template>
|
|
43
43
|
|
|
44
44
|
<script setup>
|
|
45
|
-
import { reactive } from "vue";
|
|
46
|
-
import { Button as TButton, Dropdown as TDropdown, DropdownItem as TDropdownItem, DropdownMenu as TDropdownMenu, Input as TInput } from "tdesign-vue-next";
|
|
47
|
-
import { AddIcon, ChevronDownIcon, DeleteIcon, EditIcon, SearchIcon } from "tdesign-icons-vue-next";
|
|
48
|
-
import EditDialog from "./components/edit.vue";
|
|
49
45
|
import PageTableDetail from "befly-admin-ui/components/pageTableDetail.vue";
|
|
50
46
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
47
|
+
import { AddIcon, ChevronDownIcon, DeleteIcon, EditIcon, SearchIcon } from "tdesign-icons-vue-next";
|
|
48
|
+
import { Button as TButton, Dropdown as TDropdown, DropdownItem as TDropdownItem, DropdownMenu as TDropdownMenu, Input as TInput } from "tdesign-vue-next";
|
|
49
|
+
import { reactive } from "vue";
|
|
50
|
+
|
|
51
|
+
import EditDialog from "./components/edit.vue";
|
|
51
52
|
|
|
52
53
|
const $Data = reactive({
|
|
53
54
|
searchKeyword: "",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
</template>
|
|
52
52
|
|
|
53
53
|
<script setup>
|
|
54
|
+
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
55
|
+
import { Form as TForm, FormItem as TFormItem, Input as TInput, Textarea as TTextarea, InputNumber as TInputNumber, Select as TSelect, Option as TOption, RadioGroup as TRadioGroup, Radio as TRadio, MessagePlugin } from "tdesign-vue-next";
|
|
54
56
|
import { computed, reactive } from "vue";
|
|
55
57
|
|
|
56
|
-
import { Form as TForm, FormItem as TFormItem, Input as TInput, Textarea as TTextarea, InputNumber as TInputNumber, Select as TSelect, Option as TOption, RadioGroup as TRadioGroup, Radio as TRadio, MessagePlugin } from "tdesign-vue-next";
|
|
57
|
-
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
58
58
|
import { $Http } from "@/plugins/http.js";
|
|
59
59
|
|
|
60
60
|
const $Prop = defineProps({
|
|
@@ -67,13 +67,14 @@
|
|
|
67
67
|
</template>
|
|
68
68
|
|
|
69
69
|
<script setup>
|
|
70
|
-
import { reactive } from "vue";
|
|
71
|
-
import { Button as TButton, Dropdown as TDropdown, DropdownItem as TDropdownItem, DropdownMenu as TDropdownMenu, Option as TOption, Select as TSelect, Tag as TTag } from "tdesign-vue-next";
|
|
72
|
-
import { AddIcon, ChevronDownIcon, DeleteIcon, EditIcon } from "tdesign-icons-vue-next";
|
|
73
|
-
import EditDialog from "./components/edit.vue";
|
|
74
70
|
import DetailPanel from "befly-admin-ui/components/detailPanel.vue";
|
|
75
71
|
import PageTableDetail from "befly-admin-ui/components/pageTableDetail.vue";
|
|
76
72
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
73
|
+
import { AddIcon, ChevronDownIcon, DeleteIcon, EditIcon } from "tdesign-icons-vue-next";
|
|
74
|
+
import { Button as TButton, Dropdown as TDropdown, DropdownItem as TDropdownItem, DropdownMenu as TDropdownMenu, Option as TOption, Select as TSelect, Tag as TTag } from "tdesign-vue-next";
|
|
75
|
+
import { reactive } from "vue";
|
|
76
|
+
|
|
77
|
+
import EditDialog from "./components/edit.vue";
|
|
77
78
|
|
|
78
79
|
// 响应式数据
|
|
79
80
|
const $Data = reactive({
|
|
@@ -24,9 +24,10 @@
|
|
|
24
24
|
</template>
|
|
25
25
|
|
|
26
26
|
<script setup>
|
|
27
|
-
import { reactive } from "vue";
|
|
28
|
-
import { Tag as TTag } from "tdesign-vue-next";
|
|
29
27
|
import { MenuIcon, SystemStorageIcon } from "tdesign-icons-vue-next";
|
|
28
|
+
import { Tag as TTag } from "tdesign-vue-next";
|
|
29
|
+
import { reactive } from "vue";
|
|
30
|
+
|
|
30
31
|
import { $Http } from "@/plugins/http.js";
|
|
31
32
|
|
|
32
33
|
// 组件内部数据
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
</template>
|
|
35
35
|
|
|
36
36
|
<script setup>
|
|
37
|
-
import { reactive } from "vue";
|
|
38
|
-
import { Tag as TTag } from "tdesign-vue-next";
|
|
39
37
|
import { CodeIcon } from "tdesign-icons-vue-next";
|
|
38
|
+
import { Tag as TTag } from "tdesign-vue-next";
|
|
39
|
+
import { reactive } from "vue";
|
|
40
40
|
|
|
41
41
|
// 组件内部数据
|
|
42
42
|
const $Const = {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
</template>
|
|
13
13
|
|
|
14
14
|
<script setup>
|
|
15
|
-
import { Button as TButton } from "tdesign-vue-next";
|
|
16
15
|
import { RefreshIcon } from "tdesign-icons-vue-next";
|
|
16
|
+
import { Button as TButton } from "tdesign-vue-next";
|
|
17
17
|
|
|
18
18
|
const handleClearCache = () => {
|
|
19
19
|
// TODO: 接入刷新缓存接口
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
</template>
|
|
27
27
|
|
|
28
28
|
<script setup>
|
|
29
|
-
import { reactive } from "vue";
|
|
30
|
-
import { Tag as TTag } from "tdesign-vue-next";
|
|
31
29
|
import { CheckCircleIcon, CloseCircleIcon, ErrorTriangleIcon, InfoCircleIcon, NotificationIcon } from "tdesign-icons-vue-next";
|
|
30
|
+
import { Tag as TTag } from "tdesign-vue-next";
|
|
31
|
+
import { reactive } from "vue";
|
|
32
32
|
|
|
33
33
|
// 组件内部数据
|
|
34
34
|
const $Const = {
|
|
@@ -190,9 +190,9 @@
|
|
|
190
190
|
</template>
|
|
191
191
|
|
|
192
192
|
<script setup>
|
|
193
|
-
import { computed, reactive } from "vue";
|
|
194
|
-
import { Option as TOption, Select as TSelect } from "tdesign-vue-next";
|
|
195
193
|
import { InfoCircleIcon, TrendingUpIcon } from "tdesign-icons-vue-next";
|
|
194
|
+
import { Option as TOption, Select as TSelect } from "tdesign-vue-next";
|
|
195
|
+
import { computed, reactive } from "vue";
|
|
196
196
|
|
|
197
197
|
import { $Config } from "@/plugins/config.js";
|
|
198
198
|
import { $Http } from "@/plugins/http.js";
|
|
@@ -39,9 +39,10 @@
|
|
|
39
39
|
</template>
|
|
40
40
|
|
|
41
41
|
<script setup>
|
|
42
|
-
import { reactive } from "vue";
|
|
43
|
-
import { Button as TButton, MessagePlugin } from "tdesign-vue-next";
|
|
44
42
|
import { CallIcon, MailIcon, RefreshIcon, TimeIcon, UserIcon } from "tdesign-icons-vue-next";
|
|
43
|
+
import { Button as TButton, MessagePlugin } from "tdesign-vue-next";
|
|
44
|
+
import { reactive } from "vue";
|
|
45
|
+
|
|
45
46
|
import { $Http } from "@/plugins/http.js";
|
|
46
47
|
|
|
47
48
|
// 响应式数据
|
package/views/index/index.vue
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
</template>
|
|
21
21
|
|
|
22
22
|
<script setup>
|
|
23
|
-
import
|
|
23
|
+
import EnvironmentInfo from "./components/environmentInfo.vue";
|
|
24
|
+
import PerformanceMetrics from "./components/performanceMetrics.vue";
|
|
24
25
|
import ServiceStatus from "./components/serviceStatus.vue";
|
|
26
|
+
import SystemOverview from "./components/systemOverview.vue";
|
|
25
27
|
import SystemResources from "./components/systemResources.vue";
|
|
26
|
-
import PerformanceMetrics from "./components/performanceMetrics.vue";
|
|
27
|
-
import EnvironmentInfo from "./components/environmentInfo.vue";
|
|
28
28
|
</script>
|
|
29
29
|
|
|
30
30
|
<style scoped lang="scss">
|
|
@@ -70,14 +70,15 @@
|
|
|
70
70
|
</template>
|
|
71
71
|
|
|
72
72
|
<script setup>
|
|
73
|
-
import { reactive } from "vue";
|
|
74
|
-
import { Button as TButton, Form as TForm, FormItem as TFormItem, Input as TInput, MessagePlugin, Tag as TTag, Textarea as TTextarea } from "tdesign-vue-next";
|
|
75
|
-
import { CheckCircleIcon, SendIcon } from "tdesign-icons-vue-next";
|
|
76
|
-
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
77
73
|
import DetailPanel from "befly-admin-ui/components/detailPanel.vue";
|
|
78
|
-
import
|
|
74
|
+
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
79
75
|
import PageTableDetail from "befly-admin-ui/components/pageTableDetail.vue";
|
|
80
76
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
77
|
+
import { CheckCircleIcon, SendIcon } from "tdesign-icons-vue-next";
|
|
78
|
+
import { Button as TButton, Form as TForm, FormItem as TFormItem, Input as TInput, MessagePlugin, Tag as TTag, Textarea as TTextarea } from "tdesign-vue-next";
|
|
79
|
+
import { reactive } from "vue";
|
|
80
|
+
|
|
81
|
+
import { $Http } from "@/plugins/http.js";
|
|
81
82
|
|
|
82
83
|
const $Const = {
|
|
83
84
|
createSendForm() {
|
|
@@ -91,12 +91,12 @@
|
|
|
91
91
|
</template>
|
|
92
92
|
|
|
93
93
|
<script setup>
|
|
94
|
-
import { reactive } from "vue";
|
|
95
|
-
import { Button as TButton, Input as TInput, MessagePlugin, Option as TOption, Select as TSelect, Tag as TTag } from "tdesign-vue-next";
|
|
96
|
-
import { SearchIcon } from "tdesign-icons-vue-next";
|
|
97
94
|
import DetailPanel from "befly-admin-ui/components/detailPanel.vue";
|
|
98
95
|
import PageTableDetail from "befly-admin-ui/components/pageTableDetail.vue";
|
|
99
96
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
97
|
+
import { SearchIcon } from "tdesign-icons-vue-next";
|
|
98
|
+
import { Button as TButton, Input as TInput, MessagePlugin, Option as TOption, Select as TSelect, Tag as TTag } from "tdesign-vue-next";
|
|
99
|
+
import { reactive } from "vue";
|
|
100
100
|
|
|
101
101
|
const $Data = reactive({
|
|
102
102
|
columns: withDefaultColumns([
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
</template>
|
|
32
32
|
|
|
33
33
|
<script setup>
|
|
34
|
-
import { reactive } from "vue";
|
|
35
|
-
import { Tag as TTag } from "tdesign-vue-next";
|
|
36
34
|
import DetailPanel from "befly-admin-ui/components/detailPanel.vue";
|
|
37
35
|
import PageTableDetail from "befly-admin-ui/components/pageTableDetail.vue";
|
|
38
36
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
37
|
+
import { Tag as TTag } from "tdesign-vue-next";
|
|
38
|
+
import { reactive } from "vue";
|
|
39
39
|
|
|
40
40
|
// 响应式数据
|
|
41
41
|
const $Data = reactive({
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
</template>
|
|
55
55
|
|
|
56
56
|
<script setup>
|
|
57
|
-
import { reactive } from "vue";
|
|
58
|
-
import { Option as TOption, Select as TSelect, Tag as TTag } from "tdesign-vue-next";
|
|
59
57
|
import DetailPanel from "befly-admin-ui/components/detailPanel.vue";
|
|
60
58
|
import PageTableDetail from "befly-admin-ui/components/pageTableDetail.vue";
|
|
61
59
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
60
|
+
import { Option as TOption, Select as TSelect, Tag as TTag } from "tdesign-vue-next";
|
|
61
|
+
import { reactive } from "vue";
|
|
62
62
|
|
|
63
63
|
// 响应式数据
|
|
64
64
|
const $Data = reactive({
|
package/views/login_1/index.vue
CHANGED
|
@@ -74,13 +74,14 @@
|
|
|
74
74
|
</template>
|
|
75
75
|
|
|
76
76
|
<script setup>
|
|
77
|
+
import { hashPassword } from "befly-admin-ui/utils/hashPassword";
|
|
78
|
+
import { LockOnIcon, UserIcon } from "tdesign-icons-vue-next";
|
|
79
|
+
import { Form as TForm, FormItem as TFormItem, Input as TInput, Button as TButton, Checkbox as TCheckbox, InputAdornment as TInputAdornment, Select as TSelect, Option as TOption, MessagePlugin } from "tdesign-vue-next";
|
|
77
80
|
import { reactive } from "vue";
|
|
78
81
|
import { useRouter } from "vue-router";
|
|
79
|
-
|
|
80
|
-
import { LockOnIcon, UserIcon } from "tdesign-icons-vue-next";
|
|
81
|
-
import { hashPassword } from "befly-admin-ui/utils/hashPassword";
|
|
82
|
-
import { $Http } from "@/plugins/http.js";
|
|
82
|
+
|
|
83
83
|
import { $Config } from "@/plugins/config.js";
|
|
84
|
+
import { $Http } from "@/plugins/http.js";
|
|
84
85
|
import { $Store } from "@/plugins/store.js";
|
|
85
86
|
|
|
86
87
|
const router = useRouter();
|
|
@@ -25,8 +25,9 @@
|
|
|
25
25
|
</template>
|
|
26
26
|
|
|
27
27
|
<script setup>
|
|
28
|
-
import
|
|
29
|
-
|
|
28
|
+
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
29
|
+
import { fieldClear } from "befly-admin-ui/utils/fieldClear";
|
|
30
|
+
import { hashPassword } from "befly-admin-ui/utils/hashPassword";
|
|
30
31
|
import {
|
|
31
32
|
//
|
|
32
33
|
Form as TForm,
|
|
@@ -37,10 +38,9 @@ import {
|
|
|
37
38
|
Radio as TRadio,
|
|
38
39
|
MessagePlugin
|
|
39
40
|
} from "tdesign-vue-next";
|
|
40
|
-
import
|
|
41
|
+
import { computed, reactive } from "vue";
|
|
42
|
+
|
|
41
43
|
import { $Http } from "@/plugins/http.js";
|
|
42
|
-
import { fieldClear } from "befly-admin-ui/utils/fieldClear";
|
|
43
|
-
import { hashPassword } from "befly-admin-ui/utils/hashPassword";
|
|
44
44
|
|
|
45
45
|
const $Prop = defineProps({
|
|
46
46
|
modelValue: {
|
|
@@ -40,12 +40,13 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
|
|
42
42
|
<script setup>
|
|
43
|
-
import { reactive } from "vue";
|
|
44
|
-
import { Button as TButton, Dropdown as TDropdown, DropdownItem as TDropdownItem, DropdownMenu as TDropdownMenu, Tag as TTag } from "tdesign-vue-next";
|
|
45
|
-
import { AddIcon, ChevronDownIcon, DeleteIcon, EditIcon } from "tdesign-icons-vue-next";
|
|
46
|
-
import EditDialog from "./components/edit.vue";
|
|
47
43
|
import PageTableDetail from "befly-admin-ui/components/pageTableDetail.vue";
|
|
48
44
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
45
|
+
import { AddIcon, ChevronDownIcon, DeleteIcon, EditIcon } from "tdesign-icons-vue-next";
|
|
46
|
+
import { Button as TButton, Dropdown as TDropdown, DropdownItem as TDropdownItem, DropdownMenu as TDropdownMenu, Tag as TTag } from "tdesign-vue-next";
|
|
47
|
+
import { reactive } from "vue";
|
|
48
|
+
|
|
49
|
+
import EditDialog from "./components/edit.vue";
|
|
49
50
|
|
|
50
51
|
// 响应式数据
|
|
51
52
|
const $Data = reactive({
|
|
@@ -52,12 +52,13 @@
|
|
|
52
52
|
</template>
|
|
53
53
|
|
|
54
54
|
<script setup>
|
|
55
|
-
import { reactive } from "vue";
|
|
56
|
-
import { Table as TTable, Tag as TTag, Input as TInput, MessagePlugin } from "tdesign-vue-next";
|
|
57
|
-
import { SearchIcon } from "tdesign-icons-vue-next";
|
|
58
55
|
import DetailPanel from "befly-admin-ui/components/detailPanel.vue";
|
|
59
|
-
import { $Http } from "@/plugins/http.js";
|
|
60
56
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
57
|
+
import { SearchIcon } from "tdesign-icons-vue-next";
|
|
58
|
+
import { Table as TTable, Tag as TTag, Input as TInput, MessagePlugin } from "tdesign-vue-next";
|
|
59
|
+
import { reactive } from "vue";
|
|
60
|
+
|
|
61
|
+
import { $Http } from "@/plugins/http.js";
|
|
61
62
|
|
|
62
63
|
// 响应式数据
|
|
63
64
|
const $Data = reactive({
|
|
@@ -29,12 +29,13 @@
|
|
|
29
29
|
</template>
|
|
30
30
|
|
|
31
31
|
<script setup>
|
|
32
|
-
import { reactive } from "vue";
|
|
33
|
-
import { Table as TTable, Tag as TTag, MessagePlugin } from "tdesign-vue-next";
|
|
34
32
|
import DetailPanel from "befly-admin-ui/components/detailPanel.vue";
|
|
35
|
-
import { $Http } from "@/plugins/http.js";
|
|
36
33
|
import { arrayToTree } from "befly-admin-ui/utils/arrayToTree";
|
|
37
34
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
35
|
+
import { Table as TTable, Tag as TTag, MessagePlugin } from "tdesign-vue-next";
|
|
36
|
+
import { reactive } from "vue";
|
|
37
|
+
|
|
38
|
+
import { $Http } from "@/plugins/http.js";
|
|
38
39
|
|
|
39
40
|
// 响应式数据
|
|
40
41
|
const $Data = reactive({
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
</template>
|
|
33
33
|
|
|
34
34
|
<script setup>
|
|
35
|
+
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
36
|
+
import { SearchIcon } from "tdesign-icons-vue-next";
|
|
37
|
+
import { Input as TInput, CheckboxGroup as TCheckboxGroup, Checkbox as TCheckbox, MessagePlugin } from "tdesign-vue-next";
|
|
35
38
|
import { computed, reactive } from "vue";
|
|
36
39
|
|
|
37
|
-
import { Input as TInput, CheckboxGroup as TCheckboxGroup, Checkbox as TCheckbox, MessagePlugin } from "tdesign-vue-next";
|
|
38
|
-
import { SearchIcon } from "tdesign-icons-vue-next";
|
|
39
|
-
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
40
40
|
import { $Http } from "@/plugins/http.js";
|
|
41
41
|
|
|
42
42
|
const $Prop = defineProps({
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
</template>
|
|
37
37
|
|
|
38
38
|
<script setup>
|
|
39
|
-
import
|
|
40
|
-
|
|
39
|
+
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
40
|
+
import { fieldClear } from "befly-admin-ui/utils/fieldClear";
|
|
41
41
|
import {
|
|
42
42
|
//
|
|
43
43
|
Form as TForm,
|
|
@@ -48,9 +48,9 @@ import {
|
|
|
48
48
|
Radio as TRadio,
|
|
49
49
|
MessagePlugin
|
|
50
50
|
} from "tdesign-vue-next";
|
|
51
|
-
import
|
|
51
|
+
import { computed, reactive, ref } from "vue";
|
|
52
|
+
|
|
52
53
|
import { $Http } from "@/plugins/http.js";
|
|
53
|
-
import { fieldClear } from "befly-admin-ui/utils/fieldClear";
|
|
54
54
|
|
|
55
55
|
const $Prop = defineProps({
|
|
56
56
|
modelValue: {
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
</template>
|
|
34
34
|
|
|
35
35
|
<script setup>
|
|
36
|
+
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
37
|
+
import { arrayToTree } from "befly-admin-ui/utils/arrayToTree";
|
|
38
|
+
import { SearchIcon } from "tdesign-icons-vue-next";
|
|
39
|
+
import { CheckboxGroup as TCheckboxGroup, Checkbox as TCheckbox, Input as TInput, MessagePlugin } from "tdesign-vue-next";
|
|
36
40
|
import { computed, reactive } from "vue";
|
|
37
41
|
|
|
38
|
-
import { CheckboxGroup as TCheckboxGroup, Checkbox as TCheckbox, Input as TInput, MessagePlugin } from "tdesign-vue-next";
|
|
39
|
-
import { SearchIcon } from "tdesign-icons-vue-next";
|
|
40
|
-
import PageDialog from "befly-admin-ui/components/pageDialog.vue";
|
|
41
42
|
import { $Http } from "@/plugins/http.js";
|
|
42
|
-
import { arrayToTree } from "befly-admin-ui/utils/arrayToTree";
|
|
43
43
|
|
|
44
44
|
const $Prop = defineProps({
|
|
45
45
|
modelValue: {
|
|
@@ -63,14 +63,15 @@
|
|
|
63
63
|
</template>
|
|
64
64
|
|
|
65
65
|
<script setup>
|
|
66
|
-
import
|
|
67
|
-
import {
|
|
66
|
+
import PageTableDetail from "befly-admin-ui/components/pageTableDetail.vue";
|
|
67
|
+
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
68
68
|
import { AddIcon, ChevronDownIcon, CodeIcon, DeleteIcon, EditIcon, SettingIcon } from "tdesign-icons-vue-next";
|
|
69
|
+
import { Button as TButton, Dropdown as TDropdown, DropdownItem as TDropdownItem, DropdownMenu as TDropdownMenu, Tag as TTag } from "tdesign-vue-next";
|
|
70
|
+
import { reactive } from "vue";
|
|
71
|
+
|
|
72
|
+
import ApiDialog from "./components/api.vue";
|
|
69
73
|
import EditDialog from "./components/edit.vue";
|
|
70
74
|
import MenuDialog from "./components/menu.vue";
|
|
71
|
-
import ApiDialog from "./components/api.vue";
|
|
72
|
-
import PageTableDetail from "befly-admin-ui/components/pageTableDetail.vue";
|
|
73
|
-
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
74
75
|
|
|
75
76
|
// 响应式数据
|
|
76
77
|
const $Data = reactive({
|
|
@@ -76,13 +76,13 @@
|
|
|
76
76
|
</template>
|
|
77
77
|
|
|
78
78
|
<script setup>
|
|
79
|
-
import { reactive } from "vue";
|
|
80
|
-
import { Button as TButton, Image as TImage, Input as TInput, MessagePlugin, Tag as TTag, Upload as TUpload } from "tdesign-vue-next";
|
|
81
|
-
import { SearchIcon, UploadIcon } from "tdesign-icons-vue-next";
|
|
82
|
-
|
|
83
79
|
import DetailPanel from "befly-admin-ui/components/detailPanel.vue";
|
|
84
80
|
import PageTableDetail from "befly-admin-ui/components/pageTableDetail.vue";
|
|
85
81
|
import { withDefaultColumns } from "befly-admin-ui/utils/withDefaultColumns";
|
|
82
|
+
import { SearchIcon, UploadIcon } from "tdesign-icons-vue-next";
|
|
83
|
+
import { Button as TButton, Image as TImage, Input as TInput, MessagePlugin, Tag as TTag, Upload as TUpload } from "tdesign-vue-next";
|
|
84
|
+
import { reactive } from "vue";
|
|
85
|
+
|
|
86
86
|
import { $Config } from "@/plugins/config.js";
|
|
87
87
|
import { $Store } from "@/plugins/store.js";
|
|
88
88
|
|