zant-admin 2.0.1 → 2.0.3

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 (70) hide show
  1. package/.editorconfig +6 -0
  2. package/.env.development +3 -0
  3. package/.env.production +1 -0
  4. package/.env.test +1 -0
  5. package/.gitignore +36 -0
  6. package/.prettierrc.json +9 -0
  7. package/README.en.md +461 -272
  8. package/README.md +4 -3
  9. package/bin/cli.js +1 -1
  10. package/bin/prompts.js +17 -53
  11. package/eslint.config.js +30 -0
  12. package/index.html +13 -0
  13. package/jsconfig.json +8 -0
  14. package/package.json +12 -2
  15. package/src/App.vue +16 -16
  16. package/src/api/methods/logError.js +8 -8
  17. package/src/api/methods/logOperation.js +8 -8
  18. package/src/api/methods/login.js +6 -6
  19. package/src/api/methods/quartz.js +36 -36
  20. package/src/api/methods/region.js +16 -16
  21. package/src/api/methods/sysAccount.js +29 -29
  22. package/src/api/methods/sysDict.js +29 -29
  23. package/src/api/methods/sysDictItem.js +26 -26
  24. package/src/api/methods/sysMenu.js +42 -42
  25. package/src/api/methods/sysRole.js +35 -35
  26. package/src/api/methods/sysUser.js +25 -25
  27. package/src/api/methods/system.js +15 -15
  28. package/src/api/request.js +225 -225
  29. package/src/assets/css/zcui.css +1023 -1023
  30. package/src/components/IconPicker.vue +351 -351
  31. package/src/components/MainPage.vue +838 -838
  32. package/src/components/details/logErrorDetails.vue +58 -58
  33. package/src/components/details/logOperationDetails.vue +76 -76
  34. package/src/components/edit/QuartzEdit.vue +221 -221
  35. package/src/components/edit/SysAccountEdit.vue +185 -185
  36. package/src/components/edit/SysDictEdit.vue +116 -116
  37. package/src/components/edit/SysDictItemEdit.vue +136 -136
  38. package/src/components/edit/SysRoleEdit.vue +111 -111
  39. package/src/config/index.js +74 -74
  40. package/src/directives/permission.js +49 -49
  41. package/src/main.js +37 -37
  42. package/src/stores/config.js +43 -43
  43. package/src/stores/dict.js +33 -33
  44. package/src/stores/menu.js +81 -81
  45. package/src/stores/user.js +21 -21
  46. package/src/utils/baseEcharts.js +661 -661
  47. package/src/utils/dictTemplate.js +26 -26
  48. package/src/utils/regionUtils.js +173 -173
  49. package/src/utils/useFormCRUD.js +59 -59
  50. package/src/views/baiscstatis/center.vue +474 -474
  51. package/src/views/baiscstatis/iframePage.vue +29 -29
  52. package/src/views/baiscstatis/notFound.vue +192 -192
  53. package/src/views/console.vue +821 -821
  54. package/src/views/demo/button.vue +269 -269
  55. package/src/views/demo/importexport.vue +119 -119
  56. package/src/views/demo/region.vue +322 -322
  57. package/src/views/demo/statistics.vue +214 -214
  58. package/src/views/home.vue +6 -6
  59. package/src/views/operations/log/logError.vue +78 -78
  60. package/src/views/operations/log/logLogin.vue +66 -66
  61. package/src/views/operations/log/logOperation.vue +103 -103
  62. package/src/views/operations/log/logQuartz.vue +56 -56
  63. package/src/views/operations/quartz.vue +179 -179
  64. package/src/views/operations/serviceMonitoring.vue +134 -134
  65. package/src/views/system/sysAccount.vue +128 -128
  66. package/src/views/system/sysDict.vue +159 -159
  67. package/src/views/system/sysDictItem.vue +118 -118
  68. package/src/views/system/sysMenu.vue +225 -225
  69. package/src/views/system/sysRole.vue +207 -207
  70. package/vite.config.js +33 -0
@@ -1,269 +1,269 @@
1
- <template>
2
- <div class="demo-container">
3
- <h1>ZCUI 自定义按钮样式示例</h1>
4
-
5
- <!-- 官方组件链接 -->
6
- <div class="section">
7
- <h2>官方组件库</h2>
8
- <div class="demo-block">
9
- <p>
10
- Ant Design Vue 按钮组件文档:<a
11
- href="https://www.antdv.com/components/button-cn"
12
- target="_blank"
13
- class="doc-link"
14
- >https://www.antdv.com/components/button-cn</a
15
- >
16
- </p>
17
- <p>如需查看官方按钮组件示例,请访问上述链接。</p>
18
- </div>
19
- </div>
20
-
21
- <!-- ZCUI 自定义按钮(基于 Ant Design Vue) -->
22
- <div class="section">
23
- <h2>ZCUI 自定义按钮(Ant Design Vue + zcui.css 样式)</h2>
24
-
25
- <div class="demo-block">
26
- <h3>基础功能色</h3>
27
- <div class="button-group">
28
- <a-button class="btn-primary">Primary</a-button>
29
- <a-button class="btn-success">Success</a-button>
30
- <a-button class="btn-warning">Warning</a-button>
31
- <a-button class="btn-error">Error</a-button>
32
- </div>
33
- </div>
34
-
35
- <div class="demo-block">
36
- <h3>扩展颜色系</h3>
37
- <div class="button-group">
38
- <a-button class="btn-red">Red</a-button>
39
- <a-button class="btn-orangered">Orange Red</a-button>
40
- <a-button class="btn-orange">Orange</a-button>
41
- <a-button class="btn-gold">Gold</a-button>
42
- <a-button class="btn-yellow">Yellow</a-button>
43
- <a-button class="btn-lime">Lime</a-button>
44
- <a-button class="btn-green">Green</a-button>
45
- <a-button class="btn-cyan">Cyan</a-button>
46
- </div>
47
- <div class="button-group">
48
- <a-button class="btn-blue">Blue</a-button>
49
- <a-button class="btn-arcoblue">Arco Blue</a-button>
50
- <a-button class="btn-purple">Purple</a-button>
51
- <a-button class="btn-pinkpurple">Pink Purple</a-button>
52
- <a-button class="btn-magenta">Magenta</a-button>
53
- </div>
54
- </div>
55
-
56
- <div class="demo-block">
57
- <h3>尺寸变化</h3>
58
- <div class="button-group">
59
- <a-button class="btn-success" size="small">Small</a-button>
60
- <a-button class="btn-warning">Default</a-button>
61
- <a-button class="btn-error" size="large">Large</a-button>
62
- </div>
63
- </div>
64
-
65
- <div class="demo-block">
66
- <h3>边框按钮样式</h3>
67
- <div class="button-group">
68
- <a-button class="btn-bordered-primary">Primary</a-button>
69
- <a-button class="btn-bordered-success">Success</a-button>
70
- <a-button class="btn-bordered-warning">Warning</a-button>
71
- <a-button class="btn-bordered-error">Error</a-button>
72
- </div>
73
- <div class="button-group">
74
- <a-button class="btn-bordered-red">Red</a-button>
75
- <a-button class="btn-bordered-orangered">Orange Red</a-button>
76
- <a-button class="btn-bordered-orange">Orange</a-button>
77
- <a-button class="btn-bordered-gold">Gold</a-button>
78
- <a-button class="btn-bordered-yellow">Yellow</a-button>
79
- <a-button class="btn-bordered-lime">Lime</a-button>
80
- <a-button class="btn-bordered-green">Green</a-button>
81
- <a-button class="btn-bordered-cyan">Cyan</a-button>
82
- </div>
83
- <div class="button-group">
84
- <a-button class="btn-bordered-blue">Blue</a-button>
85
- <a-button class="btn-bordered-arcoblue">Arco Blue</a-button>
86
- <a-button class="btn-bordered-purple">Purple</a-button>
87
- <a-button class="btn-bordered-pinkpurple">Pink Purple</a-button>
88
- <a-button class="btn-bordered-magenta">Magenta</a-button>
89
- </div>
90
- </div>
91
-
92
- <div class="demo-block">
93
- <h3>虚线按钮样式</h3>
94
- <div class="button-group">
95
- <a-button class="btn-dashed-primary">Primary</a-button>
96
- <a-button class="btn-dashed-success">Success</a-button>
97
- <a-button class="btn-dashed-warning">Warning</a-button>
98
- <a-button class="btn-dashed-error">Error</a-button>
99
- </div>
100
- <div class="button-group">
101
- <a-button class="btn-dashed-red">Red</a-button>
102
- <a-button class="btn-dashed-orangered">Orange Red</a-button>
103
- <a-button class="btn-dashed-orange">Orange</a-button>
104
- <a-button class="btn-dashed-gold">Gold</a-button>
105
- <a-button class="btn-dashed-yellow">Yellow</a-button>
106
- <a-button class="btn-dashed-lime">Lime</a-button>
107
- <a-button class="btn-dashed-green">Green</a-button>
108
- <a-button class="btn-dashed-cyan">Cyan</a-button>
109
- </div>
110
- <div class="button-group">
111
- <a-button class="btn-dashed-blue">Blue</a-button>
112
- <a-button class="btn-dashed-arcoblue">Arco Blue</a-button>
113
- <a-button class="btn-dashed-purple">Purple</a-button>
114
- <a-button class="btn-dashed-pinkpurple">Pink Purple</a-button>
115
- <a-button class="btn-dashed-magenta">Magenta</a-button>
116
- </div>
117
- </div>
118
- </div>
119
-
120
- <!-- 使用说明 -->
121
- <div class="section">
122
- <h2>使用说明</h2>
123
- <div class="demo-block">
124
- <h3>类名组合方式</h3>
125
- <div class="usage-example">
126
- <h4>1. 基础填充按钮</h4>
127
- <code
128
- >&lt;a-button class="btn-primary"&gt;Primary
129
- Button&lt;/a-button&gt;</code
130
- >
131
-
132
- <h4>2. 虚线按钮</h4>
133
- <code
134
- >&lt;a-button class="btn-dashed-primary"&gt;Dashed
135
- Primary&lt;/a-button&gt;</code
136
- >
137
-
138
- <h4>3. 圆角按钮(组合使用)</h4>
139
- <code
140
- >&lt;a-button class="btn-primary border-radius"&gt;Rounded
141
- Primary&lt;/a-button&gt;</code
142
- >
143
-
144
- <h4>4. 尺寸调整(使用 Ant Design Vue 原生属性)</h4>
145
- <code
146
- >&lt;a-button class="btn-success" size="small"&gt;Small
147
- Button&lt;/a-button&gt;<br />
148
- &lt;a-button class="btn-warning" size="large"&gt;Large
149
- Button&lt;/a-button&gt;</code
150
- >
151
-
152
- <h4>5. 结合 Ant Design Vue 原生属性</h4>
153
- <code
154
- >&lt;a-button class="btn-primary" loading&gt;Loading
155
- Button&lt;/a-button&gt;<br />
156
- &lt;a-button class="btn-success" disabled&gt;Disabled
157
- Button&lt;/a-button&gt;</code
158
- >
159
- </div>
160
- </div>
161
-
162
- <div class="demo-block">
163
- <h3>颜色选择</h3>
164
- <p>ZCUI 提供了丰富的颜色选择:</p>
165
- <ul class="color-list">
166
- <li><strong>基础颜色</strong>: primary, success, warning, error</li>
167
- <li>
168
- <strong>扩展颜色</strong>: red, orangered, orange, gold, yellow, lime,
169
- green, cyan, blue, arcoblue, purple, pinkpurple, magenta
170
- </li>
171
- </ul>
172
- </div>
173
- </div>
174
- </div>
175
- </template>
176
-
177
- <script setup>
178
- // ZCUI 按钮组件无需额外 JavaScript 代码
179
- </script>
180
-
181
- <style scoped>
182
- .demo-container {
183
- padding: 24px;
184
- background: #f5f5f5;
185
- min-height: 100vh;
186
- }
187
-
188
- h1 {
189
- color: #1890ff;
190
- margin-bottom: 30px;
191
- text-align: center;
192
- }
193
-
194
- .section {
195
- margin-bottom: 40px;
196
- background: white;
197
- padding: 24px;
198
- border-radius: 8px;
199
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
200
- }
201
-
202
- .section h2 {
203
- color: #262626;
204
- margin-bottom: 20px;
205
- padding-bottom: 10px;
206
- border-bottom: 2px solid #1890ff;
207
- font-size: 18px;
208
- }
209
-
210
- .demo-block {
211
- margin-bottom: 30px;
212
- padding: 20px;
213
- background: #fafafa;
214
- border-radius: 6px;
215
- border-left: 4px solid #1890ff;
216
- }
217
-
218
- .demo-block h3 {
219
- color: #595959;
220
- margin-bottom: 15px;
221
- font-size: 16px;
222
- }
223
-
224
- .button-group {
225
- display: flex;
226
- flex-wrap: wrap;
227
- gap: 8px;
228
- align-items: center;
229
- }
230
-
231
- /* Ant Design Vue 按钮间距调整 */
232
- :deep(.ant-btn) {
233
- margin-right: 8px;
234
- margin-bottom: 8px;
235
- }
236
-
237
- /* ZCUI 按钮样式保持 */
238
- :deep(.btn-nobor) {
239
- margin: 0 3px;
240
- }
241
-
242
- /* 响应式设计 */
243
- @media (max-width: 768px) {
244
- .demo-container {
245
- padding: 16px;
246
- }
247
-
248
- .button-group {
249
- flex-direction: column;
250
- align-items: flex-start;
251
- }
252
-
253
- :deep(.ant-btn) {
254
- width: 100%;
255
- margin-right: 0;
256
- }
257
- }
258
-
259
- /* 悬停效果展示区域 */
260
- .demo-block:hover {
261
- background: #f0f9ff;
262
- transition: all 0.3s ease;
263
- }
264
-
265
- .demo-block h3::before {
266
- content: '🎨 ';
267
- margin-right: 5px;
268
- }
269
- </style>
1
+ <template>
2
+ <div class="demo-container">
3
+ <h1>ZCUI 自定义按钮样式示例</h1>
4
+
5
+ <!-- 官方组件链接 -->
6
+ <div class="section">
7
+ <h2>官方组件库</h2>
8
+ <div class="demo-block">
9
+ <p>
10
+ Ant Design Vue 按钮组件文档:<a
11
+ href="https://www.antdv.com/components/button-cn"
12
+ target="_blank"
13
+ class="doc-link"
14
+ >https://www.antdv.com/components/button-cn</a
15
+ >
16
+ </p>
17
+ <p>如需查看官方按钮组件示例,请访问上述链接。</p>
18
+ </div>
19
+ </div>
20
+
21
+ <!-- ZCUI 自定义按钮(基于 Ant Design Vue) -->
22
+ <div class="section">
23
+ <h2>ZCUI 自定义按钮(Ant Design Vue + zcui.css 样式)</h2>
24
+
25
+ <div class="demo-block">
26
+ <h3>基础功能色</h3>
27
+ <div class="button-group">
28
+ <a-button class="btn-primary">Primary</a-button>
29
+ <a-button class="btn-success">Success</a-button>
30
+ <a-button class="btn-warning">Warning</a-button>
31
+ <a-button class="btn-error">Error</a-button>
32
+ </div>
33
+ </div>
34
+
35
+ <div class="demo-block">
36
+ <h3>扩展颜色系</h3>
37
+ <div class="button-group">
38
+ <a-button class="btn-red">Red</a-button>
39
+ <a-button class="btn-orangered">Orange Red</a-button>
40
+ <a-button class="btn-orange">Orange</a-button>
41
+ <a-button class="btn-gold">Gold</a-button>
42
+ <a-button class="btn-yellow">Yellow</a-button>
43
+ <a-button class="btn-lime">Lime</a-button>
44
+ <a-button class="btn-green">Green</a-button>
45
+ <a-button class="btn-cyan">Cyan</a-button>
46
+ </div>
47
+ <div class="button-group">
48
+ <a-button class="btn-blue">Blue</a-button>
49
+ <a-button class="btn-arcoblue">Arco Blue</a-button>
50
+ <a-button class="btn-purple">Purple</a-button>
51
+ <a-button class="btn-pinkpurple">Pink Purple</a-button>
52
+ <a-button class="btn-magenta">Magenta</a-button>
53
+ </div>
54
+ </div>
55
+
56
+ <div class="demo-block">
57
+ <h3>尺寸变化</h3>
58
+ <div class="button-group">
59
+ <a-button class="btn-success" size="small">Small</a-button>
60
+ <a-button class="btn-warning">Default</a-button>
61
+ <a-button class="btn-error" size="large">Large</a-button>
62
+ </div>
63
+ </div>
64
+
65
+ <div class="demo-block">
66
+ <h3>边框按钮样式</h3>
67
+ <div class="button-group">
68
+ <a-button class="btn-bordered-primary">Primary</a-button>
69
+ <a-button class="btn-bordered-success">Success</a-button>
70
+ <a-button class="btn-bordered-warning">Warning</a-button>
71
+ <a-button class="btn-bordered-error">Error</a-button>
72
+ </div>
73
+ <div class="button-group">
74
+ <a-button class="btn-bordered-red">Red</a-button>
75
+ <a-button class="btn-bordered-orangered">Orange Red</a-button>
76
+ <a-button class="btn-bordered-orange">Orange</a-button>
77
+ <a-button class="btn-bordered-gold">Gold</a-button>
78
+ <a-button class="btn-bordered-yellow">Yellow</a-button>
79
+ <a-button class="btn-bordered-lime">Lime</a-button>
80
+ <a-button class="btn-bordered-green">Green</a-button>
81
+ <a-button class="btn-bordered-cyan">Cyan</a-button>
82
+ </div>
83
+ <div class="button-group">
84
+ <a-button class="btn-bordered-blue">Blue</a-button>
85
+ <a-button class="btn-bordered-arcoblue">Arco Blue</a-button>
86
+ <a-button class="btn-bordered-purple">Purple</a-button>
87
+ <a-button class="btn-bordered-pinkpurple">Pink Purple</a-button>
88
+ <a-button class="btn-bordered-magenta">Magenta</a-button>
89
+ </div>
90
+ </div>
91
+
92
+ <div class="demo-block">
93
+ <h3>虚线按钮样式</h3>
94
+ <div class="button-group">
95
+ <a-button class="btn-dashed-primary">Primary</a-button>
96
+ <a-button class="btn-dashed-success">Success</a-button>
97
+ <a-button class="btn-dashed-warning">Warning</a-button>
98
+ <a-button class="btn-dashed-error">Error</a-button>
99
+ </div>
100
+ <div class="button-group">
101
+ <a-button class="btn-dashed-red">Red</a-button>
102
+ <a-button class="btn-dashed-orangered">Orange Red</a-button>
103
+ <a-button class="btn-dashed-orange">Orange</a-button>
104
+ <a-button class="btn-dashed-gold">Gold</a-button>
105
+ <a-button class="btn-dashed-yellow">Yellow</a-button>
106
+ <a-button class="btn-dashed-lime">Lime</a-button>
107
+ <a-button class="btn-dashed-green">Green</a-button>
108
+ <a-button class="btn-dashed-cyan">Cyan</a-button>
109
+ </div>
110
+ <div class="button-group">
111
+ <a-button class="btn-dashed-blue">Blue</a-button>
112
+ <a-button class="btn-dashed-arcoblue">Arco Blue</a-button>
113
+ <a-button class="btn-dashed-purple">Purple</a-button>
114
+ <a-button class="btn-dashed-pinkpurple">Pink Purple</a-button>
115
+ <a-button class="btn-dashed-magenta">Magenta</a-button>
116
+ </div>
117
+ </div>
118
+ </div>
119
+
120
+ <!-- 使用说明 -->
121
+ <div class="section">
122
+ <h2>使用说明</h2>
123
+ <div class="demo-block">
124
+ <h3>类名组合方式</h3>
125
+ <div class="usage-example">
126
+ <h4>1. 基础填充按钮</h4>
127
+ <code
128
+ >&lt;a-button class="btn-primary"&gt;Primary
129
+ Button&lt;/a-button&gt;</code
130
+ >
131
+
132
+ <h4>2. 虚线按钮</h4>
133
+ <code
134
+ >&lt;a-button class="btn-dashed-primary"&gt;Dashed
135
+ Primary&lt;/a-button&gt;</code
136
+ >
137
+
138
+ <h4>3. 圆角按钮(组合使用)</h4>
139
+ <code
140
+ >&lt;a-button class="btn-primary border-radius"&gt;Rounded
141
+ Primary&lt;/a-button&gt;</code
142
+ >
143
+
144
+ <h4>4. 尺寸调整(使用 Ant Design Vue 原生属性)</h4>
145
+ <code
146
+ >&lt;a-button class="btn-success" size="small"&gt;Small
147
+ Button&lt;/a-button&gt;<br />
148
+ &lt;a-button class="btn-warning" size="large"&gt;Large
149
+ Button&lt;/a-button&gt;</code
150
+ >
151
+
152
+ <h4>5. 结合 Ant Design Vue 原生属性</h4>
153
+ <code
154
+ >&lt;a-button class="btn-primary" loading&gt;Loading
155
+ Button&lt;/a-button&gt;<br />
156
+ &lt;a-button class="btn-success" disabled&gt;Disabled
157
+ Button&lt;/a-button&gt;</code
158
+ >
159
+ </div>
160
+ </div>
161
+
162
+ <div class="demo-block">
163
+ <h3>颜色选择</h3>
164
+ <p>ZCUI 提供了丰富的颜色选择:</p>
165
+ <ul class="color-list">
166
+ <li><strong>基础颜色</strong>: primary, success, warning, error</li>
167
+ <li>
168
+ <strong>扩展颜色</strong>: red, orangered, orange, gold, yellow, lime,
169
+ green, cyan, blue, arcoblue, purple, pinkpurple, magenta
170
+ </li>
171
+ </ul>
172
+ </div>
173
+ </div>
174
+ </div>
175
+ </template>
176
+
177
+ <script setup>
178
+ // ZCUI 按钮组件无需额外 JavaScript 代码
179
+ </script>
180
+
181
+ <style scoped>
182
+ .demo-container {
183
+ padding: 24px;
184
+ background: #f5f5f5;
185
+ min-height: 100vh;
186
+ }
187
+
188
+ h1 {
189
+ color: #1890ff;
190
+ margin-bottom: 30px;
191
+ text-align: center;
192
+ }
193
+
194
+ .section {
195
+ margin-bottom: 40px;
196
+ background: white;
197
+ padding: 24px;
198
+ border-radius: 8px;
199
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
200
+ }
201
+
202
+ .section h2 {
203
+ color: #262626;
204
+ margin-bottom: 20px;
205
+ padding-bottom: 10px;
206
+ border-bottom: 2px solid #1890ff;
207
+ font-size: 18px;
208
+ }
209
+
210
+ .demo-block {
211
+ margin-bottom: 30px;
212
+ padding: 20px;
213
+ background: #fafafa;
214
+ border-radius: 6px;
215
+ border-left: 4px solid #1890ff;
216
+ }
217
+
218
+ .demo-block h3 {
219
+ color: #595959;
220
+ margin-bottom: 15px;
221
+ font-size: 16px;
222
+ }
223
+
224
+ .button-group {
225
+ display: flex;
226
+ flex-wrap: wrap;
227
+ gap: 8px;
228
+ align-items: center;
229
+ }
230
+
231
+ /* Ant Design Vue 按钮间距调整 */
232
+ :deep(.ant-btn) {
233
+ margin-right: 8px;
234
+ margin-bottom: 8px;
235
+ }
236
+
237
+ /* ZCUI 按钮样式保持 */
238
+ :deep(.btn-nobor) {
239
+ margin: 0 3px;
240
+ }
241
+
242
+ /* 响应式设计 */
243
+ @media (max-width: 768px) {
244
+ .demo-container {
245
+ padding: 16px;
246
+ }
247
+
248
+ .button-group {
249
+ flex-direction: column;
250
+ align-items: flex-start;
251
+ }
252
+
253
+ :deep(.ant-btn) {
254
+ width: 100%;
255
+ margin-right: 0;
256
+ }
257
+ }
258
+
259
+ /* 悬停效果展示区域 */
260
+ .demo-block:hover {
261
+ background: #f0f9ff;
262
+ transition: all 0.3s ease;
263
+ }
264
+
265
+ .demo-block h3::before {
266
+ content: '🎨 ';
267
+ margin-right: 5px;
268
+ }
269
+ </style>