st-comp 0.0.56 → 0.0.58
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/components.d.ts +2 -3
- package/lib/bundle.js +24401 -23462
- package/lib/bundle.umd.cjs +56 -45
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietySearch/components/CommonIndicator/index.vue +418 -0
- package/packages/VarietySearch/components/FactorScreen/index.vue +151 -0
- package/packages/VarietySearch/config.js +420 -0
- package/packages/VarietySearch/index.vue +282 -69
- package/src/pages/VarietySearch/index.vue +38 -53
- package/packages/VarietySearch/components/CheckBox/index.vue +0 -77
- package/packages/VarietySearch/components/FactorFilter/index.vue +0 -263
- package/packages/VarietySearch/components/ModelSearch/Dialog.vue +0 -310
- package/packages/VarietySearch/components/ModelSearch/config.js +0 -649
- package/packages/VarietySearch/components/ModelSearch/index.vue +0 -148
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="st-VarietySearch-modelSearch">
|
|
3
|
-
<div class="st-VarietySearch-modelSearch-label">
|
|
4
|
-
{{ config.label }}:
|
|
5
|
-
<el-button
|
|
6
|
-
text
|
|
7
|
-
size="small"
|
|
8
|
-
type="primary"
|
|
9
|
-
@click="clear"
|
|
10
|
-
>
|
|
11
|
-
不限
|
|
12
|
-
</el-button>
|
|
13
|
-
</div>
|
|
14
|
-
<div class="st-VarietySearch-modelSearch-content">
|
|
15
|
-
<el-button
|
|
16
|
-
v-for="item in orderByInfoList"
|
|
17
|
-
:key="item.ksy"
|
|
18
|
-
size="small"
|
|
19
|
-
text
|
|
20
|
-
@click="open(item)"
|
|
21
|
-
>
|
|
22
|
-
{{ item.label }}
|
|
23
|
-
</el-button>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="st-VarietySearch-modelSearch-tag">
|
|
26
|
-
<el-tag
|
|
27
|
-
v-for="item in list"
|
|
28
|
-
:key="item.key"
|
|
29
|
-
closable
|
|
30
|
-
type="info"
|
|
31
|
-
:disable-transitions="false"
|
|
32
|
-
@close="deleteList(item)"
|
|
33
|
-
style="margin-right: 5px; margin-bottom: 5px;"
|
|
34
|
-
>
|
|
35
|
-
<template v-if="item.type === 'default'">
|
|
36
|
-
<template v-if="typeof item.start === 'number' && typeof item.end === 'number'">
|
|
37
|
-
{{ item.label }}:{{ item.start }}{{ item.startUnit }} ~ {{ item.end }}{{ item.endUnit }}
|
|
38
|
-
</template>
|
|
39
|
-
<template v-else-if="typeof item.start === 'number'">
|
|
40
|
-
{{ item.label }}:≥{{ item.start }}{{ item.endUnit }}
|
|
41
|
-
</template>
|
|
42
|
-
<template v-else-if="typeof item.end === 'number'">
|
|
43
|
-
{{ item.label }}:≤{{ item.end }}{{ item.endUnit }}
|
|
44
|
-
</template>
|
|
45
|
-
</template>
|
|
46
|
-
<template v-else-if="item.type ==='radio'">
|
|
47
|
-
{{ item.label }}:{{ item.radioLabel }}
|
|
48
|
-
</template>
|
|
49
|
-
<template v-else-if="item.type ==='tFeaturelncomes'">
|
|
50
|
-
{{ item.label }}:{{ item.withFewYears }}年内{{ item.yearsCount ? `${item.yearsCount}年以上` : '' }}盈利{{ item.rule === 2 ? "跌" : "超" }}过{{ item.netProfit }}亿
|
|
51
|
-
</template>
|
|
52
|
-
<el-text
|
|
53
|
-
style="font-size: 12px; cursor: pointer"
|
|
54
|
-
type="primary"
|
|
55
|
-
@click="open(item)"
|
|
56
|
-
>
|
|
57
|
-
修改
|
|
58
|
-
</el-text>
|
|
59
|
-
</el-tag>
|
|
60
|
-
</div>
|
|
61
|
-
<Dialog
|
|
62
|
-
v-model="visible"
|
|
63
|
-
:data="modelItem"
|
|
64
|
-
@submit="onSubmit"
|
|
65
|
-
/>
|
|
66
|
-
</div>
|
|
67
|
-
</template>
|
|
68
|
-
|
|
69
|
-
<script setup>
|
|
70
|
-
import { ref, computed } from 'vue'
|
|
71
|
-
import { getConfig } from './config'
|
|
72
|
-
import Dialog from './Dialog.vue'
|
|
73
|
-
|
|
74
|
-
const orderByInfoList = getConfig()
|
|
75
|
-
|
|
76
|
-
const emit = defineEmits(['change']);
|
|
77
|
-
const props = defineProps({
|
|
78
|
-
config: {
|
|
79
|
-
type: Object,
|
|
80
|
-
require: true,
|
|
81
|
-
default: () => ({}),
|
|
82
|
-
},
|
|
83
|
-
formData: {
|
|
84
|
-
type: Object,
|
|
85
|
-
require: true,
|
|
86
|
-
},
|
|
87
|
-
})
|
|
88
|
-
|
|
89
|
-
const visible = ref(false)
|
|
90
|
-
const modelItem = ref({})
|
|
91
|
-
const list = computed(() => {
|
|
92
|
-
return props.formData[props.config.key]
|
|
93
|
-
})
|
|
94
|
-
|
|
95
|
-
const open = (item) => {
|
|
96
|
-
modelItem.value = item
|
|
97
|
-
visible.value = true
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
const deleteList = (data) => {
|
|
101
|
-
emit('change', props.config.key, list.value.filter((item) => item.key !== data.key))
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// 不限
|
|
105
|
-
const clear = () => {
|
|
106
|
-
emit('change', props.config.key, [])
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
const onSubmit = (data) => {
|
|
110
|
-
if (list.value.find((item) => item.key === data.key)) {
|
|
111
|
-
// 已经存在当前指标
|
|
112
|
-
emit('change', props.config.key, list.value.map(item => {
|
|
113
|
-
if (item.key === data.key) {
|
|
114
|
-
return data
|
|
115
|
-
}
|
|
116
|
-
return item
|
|
117
|
-
}))
|
|
118
|
-
} else {
|
|
119
|
-
// 不存在当前指标
|
|
120
|
-
emit('change', props.config.key, [...list.value, data])
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
</script>
|
|
124
|
-
|
|
125
|
-
<style lang="scss" scoped>
|
|
126
|
-
.st-VarietySearch-modelSearch {
|
|
127
|
-
&-label {
|
|
128
|
-
display: inline-block;
|
|
129
|
-
vertical-align: top;
|
|
130
|
-
width: 120px;
|
|
131
|
-
height: 25px;
|
|
132
|
-
line-height: 24px;
|
|
133
|
-
font-size: 12px;
|
|
134
|
-
&-clear {
|
|
135
|
-
color: #409eff;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
&-content {
|
|
139
|
-
vertical-align: top;
|
|
140
|
-
width: calc(100% - 120px);
|
|
141
|
-
display: inline-block;
|
|
142
|
-
}
|
|
143
|
-
&-tag {
|
|
144
|
-
min-height: 29px;
|
|
145
|
-
margin: 5px 0 10px 0;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
</style>
|