@ued_fpi/data-visual 1.4.1 → 1.4.4

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.
@@ -1,4 +1,5 @@
1
- import { defineComponent, ref, onMounted, openBlock, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString } from 'vue';
1
+ import { defineComponent, ref, openBlock, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString } from 'vue';
2
+ import requestControl from '../../service/request.mjs';
2
3
 
3
4
  const _hoisted_1 = { class: "dv-ipes-start-stop-major-maintenance" };
4
5
  const _hoisted_2 = { class: "title" };
@@ -13,15 +14,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
14
  ...__default__,
14
15
  setup(__props) {
15
16
  const basicInfoData = ref({
16
- parkingToday: 0,
17
- majorOverhaulToday: 0
17
+ toDayCarCount: 0,
18
+ toDay0verhaulCount: 0
18
19
  });
19
20
  const basicInfos = ref([
20
- { title: "今日开停车", key: "parkingToday", unit: "个" },
21
- { title: "今日大检修", key: "majorOverhaulToday", unit: "个" }
21
+ { title: "今日开停车", key: "toDayCarCount", unit: "个" },
22
+ { title: "今日大检修", key: "toDay0verhaulCount", unit: "个" }
22
23
  ]);
23
- onMounted(() => {
24
- });
24
+ async function getBasicInfo() {
25
+ try {
26
+ const res = await requestControl({
27
+ method: "get",
28
+ url: "/ipes-srip-server/api/v1/vehicle-statistical/car-today"
29
+ });
30
+ basicInfoData.value = res;
31
+ } catch (error) {
32
+ console.log(error);
33
+ }
34
+ }
35
+ getBasicInfo();
25
36
  return (_ctx, _cache) => {
26
37
  return openBlock(), createElementBlock("div", _hoisted_1, [
27
38
  (openBlock(true), createElementBlock(Fragment, null, renderList(basicInfos.value, (item) => {
@@ -86,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
86
86
  // 其他车
87
87
  });
88
88
  const commitmentInfos = ref([
89
- { title: "危险化车", key: "chemicalCar" },
89
+ { title: "危化品车", key: "chemicalCar" },
90
90
  { title: "普通车", key: "normalCar" },
91
91
  { title: "临时车", key: "tempCar" },
92
92
  { title: "其他车", key: "other" }