zant-admin 1.0.4 → 2.0.1

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 (94) hide show
  1. package/README.en.md +414 -25
  2. package/README.md +460 -285
  3. package/bin/cli.js +3 -3
  4. package/bin/generator.js +502 -502
  5. package/bin/prompts.js +158 -158
  6. package/bin/utils.js +133 -133
  7. package/package.json +2 -2
  8. package/public/logo.png +0 -0
  9. package/src/App.vue +16 -16
  10. package/src/api/methods/department.js +36 -0
  11. package/src/api/methods/employee.js +22 -0
  12. package/src/api/methods/logError.js +8 -8
  13. package/src/api/methods/logOperation.js +8 -8
  14. package/src/api/methods/login.js +6 -6
  15. package/src/api/methods/position.js +26 -0
  16. package/src/api/methods/quartz.js +36 -36
  17. package/src/api/methods/region.js +16 -16
  18. package/src/api/methods/sysAccount.js +29 -29
  19. package/src/api/methods/sysDict.js +29 -29
  20. package/src/api/methods/sysDictItem.js +26 -26
  21. package/src/api/methods/sysMenu.js +42 -42
  22. package/src/api/methods/sysRole.js +35 -35
  23. package/src/api/methods/sysUser.js +25 -25
  24. package/src/api/methods/system.js +15 -15
  25. package/src/api/request.js +225 -225
  26. package/src/assets/css/style.css +2 -2
  27. package/src/assets/css/zcui.css +1023 -1023
  28. package/src/assets/imgs/logo.png +0 -0
  29. package/src/assets/imgs/md/console.png +0 -0
  30. package/src/assets/imgs/md/login.png +0 -0
  31. package/src/assets/imgs/md/menu.png +0 -0
  32. package/src/assets/imgs/md/serviceMonitoring.png +0 -0
  33. package/src/assets/imgs/md/statistics.png +0 -0
  34. package/src/components/FormTable.vue +5 -19
  35. package/src/components/IconPicker.vue +351 -351
  36. package/src/components/MainPage.vue +838 -838
  37. package/src/components/details/logErrorDetails.vue +58 -58
  38. package/src/components/details/logOperationDetails.vue +76 -76
  39. package/src/components/edit/QuartzEdit.vue +221 -221
  40. package/src/components/edit/SysAccountEdit.vue +185 -185
  41. package/src/components/edit/SysDictEdit.vue +116 -116
  42. package/src/components/edit/SysDictItemEdit.vue +136 -136
  43. package/src/components/edit/SysRoleEdit.vue +111 -111
  44. package/src/components/edit/organizationalStructure/DepartmentEdit.vue +162 -0
  45. package/src/components/edit/organizationalStructure/EmployeeEdit.vue +295 -0
  46. package/src/components/edit/organizationalStructure/PositionEdit.vue +166 -0
  47. package/src/components/edit/sysMenuEdit.vue +2 -1
  48. package/src/config/index.js +74 -74
  49. package/src/directives/permission.js +49 -49
  50. package/src/main.js +37 -37
  51. package/src/router/index.js +4 -6
  52. package/src/stores/config.js +43 -43
  53. package/src/stores/dict.js +33 -33
  54. package/src/stores/menu.js +81 -81
  55. package/src/stores/user.js +21 -21
  56. package/src/utils/baseEcharts.js +661 -661
  57. package/src/utils/dictTemplate.js +26 -26
  58. package/src/utils/regionUtils.js +173 -173
  59. package/src/utils/useFormCRUD.js +59 -59
  60. package/src/views/baiscstatis/center.vue +474 -474
  61. package/src/views/baiscstatis/iframePage.vue +29 -29
  62. package/src/views/baiscstatis/notFound.vue +192 -192
  63. package/src/views/console.vue +821 -821
  64. package/src/views/demo/button.vue +269 -269
  65. package/src/views/demo/importexport.vue +119 -119
  66. package/src/views/demo/region.vue +322 -322
  67. package/src/views/demo/statistics.vue +214 -214
  68. package/src/views/home.vue +6 -6
  69. package/src/views/login.vue +264 -149
  70. package/src/views/operations/log/logError.vue +78 -78
  71. package/src/views/operations/log/logLogin.vue +66 -66
  72. package/src/views/operations/log/logOperation.vue +103 -103
  73. package/src/views/operations/log/logQuartz.vue +56 -56
  74. package/src/views/operations/quartz.vue +179 -179
  75. package/src/views/operations/serviceMonitoring.vue +134 -134
  76. package/src/views/organizationalStructure/department.vue +194 -0
  77. package/src/views/organizationalStructure/employee.vue +234 -0
  78. package/src/views/organizationalStructure/position.vue +196 -0
  79. package/src/views/system/sysAccount.vue +128 -128
  80. package/src/views/system/sysDict.vue +159 -159
  81. package/src/views/system/sysDictItem.vue +118 -118
  82. package/src/views/system/sysMenu.vue +225 -225
  83. package/src/views/system/sysRole.vue +207 -207
  84. package/src/assets/imgs/md/1.png +0 -0
  85. package/src/assets/imgs/md/10.png +0 -0
  86. package/src/assets/imgs/md/11.png +0 -0
  87. package/src/assets/imgs/md/2.png +0 -0
  88. package/src/assets/imgs/md/3.png +0 -0
  89. package/src/assets/imgs/md/4.png +0 -0
  90. package/src/assets/imgs/md/5.png +0 -0
  91. package/src/assets/imgs/md/6.png +0 -0
  92. package/src/assets/imgs/md/7.png +0 -0
  93. package/src/assets/imgs/md/8.png +0 -0
  94. package/src/assets/imgs/md/9.png +0 -0
@@ -1,66 +1,66 @@
1
- <template>
2
- <form-table
3
- :formState="formState"
4
- :columns="columns"
5
- modulePath="LogLogin"
6
- :rowSelect="false"
7
- >
8
- <!-- 可以通过插槽自定义单元格 -->
9
- <template #custom-status="{ record }">
10
- <span
11
- v-html="dictTemplate.tabletempbool('loginlog_status', record.status)"
12
- ></span>
13
- </template>
14
- </form-table>
15
- </template>
16
- <script setup>
17
- import { ref } from 'vue'
18
- import FormTable from '@/components/FormTable.vue'
19
- import dictTemplate from '@/utils/dictTemplate'
20
- const formState = ref({
21
- userName: { label: '用户名称', value: '', type: 'text' },
22
- createTime: { label: '日期范围', value: '', type: 'time' },
23
- })
24
- const columns = ref([
25
- {
26
- title: '序号',
27
- key: 'num',
28
- width: 80,
29
- },
30
- {
31
- title: '用户名称',
32
- dataIndex: 'userName',
33
- },
34
- {
35
- title: '登录ip',
36
- dataIndex: 'loginIp',
37
- },
38
- {
39
- title: '登录地点',
40
- dataIndex: 'loginLocation',
41
- },
42
- {
43
- title: '浏览器',
44
- dataIndex: 'browser',
45
- },
46
- {
47
- title: '操作系统',
48
- dataIndex: 'operatingSystem',
49
- },
50
- {
51
- title: '状态',
52
- key: 'status',
53
- },
54
- {
55
- title: '备注',
56
- dataIndex: 'remark',
57
- },
58
- {
59
- title: '创建时间',
60
- dataIndex: 'createTime',
61
- width: 200,
62
- },
63
- ])
64
- </script>
65
-
66
- <style></style>
1
+ <template>
2
+ <form-table
3
+ :formState="formState"
4
+ :columns="columns"
5
+ modulePath="LogLogin"
6
+ :rowSelect="false"
7
+ >
8
+ <!-- 可以通过插槽自定义单元格 -->
9
+ <template #custom-status="{ record }">
10
+ <span
11
+ v-html="dictTemplate.tabletempbool('loginlog_status', record.status)"
12
+ ></span>
13
+ </template>
14
+ </form-table>
15
+ </template>
16
+ <script setup>
17
+ import { ref } from 'vue'
18
+ import FormTable from '@/components/FormTable.vue'
19
+ import dictTemplate from '@/utils/dictTemplate'
20
+ const formState = ref({
21
+ userName: { label: '用户名称', value: '', type: 'text' },
22
+ createTime: { label: '日期范围', value: '', type: 'time' },
23
+ })
24
+ const columns = ref([
25
+ {
26
+ title: '序号',
27
+ key: 'num',
28
+ width: 80,
29
+ },
30
+ {
31
+ title: '用户名称',
32
+ dataIndex: 'userName',
33
+ },
34
+ {
35
+ title: '登录ip',
36
+ dataIndex: 'loginIp',
37
+ },
38
+ {
39
+ title: '登录地点',
40
+ dataIndex: 'loginLocation',
41
+ },
42
+ {
43
+ title: '浏览器',
44
+ dataIndex: 'browser',
45
+ },
46
+ {
47
+ title: '操作系统',
48
+ dataIndex: 'operatingSystem',
49
+ },
50
+ {
51
+ title: '状态',
52
+ key: 'status',
53
+ },
54
+ {
55
+ title: '备注',
56
+ dataIndex: 'remark',
57
+ },
58
+ {
59
+ title: '创建时间',
60
+ dataIndex: 'createTime',
61
+ width: 200,
62
+ },
63
+ ])
64
+ </script>
65
+
66
+ <style></style>
@@ -1,103 +1,103 @@
1
- <template>
2
- <form-table
3
- :formState="formState"
4
- :columns="columns"
5
- modulePath="LogOperation"
6
- :permissionModulePath="permissionModulePath"
7
- :rowSelect="false"
8
- @details="details"
9
- >
10
- </form-table>
11
- <!-- 详情 -->
12
- <LogOperationDetails
13
- :open="detailsopen"
14
- :info="info"
15
- @close="detailsopen = false"
16
- >
17
- </LogOperationDetails>
18
- </template>
19
- <script setup>
20
- import { ref } from 'vue'
21
- import FormTable from '@/components/FormTable.vue'
22
- import LogOperationDetails from '@/components/details/logOperationDetails.vue'
23
- import logOperation from '@/api/methods/logOperation'
24
- // 权限模块路径
25
- const permissionModulePath = ref('operations:log:logOperation')
26
- const formState = ref({
27
- controllerName: { label: '控制器名称', value: '', type: 'text' },
28
- operationMethod: { label: '操作方法', value: '', type: 'text' },
29
- operationPersonnel: { label: '操作人员', value: '', type: 'text' },
30
- createTime: { label: '日期范围', value: '', type: 'time' },
31
- })
32
- const columns = ref([
33
- {
34
- title: '序号',
35
- key: 'num',
36
- width: 80,
37
- },
38
- {
39
- title: '控制器名称',
40
- dataIndex: 'controllerName',
41
- width: 200,
42
- },
43
- {
44
- title: '操作方法',
45
- dataIndex: 'operationMethod',
46
- width: 200,
47
- },
48
- {
49
- title: '请求地址',
50
- dataIndex: 'requestAddress',
51
- ellipsis: true,
52
- },
53
- {
54
- title: '请求方式',
55
- dataIndex: 'requestMethod',
56
- width: 100,
57
- },
58
- {
59
- title: '请求Ip',
60
- dataIndex: 'operationIp',
61
- width: 120,
62
- },
63
- {
64
- title: '请求端源',
65
- dataIndex: 'requestFrom',
66
- width: 100,
67
- },
68
- {
69
- title: 'UserAgent',
70
- dataIndex: 'userAgent',
71
- ellipsis: true,
72
- },
73
- {
74
- title: '操作人员',
75
- dataIndex: 'operationPersonnel',
76
- width: 100,
77
- },
78
- {
79
- title: '创建时间',
80
- dataIndex: 'createTime',
81
- width: 200,
82
- },
83
- {
84
- title: '操作',
85
- key: 'operation',
86
- fixed: 'right',
87
- width: 100,
88
- },
89
- ])
90
- //详情
91
- const detailsopen = ref(false)
92
- const info = ref({})
93
- const details = record => {
94
- logOperation.detail({ id: record.id }).then(res => {
95
- info.value = res.data
96
- detailsopen.value = true
97
- })
98
- }
99
- const detailsHandleCancel = () => {
100
- detailsopen.value = false
101
- }
102
- </script>
103
- <style></style>
1
+ <template>
2
+ <form-table
3
+ :formState="formState"
4
+ :columns="columns"
5
+ modulePath="LogOperation"
6
+ :permissionModulePath="permissionModulePath"
7
+ :rowSelect="false"
8
+ @details="details"
9
+ >
10
+ </form-table>
11
+ <!-- 详情 -->
12
+ <LogOperationDetails
13
+ :open="detailsopen"
14
+ :info="info"
15
+ @close="detailsopen = false"
16
+ >
17
+ </LogOperationDetails>
18
+ </template>
19
+ <script setup>
20
+ import { ref } from 'vue'
21
+ import FormTable from '@/components/FormTable.vue'
22
+ import LogOperationDetails from '@/components/details/logOperationDetails.vue'
23
+ import logOperation from '@/api/methods/logOperation'
24
+ // 权限模块路径
25
+ const permissionModulePath = ref('operations:log:logOperation')
26
+ const formState = ref({
27
+ controllerName: { label: '控制器名称', value: '', type: 'text' },
28
+ operationMethod: { label: '操作方法', value: '', type: 'text' },
29
+ operationPersonnel: { label: '操作人员', value: '', type: 'text' },
30
+ createTime: { label: '日期范围', value: '', type: 'time' },
31
+ })
32
+ const columns = ref([
33
+ {
34
+ title: '序号',
35
+ key: 'num',
36
+ width: 80,
37
+ },
38
+ {
39
+ title: '控制器名称',
40
+ dataIndex: 'controllerName',
41
+ width: 200,
42
+ },
43
+ {
44
+ title: '操作方法',
45
+ dataIndex: 'operationMethod',
46
+ width: 200,
47
+ },
48
+ {
49
+ title: '请求地址',
50
+ dataIndex: 'requestAddress',
51
+ ellipsis: true,
52
+ },
53
+ {
54
+ title: '请求方式',
55
+ dataIndex: 'requestMethod',
56
+ width: 100,
57
+ },
58
+ {
59
+ title: '请求Ip',
60
+ dataIndex: 'operationIp',
61
+ width: 120,
62
+ },
63
+ {
64
+ title: '请求端源',
65
+ dataIndex: 'requestFrom',
66
+ width: 100,
67
+ },
68
+ {
69
+ title: 'UserAgent',
70
+ dataIndex: 'userAgent',
71
+ ellipsis: true,
72
+ },
73
+ {
74
+ title: '操作人员',
75
+ dataIndex: 'operationPersonnel',
76
+ width: 100,
77
+ },
78
+ {
79
+ title: '创建时间',
80
+ dataIndex: 'createTime',
81
+ width: 200,
82
+ },
83
+ {
84
+ title: '操作',
85
+ key: 'operation',
86
+ fixed: 'right',
87
+ width: 100,
88
+ },
89
+ ])
90
+ //详情
91
+ const detailsopen = ref(false)
92
+ const info = ref({})
93
+ const details = record => {
94
+ logOperation.detail({ id: record.id }).then(res => {
95
+ info.value = res.data
96
+ detailsopen.value = true
97
+ })
98
+ }
99
+ const detailsHandleCancel = () => {
100
+ detailsopen.value = false
101
+ }
102
+ </script>
103
+ <style></style>
@@ -1,56 +1,56 @@
1
- <template>
2
- <form-table
3
- :where="recordwhere"
4
- :columns="columns"
5
- modulePath="quartz"
6
- pageAction="logPage"
7
- :rowSelect="false"
8
- >
9
- <template #custom-status="{ record }">
10
- <span class="text-color-success" v-if="record.status">成功</span>
11
- <span class="text-color-error" v-else>失败</span>
12
- </template>
13
- </form-table>
14
- </template>
15
- <script setup>
16
- import { ref } from 'vue'
17
- import FormTable from '@/components/FormTable.vue'
18
- const props = defineProps({
19
- recordwhere: {
20
- type: Object,
21
- default: {},
22
- },
23
- })
24
- const columns = ref([
25
- {
26
- title: '序号',
27
- key: 'num',
28
- width: 60,
29
- },
30
- {
31
- title: '开始时间',
32
- dataIndex: 'beginDate',
33
- width: 160,
34
- },
35
- {
36
- title: '结束时间',
37
- dataIndex: 'endDate',
38
- width: 160,
39
- },
40
- {
41
- title: '状态',
42
- key: 'status',
43
- width: 100,
44
- },
45
- {
46
- title: '消息',
47
- dataIndex: 'result',
48
- width: 100,
49
- },
50
- {
51
- title: '异常',
52
- dataIndex: 'error',
53
- },
54
- ])
55
- </script>
56
- <style></style>
1
+ <template>
2
+ <form-table
3
+ :where="recordwhere"
4
+ :columns="columns"
5
+ modulePath="quartz"
6
+ pageAction="logPage"
7
+ :rowSelect="false"
8
+ >
9
+ <template #custom-status="{ record }">
10
+ <span class="text-color-success" v-if="record.status">成功</span>
11
+ <span class="text-color-error" v-else>失败</span>
12
+ </template>
13
+ </form-table>
14
+ </template>
15
+ <script setup>
16
+ import { ref } from 'vue'
17
+ import FormTable from '@/components/FormTable.vue'
18
+ const props = defineProps({
19
+ recordwhere: {
20
+ type: Object,
21
+ default: {},
22
+ },
23
+ })
24
+ const columns = ref([
25
+ {
26
+ title: '序号',
27
+ key: 'num',
28
+ width: 60,
29
+ },
30
+ {
31
+ title: '开始时间',
32
+ dataIndex: 'beginDate',
33
+ width: 160,
34
+ },
35
+ {
36
+ title: '结束时间',
37
+ dataIndex: 'endDate',
38
+ width: 160,
39
+ },
40
+ {
41
+ title: '状态',
42
+ key: 'status',
43
+ width: 100,
44
+ },
45
+ {
46
+ title: '消息',
47
+ dataIndex: 'result',
48
+ width: 100,
49
+ },
50
+ {
51
+ title: '异常',
52
+ dataIndex: 'error',
53
+ },
54
+ ])
55
+ </script>
56
+ <style></style>