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
Binary file
Binary file
Binary file
Binary file
@@ -316,21 +316,6 @@ import { menuStore } from '@/stores/menu'
316
316
  import { post, get, downloadFilePost } from '@/api/request'
317
317
  import { Modal, message } from 'ant-design-vue'
318
318
  import { saveAs } from 'file-saver'
319
- import {
320
- PlusOutlined,
321
- DeleteOutlined,
322
- ExportOutlined,
323
- ImportOutlined,
324
- UploadOutlined,
325
- DownloadOutlined,
326
- RedoOutlined,
327
- ColumnHeightOutlined,
328
- AlignCenterOutlined,
329
- UpOutlined,
330
- DownOutlined,
331
- InboxOutlined,
332
- FileExcelOutlined,
333
- } from '@ant-design/icons-vue'
334
319
 
335
320
  const config = configStore()
336
321
  const menu = menuStore()
@@ -365,7 +350,7 @@ const hasDeletePermission = computed(() => {
365
350
  const props = defineProps({
366
351
  formStateShow: {
367
352
  //筛选条件控制显示隐藏数量
368
- type: Int32Array,
353
+ type: Number,
369
354
  default: 7,
370
355
  },
371
356
  formState: Object, //表格上面搜索条件
@@ -378,7 +363,7 @@ const props = defineProps({
378
363
  },
379
364
  where: {
380
365
  //查询条件
381
- type: Array,
366
+ type: [Array, Object],
382
367
  default: [],
383
368
  },
384
369
  ftableAdd: {
@@ -586,7 +571,7 @@ const dropdownonTableSizeClick = ({ key }) => {
586
571
  config.tableSize = key
587
572
  formConfig.tableSize = key
588
573
  }
589
- const emit = defineEmits(['edit', 'details'])
574
+ const emit = defineEmits(['edit', 'details', 'delete'])
590
575
  //编辑
591
576
  const edit = record => {
592
577
  // 触发自定义事件,父组件会监听这个事件
@@ -613,6 +598,7 @@ const batchDelete = () => {
613
598
  onClose: () => {
614
599
  state.selectedRowKeys = []
615
600
  tableLoad()
601
+ emit('delete')
616
602
  },
617
603
  })
618
604
  })
@@ -635,6 +621,7 @@ const tabelDelete = record => {
635
621
  duration: 1,
636
622
  onClose: () => {
637
623
  tableLoad()
624
+ emit('delete')
638
625
  },
639
626
  })
640
627
  })
@@ -656,7 +643,6 @@ const dataExport = () => {
656
643
  resolve() // 请求成功后再关闭对话框
657
644
  })
658
645
  .catch(error => {
659
- console.log('Oops errors!')
660
646
  reject(error) // 请求失败时保持对话框打开
661
647
  })
662
648
  })