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.
Files changed (55) hide show
  1. package/README.MD +19 -19
  2. package/layout/admin/adminIndex.vue +104 -104
  3. package/layout/admin/api/loginApi.js +24 -24
  4. package/layout/admin/api/routers.js +93 -93
  5. package/layout/admin/api/tenantApi.js +123 -123
  6. package/layout/admin/home/homeIndex.vue +25 -25
  7. package/layout/admin/login/login.vue +161 -161
  8. package/layout/admin/menu/MenuIndex.vue +648 -648
  9. package/layout/admin/menu/icon.vue +108 -108
  10. package/layout/admin/menu/iconList.js +934 -934
  11. package/layout/admin/saTenant/saTenant.vue +173 -173
  12. package/layout/admin/saTenant/saTenantForm.js +80 -80
  13. package/layout/admin/saTenant/saTenantForm.vue +61 -61
  14. package/layout/admin/saTenant/saTenantRoleManage.js +417 -417
  15. package/layout/admin/saTenant/saTenantRoleManage.vue +99 -99
  16. package/layout/admin/user/saUser.less +6 -6
  17. package/layout/admin/user/saUser.vue +72 -72
  18. package/layout/main/components/console/console.vue +205 -205
  19. package/layout/main/components/error-store/error-store.vue +72 -72
  20. package/layout/main/components/error-store/index.js +2 -2
  21. package/layout/main/components/fullscreen/fullscreen.vue +57 -57
  22. package/layout/main/components/fullscreen/index.js +2 -2
  23. package/layout/main/components/language/language.vue +71 -71
  24. package/layout/main/components/side-menu/side-menu.less +73 -73
  25. package/layout/main/components/side-menu/side-menu.vue +75 -75
  26. package/layout/main/components/tags-nav/tags-nav.less +44 -44
  27. package/layout/main/components/tags-nav/tags-nav.vue +144 -144
  28. package/layout/main/components/user/user.less +12 -12
  29. package/layout/main/components/user/user.vue +185 -185
  30. package/layout/main/home/home.vue +480 -480
  31. package/layout/main/home/index.js +2 -2
  32. package/layout/main/home/toDoList.vue +32 -32
  33. package/layout/main/login/login.less +93 -93
  34. package/layout/main/login/login.vue +151 -151
  35. package/layout/main/main.less +81 -81
  36. package/layout/main/main.vue +254 -202
  37. package/layout/main/system/dict.vue +64 -64
  38. package/layout/main/system/orgManage.vue +473 -473
  39. package/layout/main/system/roleManage.js +807 -755
  40. package/layout/main/system/roleManage.vue +424 -399
  41. package/package.json +11 -11
  42. package/view/basic/error-logger.vue +74 -74
  43. package/view/basic/error-page/401.vue +22 -22
  44. package/view/basic/error-page/404.vue +22 -22
  45. package/view/basic/error-page/500.vue +22 -22
  46. package/view/basic/error-page/back-btn-group.vue +48 -48
  47. package/view/basic/error-page/error-content.vue +28 -28
  48. package/view/basic/error-page/error.less +46 -46
  49. package/view/config/component/confFormItem.vue +49 -49
  50. package/view/config/config.scss +45 -45
  51. package/view/config/configIndex.vue +150 -150
  52. package/view/config/subPage/router-config.vue +4 -4
  53. package/view/config/subPage/sys-config.vue +249 -249
  54. package/view/window/IframeFReportView.vue +27 -27
  55. package/view/window/windowIndex.vue +22 -22
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
- {
2
- "name": "yh-pub",
3
- "version": "1.0.0",
4
- "description": "公共代码",
5
- "scripts": {
6
- "pub:npm": "npm publish --registry https://registry.npmjs.org/ --no-git-checks"
7
- },
8
- "peerDependencies": {
9
- "vue": "3.2.47"
10
- },
11
- "author": "Liubin"
1
+ {
2
+ "name": "yh-pub",
3
+ "version": "1.0.2",
4
+ "description": "公共代码",
5
+ "scripts": {
6
+ "pub": "npm publish --registry https://registry.npmjs.org/ --no-git-checks && npm publish --registry https://packages.aliyun.com/60765e0161a945067837bb5f/npm/npm-registry/ --no-git-checks"
7
+ },
8
+ "peerDependencies": {
9
+ "vue": "^3.0.0"
10
+ },
11
+ "author": "Liubin"
12
12
  }
@@ -1,74 +1,74 @@
1
- <template>
2
- <div>
3
- <a-button
4
- @click="exportData"
5
- type="primary"
6
- style="margin: 0 10px 10px 0">
7
- 导出日志记录
8
- </a-button>
9
- <b>注:这里只会显示成功保存到服务端的错误日志,而且页面错误日志不会在浏览器持久化存储,刷新页面即会丢失</b>
10
- <a-table
11
- ref="table"
12
- :columns="columns"
13
- :data="errorList"></a-table>
14
- </div>
15
- </template>
16
-
17
- <script>
18
- import { useAppStore } from "@/store/app";
19
- import dayjs from "dayjs";
20
- export default {
21
- name: "error_logger_page",
22
- data() {
23
- return {
24
- columns: [
25
- {
26
- type: "index",
27
- title: "序号",
28
- width: 100,
29
- },
30
- {
31
- key: "type",
32
- title: "类型",
33
- width: 100,
34
- },
35
- {
36
- key: "code",
37
- title: "编码",
38
- },
39
- {
40
- key: "mes",
41
- title: "信息",
42
- },
43
- {
44
- key: "url",
45
- title: "URL",
46
- },
47
- {
48
- key: "time",
49
- title: "时间",
50
- sortable: true,
51
- sortType: "desc",
52
- },
53
- ],
54
- };
55
- },
56
- computed: {
57
- errorList() {
58
- return this.$store.state.app.errorList;
59
- },
60
- },
61
- methods: {
62
- exportData() {
63
- this.$refs.table.exportCsv({
64
- filename: "错误日志.csv",
65
- });
66
- },
67
- },
68
- activated() {},
69
- mounted() {},
70
- };
71
- </script>
72
-
73
- <style></style>
74
- @/store/app
1
+ <template>
2
+ <div>
3
+ <a-button
4
+ @click="exportData"
5
+ type="primary"
6
+ style="margin: 0 10px 10px 0">
7
+ 导出日志记录
8
+ </a-button>
9
+ <b>注:这里只会显示成功保存到服务端的错误日志,而且页面错误日志不会在浏览器持久化存储,刷新页面即会丢失</b>
10
+ <a-table
11
+ ref="table"
12
+ :columns="columns"
13
+ :data="errorList"></a-table>
14
+ </div>
15
+ </template>
16
+
17
+ <script>
18
+ import { useAppStore } from "@/store/app";
19
+ import dayjs from "dayjs";
20
+ export default {
21
+ name: "error_logger_page",
22
+ data() {
23
+ return {
24
+ columns: [
25
+ {
26
+ type: "index",
27
+ title: "序号",
28
+ width: 100,
29
+ },
30
+ {
31
+ key: "type",
32
+ title: "类型",
33
+ width: 100,
34
+ },
35
+ {
36
+ key: "code",
37
+ title: "编码",
38
+ },
39
+ {
40
+ key: "mes",
41
+ title: "信息",
42
+ },
43
+ {
44
+ key: "url",
45
+ title: "URL",
46
+ },
47
+ {
48
+ key: "time",
49
+ title: "时间",
50
+ sortable: true,
51
+ sortType: "desc",
52
+ },
53
+ ],
54
+ };
55
+ },
56
+ computed: {
57
+ errorList() {
58
+ return this.$store.state.app.errorList;
59
+ },
60
+ },
61
+ methods: {
62
+ exportData() {
63
+ this.$refs.table.exportCsv({
64
+ filename: "错误日志.csv",
65
+ });
66
+ },
67
+ },
68
+ activated() {},
69
+ mounted() {},
70
+ };
71
+ </script>
72
+
73
+ <style></style>
74
+ @/store/app
@@ -1,22 +1,22 @@
1
- <template>
2
- <error-content
3
- code="401"
4
- desc="Oh~~您没有浏览这个页面的权限~"
5
- :src="src" />
6
- </template>
7
-
8
- <script>
9
- import error401 from "@/assets/images/error-page/error-401.svg";
10
- import errorContent from "./error-content.vue";
11
- export default {
12
- name: "error_401",
13
- components: {
14
- errorContent,
15
- },
16
- data() {
17
- return {
18
- src: error401,
19
- };
20
- },
21
- };
22
- </script>
1
+ <template>
2
+ <error-content
3
+ code="401"
4
+ desc="Oh~~您没有浏览这个页面的权限~"
5
+ :src="src" />
6
+ </template>
7
+
8
+ <script>
9
+ import error401 from "@/assets/images/error-page/error-401.svg";
10
+ import errorContent from "./error-content.vue";
11
+ export default {
12
+ name: "error_401",
13
+ components: {
14
+ errorContent,
15
+ },
16
+ data() {
17
+ return {
18
+ src: error401,
19
+ };
20
+ },
21
+ };
22
+ </script>
@@ -1,22 +1,22 @@
1
- <template>
2
- <error-content
3
- code="404"
4
- desc="Oh~~您的页面好像飞走了~"
5
- :src="src" />
6
- </template>
7
-
8
- <script>
9
- import error404 from "@/assets/images/error-page/error-404.svg";
10
- import errorContent from "./error-content.vue";
11
- export default {
12
- name: "error_404",
13
- components: {
14
- errorContent,
15
- },
16
- data() {
17
- return {
18
- src: error404,
19
- };
20
- },
21
- };
22
- </script>
1
+ <template>
2
+ <error-content
3
+ code="404"
4
+ desc="Oh~~您的页面好像飞走了~"
5
+ :src="src" />
6
+ </template>
7
+
8
+ <script>
9
+ import error404 from "@/assets/images/error-page/error-404.svg";
10
+ import errorContent from "./error-content.vue";
11
+ export default {
12
+ name: "error_404",
13
+ components: {
14
+ errorContent,
15
+ },
16
+ data() {
17
+ return {
18
+ src: error404,
19
+ };
20
+ },
21
+ };
22
+ </script>
@@ -1,22 +1,22 @@
1
- <template>
2
- <error-content
3
- code="500"
4
- desc="Oh~~鬼知道服务器经历了什么~"
5
- :src="src" />
6
- </template>
7
-
8
- <script>
9
- import error404 from "@/assets/images/error-page/error-500.svg";
10
- import errorContent from "./error-content.vue";
11
- export default {
12
- name: "error_500",
13
- components: {
14
- errorContent,
15
- },
16
- data() {
17
- return {
18
- src: error404,
19
- };
20
- },
21
- };
22
- </script>
1
+ <template>
2
+ <error-content
3
+ code="500"
4
+ desc="Oh~~鬼知道服务器经历了什么~"
5
+ :src="src" />
6
+ </template>
7
+
8
+ <script>
9
+ import error404 from "@/assets/images/error-page/error-500.svg";
10
+ import errorContent from "./error-content.vue";
11
+ export default {
12
+ name: "error_500",
13
+ components: {
14
+ errorContent,
15
+ },
16
+ data() {
17
+ return {
18
+ src: error404,
19
+ };
20
+ },
21
+ };
22
+ </script>
@@ -1,48 +1,48 @@
1
- <template>
2
- <div>
3
- <el-button
4
- size="large"
5
- text
6
- @click="backHome">
7
- 返回首页
8
- </el-button>
9
- <el-button
10
- size="large"
11
- text
12
- @click="backPrev">
13
- 返回上一页({{ second }}s)
14
- </el-button>
15
- </div>
16
- </template>
17
-
18
- <script>
19
- import "./error.less";
20
- export default {
21
- name: "backBtnGroup",
22
- data() {
23
- return {
24
- second: 5,
25
- timer: null,
26
- };
27
- },
28
- methods: {
29
- backHome() {
30
- this.$router.replace({
31
- name: this.$config.homeName,
32
- });
33
- },
34
- backPrev() {
35
- this.$router.go(-1);
36
- },
37
- },
38
- mounted() {
39
- this.timer = setInterval(() => {
40
- if (this.second === 0) this.backPrev();
41
- else this.second--;
42
- }, 1000);
43
- },
44
- beforeUnmount() {
45
- clearInterval(this.timer);
46
- },
47
- };
48
- </script>
1
+ <template>
2
+ <div>
3
+ <el-button
4
+ size="large"
5
+ text
6
+ @click="backHome">
7
+ 返回首页
8
+ </el-button>
9
+ <el-button
10
+ size="large"
11
+ text
12
+ @click="backPrev">
13
+ 返回上一页({{ second }}s)
14
+ </el-button>
15
+ </div>
16
+ </template>
17
+
18
+ <script>
19
+ import "./error.less";
20
+ export default {
21
+ name: "backBtnGroup",
22
+ data() {
23
+ return {
24
+ second: 5,
25
+ timer: null,
26
+ };
27
+ },
28
+ methods: {
29
+ backHome() {
30
+ this.$router.replace({
31
+ name: this.$config.homeName,
32
+ });
33
+ },
34
+ backPrev() {
35
+ this.$router.go(-1);
36
+ },
37
+ },
38
+ mounted() {
39
+ this.timer = setInterval(() => {
40
+ if (this.second === 0) this.backPrev();
41
+ else this.second--;
42
+ }, 1000);
43
+ },
44
+ beforeUnmount() {
45
+ clearInterval(this.timer);
46
+ },
47
+ };
48
+ </script>
@@ -1,28 +1,28 @@
1
- <template>
2
- <div class="error-page">
3
- <div class="content-con">
4
- <img :src="src" :alt="code">
5
- <div class="text-con">
6
- <h4>{{ code }}</h4>
7
- <h5>{{ desc }}</h5>
8
- </div>
9
- <back-btn-group class="back-btn-group"></back-btn-group>
10
- </div>
11
- </div>
12
- </template>
13
-
14
- <script>
15
- import './error.less'
16
- import backBtnGroup from './back-btn-group.vue'
17
- export default {
18
- name: 'error_content',
19
- components: {
20
- backBtnGroup
21
- },
22
- props: {
23
- code: String,
24
- desc: String,
25
- src: String
26
- }
27
- }
28
- </script>
1
+ <template>
2
+ <div class="error-page">
3
+ <div class="content-con">
4
+ <img :src="src" :alt="code">
5
+ <div class="text-con">
6
+ <h4>{{ code }}</h4>
7
+ <h5>{{ desc }}</h5>
8
+ </div>
9
+ <back-btn-group class="back-btn-group"></back-btn-group>
10
+ </div>
11
+ </div>
12
+ </template>
13
+
14
+ <script>
15
+ import './error.less'
16
+ import backBtnGroup from './back-btn-group.vue'
17
+ export default {
18
+ name: 'error_content',
19
+ components: {
20
+ backBtnGroup
21
+ },
22
+ props: {
23
+ code: String,
24
+ desc: String,
25
+ src: String
26
+ }
27
+ }
28
+ </script>
@@ -1,46 +1,46 @@
1
- .error-page{
2
- width: 100%;
3
- height: 100%;
4
- position: relative;
5
- background: #f8f8f9;
6
- .content-con{
7
- width: 700px;
8
- height: 600px;
9
- position: absolute;
10
- left: 50%;
11
- top: 50%;
12
- transform: translate(-50%, -60%);
13
- img{
14
- display: block;
15
- width: 100%;
16
- height: 100%;
17
- }
18
- .text-con{
19
- position: absolute;
20
- left: 0px;
21
- top: 0px;
22
- h4{
23
- position: absolute;
24
- left: 0px;
25
- top: 0px;
26
- font-size: 80px;
27
- font-weight: 700;
28
- color: #348EED;
29
- }
30
- h5{
31
- position: absolute;
32
- width: 700px;
33
- left: 0px;
34
- top: 100px;
35
- font-size: 20px;
36
- font-weight: 700;
37
- color: #67647D;
38
- }
39
- }
40
- .back-btn-group{
41
- position: absolute;
42
- right: 0px;
43
- bottom: 20px;
44
- }
45
- }
46
- }
1
+ .error-page{
2
+ width: 100%;
3
+ height: 100%;
4
+ position: relative;
5
+ background: #f8f8f9;
6
+ .content-con{
7
+ width: 700px;
8
+ height: 600px;
9
+ position: absolute;
10
+ left: 50%;
11
+ top: 50%;
12
+ transform: translate(-50%, -60%);
13
+ img{
14
+ display: block;
15
+ width: 100%;
16
+ height: 100%;
17
+ }
18
+ .text-con{
19
+ position: absolute;
20
+ left: 0px;
21
+ top: 0px;
22
+ h4{
23
+ position: absolute;
24
+ left: 0px;
25
+ top: 0px;
26
+ font-size: 80px;
27
+ font-weight: 700;
28
+ color: #348EED;
29
+ }
30
+ h5{
31
+ position: absolute;
32
+ width: 700px;
33
+ left: 0px;
34
+ top: 100px;
35
+ font-size: 20px;
36
+ font-weight: 700;
37
+ color: #67647D;
38
+ }
39
+ }
40
+ .back-btn-group{
41
+ position: absolute;
42
+ right: 0px;
43
+ bottom: 20px;
44
+ }
45
+ }
46
+ }
@@ -1,49 +1,49 @@
1
- <template>
2
- <el-col
3
- :xl="6"
4
- :lg="8"
5
- :md="12"
6
- :xs="24"
7
- class="conf-form-item">
8
- <el-form-item>
9
- <template #label>
10
- <div class="label">
11
- {{ label }}
12
- </div>
13
- <div class="tips">{{ tips }}</div>
14
- </template>
15
- <slot name="default"></slot>
16
- </el-form-item>
17
- </el-col>
18
- </template>
19
- <script>
20
- export default {
21
- name: "conf-form-item",
22
- props: ["label", "tips"],
23
- };
24
- </script>
25
- <style lang="scss">
26
- .conf-form-item {
27
- .el-form-item {
28
- .el-form-item__label {
29
- padding: 10px 0 0 0;
30
- display: flex;
31
- align-items: flex-end;
32
- .label {
33
- font-size: 16px;
34
- font-weight: 600;
35
- }
36
- .tips {
37
- flex: 1;
38
- text-align: right;
39
- color: var(--el-text-color-secondary);
40
- }
41
- }
42
- .el-form-item__content {
43
- .el-select {
44
- width: 100%;
45
- }
46
- }
47
- }
48
- }
49
- </style>
1
+ <template>
2
+ <el-col
3
+ :xl="6"
4
+ :lg="8"
5
+ :md="12"
6
+ :xs="24"
7
+ class="conf-form-item">
8
+ <el-form-item>
9
+ <template #label>
10
+ <div class="label">
11
+ {{ label }}
12
+ </div>
13
+ <div class="tips">{{ tips }}</div>
14
+ </template>
15
+ <slot name="default"></slot>
16
+ </el-form-item>
17
+ </el-col>
18
+ </template>
19
+ <script>
20
+ export default {
21
+ name: "conf-form-item",
22
+ props: ["label", "tips"],
23
+ };
24
+ </script>
25
+ <style lang="scss">
26
+ .conf-form-item {
27
+ .el-form-item {
28
+ .el-form-item__label {
29
+ padding: 10px 0 0 0;
30
+ display: flex;
31
+ align-items: flex-end;
32
+ .label {
33
+ font-size: 16px;
34
+ font-weight: 600;
35
+ }
36
+ .tips {
37
+ flex: 1;
38
+ text-align: right;
39
+ color: var(--el-text-color-secondary);
40
+ }
41
+ }
42
+ .el-form-item__content {
43
+ .el-select {
44
+ width: 100%;
45
+ }
46
+ }
47
+ }
48
+ }
49
+ </style>