sctj-components 1.0.72 → 1.0.74

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.
package/README.md CHANGED
@@ -1199,5 +1199,5 @@ MIT
1199
1199
 
1200
1200
  ## 👥 作者
1201
1201
 
1202
- 铁建
1202
+ 四川铁建
1203
1203
 
@@ -2547,8 +2547,8 @@ const _sfc_main$i = {
2547
2547
  }
2548
2548
  };
2549
2549
  const SCTJTableTopActionContainer = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-056cfdde"]]);
2550
- const index_vue_vue_type_style_index_0_scoped_26db7104_lang = "";
2551
- const _withScopeId$6 = (n) => (pushScopeId("data-v-26db7104"), n = n(), popScopeId(), n);
2550
+ const index_vue_vue_type_style_index_0_scoped_946a1b5d_lang = "";
2551
+ const _withScopeId$6 = (n) => (pushScopeId("data-v-946a1b5d"), n = n(), popScopeId(), n);
2552
2552
  const _hoisted_1$e = {
2553
2553
  key: 0,
2554
2554
  class: "search-container"
@@ -2799,6 +2799,7 @@ const _sfc_main$h = {
2799
2799
  const _component_el_input = resolveComponent("el-input");
2800
2800
  const _component_el_option = resolveComponent("el-option");
2801
2801
  const _component_el_select = resolveComponent("el-select");
2802
+ const _component_el_date_picker = resolveComponent("el-date-picker");
2802
2803
  const _component_el_form_item = resolveComponent("el-form-item");
2803
2804
  const _component_el_button = resolveComponent("el-button");
2804
2805
  const _component_el_form = resolveComponent("el-form");
@@ -2890,8 +2891,17 @@ const _sfc_main$h = {
2890
2891
  }), 128))
2891
2892
  ]),
2892
2893
  _: 2
2893
- }, 1032, ["clearable", "filterable", "modelValue", "onUpdate:modelValue", "placeholder"])) : (openBlock(), createBlock(_component_el_input, {
2894
+ }, 1032, ["clearable", "filterable", "modelValue", "onUpdate:modelValue", "placeholder"])) : item.query.type === "date" ? (openBlock(), createBlock(_component_el_date_picker, {
2894
2895
  key: 2,
2896
+ clearable: item.query.clearable !== false,
2897
+ onChange: handleQuery,
2898
+ modelValue: unref(queryParams)[item.query.queryKey || item.prop],
2899
+ "onUpdate:modelValue": ($event) => unref(queryParams)[item.query.queryKey || item.prop] = $event,
2900
+ "value-format": item.query.valueFormat || "YYYY-MM-DD",
2901
+ type: item.query.dateType || "date",
2902
+ placeholder: "\u8BF7\u9009\u62E9"
2903
+ }, null, 8, ["clearable", "modelValue", "onUpdate:modelValue", "value-format", "type"])) : (openBlock(), createBlock(_component_el_input, {
2904
+ key: 3,
2895
2905
  modelValue: unref(queryParams)[item.query.queryKey || item.prop],
2896
2906
  "onUpdate:modelValue": ($event) => unref(queryParams)[item.query.queryKey || item.prop] = $event,
2897
2907
  placeholder: item.query.placeholder || "\u8BF7\u8F93\u5165",
@@ -3073,7 +3083,7 @@ const _sfc_main$h = {
3073
3083
  };
3074
3084
  }
3075
3085
  };
3076
- const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-26db7104"]]);
3086
+ const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-946a1b5d"]]);
3077
3087
  const index_vue_vue_type_style_index_0_scoped_80cb4921_lang = "";
3078
3088
  const _hoisted_1$d = { style: { "background": "#fff" } };
3079
3089
  const _sfc_main$g = {
@@ -9610,7 +9620,7 @@ const _sfc_main$4 = {
9610
9620
  }
9611
9621
  };
9612
9622
  const SCTJBusinessMapDrawingDialog = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-d0bea808"]]);
9613
- const index_vue_vue_type_style_index_0_scoped_c4c32d62_lang = "";
9623
+ const index_vue_vue_type_style_index_0_scoped_87a3abe5_lang = "";
9614
9624
  const _hoisted_1$2 = { class: "controls" };
9615
9625
  const _sfc_main$3 = {
9616
9626
  __name: "index",
@@ -9654,7 +9664,7 @@ const _sfc_main$3 = {
9654
9664
  }
9655
9665
  },
9656
9666
  emits: ["moving", "reset"],
9657
- setup(__props, { emit }) {
9667
+ setup(__props, { expose, emit }) {
9658
9668
  const props = __props;
9659
9669
  const mapContainerRef = ref$1(null);
9660
9670
  const map = shallowRef(null);
@@ -9695,7 +9705,7 @@ const _sfc_main$3 = {
9695
9705
  AMapInstance = await AMapLoader.load({
9696
9706
  key: props.amapKey,
9697
9707
  version: "2.0",
9698
- plugins: ["AMap.Marker", "AMap.Polyline", "AMap.MoveAnimation"]
9708
+ plugins: ["AMap.Marker", "AMap.Polyline", "AMap.MoveAnimation", "AMap.GeometryUtil"]
9699
9709
  });
9700
9710
  map.value = new AMapInstance.Map(mapContainerRef.value, {
9701
9711
  zoom: props.zoom,
@@ -9722,6 +9732,15 @@ const _sfc_main$3 = {
9722
9732
  return point;
9723
9733
  });
9724
9734
  };
9735
+ const getMileage = (points) => {
9736
+ if (!(points == null ? void 0 : points.length))
9737
+ return 0;
9738
+ if (!(AMapInstance == null ? void 0 : AMapInstance.GeometryUtil))
9739
+ return 0;
9740
+ const path = formatPath(points);
9741
+ const lngLatArr = path.map((p) => new AMapInstance.LngLat(p[0], p[1]));
9742
+ return AMapInstance.GeometryUtil.distanceOfLine(lngLatArr);
9743
+ };
9725
9744
  const drawTrack = () => {
9726
9745
  if (map.value) {
9727
9746
  map.value.clearMap();
@@ -9851,6 +9870,9 @@ const _sfc_main$3 = {
9851
9870
  map.value.destroy();
9852
9871
  }
9853
9872
  });
9873
+ expose({
9874
+ getMileage
9875
+ });
9854
9876
  return (_ctx, _cache) => {
9855
9877
  const _component_el_icon = resolveComponent("el-icon");
9856
9878
  const _component_el_button = resolveComponent("el-button");
@@ -9931,7 +9953,7 @@ const _sfc_main$3 = {
9931
9953
  };
9932
9954
  }
9933
9955
  };
9934
- const SCTJTrackPlayback = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-c4c32d62"]]);
9956
+ const SCTJTrackPlayback = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-87a3abe5"]]);
9935
9957
  const BimViewer_vue_vue_type_style_index_0_scoped_89f55b38_lang = "";
9936
9958
  const _withScopeId$1 = (n) => (pushScopeId("data-v-89f55b38"), n = n(), popScopeId(), n);
9937
9959
  const _hoisted_1$1 = {