yh-pub 1.0.0 → 1.0.2
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/README.MD +19 -19
- package/layout/admin/adminIndex.vue +104 -104
- package/layout/admin/api/loginApi.js +24 -24
- package/layout/admin/api/routers.js +93 -93
- package/layout/admin/api/tenantApi.js +123 -123
- package/layout/admin/home/homeIndex.vue +25 -25
- package/layout/admin/login/login.vue +161 -161
- package/layout/admin/menu/MenuIndex.vue +648 -648
- package/layout/admin/menu/icon.vue +108 -108
- package/layout/admin/menu/iconList.js +934 -934
- package/layout/admin/saTenant/saTenant.vue +173 -173
- package/layout/admin/saTenant/saTenantForm.js +80 -80
- package/layout/admin/saTenant/saTenantForm.vue +61 -61
- package/layout/admin/saTenant/saTenantRoleManage.js +417 -417
- package/layout/admin/saTenant/saTenantRoleManage.vue +99 -99
- package/layout/admin/user/saUser.less +6 -6
- package/layout/admin/user/saUser.vue +72 -72
- package/layout/main/components/console/console.vue +205 -205
- package/layout/main/components/error-store/error-store.vue +72 -72
- package/layout/main/components/error-store/index.js +2 -2
- package/layout/main/components/fullscreen/fullscreen.vue +57 -57
- package/layout/main/components/fullscreen/index.js +2 -2
- package/layout/main/components/language/language.vue +71 -71
- package/layout/main/components/side-menu/side-menu.less +73 -73
- package/layout/main/components/side-menu/side-menu.vue +75 -75
- package/layout/main/components/tags-nav/tags-nav.less +44 -44
- package/layout/main/components/tags-nav/tags-nav.vue +144 -144
- package/layout/main/components/user/user.less +12 -12
- package/layout/main/components/user/user.vue +185 -185
- package/layout/main/home/home.vue +480 -480
- package/layout/main/home/index.js +2 -2
- package/layout/main/home/toDoList.vue +32 -32
- package/layout/main/login/login.less +93 -93
- package/layout/main/login/login.vue +151 -151
- package/layout/main/main.less +81 -81
- package/layout/main/main.vue +254 -202
- package/layout/main/system/dict.vue +64 -64
- package/layout/main/system/orgManage.vue +473 -473
- package/layout/main/system/roleManage.js +807 -755
- package/layout/main/system/roleManage.vue +424 -399
- package/package.json +11 -11
- package/view/basic/error-logger.vue +74 -74
- package/view/basic/error-page/401.vue +22 -22
- package/view/basic/error-page/404.vue +22 -22
- package/view/basic/error-page/500.vue +22 -22
- package/view/basic/error-page/back-btn-group.vue +48 -48
- package/view/basic/error-page/error-content.vue +28 -28
- package/view/basic/error-page/error.less +46 -46
- package/view/config/component/confFormItem.vue +49 -49
- package/view/config/config.scss +45 -45
- package/view/config/configIndex.vue +150 -150
- package/view/config/subPage/router-config.vue +4 -4
- package/view/config/subPage/sys-config.vue +249 -249
- package/view/window/IframeFReportView.vue +27 -27
- package/view/window/windowIndex.vue +22 -22
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<a-drawer
|
|
3
|
-
title="分配权限"
|
|
4
|
-
:closable="false"
|
|
5
|
-
:visible="visible"
|
|
6
|
-
:width="800"
|
|
7
|
-
@close="cancel"
|
|
8
|
-
draggable>
|
|
9
|
-
<a-row>
|
|
10
|
-
<a-col span="12">
|
|
11
|
-
<a-card title="菜单权限">
|
|
12
|
-
<div class="drawer-content">
|
|
13
|
-
<a-tree
|
|
14
|
-
ref="tree"
|
|
15
|
-
:tree-data="permData"
|
|
16
|
-
checkable
|
|
17
|
-
@select="selectTree"
|
|
18
|
-
@check="checkedMenuTree"
|
|
19
|
-
default-expand-parent
|
|
20
|
-
v-model="checkedMenuKeys"
|
|
21
|
-
:render="renderContent"></a-tree>
|
|
22
|
-
<a-spin
|
|
23
|
-
size="large"
|
|
24
|
-
fix
|
|
25
|
-
v-if="treeLoading"></a-spin>
|
|
26
|
-
</div>
|
|
27
|
-
</a-card>
|
|
28
|
-
</a-col>
|
|
29
|
-
<a-col span="12">
|
|
30
|
-
<a-card title="按钮权限">
|
|
31
|
-
<div
|
|
32
|
-
class="drawer-content"
|
|
33
|
-
style="margin-bottom: 40px; height: calc(100vh - 51px - 32px - 32px - 51px - 42px)">
|
|
34
|
-
<a-card
|
|
35
|
-
v-for="(item, key) in curWindowBtnList"
|
|
36
|
-
:key="key"
|
|
37
|
-
style="margin-top: 5px">
|
|
38
|
-
<p
|
|
39
|
-
slot="title"
|
|
40
|
-
style="margin-left: 10px">
|
|
41
|
-
{{ item.NAME }}
|
|
42
|
-
<a-checkbox
|
|
43
|
-
:indeterminate="item.indeterminate"
|
|
44
|
-
:checked="item.checkAll"
|
|
45
|
-
:key="item.ID"
|
|
46
|
-
@change="handleCheckAll($event, item, key)">
|
|
47
|
-
全选
|
|
48
|
-
</a-checkbox>
|
|
49
|
-
</p>
|
|
50
|
-
<a-checkbox-group
|
|
51
|
-
:value="item.checkChilds"
|
|
52
|
-
:options="
|
|
53
|
-
item.childs.map((item) => {
|
|
54
|
-
return { value: item.ID, label: item.NAME };
|
|
55
|
-
})
|
|
56
|
-
"
|
|
57
|
-
@change="checkAllGroupChange($event, key)"></a-checkbox-group>
|
|
58
|
-
</a-card>
|
|
59
|
-
<a-empty
|
|
60
|
-
description="暂无权限按钮"
|
|
61
|
-
v-if="curWindowBtnList.length === 0"></a-empty>
|
|
62
|
-
<div class="drawer-footer br">
|
|
63
|
-
<el-button
|
|
64
|
-
type="primary"
|
|
65
|
-
:loading="submitPermLoading"
|
|
66
|
-
@click="submitPermEdit">
|
|
67
|
-
提交
|
|
68
|
-
</el-button>
|
|
69
|
-
<el-button
|
|
70
|
-
text
|
|
71
|
-
@click="cancel">
|
|
72
|
-
取消
|
|
73
|
-
</el-button>
|
|
74
|
-
</div>
|
|
75
|
-
</div>
|
|
76
|
-
</a-card>
|
|
77
|
-
</a-col>
|
|
78
|
-
</a-row>
|
|
79
|
-
</a-drawer>
|
|
80
|
-
</template>
|
|
81
|
-
<script src="./saTenantRoleManage.js"></script>
|
|
82
|
-
<style>
|
|
83
|
-
.drawer-footer {
|
|
84
|
-
z-index: 10;
|
|
85
|
-
width: 100%;
|
|
86
|
-
position: absolute;
|
|
87
|
-
bottom: 0;
|
|
88
|
-
left: 0;
|
|
89
|
-
border-top: 1px solid #e8e8e8;
|
|
90
|
-
padding: 10px 16px;
|
|
91
|
-
text-align: left;
|
|
92
|
-
background: #fff;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.drawer-content {
|
|
96
|
-
height: calc(100vh - 51px - 32px - 32px - 51px - 2px);
|
|
97
|
-
overflow: auto;
|
|
98
|
-
}
|
|
99
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<a-drawer
|
|
3
|
+
title="分配权限"
|
|
4
|
+
:closable="false"
|
|
5
|
+
:visible="visible"
|
|
6
|
+
:width="800"
|
|
7
|
+
@close="cancel"
|
|
8
|
+
draggable>
|
|
9
|
+
<a-row>
|
|
10
|
+
<a-col span="12">
|
|
11
|
+
<a-card title="菜单权限">
|
|
12
|
+
<div class="drawer-content">
|
|
13
|
+
<a-tree
|
|
14
|
+
ref="tree"
|
|
15
|
+
:tree-data="permData"
|
|
16
|
+
checkable
|
|
17
|
+
@select="selectTree"
|
|
18
|
+
@check="checkedMenuTree"
|
|
19
|
+
default-expand-parent
|
|
20
|
+
v-model="checkedMenuKeys"
|
|
21
|
+
:render="renderContent"></a-tree>
|
|
22
|
+
<a-spin
|
|
23
|
+
size="large"
|
|
24
|
+
fix
|
|
25
|
+
v-if="treeLoading"></a-spin>
|
|
26
|
+
</div>
|
|
27
|
+
</a-card>
|
|
28
|
+
</a-col>
|
|
29
|
+
<a-col span="12">
|
|
30
|
+
<a-card title="按钮权限">
|
|
31
|
+
<div
|
|
32
|
+
class="drawer-content"
|
|
33
|
+
style="margin-bottom: 40px; height: calc(100vh - 51px - 32px - 32px - 51px - 42px)">
|
|
34
|
+
<a-card
|
|
35
|
+
v-for="(item, key) in curWindowBtnList"
|
|
36
|
+
:key="key"
|
|
37
|
+
style="margin-top: 5px">
|
|
38
|
+
<p
|
|
39
|
+
slot="title"
|
|
40
|
+
style="margin-left: 10px">
|
|
41
|
+
{{ item.NAME }}
|
|
42
|
+
<a-checkbox
|
|
43
|
+
:indeterminate="item.indeterminate"
|
|
44
|
+
:checked="item.checkAll"
|
|
45
|
+
:key="item.ID"
|
|
46
|
+
@change="handleCheckAll($event, item, key)">
|
|
47
|
+
全选
|
|
48
|
+
</a-checkbox>
|
|
49
|
+
</p>
|
|
50
|
+
<a-checkbox-group
|
|
51
|
+
:value="item.checkChilds"
|
|
52
|
+
:options="
|
|
53
|
+
item.childs.map((item) => {
|
|
54
|
+
return { value: item.ID, label: item.NAME };
|
|
55
|
+
})
|
|
56
|
+
"
|
|
57
|
+
@change="checkAllGroupChange($event, key)"></a-checkbox-group>
|
|
58
|
+
</a-card>
|
|
59
|
+
<a-empty
|
|
60
|
+
description="暂无权限按钮"
|
|
61
|
+
v-if="curWindowBtnList.length === 0"></a-empty>
|
|
62
|
+
<div class="drawer-footer br">
|
|
63
|
+
<el-button
|
|
64
|
+
type="primary"
|
|
65
|
+
:loading="submitPermLoading"
|
|
66
|
+
@click="submitPermEdit">
|
|
67
|
+
提交
|
|
68
|
+
</el-button>
|
|
69
|
+
<el-button
|
|
70
|
+
text
|
|
71
|
+
@click="cancel">
|
|
72
|
+
取消
|
|
73
|
+
</el-button>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</a-card>
|
|
77
|
+
</a-col>
|
|
78
|
+
</a-row>
|
|
79
|
+
</a-drawer>
|
|
80
|
+
</template>
|
|
81
|
+
<script src="./saTenantRoleManage.js"></script>
|
|
82
|
+
<style>
|
|
83
|
+
.drawer-footer {
|
|
84
|
+
z-index: 10;
|
|
85
|
+
width: 100%;
|
|
86
|
+
position: absolute;
|
|
87
|
+
bottom: 0;
|
|
88
|
+
left: 0;
|
|
89
|
+
border-top: 1px solid #e8e8e8;
|
|
90
|
+
padding: 10px 16px;
|
|
91
|
+
text-align: left;
|
|
92
|
+
background: #fff;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.drawer-content {
|
|
96
|
+
height: calc(100vh - 51px - 32px - 32px - 51px - 2px);
|
|
97
|
+
overflow: auto;
|
|
98
|
+
}
|
|
99
|
+
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.sa-user-avatar-dropdown {
|
|
2
|
-
.el-dropdown,
|
|
3
|
-
.el-badge {
|
|
4
|
-
height: 100%;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
1
|
+
.sa-user-avatar-dropdown {
|
|
2
|
+
.el-dropdown,
|
|
3
|
+
.el-badge {
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-dropdown
|
|
3
|
-
split-button
|
|
4
|
-
class="sa-user-avatar-dropdown"
|
|
5
|
-
@command="handleClick">
|
|
6
|
-
<el-badge>欢迎你,{{ userName }}</el-badge>
|
|
7
|
-
<template #dropdown>
|
|
8
|
-
<el-dropdown-menu>
|
|
9
|
-
<el-dropdown-item command="logout">退出登录</el-dropdown-item>
|
|
10
|
-
</el-dropdown-menu>
|
|
11
|
-
</template>
|
|
12
|
-
</el-dropdown>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script setup>
|
|
16
|
-
import "./saUser.less";
|
|
17
|
-
import axios from "@/libs/api.request";
|
|
18
|
-
import { clearStorage } from "@/libs/util";
|
|
19
|
-
import { useRouter } from "vue-router";
|
|
20
|
-
|
|
21
|
-
const router = useRouter();
|
|
22
|
-
|
|
23
|
-
const props = defineProps({
|
|
24
|
-
userName: {
|
|
25
|
-
type: String,
|
|
26
|
-
default: "",
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
function logout() {
|
|
31
|
-
return axios
|
|
32
|
-
.request({
|
|
33
|
-
url: "admin/loginOut",
|
|
34
|
-
method: "post",
|
|
35
|
-
})
|
|
36
|
-
.then(() => {
|
|
37
|
-
clearStorage();
|
|
38
|
-
router.push({
|
|
39
|
-
path: "/admin/login",
|
|
40
|
-
});
|
|
41
|
-
})
|
|
42
|
-
.catch((error) => {
|
|
43
|
-
console.error(error);
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
function handleClick(e) {
|
|
47
|
-
switch (e) {
|
|
48
|
-
case "logout":
|
|
49
|
-
logout();
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
</script>
|
|
54
|
-
|
|
55
|
-
<style lang="scss">
|
|
56
|
-
.sa-user-avatar-dropdown {
|
|
57
|
-
margin-right: 12px;
|
|
58
|
-
.el-button {
|
|
59
|
-
--el-button-text-color: var(--el-color-white);
|
|
60
|
-
--el-button-active-text-color: var(--el-color-white);
|
|
61
|
-
--el-button-hover-text-color: var(--el-color-white);
|
|
62
|
-
--el-button-bg-color: transparent;
|
|
63
|
-
--el-button-active-bg-color: transparent;
|
|
64
|
-
--el-button-hover-bg-color: transparent;
|
|
65
|
-
--el-button-outline-color: transparent;
|
|
66
|
-
--el-button-active-border-color: var(--el-color-white);
|
|
67
|
-
--el-button-hover-border-color: var(--el-color-white);
|
|
68
|
-
--el-button-border-color: var(--el-color-white);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
</style>
|
|
72
|
-
@/libs/api.request@/libs/util
|
|
1
|
+
<template>
|
|
2
|
+
<el-dropdown
|
|
3
|
+
split-button
|
|
4
|
+
class="sa-user-avatar-dropdown"
|
|
5
|
+
@command="handleClick">
|
|
6
|
+
<el-badge>欢迎你,{{ userName }}</el-badge>
|
|
7
|
+
<template #dropdown>
|
|
8
|
+
<el-dropdown-menu>
|
|
9
|
+
<el-dropdown-item command="logout">退出登录</el-dropdown-item>
|
|
10
|
+
</el-dropdown-menu>
|
|
11
|
+
</template>
|
|
12
|
+
</el-dropdown>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script setup>
|
|
16
|
+
import "./saUser.less";
|
|
17
|
+
import axios from "@/libs/api.request";
|
|
18
|
+
import { clearStorage } from "@/libs/util";
|
|
19
|
+
import { useRouter } from "vue-router";
|
|
20
|
+
|
|
21
|
+
const router = useRouter();
|
|
22
|
+
|
|
23
|
+
const props = defineProps({
|
|
24
|
+
userName: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "",
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
function logout() {
|
|
31
|
+
return axios
|
|
32
|
+
.request({
|
|
33
|
+
url: "admin/loginOut",
|
|
34
|
+
method: "post",
|
|
35
|
+
})
|
|
36
|
+
.then(() => {
|
|
37
|
+
clearStorage();
|
|
38
|
+
router.push({
|
|
39
|
+
path: "/admin/login",
|
|
40
|
+
});
|
|
41
|
+
})
|
|
42
|
+
.catch((error) => {
|
|
43
|
+
console.error(error);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function handleClick(e) {
|
|
47
|
+
switch (e) {
|
|
48
|
+
case "logout":
|
|
49
|
+
logout();
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
</script>
|
|
54
|
+
|
|
55
|
+
<style lang="scss">
|
|
56
|
+
.sa-user-avatar-dropdown {
|
|
57
|
+
margin-right: 12px;
|
|
58
|
+
.el-button {
|
|
59
|
+
--el-button-text-color: var(--el-color-white);
|
|
60
|
+
--el-button-active-text-color: var(--el-color-white);
|
|
61
|
+
--el-button-hover-text-color: var(--el-color-white);
|
|
62
|
+
--el-button-bg-color: transparent;
|
|
63
|
+
--el-button-active-bg-color: transparent;
|
|
64
|
+
--el-button-hover-bg-color: transparent;
|
|
65
|
+
--el-button-outline-color: transparent;
|
|
66
|
+
--el-button-active-border-color: var(--el-color-white);
|
|
67
|
+
--el-button-hover-border-color: var(--el-color-white);
|
|
68
|
+
--el-button-border-color: var(--el-color-white);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
</style>
|
|
72
|
+
@/libs/api.request@/libs/util
|