st-comp 0.0.124 → 0.0.126

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "st-comp",
3
3
  "public": true,
4
- "version": "0.0.124",
4
+ "version": "0.0.126",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -70,23 +70,23 @@ const emit = defineEmits(['change', 'getFactorData']);
70
70
  const props = defineProps({
71
71
  variety: {
72
72
  type: [String, Number],
73
- required: true,
73
+ default: () => null
74
74
  }, // 品种代码
75
75
  varietyName: {
76
76
  type: [String, Number],
77
- default: () => ''
77
+ default: () => null
78
78
  }, // 品种名称
79
79
  featureId: {
80
80
  type: [String, Number],
81
- default: () => ''
81
+ default: () => null
82
82
  }, // 合约id
83
83
  featureType: {
84
84
  type: [String, Number],
85
- default: () => ''
85
+ default: () => null
86
86
  }, // 合约类型
87
87
  cycle: {
88
88
  type: String,
89
- required: true,
89
+ default: () => null
90
90
  }, // 周期id
91
91
  mainIndicator: {
92
92
  type: Object,
@@ -142,7 +142,7 @@ const config = computed(() => {
142
142
  watch(
143
143
  () => [
144
144
  props.variety, props.cycle, props.mainIndicator, subIndicator.value,
145
- indicatorStore.filterIndicator, indicatorStore.customIndicator
145
+ props.indicatorStore?.filterIndicator, props.indicatorStore?.customIndicator
146
146
  ],
147
147
  () => {
148
148
  getMainData()
@@ -270,7 +270,7 @@ const getMainData = async () => {
270
270
  draw()
271
271
  drawLine()
272
272
  if (getFactorData) {
273
- emit('getFactorData', res?.body?.factorData?.filter(i => i.freqId === cycle))
273
+ emit('getFactorData', res?.body?.factor)
274
274
  }
275
275
  }
276
276