st-comp 0.0.113 → 0.0.114
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/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +950 -946
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +57 -57
- package/lib/{index-0a84b585.js → index-baf940eb.js} +2715 -2711
- package/lib/{python-023777fe.js → python-656f1fea.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietySearch/components/CommonIndicator/index.vue +5 -2
- package/packages/VarietySearch/index.vue +2 -6
package/package.json
CHANGED
|
@@ -9,6 +9,9 @@ const props = defineProps({
|
|
|
9
9
|
commonOption: { type: Array, default: () => [] }, // 已选常用选项
|
|
10
10
|
});
|
|
11
11
|
const visible = ref(false);
|
|
12
|
+
const rankKey = computed(() => {
|
|
13
|
+
return props.data.find(i => i.radioType === '1')?.key;
|
|
14
|
+
})
|
|
12
15
|
|
|
13
16
|
// 常用指标项数据源 [受到: 品种市场, 常用选项影响]
|
|
14
17
|
const commonIndicatorOptions = computed(() => {
|
|
@@ -88,7 +91,7 @@ const clickIndicator = (item) => {
|
|
|
88
91
|
...baseParams,
|
|
89
92
|
range: [null, null],
|
|
90
93
|
unit: item.defaultUnit.length ? [...item.defaultUnit] : [null, null],
|
|
91
|
-
radioType: item.defaultRadioType, // 0数值 1排名
|
|
94
|
+
radioType: rankKey.value && rankKey.value !== item.key ? '0' : item.defaultRadioType, // 0数值 1排名
|
|
92
95
|
rankRange: item.defaultRankRange || [null, null],// 默认排名
|
|
93
96
|
};
|
|
94
97
|
}
|
|
@@ -309,7 +312,7 @@ watch(
|
|
|
309
312
|
style="vertical-align: 4px; margin-left: 12px;"
|
|
310
313
|
>
|
|
311
314
|
<el-radio-button label="数值" value="0" />
|
|
312
|
-
<el-radio-button label="排名" value="1" />
|
|
315
|
+
<el-radio-button :disabled="rankKey && rankKey !== nowIndicator.key" label="排名" value="1" />
|
|
313
316
|
</el-radio-group>
|
|
314
317
|
</template>
|
|
315
318
|
|
|
@@ -200,17 +200,16 @@ defineExpose({
|
|
|
200
200
|
{
|
|
201
201
|
const QIQUANKYES = ["expireDays", "virtualRealDegree", "yearProfitRate", "impliedVolatility", "levelMultiplier", "turnover", "volume", "openInterest", "optionsCpType", "optionGear"];
|
|
202
202
|
// 1.常用指标-基本面(type:undefined的指标, 且[期权]的常用指标不计入基本面)
|
|
203
|
-
const rangeDtoList = []; // 期权排序相关筛选
|
|
204
203
|
const query = data.commonIndicator.reduce((result, item) => {
|
|
205
204
|
const { key, type, range, unit, radioType, rankRange } = item;
|
|
206
205
|
// 排名模式
|
|
207
206
|
if (radioType === '1') {
|
|
208
207
|
if (QIQUANKYES.includes(key)) {
|
|
209
|
-
|
|
208
|
+
params.sortBy = {
|
|
210
209
|
column: item.key,
|
|
211
210
|
start: rankRange[0] || null,
|
|
212
211
|
end: rankRange[1] || null,
|
|
213
|
-
}
|
|
212
|
+
}
|
|
214
213
|
} else {
|
|
215
214
|
result.push({
|
|
216
215
|
column: item.key,
|
|
@@ -268,9 +267,6 @@ defineExpose({
|
|
|
268
267
|
}
|
|
269
268
|
return result;
|
|
270
269
|
}, []);
|
|
271
|
-
if (rangeDtoList.length) {
|
|
272
|
-
params.searchOptionDto = { rangeDtoList }
|
|
273
|
-
}
|
|
274
270
|
if (query.length) {
|
|
275
271
|
params.query = query;
|
|
276
272
|
}
|