@ued_fpi/data-visual 1.4.28 → 1.4.30

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.
@@ -33,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
33
  props: {
34
34
  isAccessPermission: {
35
35
  type: Boolean,
36
- default: true
36
+ default: false
37
37
  }
38
38
  },
39
39
  emits: ["clickItem"],
@@ -119,7 +119,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
119
119
  missionLevelName: item.missionLevelName,
120
120
  startTimeStr: item.startTimeStr,
121
121
  missionSuperviseStatus: item.missionSuperviseStatus,
122
- description: item.description
122
+ description: item.description,
123
+ isAccessPermission: props.isAccessPermission
123
124
  };
124
125
  });
125
126
  cardData.value.push(...d);
@@ -58,7 +58,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
58
  props: {
59
59
  showParkStatistics: { type: Boolean, default: true },
60
60
  showParkInData: { type: Boolean, default: true },
61
- showAbnormalData: { type: Boolean, default: true }
61
+ showAbnormalData: { type: Boolean, default: true },
62
+ commitmentInfos: { default: () => [
63
+ { title: "固定车", key: "fixCar" },
64
+ { title: "特殊车", key: "specialCar" },
65
+ { title: "预约车", key: "appointCar" },
66
+ { title: "其他车", key: "other" }
67
+ ] }
62
68
  },
63
69
  setup(__props) {
64
70
  const props = __props;
@@ -86,12 +92,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
86
92
  other: null
87
93
  // 其他车
88
94
  });
89
- const commitmentInfos = ref([
90
- { title: "固定车", key: "fixCar" },
91
- { title: "特殊车", key: "specialCar" },
92
- { title: "预约车", key: "appointCar" },
93
- { title: "其他车", key: "other" }
94
- ]);
95
95
  let isInit = false;
96
96
  async function getData() {
97
97
  try {
@@ -131,7 +131,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
131
131
  ]),
132
132
  _hoisted_13,
133
133
  createElementVNode("div", _hoisted_14, [
134
- (openBlock(true), createElementBlock(Fragment, null, renderList(commitmentInfos.value, (item) => {
134
+ (openBlock(true), createElementBlock(Fragment, null, renderList(props.commitmentInfos, (item) => {
135
135
  return openBlock(), createElementBlock("div", {
136
136
  key: item.key,
137
137
  class: normalizeClass(["row", item.key])