st-comp 0.0.65 → 0.0.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "st-comp",
3
3
  "public": true,
4
- "version": "0.0.65",
4
+ "version": "0.0.66",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -416,7 +416,22 @@ export default {
416
416
  commonOptionIds: [11],
417
417
  },
418
418
  type: "custom",
419
- }
419
+ },
420
+ // 持仓量
421
+ {
422
+ key: "optionGear",
423
+ label: "期权档位",
424
+ parent: {
425
+ varietyMarketIds: [8],
426
+ commonOptionIds: [11],
427
+ },
428
+ // 便捷选项
429
+ convenientOptions: [],
430
+ // 默认选中单位
431
+ defaultUnit: [],
432
+ // 单位下拉框选项
433
+ unitOptions: [],
434
+ },
420
435
  ],
421
436
  },
422
437
  };
@@ -104,6 +104,7 @@ const formatData = (data) => {
104
104
  "volume",
105
105
  "openInterest",
106
106
  "optionsCpType",
107
+ "optionGear"
107
108
  ];
108
109
  // 1.常用指标-基本面( 表中 type: undefined 的指标, [期权]的常用指标不计入基本面)
109
110
  const query = data.commonIndicator.reduce((result, item) => {
@@ -206,6 +207,11 @@ const formatData = (data) => {
206
207
  case "optionsCpType":
207
208
  searchOptionDto.optionsCpType = item.optionsCpType;
208
209
  break;
210
+ // 期权档位
211
+ case "optionGear":
212
+ if (!["", null].includes(item.range[0])) searchOptionDto.minOptionGear = item.range[0];
213
+ if (!["", null].includes(item.range[1])) searchOptionDto.maxOptionGear = item.range[1];
214
+ break;
209
215
  }
210
216
  });
211
217
  if (Object.keys(searchOptionDto).length) {
@@ -3,7 +3,8 @@
3
3
  <st-varietySearch ref="varietySearchRef" v-model:searchData="varietySearchData" :config="varietySearchConfig" />
4
4
  <el-button @click="query">查询</el-button>
5
5
  <br/>
6
- {{ formatData }}
6
+ <p>格式化后的查询参数:</p>
7
+ <p>{{ formatData }}</p>
7
8
  </div>
8
9
  </template>
9
10