hy-dispatch-ui-v3 0.2.64 → 0.2.66

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 (128) hide show
  1. package/dist/tailwind.css +26 -12
  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 +18 -16
  25. package/es/components/hyButton/button.vue.mjs +3 -2
  26. package/es/components/hyButton/style/button.scss +70 -0
  27. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -2
  28. package/es/components/hyForm/cpns/formItem.vue.mjs +198 -26
  29. package/es/components/hyForm/cpns/locationSelect.vue.mjs +8 -1
  30. package/es/components/hyForm/form.vue.mjs +74 -19
  31. package/es/components/hyForm/js/index.mjs +2 -1
  32. package/es/components/hyForm/js/useAppForm.mjs +2 -2
  33. package/es/components/hyIcon/style/icon.scss +1 -0
  34. package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -1
  35. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -1
  36. package/es/components/hyOrgCascader/orgCascader.vue.mjs +69 -14
  37. package/es/components/hyRadioGroup/radioGroup.vue.mjs +5 -4
  38. package/es/components/hySearch/cpns/searchItem.vue.mjs +167 -11
  39. package/es/components/hySearch/js/index.mjs +2 -1
  40. package/es/components/hySearch/search.vue.mjs +60 -9
  41. package/es/components/hyTable/cpns/columnSelect.vue.mjs +21 -22
  42. package/es/components/hyTable/cpns/virtualTable.vue.mjs +10 -15
  43. package/es/components/hyTable/js/index.mjs +5 -12
  44. package/es/components/hyTable/js/search.mjs +3 -1
  45. package/es/components/hyTable/style/table.scss +13 -0
  46. package/es/components/hyTable/table.vue.mjs +21 -9
  47. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +8 -10
  48. package/es/components/hyTableForm/batchTableForm.vue.mjs +13 -3
  49. package/es/components/hyTableForm/tableForm.vue.mjs +17 -11
  50. package/es/components/hyTour/index.mjs +7 -0
  51. package/es/components/hyTour/style/tour.scss +0 -0
  52. package/es/components/hyTour/tour.vue.mjs +23 -0
  53. package/es/components/hyTree/config/tree-config.mjs +5 -2
  54. package/es/components/hyTree/js/index.mjs +75 -68
  55. package/es/components/hyTree/tree.vue.mjs +19 -36
  56. package/es/components/index.mjs +1 -0
  57. package/es/index.mjs +6 -0
  58. package/es/static/hy-svg-icons/hy-icon-ops-linear-arrow.js +10 -0
  59. package/es/style/element/hy-element.scss +24 -3
  60. package/es/style/theme.scss +1 -0
  61. package/es/utils/map/hook/bigMap.mjs +9 -1
  62. package/es/utils/map/hook/gaode.mjs +9 -1
  63. package/es/utils/map/hook/leafletjs.mjs +10 -1
  64. package/es/version.mjs +1 -1
  65. package/lib/api/organization.js +47 -0
  66. package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.js +249 -0
  67. package/lib/bussiness/hyAcquisitionStationTree/index.js +12 -0
  68. package/lib/bussiness/hyAcquisitionStationTree/js/index.js +126 -0
  69. package/lib/bussiness/hyAcquisitionStationTree/style/acquisitionStationTree.scss +0 -0
  70. package/lib/bussiness/hyDeviceTree/deviceTree.vue.js +253 -0
  71. package/lib/bussiness/hyDeviceTree/index.js +12 -0
  72. package/lib/bussiness/hyDeviceTree/js/index.js +128 -0
  73. package/lib/bussiness/hyDeviceTree/style/deviceTree.scss +0 -0
  74. package/lib/bussiness/hyOrgGroupTree/index.js +12 -0
  75. package/lib/bussiness/hyOrgGroupTree/js/index.js +126 -0
  76. package/lib/bussiness/hyOrgGroupTree/orgGroupTree.vue.js +249 -0
  77. package/lib/bussiness/hyOrgGroupTree/style/orgGroupTree.scss +0 -0
  78. package/lib/bussiness/hyPlanGroupDeviceTree/index.js +12 -0
  79. package/lib/bussiness/hyPlanGroupDeviceTree/js/index.js +126 -0
  80. package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.js +249 -0
  81. package/lib/bussiness/hyPlanGroupDeviceTree/style/planGroupDeviceTree.scss +0 -0
  82. package/lib/bussiness/hyUserTree/index.js +12 -0
  83. package/lib/bussiness/hyUserTree/js/index.js +128 -0
  84. package/lib/bussiness/hyUserTree/style/userTree.scss +0 -0
  85. package/lib/bussiness/hyUserTree/userTree.vue.js +243 -0
  86. package/lib/bussiness/index.js +14 -4
  87. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +18 -16
  88. package/lib/components/hyButton/button.vue.js +3 -2
  89. package/lib/components/hyButton/style/button.scss +70 -0
  90. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +0 -1
  91. package/lib/components/hyForm/cpns/formItem.vue.js +195 -23
  92. package/lib/components/hyForm/cpns/locationSelect.vue.js +8 -1
  93. package/lib/components/hyForm/form.vue.js +72 -17
  94. package/lib/components/hyForm/js/index.js +2 -0
  95. package/lib/components/hyForm/js/useAppForm.js +2 -2
  96. package/lib/components/hyIcon/style/icon.scss +1 -0
  97. package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -1
  98. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -1
  99. package/lib/components/hyOrgCascader/orgCascader.vue.js +67 -12
  100. package/lib/components/hyRadioGroup/radioGroup.vue.js +5 -4
  101. package/lib/components/hySearch/cpns/searchItem.vue.js +164 -8
  102. package/lib/components/hySearch/js/index.js +2 -0
  103. package/lib/components/hySearch/search.vue.js +58 -7
  104. package/lib/components/hyTable/cpns/columnSelect.vue.js +20 -21
  105. package/lib/components/hyTable/cpns/virtualTable.vue.js +27 -32
  106. package/lib/components/hyTable/js/index.js +5 -12
  107. package/lib/components/hyTable/js/search.js +3 -1
  108. package/lib/components/hyTable/style/table.scss +13 -0
  109. package/lib/components/hyTable/table.vue.js +20 -8
  110. package/lib/components/hyTableActionButton/tableActionButton.vue.js +7 -9
  111. package/lib/components/hyTableForm/batchTableForm.vue.js +13 -3
  112. package/lib/components/hyTableForm/tableForm.vue.js +18 -12
  113. package/lib/components/hyTour/index.js +12 -0
  114. package/lib/components/hyTour/style/tour.scss +0 -0
  115. package/lib/components/hyTour/tour.vue.js +27 -0
  116. package/lib/components/hyTree/config/tree-config.js +5 -2
  117. package/lib/components/hyTree/js/index.js +75 -68
  118. package/lib/components/hyTree/tree.vue.js +19 -36
  119. package/lib/components/index.js +8 -6
  120. package/lib/index.js +67 -55
  121. package/lib/static/hy-svg-icons/hy-icon-ops-linear-arrow.js +10 -0
  122. package/lib/style/element/hy-element.scss +24 -3
  123. package/lib/style/theme.scss +1 -0
  124. package/lib/utils/map/hook/bigMap.js +9 -1
  125. package/lib/utils/map/hook/gaode.js +9 -1
  126. package/lib/utils/map/hook/leafletjs.js +10 -1
  127. package/lib/version.js +1 -1
  128. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { useModel, computed, ref, openBlock, createBlock, unref, withCtx, renderSlot, createCommentVNode, createElementBlock, Fragment, renderList, normalizeStyle, withModifiers, normalizeClass, createVNode, mergeProps, createTextVNode, toDisplayString, createElementVNode, normalizeProps, guardReactiveProps, mergeModels } from 'vue';
2
- import { ElTableV2, ElIcon, ElCheckbox, ElDropdown, ElDropdownMenu, ElDropdownItem } from 'element-plus';
3
- import { ArrowRight, MoreFilled } from '@element-plus/icons-vue';
2
+ import { ElTableV2, ElCheckbox, ElDropdown, ElIcon, ElDropdownMenu, ElDropdownItem } from 'element-plus';
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';
@@ -8,8 +8,8 @@ import { operatorFilterHandler, operatorClickHandler, operatorDisabledHandler, o
8
8
  import _sfc_main$1 from './headerItem.vue.mjs';
9
9
  import { useLocale } from '../../../hooks/useLocale.mjs';
10
10
  import { isNumber, isString, isFunction, isArray, isBoolean, isEmpty } from '../../../utils/is.mjs';
11
- import { HyTooltip } from '../../hyTooltip/index.mjs';
12
11
  import { HyIcon } from '../../hyIcon/index.mjs';
12
+ import { HyTooltip } from '../../hyTooltip/index.mjs';
13
13
 
14
14
  const _sfc_main = {
15
15
  __name: "virtualTable",
@@ -372,16 +372,11 @@ const _sfc_main = {
372
372
  rowKey: getRowKey(row)
373
373
  }), ["stop"])
374
374
  }, [
375
- createVNode(unref(ElIcon), {
376
- class: "text-main",
375
+ createVNode(unref(HyIcon), {
376
+ "svg-name": "dispatch-linear-arrow-down-bold",
377
+ "class-name": "!w-3 !h-3 text-main",
377
378
  style: normalizeStyle({ "margin-inline-start": `${depth * 12}px` })
378
- }, {
379
- default: withCtx(() => [
380
- createVNode(unref(ArrowRight))
381
- ]),
382
- _: 1
383
- /* STABLE */
384
- }, 8, ["style"])
379
+ }, null, 8, ["style"])
385
380
  ], 10, ["onClick"])) : (openBlock(), createElementBlock(
386
381
  "div",
387
382
  {
@@ -502,7 +497,7 @@ const _sfc_main = {
502
497
  dropdown: withCtx(() => [
503
498
  createVNode(
504
499
  unref(ElDropdownMenu),
505
- null,
500
+ { class: "hy-table-dropdown-menu" },
506
501
  {
507
502
  default: withCtx(() => [
508
503
  (openBlock(true), createElementBlock(
@@ -623,10 +618,10 @@ const _sfc_main = {
623
618
  "is-always": false,
624
619
  "over-line": 2,
625
620
  content: unref(renderContentHandler)(column, { column, row, $index, cellIndex })
626
- }, null, 8, ["content"])) : (openBlock(), createElementBlock("span", {
621
+ }, null, 8, ["content"])) : column.type !== "expand" ? (openBlock(), createElementBlock("span", {
627
622
  key: 1,
628
623
  class: "text-auxiliary"
629
- }, "- -"))
624
+ }, "- -")) : createCommentVNode("v-if", true)
630
625
  ],
631
626
  64
632
627
  /* STABLE_FRAGMENT */
@@ -349,6 +349,7 @@ const useAppTableWrapper = (hy) => {
349
349
  }
350
350
  function clearSelection() {
351
351
  tableRef.value?.clearSelection();
352
+ selectedList.value = [];
352
353
  }
353
354
  function getSelectedList() {
354
355
  return selectedList.value;
@@ -372,12 +373,15 @@ const useAppTableWrapper = (hy) => {
372
373
  }
373
374
  }
374
375
  }
375
- function onTableSelectHandler(selectList = [], row) {
376
+ function onTableSelectHandler(selectList = [], row, isAll = false) {
376
377
  if (selectList.length === 0 && tableDataSource.value.length === 0) {
377
378
  clearSelection();
378
379
  }
379
380
  selectedList.value = [...selectList];
380
381
  emits("on-select-checkbox", [...selectList], row);
382
+ if (isAll) {
383
+ emits("select-all", selectList);
384
+ }
381
385
  }
382
386
  function clearSelectedList(list = []) {
383
387
  selectedList.value = list || [];
@@ -404,13 +408,6 @@ const useAppTableWrapper = (hy) => {
404
408
  }
405
409
  return className.filter(Boolean).join(" ");
406
410
  }
407
- const isSearchFocus = ref(false);
408
- function onSearchInputHandler() {
409
- isSearchFocus.value = true;
410
- }
411
- function onSearchBlurHandler() {
412
- isSearchFocus.value = false;
413
- }
414
411
  watchEffect(() => {
415
412
  const { columnsList, columnsEditablele, searchText } = tableColumnHandler(
416
413
  props.tableColumns,
@@ -444,10 +441,6 @@ const useAppTableWrapper = (hy) => {
444
441
  onTableRowContextmenuHandler,
445
442
  onTableRowClickHandler,
446
443
  onTableColumnsSelectHandler,
447
- // 搜索选中
448
- isSearchFocus,
449
- onSearchInputHandler,
450
- onSearchBlurHandler,
451
444
  showAppTableLoading,
452
445
  closeAppTableLoading
453
446
  };
@@ -51,6 +51,7 @@ function useAppTableSearch(hy) {
51
51
  tableDataSource.value = data;
52
52
  }
53
53
  totalElements.value = res.data.totalElements;
54
+ hy.expandRowKeys.value = [];
54
55
  emits("reqSuccess", tableDataSource.value);
55
56
  }
56
57
  }
@@ -64,7 +65,7 @@ function useAppTableSearch(hy) {
64
65
  async function resetFn() {
65
66
  await resetFields();
66
67
  props.filterModel.query = null;
67
- getData(1);
68
+ await getData(1);
68
69
  }
69
70
  function getParametersFn() {
70
71
  return Object.assign(
@@ -84,6 +85,7 @@ function useAppTableSearch(hy) {
84
85
  function setData(dataSource) {
85
86
  tableDataSource.value = dataSource || [];
86
87
  hy.loading.value = false;
88
+ emits("reqSuccess", tableDataSource.value);
87
89
  }
88
90
  function onSizeChangeHandler(val) {
89
91
  props.filterModel.page = 1;
@@ -25,6 +25,14 @@
25
25
  .hy-el-table-v2__row-cell {
26
26
  padding: 8px 12px;
27
27
  }
28
+ .hy-el-table-v2__expand-icon {
29
+ &:not(.is-expanded) svg {
30
+ transform: rotate(-90deg) !important;
31
+ }
32
+ &.is-expanded svg {
33
+ transform: rotate(0deg) !important;
34
+ }
35
+ }
28
36
  }
29
37
  .hy-table-search {
30
38
  width: 160px;
@@ -46,6 +54,7 @@
46
54
 
47
55
  .hy-table-dropdown-menu.hy-el-dropdown-menu {
48
56
  --hy-el-text-color-regular: rgba(var(--hy-main));
57
+ --hy-el-dropdown-menuItem-hover-color: rgba(var(--hy-main));
49
58
  border: 1px solid rgba(var(--hy-main));
50
59
  padding: 0px;
51
60
  .hy-el-dropdown-menu__item {
@@ -54,5 +63,9 @@
54
63
  &:last-child {
55
64
  border-bottom: none;
56
65
  }
66
+ &:not(.is-disabled):focus,
67
+ &:not(.is-disabled):hover {
68
+ font-weight: bold;
69
+ }
57
70
  }
58
71
  }
@@ -1,4 +1,4 @@
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';
@@ -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,
@@ -411,8 +408,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
411
408
  "font-size": `${unref(parseRem)(__props.fontSize)}rem`
412
409
  },
413
410
  "expand-row-keys": unref(expandRowKeys),
414
- onSelect: unref(onTableSelectHandler),
415
- onSelectAll: unref(onTableSelectHandler),
411
+ onSelect: (list, row) => unref(onTableSelectHandler)(list, row),
412
+ onSelectAll: (list) => unref(onTableSelectHandler)(list, null, true),
416
413
  onRowClick: unref(onTableRowClickHandler),
417
414
  onRowContextmenu: unref(onTableRowContextmenuHandler),
418
415
  onExpandChange: unref(onTableRowExpandChangeHandler)
@@ -445,7 +442,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
445
442
  key: 0,
446
443
  ref_for: true
447
444
  }, column, { "render-header": null }),
448
- {
445
+ createSlots({
449
446
  header: withCtx((scope) => [
450
447
  createVNode(_sfc_main$2, {
451
448
  type: "default",
@@ -535,7 +532,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
535
532
  dropdown: withCtx(() => [
536
533
  createVNode(
537
534
  unref(ElDropdownMenu),
538
- null,
535
+ { class: "hy-table-dropdown-menu" },
539
536
  {
540
537
  default: withCtx(() => [
541
538
  (openBlock(true), createElementBlock(
@@ -648,7 +645,22 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
648
645
  ]),
649
646
  _: 2
650
647
  /* DYNAMIC */
651
- },
648
+ }, [
649
+ column.type === "expand" ? {
650
+ name: "expand",
651
+ fn: withCtx(({ expandable, expanded }) => [
652
+ expandable ? (openBlock(), createBlock(unref(HyIcon), {
653
+ key: 0,
654
+ "svg-name": "dispatch-linear-arrow-down-bold",
655
+ "class-name": "!w-3 !h-3 text-main transition",
656
+ style: normalizeStyle({
657
+ transform: expanded ? "rotate(0deg)" : "rotate(-90deg)"
658
+ })
659
+ }, null, 8, ["style"])) : createCommentVNode("v-if", true)
660
+ ]),
661
+ key: "0"
662
+ } : void 0
663
+ ]),
652
664
  1040
653
665
  /* FULL_PROPS, DYNAMIC_SLOTS */
654
666
  )) : createCommentVNode("v-if", true)
@@ -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
  // 操作数据
@@ -193,7 +193,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
193
193
  "bg-auxiliary": __props.type === "default",
194
194
  "bg-success": __props.type === "success",
195
195
  "bg-theme": __props.type === "primary",
196
- "bg-danger-2": __props.type === "danger"
196
+ "bg-danger-2": __props.type === "danger",
197
+ "bg-success-3": __props.type === "operate"
197
198
  }])
198
199
  },
199
200
  null,
@@ -283,12 +284,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
283
284
  placement: "top"
284
285
  }, {
285
286
  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 */
287
+ createVNode(unref(HyIcon), {
288
+ "svg-name": "dispatch-share1-prompt",
289
+ class: "!w-3 !h-3 ml-2 text-auxiliary"
292
290
  })
293
291
  ]),
294
292
  _: 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
  }
@@ -510,6 +519,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
510
519
  columnNum: __props.columnNum,
511
520
  size: __props.size,
512
521
  showAddBtn: __props.showAddBtn,
522
+ onTableDataChange: tableDataChange,
513
523
  class: "h-0 flex-1"
514
524
  }), createSlots({
515
525
  _: 2
@@ -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, onMounted, watch, useTemplateRef, ref, computed, nextTick, openBlock, createElementBlock, createElementVNode, toDisplayString, createCommentVNode, createBlock, unref, withCtx, createTextVNode, Fragment, renderList, normalizeClass, createVNode, mergeProps, createSlots, renderSlot, normalizeProps, guardReactiveProps } 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,10 +67,19 @@ 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;
74
+ onMounted(() => {
75
+ watch(
76
+ () => dataSource.value,
77
+ () => {
78
+ emits("tableDataChange", dataSource.value);
79
+ },
80
+ { deep: true, immediate: true }
81
+ );
82
+ });
75
83
  const tableRef = useTemplateRef("tableRef");
76
84
  const formRef = useTemplateRef("formRef");
77
85
  const dataSource = ref([]);
@@ -165,10 +173,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
165
173
  await initValidateHandler([data]);
166
174
  if (!dataSource.value.length) {
167
175
  dataSource.value = [data];
168
- setData(dataSource.value);
169
176
  } else {
170
177
  dataSource.value.push(data);
171
178
  }
179
+ setData(dataSource.value);
172
180
  emits("validate", {
173
181
  ...statistics.value
174
182
  });
@@ -435,12 +443,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
435
443
  class: normalizeClass(["flex items-center gap-1.5 text-danger-2 transition-all duration-300 overflow-hidden", [row.errorMsg ? "h-full" : "h-0"]])
436
444
  },
437
445
  [
438
- row.errorMsg ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
439
- default: withCtx(() => [
440
- createVNode(unref(Warning))
441
- ]),
442
- _: 1
443
- /* STABLE */
446
+ row.errorMsg ? (openBlock(), createBlock(unref(HyIcon), {
447
+ key: 0,
448
+ "svg-name": "dispatch-share1-prompt",
449
+ class: "!w-3 !h-3"
444
450
  })) : createCommentVNode("v-if", true),
445
451
  createElementVNode(
446
452
  "span",
@@ -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,