hy-dispatch-ui-v3 0.2.65 → 0.2.67

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 (144) hide show
  1. package/dist/tailwind.css +51 -13
  2. package/es/api/organization.mjs +43 -0
  3. package/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.mjs +245 -0
  4. package/es/bussiness/hyAcquisitionStationTree/index.mjs +7 -0
  5. package/es/bussiness/hyAcquisitionStationTree/js/index.mjs +124 -0
  6. package/es/bussiness/hyAcquisitionStationTree/style/acquisitionStationTree.scss +0 -0
  7. package/es/bussiness/hyDeviceTree/deviceTree.vue.mjs +249 -0
  8. package/es/bussiness/hyDeviceTree/index.mjs +7 -0
  9. package/es/bussiness/hyDeviceTree/js/index.mjs +126 -0
  10. package/es/bussiness/hyDeviceTree/style/deviceTree.scss +0 -0
  11. package/es/bussiness/hyOrgGroupTree/index.mjs +7 -0
  12. package/es/bussiness/hyOrgGroupTree/js/index.mjs +124 -0
  13. package/es/bussiness/hyOrgGroupTree/orgGroupTree.vue.mjs +245 -0
  14. package/es/bussiness/hyOrgGroupTree/style/orgGroupTree.scss +0 -0
  15. package/es/bussiness/hyPlanGroupDeviceTree/index.mjs +7 -0
  16. package/es/bussiness/hyPlanGroupDeviceTree/js/index.mjs +124 -0
  17. package/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.mjs +245 -0
  18. package/es/bussiness/hyPlanGroupDeviceTree/style/planGroupDeviceTree.scss +0 -0
  19. package/es/bussiness/hyUserTree/index.mjs +7 -0
  20. package/es/bussiness/hyUserTree/js/index.mjs +126 -0
  21. package/es/bussiness/hyUserTree/style/userTree.scss +0 -0
  22. package/es/bussiness/hyUserTree/userTree.vue.mjs +239 -0
  23. package/es/bussiness/index.mjs +5 -0
  24. package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +183 -149
  25. package/es/components/hyButton/button.vue.mjs +19 -5
  26. package/es/components/hyButton/style/button.scss +72 -0
  27. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -2
  28. package/es/components/hyForm/cpns/formItem.vue.mjs +254 -32
  29. package/es/components/hyForm/cpns/locationSelect.vue.mjs +8 -1
  30. package/es/components/hyForm/form.vue.mjs +88 -19
  31. package/es/components/hyForm/js/index.mjs +2 -1
  32. package/es/components/hyForm/js/useAppForm.mjs +3 -3
  33. package/es/components/hyIcon/style/icon.scss +1 -0
  34. package/es/components/hyMap/js/index.mjs +6 -6
  35. package/es/components/hyMap/map.vue.mjs +14 -4
  36. package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -1
  37. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -1
  38. package/es/components/hyOrgCascader/orgCascader.vue.mjs +75 -15
  39. package/es/components/hyRadioGroup/radioGroup.vue.mjs +5 -4
  40. package/es/components/hySearch/cpns/searchItem.vue.mjs +434 -206
  41. package/es/components/hySearch/js/index.mjs +2 -1
  42. package/es/components/hySearch/search.vue.mjs +71 -10
  43. package/es/components/hySearch/style/search.scss +7 -0
  44. package/es/components/hyTable/cpns/columnSelect.vue.mjs +21 -22
  45. package/es/components/hyTable/cpns/virtualTable.vue.mjs +35 -21
  46. package/es/components/hyTable/js/index.mjs +16 -17
  47. package/es/components/hyTable/js/search.mjs +28 -2
  48. package/es/components/hyTable/style/table.scss +13 -0
  49. package/es/components/hyTable/table.vue.mjs +55 -22
  50. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +17 -12
  51. package/es/components/hyTableForm/batchTableForm.vue.mjs +36 -5
  52. package/es/components/hyTableForm/js/useAppTableForm.mjs +1 -1
  53. package/es/components/hyTableForm/tableForm.vue.mjs +84 -32
  54. package/es/components/hyTour/index.mjs +7 -0
  55. package/es/components/hyTour/style/tour.scss +0 -0
  56. package/es/components/hyTour/tour.vue.mjs +23 -0
  57. package/es/components/hyTree/config/tree-config.mjs +5 -2
  58. package/es/components/hyTree/js/index.mjs +128 -56
  59. package/es/components/hyTree/tree.vue.mjs +22 -37
  60. package/es/components/index.mjs +1 -0
  61. package/es/index.mjs +6 -0
  62. package/es/static/hy-svg-icons/hy-icon-ops-linear-arrow.js +10 -0
  63. package/es/style/element/hy-element.scss +24 -3
  64. package/es/style/index.scss +0 -1
  65. package/es/style/tailwind.scss +0 -1
  66. package/es/style/theme.scss +1 -0
  67. package/es/utils/is.mjs +3 -1
  68. package/es/utils/map/hook/bigMap.mjs +11 -1
  69. package/es/utils/map/hook/gaode.mjs +60 -17
  70. package/es/utils/map/hook/leafletjs.mjs +25 -4
  71. package/es/utils/map/index.mjs +1 -1
  72. package/es/version.mjs +1 -1
  73. package/lib/api/organization.js +47 -0
  74. package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.js +249 -0
  75. package/lib/bussiness/hyAcquisitionStationTree/index.js +12 -0
  76. package/lib/bussiness/hyAcquisitionStationTree/js/index.js +126 -0
  77. package/lib/bussiness/hyAcquisitionStationTree/style/acquisitionStationTree.scss +0 -0
  78. package/lib/bussiness/hyDeviceTree/deviceTree.vue.js +253 -0
  79. package/lib/bussiness/hyDeviceTree/index.js +12 -0
  80. package/lib/bussiness/hyDeviceTree/js/index.js +128 -0
  81. package/lib/bussiness/hyDeviceTree/style/deviceTree.scss +0 -0
  82. package/lib/bussiness/hyOrgGroupTree/index.js +12 -0
  83. package/lib/bussiness/hyOrgGroupTree/js/index.js +126 -0
  84. package/lib/bussiness/hyOrgGroupTree/orgGroupTree.vue.js +249 -0
  85. package/lib/bussiness/hyOrgGroupTree/style/orgGroupTree.scss +0 -0
  86. package/lib/bussiness/hyPlanGroupDeviceTree/index.js +12 -0
  87. package/lib/bussiness/hyPlanGroupDeviceTree/js/index.js +126 -0
  88. package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.js +249 -0
  89. package/lib/bussiness/hyPlanGroupDeviceTree/style/planGroupDeviceTree.scss +0 -0
  90. package/lib/bussiness/hyUserTree/index.js +12 -0
  91. package/lib/bussiness/hyUserTree/js/index.js +128 -0
  92. package/lib/bussiness/hyUserTree/style/userTree.scss +0 -0
  93. package/lib/bussiness/hyUserTree/userTree.vue.js +243 -0
  94. package/lib/bussiness/index.js +14 -4
  95. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +182 -148
  96. package/lib/components/hyButton/button.vue.js +18 -4
  97. package/lib/components/hyButton/style/button.scss +72 -0
  98. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +0 -1
  99. package/lib/components/hyForm/cpns/formItem.vue.js +250 -28
  100. package/lib/components/hyForm/cpns/locationSelect.vue.js +8 -1
  101. package/lib/components/hyForm/form.vue.js +86 -17
  102. package/lib/components/hyForm/js/index.js +2 -0
  103. package/lib/components/hyForm/js/useAppForm.js +3 -3
  104. package/lib/components/hyIcon/style/icon.scss +1 -0
  105. package/lib/components/hyMap/js/index.js +5 -5
  106. package/lib/components/hyMap/map.vue.js +13 -3
  107. package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -1
  108. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -1
  109. package/lib/components/hyOrgCascader/orgCascader.vue.js +73 -13
  110. package/lib/components/hyRadioGroup/radioGroup.vue.js +5 -4
  111. package/lib/components/hySearch/cpns/searchItem.vue.js +431 -203
  112. package/lib/components/hySearch/js/index.js +2 -0
  113. package/lib/components/hySearch/search.vue.js +69 -8
  114. package/lib/components/hySearch/style/search.scss +7 -0
  115. package/lib/components/hyTable/cpns/columnSelect.vue.js +20 -21
  116. package/lib/components/hyTable/cpns/virtualTable.vue.js +51 -37
  117. package/lib/components/hyTable/js/index.js +16 -16
  118. package/lib/components/hyTable/js/search.js +28 -2
  119. package/lib/components/hyTable/style/table.scss +13 -0
  120. package/lib/components/hyTable/table.vue.js +53 -20
  121. package/lib/components/hyTableActionButton/tableActionButton.vue.js +16 -11
  122. package/lib/components/hyTableForm/batchTableForm.vue.js +36 -5
  123. package/lib/components/hyTableForm/js/useAppTableForm.js +1 -1
  124. package/lib/components/hyTableForm/tableForm.vue.js +85 -33
  125. package/lib/components/hyTour/index.js +12 -0
  126. package/lib/components/hyTour/style/tour.scss +0 -0
  127. package/lib/components/hyTour/tour.vue.js +27 -0
  128. package/lib/components/hyTree/config/tree-config.js +5 -2
  129. package/lib/components/hyTree/js/index.js +128 -56
  130. package/lib/components/hyTree/tree.vue.js +22 -37
  131. package/lib/components/index.js +8 -6
  132. package/lib/index.js +67 -55
  133. package/lib/static/hy-svg-icons/hy-icon-ops-linear-arrow.js +10 -0
  134. package/lib/style/element/hy-element.scss +24 -3
  135. package/lib/style/index.scss +0 -1
  136. package/lib/style/tailwind.scss +0 -1
  137. package/lib/style/theme.scss +1 -0
  138. package/lib/utils/is.js +5 -3
  139. package/lib/utils/map/hook/bigMap.js +11 -1
  140. package/lib/utils/map/hook/gaode.js +60 -17
  141. package/lib/utils/map/hook/leafletjs.js +25 -4
  142. package/lib/utils/map/index.js +1 -1
  143. package/lib/version.js +1 -1
  144. package/package.json +2 -2
@@ -1,10 +1,10 @@
1
- import { defineComponent, useModel, useTemplateRef, openBlock, createElementBlock, createCommentVNode, createElementVNode, createBlock, unref, createVNode, toDisplayString, withCtx, renderSlot, normalizeClass, createSlots, renderList, normalizeProps, guardReactiveProps, mergeProps, Fragment, withModifiers, isRef, mergeModels } from 'vue';
1
+ import { defineComponent, useModel, useTemplateRef, openBlock, createElementBlock, createCommentVNode, createElementVNode, createBlock, unref, createVNode, toDisplayString, withCtx, renderSlot, normalizeClass, createSlots, renderList, normalizeProps, guardReactiveProps, mergeProps, Fragment, withModifiers, normalizeStyle, isRef, mergeModels } from 'vue';
2
2
  import { ElTable, ElTableColumn, ElDropdown, ElIcon, ElDropdownMenu, ElDropdownItem, ElAutoResizer, ElPagination } from 'element-plus';
3
3
  import { MoreFilled } from '@element-plus/icons-vue';
4
4
  import '../index.mjs';
5
5
  import '../../hooks/index.mjs';
6
6
  import '../../utils/index.mjs';
7
- import { useAppTableWrapper, operatorFilterHandler, operatorClickHandler, operatorDisabledHandler, operatorDisableTextdHandler, renderContentHandler, renderHeaderHandler } from './js/index.mjs';
7
+ import { useAppTableWrapper, operatorFilterHandler, operatorClickHandler, operatorDisabledHandler, operatorIsDotHandler, operatorDisableTextdHandler, renderContentHandler, renderHeaderHandler } from './js/index.mjs';
8
8
  import { useAppTableSearch } from './js/search.mjs';
9
9
  import _sfc_main$2 from './cpns/headerItem.vue.mjs';
10
10
  import _sfc_main$1 from './cpns/columnSelect.vue.mjs';
@@ -235,9 +235,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
235
235
  onTableRowContextmenuHandler,
236
236
  onTableRowExpandChangeHandler,
237
237
  onTableSelectHandler,
238
- isSearchFocus,
239
- onSearchInputHandler,
240
- onSearchBlurHandler,
241
238
  // useAppTableSearch
242
239
  // 表单查询
243
240
  totalElements,
@@ -254,7 +251,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
254
251
  onCurrentChangeHandler,
255
252
  onSearchQueryHandler,
256
253
  showAppTableLoading,
257
- closeAppTableLoading
254
+ closeAppTableLoading,
255
+ getOptions,
256
+ getOptionsFields,
257
+ getOptionsError,
258
+ getOptionsByField
258
259
  } = useMixins(
259
260
  {
260
261
  props,
@@ -284,7 +285,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
284
285
  setRowExpansion,
285
286
  toggleRowExpansion,
286
287
  showAppTableLoading,
287
- closeAppTableLoading
288
+ closeAppTableLoading,
289
+ getOptions,
290
+ getOptionsFields,
291
+ getOptionsError,
292
+ getOptionsByField
288
293
  });
289
294
  return (_ctx, _cache) => {
290
295
  return openBlock(), createElementBlock(
@@ -378,7 +383,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
378
383
  columns: __props.filterColumns,
379
384
  hidden: !unref(showFilter),
380
385
  class: normalizeClass({ "mb-4": unref(showFilter) }),
381
- onSearch: ($event) => unref(getData)(1)
386
+ onSearch: ($event) => unref(getData)(1),
387
+ onOptionsStatus: _ctx.$attrs.onOptionsStatus
382
388
  }, createSlots({
383
389
  _: 2
384
390
  /* DYNAMIC */
@@ -391,7 +397,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
391
397
  ])
392
398
  };
393
399
  })
394
- ]), 1032, ["model", "columns", "hidden", "class", "onSearch"])) : createCommentVNode("v-if", true),
400
+ ]), 1032, ["model", "columns", "hidden", "class", "onSearch", "onOptionsStatus"])) : createCommentVNode("v-if", true),
395
401
  createCommentVNode(" \u4E3B\u5185\u5BB9 "),
396
402
  createElementVNode("div", { class: "h-0 flex-1 flex flex-col border border-border rounded overflow-hidden" }, [
397
403
  createCommentVNode(" \u8868\u683C "),
@@ -411,8 +417,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
411
417
  "font-size": `${unref(parseRem)(__props.fontSize)}rem`
412
418
  },
413
419
  "expand-row-keys": unref(expandRowKeys),
414
- onSelect: unref(onTableSelectHandler),
415
- onSelectAll: unref(onTableSelectHandler),
420
+ onSelect: (list, row) => unref(onTableSelectHandler)(list, row),
421
+ onSelectAll: (list) => unref(onTableSelectHandler)(list, null, true),
416
422
  onRowClick: unref(onTableRowClickHandler),
417
423
  onRowContextmenu: unref(onTableRowContextmenuHandler),
418
424
  onExpandChange: unref(onTableRowExpandChangeHandler)
@@ -445,7 +451,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
445
451
  key: 0,
446
452
  ref_for: true
447
453
  }, column, { "render-header": null }),
448
- {
454
+ createSlots({
449
455
  header: withCtx((scope) => [
450
456
  createVNode(_sfc_main$2, {
451
457
  type: "default",
@@ -488,7 +494,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
488
494
  }, {
489
495
  default: withCtx(() => [
490
496
  createElementVNode("div", {
491
- class: normalizeClass(["w-[40px] h-[48px] inline-flex flex-col items-center justify-center text-xs hover:font-bold border border-transparent hover:border-theme hover:shadow-[0px_0px_5px_0px_rgba(var(--hy-theme),0.5)] rounded box-border", [
497
+ class: normalizeClass(["w-[40px] h-[48px] inline-flex flex-col items-center justify-center text-xs hover:font-bold border border-transparent hover:border-theme hover:shadow-[0px_0px_5px_0px_rgba(var(--hy-theme),0.5)] rounded relative box-border", [
492
498
  citem.className,
493
499
  unref(operatorDisabledHandler)(citem, scope) ? "cursor-not-allowed text-[var(--hy-el-text-color-disabled)] hover:border-[rgba(var(--hy-auxiliary),1)] hover:shadow-[0px_0px_5px_0px_rgba(var(--hy-auxiliary),0.5)]" : "cursor-pointer hover:border-theme hover:shadow-[0px_0px_5px_0px_rgba(var(--hy-theme),0.5)]"
494
500
  ]]),
@@ -512,7 +518,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
512
518
  )) : (openBlock(), createElementBlock("div", {
513
519
  key: 1,
514
520
  class: "mt-1 whitespace-nowrap"
515
- }, "\xA0"))
521
+ }, "\xA0")),
522
+ unref(operatorIsDotHandler)(citem, scope) ? (openBlock(), createElementBlock("div", {
523
+ key: 2,
524
+ class: "w-2 h-2 absolute right-0 top-0 transform translate-x-1/2 -translate-y-1/2 rounded-full bg-danger-2 z-[2]"
525
+ })) : createCommentVNode("v-if", true)
516
526
  ], 42, ["onClick", "onContextmenu"])
517
527
  ]),
518
528
  _: 2
@@ -535,7 +545,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
535
545
  dropdown: withCtx(() => [
536
546
  createVNode(
537
547
  unref(ElDropdownMenu),
538
- null,
548
+ { class: "hy-table-dropdown-menu" },
539
549
  {
540
550
  default: withCtx(() => [
541
551
  (openBlock(true), createElementBlock(
@@ -552,10 +562,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
552
562
  disabled: unref(operatorDisabledHandler)(citem, scope)
553
563
  }, {
554
564
  default: withCtx(() => [
555
- createElementVNode("span", null, [
565
+ createElementVNode("span", { class: "relative" }, [
556
566
  createElementVNode(
557
567
  "span",
558
- null,
568
+ { class: "pr-1" },
559
569
  toDisplayString(citem.label),
560
570
  1
561
571
  /* TEXT */
@@ -569,7 +579,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
569
579
  "\uFF08" + toDisplayString(unref(operatorDisableTextdHandler)(citem, scope)) + "\uFF09",
570
580
  1
571
581
  /* TEXT */
572
- )) : createCommentVNode("v-if", true)
582
+ )) : createCommentVNode("v-if", true),
583
+ unref(operatorIsDotHandler)(citem, scope) ? (openBlock(), createElementBlock("div", {
584
+ key: 1,
585
+ class: "w-2 h-2 absolute right-0 top-0 transform translate-x-1/2 -translate-y-1/2 rounded-full bg-danger-2 z-[2]"
586
+ })) : createCommentVNode("v-if", true)
573
587
  ])
574
588
  ]),
575
589
  _: 2
@@ -648,7 +662,22 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
648
662
  ]),
649
663
  _: 2
650
664
  /* DYNAMIC */
651
- },
665
+ }, [
666
+ column.type === "expand" ? {
667
+ name: "expand",
668
+ fn: withCtx(({ expandable, expanded }) => [
669
+ expandable ? (openBlock(), createBlock(unref(HyIcon), {
670
+ key: 0,
671
+ "svg-name": "dispatch-linear-arrow-down-bold",
672
+ "class-name": "!w-3 !h-3 text-main transition",
673
+ style: normalizeStyle({
674
+ transform: expanded ? "rotate(0deg)" : "rotate(-90deg)"
675
+ })
676
+ }, null, 8, ["style"])) : createCommentVNode("v-if", true)
677
+ ]),
678
+ key: "0"
679
+ } : void 0
680
+ ]),
652
681
  1040
653
682
  /* FULL_PROPS, DYNAMIC_SLOTS */
654
683
  )) : createCommentVNode("v-if", true)
@@ -794,10 +823,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
794
823
  disabled: unref(operatorDisabledHandler)(citem, unref(tableTriggerRef).scope)
795
824
  }, {
796
825
  default: withCtx(() => [
797
- createElementVNode("span", null, [
826
+ createElementVNode("span", { class: "relative" }, [
798
827
  createElementVNode(
799
828
  "span",
800
- null,
829
+ { class: "pr-1" },
801
830
  toDisplayString(citem.label),
802
831
  1
803
832
  /* TEXT */
@@ -811,7 +840,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
811
840
  "\uFF08" + toDisplayString(unref(operatorDisableTextdHandler)(citem, unref(tableTriggerRef).scope)) + "\uFF09",
812
841
  1
813
842
  /* TEXT */
814
- )) : createCommentVNode("v-if", true)
843
+ )) : createCommentVNode("v-if", true),
844
+ unref(operatorIsDotHandler)(citem, unref(tableTriggerRef).scope) ? (openBlock(), createElementBlock("div", {
845
+ key: 1,
846
+ class: "w-2 h-2 absolute right-0 top-0 transform translate-x-1/2 -translate-y-1/2 rounded-full bg-danger-2 z-[2]"
847
+ })) : createCommentVNode("v-if", true)
815
848
  ])
816
849
  ]),
817
850
  _: 2
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, unref, watch, openBlock, createElementBlock, createBlock, withCtx, createVNode, normalizeClass, createTextVNode, toDisplayString, createElementVNode, Fragment, renderList, createCommentVNode, normalizeStyle } from 'vue';
2
2
  import { ElPopover, ElIcon } from 'element-plus';
3
- import { Warning, ArrowDown } from '@element-plus/icons-vue';
3
+ import { ArrowDown } from '@element-plus/icons-vue';
4
4
  import '../../hooks/index.mjs';
5
5
  import '../../utils/index.mjs';
6
6
  import '../index.mjs';
@@ -20,7 +20,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
20
20
  type: {
21
21
  type: String,
22
22
  default: "default"
23
- // default 默认 primary 亮色 success 添加 danger 删除
23
+ // default 默认 primary 亮色 success 添加 danger 删除 operate 操作
24
24
  },
25
25
  size: {
26
26
  type: String,
@@ -50,7 +50,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
50
50
  buttonClass: {
51
51
  type: String,
52
52
  default: () => {
53
- return "button_addTo";
53
+ return "";
54
54
  }
55
55
  },
56
56
  // 操作数据
@@ -59,6 +59,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
59
59
  default: () => {
60
60
  return [];
61
61
  }
62
+ },
63
+ isDot: {
64
+ // 是否显示小红点
65
+ type: Boolean,
66
+ default: false
62
67
  }
63
68
  },
64
69
  emits: ["change"],
@@ -144,6 +149,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
144
149
  disabled: __props.disabled,
145
150
  class: normalizeClass(selectedData.value.buttonClass || __props.buttonClass),
146
151
  svgName: selectedData.value.svgName || __props.svgName,
152
+ isDot: __props.isDot,
147
153
  onClick: ($event) => buttonChange(selectedData.value)
148
154
  }, {
149
155
  default: withCtx(() => [
@@ -155,7 +161,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
155
161
  ]),
156
162
  _: 1
157
163
  /* STABLE */
158
- }, 8, ["type", "size", "disabled", "class", "svgName", "onClick"])
164
+ }, 8, ["type", "size", "disabled", "class", "svgName", "isDot", "onClick"])
159
165
  ]),
160
166
  _: 1
161
167
  /* STABLE */
@@ -174,6 +180,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
174
180
  size: __props.size,
175
181
  disabled: __props.disabled,
176
182
  class: normalizeClass(__props.buttonClass),
183
+ isDot: __props.isDot,
177
184
  onClick: ($event) => buttonChange(selectedData.value)
178
185
  }, {
179
186
  content: withCtx(() => [
@@ -193,7 +200,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
193
200
  "bg-auxiliary": __props.type === "default",
194
201
  "bg-success": __props.type === "success",
195
202
  "bg-theme": __props.type === "primary",
196
- "bg-danger-2": __props.type === "danger"
203
+ "bg-danger-2": __props.type === "danger",
204
+ "bg-success-3": __props.type === "operate"
197
205
  }])
198
206
  },
199
207
  null,
@@ -218,7 +226,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
218
226
  ]),
219
227
  _: 1
220
228
  /* STABLE */
221
- }, 8, ["type", "size", "disabled", "class", "onClick"])
229
+ }, 8, ["type", "size", "disabled", "class", "isDot", "onClick"])
222
230
  ]),
223
231
  default: withCtx(() => [
224
232
  createElementVNode("ul", { class: "max-h-[500px] overflow-x-auto box-border" }, [
@@ -283,12 +291,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
283
291
  placement: "top"
284
292
  }, {
285
293
  default: withCtx(() => [
286
- createVNode(unref(ElIcon), { class: "flex-shrink-0 ml-2 text-auxiliary" }, {
287
- default: withCtx(() => [
288
- createVNode(unref(Warning))
289
- ]),
290
- _: 1
291
- /* STABLE */
294
+ createVNode(unref(HyIcon), {
295
+ "svg-name": "dispatch-share1-prompt",
296
+ class: "!w-3 !h-3 ml-2 text-auxiliary"
292
297
  })
293
298
  ]),
294
299
  _: 1
@@ -88,7 +88,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
88
88
  "uploaded",
89
89
  "reset",
90
90
  "submitting",
91
- "submit"
91
+ "submit",
92
+ "submitProgress",
93
+ "tableDataChange"
92
94
  ], ["update:step"]),
93
95
  setup(__props, { expose: __expose, emit: __emit }) {
94
96
  const props = __props;
@@ -123,6 +125,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
123
125
  const submitting = ref(false);
124
126
  const submitProgress = ref(0);
125
127
  const submitModel = ref("default");
128
+ function tableDataChange(e) {
129
+ emits("tableDataChange", e);
130
+ }
131
+ function setSubmitProgress(newSubmitProgress = 0) {
132
+ submitProgress.value = newSubmitProgress;
133
+ emits("submitProgress", newSubmitProgress);
134
+ }
126
135
  function setData(data = []) {
127
136
  if (!tableRef.value) return;
128
137
  tableRef.value.setData(data);
@@ -240,13 +249,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
240
249
  }
241
250
  }
242
251
  const submitList = [];
243
- submitProgress.value = 0;
252
+ setSubmitProgress(0);
244
253
  submitting.value = true;
245
254
  emits("submitting");
246
255
  for (let i = 0; i <= dataSource.length - 1; i++) {
247
256
  const target = dataSource[i];
248
257
  const { onlyId, errorMsg, errorMap, children, ...data } = target;
249
- submitProgress.value = Math.floor((i + 1) / total * 100);
258
+ setSubmitProgress(Math.floor((i + 1) / total * 100));
250
259
  if (errorMsg) {
251
260
  continue;
252
261
  }
@@ -321,6 +330,26 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
321
330
  active.value++;
322
331
  }
323
332
  return active.value;
333
+ },
334
+ async getOptions() {
335
+ if (tableRef.value) {
336
+ await tableRef.value.getOptions();
337
+ }
338
+ },
339
+ async getOptionsFields(keys) {
340
+ if (tableRef.value) {
341
+ await tableRef.value.getOptionsFields(keys);
342
+ }
343
+ },
344
+ async getOptionsError() {
345
+ if (tableRef.value) {
346
+ await tableRef.value.getOptionsError();
347
+ }
348
+ },
349
+ getOptionsByField(key) {
350
+ if (tableRef.value) {
351
+ return tableRef.value.getOptionsByField(key);
352
+ }
324
353
  }
325
354
  });
326
355
  return (_ctx, _cache) => {
@@ -510,7 +539,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
510
539
  columnNum: __props.columnNum,
511
540
  size: __props.size,
512
541
  showAddBtn: __props.showAddBtn,
513
- class: "h-0 flex-1"
542
+ class: "h-0 flex-1",
543
+ onTableDataChange: tableDataChange,
544
+ onOptionsStatus: _ctx.$attrs.onOptionsStatus
514
545
  }), createSlots({
515
546
  _: 2
516
547
  /* DYNAMIC */
@@ -523,7 +554,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
523
554
  ])
524
555
  };
525
556
  })
526
- ]), 1040, ["tableColumns", "formColumns", "onExpandRowChange", "rules", "rowClickExpand", "columnNum", "size", "showAddBtn"])
557
+ ]), 1040, ["tableColumns", "formColumns", "onExpandRowChange", "rules", "rowClickExpand", "columnNum", "size", "showAddBtn", "onOptionsStatus"])
527
558
  ])) : createCommentVNode("v-if", true),
528
559
  submitting.value ? (openBlock(), createElementBlock("div", {
529
560
  key: 1,
@@ -9,7 +9,7 @@ const useAppTableForm = (config = {}) => {
9
9
  columns = [
10
10
  {
11
11
  type: "expand",
12
- slot: "expand",
12
+ slot: "tableFormExpand",
13
13
  expandType: "expand",
14
14
  width: 48
15
15
  },
@@ -1,6 +1,4 @@
1
- import { defineComponent, useTemplateRef, ref, computed, nextTick, openBlock, createElementBlock, createElementVNode, toDisplayString, createCommentVNode, createBlock, unref, withCtx, createTextVNode, Fragment, renderList, normalizeClass, createVNode, mergeProps, createSlots, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
2
- import { ElIcon } from 'element-plus';
3
- import { Warning } from '@element-plus/icons-vue';
1
+ import { defineComponent, useTemplateRef, ref, computed, nextTick, onMounted, watch, openBlock, createElementBlock, createElementVNode, toDisplayString, createCommentVNode, createBlock, unref, withCtx, createTextVNode, Fragment, renderList, normalizeClass, createVNode, mergeProps, createSlots, renderSlot, normalizeProps, guardReactiveProps, withDirectives, vShow } from 'vue';
4
2
  import '../index.mjs';
5
3
  import '../../utils/index.mjs';
6
4
  import { doValidate } from './js/index.mjs';
@@ -10,6 +8,7 @@ import { isArray, isObject } from '../../utils/is.mjs';
10
8
  import { cloneDeep } from '../../utils/handler.mjs';
11
9
  import { HyButton } from '../hyButton/index.mjs';
12
10
  import { HyTable } from '../hyTable/index.mjs';
11
+ import { HyIcon } from '../hyIcon/index.mjs';
13
12
  import { HyForm } from '../hyForm/index.mjs';
14
13
 
15
14
  import "./style/tableForm.scss";
@@ -68,7 +67,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
68
67
  default: true
69
68
  }
70
69
  },
71
- emits: ["validate"],
70
+ emits: ["validate", "tableDataChange"],
72
71
  setup(__props, { expose: __expose, emit: __emit }) {
73
72
  const props = __props;
74
73
  const emits = __emit;
@@ -99,6 +98,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
99
98
  ]
100
99
  });
101
100
  const isExpandValidate = ref(false);
101
+ const statistics = ref({
102
+ success: 0,
103
+ failed: 0,
104
+ total: dataSource.value.length
105
+ });
102
106
  const tableFormColumns = computed(() => {
103
107
  if (!props.tableColumns) return [];
104
108
  return [...props.tableColumns, ...operatorColumn.value];
@@ -106,19 +110,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
106
110
  const expandColumn = computed(() => {
107
111
  return props.tableColumns.find((item) => item.type === "expand");
108
112
  });
109
- const statistics = computed(() => {
110
- return dataSource.value.reduce(
111
- ({ success, failed, total }, data) => {
112
- if (!data.errorMsg) {
113
- success++;
114
- } else {
115
- failed++;
116
- }
117
- return { success, failed, total };
118
- },
119
- { success: 0, failed: 0, total: dataSource.value.length }
120
- );
121
- });
122
113
  function setData(dataSource2) {
123
114
  if (!tableRef.value) return;
124
115
  tableRef.value.setData(dataSource2);
@@ -165,10 +156,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
165
156
  await initValidateHandler([data]);
166
157
  if (!dataSource.value.length) {
167
158
  dataSource.value = [data];
168
- setData(dataSource.value);
169
159
  } else {
170
160
  dataSource.value.push(data);
171
161
  }
162
+ setData(dataSource.value);
172
163
  emits("validate", {
173
164
  ...statistics.value
174
165
  });
@@ -180,7 +171,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
180
171
  new Promise(async (resolve, reject) => {
181
172
  try {
182
173
  await doValidate(data, props.formColumns, props.rules);
183
- data.errorMsg = data.errorMsg && !data.errorMsg.prop ? data.errorMsg : null;
174
+ if (!data.errorMsg) {
175
+ data.errorMsg = { prop: "", message: "" };
176
+ } else if (!data.errorMsg.prop) {
177
+ data.errorMsg.prop = data.errorMsg.prop;
178
+ data.errorMsg.message = data.errorMsg.message;
179
+ }
184
180
  data.errorMap = /* @__PURE__ */ new Map();
185
181
  resolve();
186
182
  } catch (error) {
@@ -192,6 +188,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
192
188
  };
193
189
  if (!data.errorMsg) {
194
190
  data.errorMsg = errData;
191
+ } else if (!data.errorMsg.prop && !data.errorMsg.message) {
192
+ data.errorMsg.prop = errData.errorMsg.prop;
193
+ data.errorMsg.message = errData.errorMsg.message;
195
194
  }
196
195
  errorMap.set(errData.prop, errData.message);
197
196
  });
@@ -211,7 +210,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
211
210
  }
212
211
  try {
213
212
  await doValidate(row, props.formColumns, props.rules);
214
- row.errorMsg = null;
213
+ if (!row.errorMsg) {
214
+ row.errorMsg = { prop: "", message: "" };
215
+ } else {
216
+ row.errorMsg.prop = "";
217
+ row.errorMsg.message = "";
218
+ }
215
219
  row.errorMap = /* @__PURE__ */ new Map();
216
220
  } catch (error) {
217
221
  let errMsg = null;
@@ -227,7 +231,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
227
231
  errorMap2.set(errData.prop, errData.message);
228
232
  });
229
233
  row.errorMap = errorMap2;
230
- row.errorMsg = errMsg;
234
+ if (!row.errorMsg) {
235
+ row.errorMsg = { prop: "", message: "" };
236
+ } else {
237
+ row.errorMsg.prop = errMsg.prop;
238
+ row.errorMsg.message = errMsg.message;
239
+ }
231
240
  }
232
241
  const { onlyId, errorMsg, errorMap, children, ...data } = row;
233
242
  emits("validate", {
@@ -238,6 +247,29 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
238
247
  ...statistics.value
239
248
  });
240
249
  }
250
+ onMounted(() => {
251
+ watch(
252
+ () => dataSource.value,
253
+ () => {
254
+ emits("tableDataChange", dataSource.value);
255
+ const { success, failed } = dataSource.value.reduce(
256
+ ({ success: success2, failed: failed2 }, data) => {
257
+ if (!data.errorMsg) {
258
+ success2++;
259
+ } else {
260
+ failed2++;
261
+ }
262
+ return { success: success2, failed: failed2 };
263
+ },
264
+ { success: 0, failed: 0 }
265
+ );
266
+ statistics.value.success = success;
267
+ statistics.value.failed = failed;
268
+ statistics.value.total = dataSource.value.length;
269
+ },
270
+ { deep: true, immediate: true }
271
+ );
272
+ });
241
273
  __expose({
242
274
  setData(data) {
243
275
  dataSource.value = cloneDeep(data, true);
@@ -285,6 +317,26 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
285
317
  ...statistics.value,
286
318
  dataSource: dataSource.value
287
319
  };
320
+ },
321
+ async getOptions() {
322
+ if (formRef.value) {
323
+ await formRef.value.getOptions();
324
+ }
325
+ },
326
+ async getOptionsFields(keys) {
327
+ if (formRef.value) {
328
+ await formRef.value.getOptionsFields(keys);
329
+ }
330
+ },
331
+ async getOptionsError() {
332
+ if (formRef.value) {
333
+ await formRef.value.getOptionsError();
334
+ }
335
+ },
336
+ getOptionsByField(key) {
337
+ if (formRef.value) {
338
+ return formRef.value.getOptionsByField(key);
339
+ }
288
340
  }
289
341
  });
290
342
  return (_ctx, _cache) => {
@@ -429,19 +481,16 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
429
481
  fn: withCtx(({ row }) => [
430
482
  createElementVNode("div", { class: "w-full pl-[52px] pr-[62px] pb-2" }, [
431
483
  createElementVNode("div", { class: "h-[32px]" }, [
432
- createElementVNode(
484
+ withDirectives(createElementVNode(
433
485
  "div",
434
486
  {
435
487
  class: normalizeClass(["flex items-center gap-1.5 text-danger-2 transition-all duration-300 overflow-hidden", [row.errorMsg ? "h-full" : "h-0"]])
436
488
  },
437
489
  [
438
- row.errorMsg ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
439
- default: withCtx(() => [
440
- createVNode(unref(Warning))
441
- ]),
442
- _: 1
443
- /* STABLE */
444
- })) : createCommentVNode("v-if", true),
490
+ createVNode(unref(HyIcon), {
491
+ "svg-name": "dispatch-share1-prompt",
492
+ class: "!w-3 !h-3"
493
+ }),
445
494
  createElementVNode(
446
495
  "span",
447
496
  null,
@@ -452,7 +501,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
452
501
  ],
453
502
  2
454
503
  /* CLASS */
455
- )
504
+ ), [
505
+ [vShow, row.errorMsg.message]
506
+ ])
456
507
  ]),
457
508
  createVNode(unref(HyForm), {
458
509
  ref_key: "formRef",
@@ -464,7 +515,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
464
515
  class: "px-0",
465
516
  columnNum: __props.columnNum,
466
517
  size: __props.size,
467
- onValidate: (prop, isValid, message) => onValidateHandler(row, { prop, isValid, message })
518
+ onValidate: (prop, isValid, message) => onValidateHandler(row, { prop, isValid, message }),
519
+ onOptionsStatus: _ctx.$attrs.onOptionsStatus
468
520
  }, createSlots({
469
521
  _: 2
470
522
  /* DYNAMIC */
@@ -477,7 +529,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
477
529
  ])
478
530
  };
479
531
  })
480
- ]), 1032, ["model", "columns", "rules", "columnNum", "size", "onValidate"])
532
+ ]), 1032, ["model", "columns", "rules", "columnNum", "size", "onValidate", "onOptionsStatus"])
481
533
  ])
482
534
  ]),
483
535
  key: "0"
@@ -0,0 +1,7 @@
1
+ import _sfc_main from './tour.vue.mjs';
2
+ import '../../utils/index.mjs';
3
+ import { withInstall } from '../../utils/handler.mjs';
4
+
5
+ const HyTour = withInstall(_sfc_main);
6
+
7
+ export { HyTour, HyTour as default };
File without changes
@@ -0,0 +1,23 @@
1
+ import { defineComponent, openBlock, createElementBlock, createCommentVNode } from 'vue';
2
+
3
+ import "./style/tour.scss";
4
+
5
+ const __default__ = defineComponent({
6
+ name: "HyTour"
7
+ });
8
+ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
9
+ props: {},
10
+ emits: [],
11
+ setup(__props, { expose: __expose, emit: __emit }) {
12
+ const props = __props;
13
+ const emits = __emit;
14
+ __expose({});
15
+ return (_ctx, _cache) => {
16
+ return openBlock(), createElementBlock("div", null, [
17
+ createCommentVNode(" HyTour \u5185\u5BB9 ")
18
+ ]);
19
+ };
20
+ }
21
+ });
22
+
23
+ export { _sfc_main as default };
@@ -9,13 +9,16 @@ const treeTypeConfig = {
9
9
  // 群组设备树形
10
10
  group: "group",
11
11
  // 群组树形
12
- planGroupDevicee: "planGroupDevicee",
12
+ planGroupDevice: "planGroupDevice",
13
13
  // 预案分组树形
14
14
  cs: "cs",
15
15
  // 采集站树形
16
16
  teamUser: "teamUser",
17
17
  // 队伍树形
18
- userMail: "userMail"
18
+ userMail: "userMail",
19
+ // 用户通讯录树形
20
+ mapRail: "mapRail"
21
+ // 电子围栏树形
19
22
  };
20
23
  const searchTypeConfig = {
21
24
  fullSearch: 1,