appsnbcbweicheng 1.2.25 → 1.2.27
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 +1 -1
- package/public/Calendar.vue +679 -0
- package/readme.md +2 -0
- package/public/AssetClassConfiguration.vue +0 -578
- package/public/EventInterpretation.vue +0 -1067
- package/public/FundInterpretation.vue +0 -765
- package/public/FundManagerInterpretation.vue +0 -759
- package/public/InstitutionViewpoint.vue +0 -731
- package/public/InstitutionViewpointCreate.vue +0 -612
- package/public/MonthlyAssetSectorEventInterpretation.vue +0 -637
- package/public/SectorAnalysisViewpointSummary.vue +0 -731
- package/public/SectorAnalysisViewpointSummaryCreate.vue +0 -612
- package/public/ShelfRules.vue +0 -400
|
@@ -1,759 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="event-interpretation">
|
|
3
|
-
<!-- 筛选区域 -->
|
|
4
|
-
<el-card class="filter-card" shadow="never">
|
|
5
|
-
<el-form
|
|
6
|
-
:inline="true"
|
|
7
|
-
:model="searchForm"
|
|
8
|
-
class="search-form"
|
|
9
|
-
label-width="120px"
|
|
10
|
-
size="small"
|
|
11
|
-
>
|
|
12
|
-
<el-form-item label="基金经理">
|
|
13
|
-
<el-input
|
|
14
|
-
v-model="searchForm.fundManagerName"
|
|
15
|
-
placeholder="请输入基金简称"
|
|
16
|
-
clearable
|
|
17
|
-
style="width: 200px"
|
|
18
|
-
:maxlength="32"
|
|
19
|
-
show-word-limit
|
|
20
|
-
@input="handleFundAbbrInput"
|
|
21
|
-
/>
|
|
22
|
-
</el-form-item>
|
|
23
|
-
<el-form-item label="基金经理Code">
|
|
24
|
-
<el-input
|
|
25
|
-
v-model="searchForm.fundManagerCode"
|
|
26
|
-
placeholder="请输入基金代码"
|
|
27
|
-
clearable
|
|
28
|
-
style="width: 200px"
|
|
29
|
-
show-word-limit
|
|
30
|
-
:maxlength="16"
|
|
31
|
-
@input="handleFundCodeInput"
|
|
32
|
-
/>
|
|
33
|
-
</el-form-item>
|
|
34
|
-
<el-form-item label="解读框架">
|
|
35
|
-
<el-select
|
|
36
|
-
v-model="searchForm.explainFrame"
|
|
37
|
-
multiple
|
|
38
|
-
filterable
|
|
39
|
-
placeholder="请选择解读框架"
|
|
40
|
-
clearable
|
|
41
|
-
style="width: 300px"
|
|
42
|
-
>
|
|
43
|
-
<el-option
|
|
44
|
-
v-for="item in explainFrameOptions"
|
|
45
|
-
:key="item.value"
|
|
46
|
-
:label="item.label"
|
|
47
|
-
:value="item.value"
|
|
48
|
-
/>
|
|
49
|
-
</el-select>
|
|
50
|
-
</el-form-item>
|
|
51
|
-
<el-form-item label="数据截止日期">
|
|
52
|
-
<el-date-picker
|
|
53
|
-
v-model="searchForm.date"
|
|
54
|
-
type="date"
|
|
55
|
-
placeholder="选择数据截止日期"
|
|
56
|
-
value-format="yyyy-MM-dd"
|
|
57
|
-
clearable
|
|
58
|
-
style="width: 200px"
|
|
59
|
-
:picker-options="endDatePickerOptions"
|
|
60
|
-
/>
|
|
61
|
-
</el-form-item>
|
|
62
|
-
<el-form-item label="解读发布时间">
|
|
63
|
-
<el-date-picker
|
|
64
|
-
v-model="searchForm.startDateRange"
|
|
65
|
-
type="daterange"
|
|
66
|
-
range-separator="至"
|
|
67
|
-
start-placeholder="开始日期"
|
|
68
|
-
end-placeholder="结束日期"
|
|
69
|
-
value-format="yyyy-MM-dd"
|
|
70
|
-
:picker-options="datePickerOptions"
|
|
71
|
-
clearable
|
|
72
|
-
style="width: 280px"
|
|
73
|
-
/>
|
|
74
|
-
</el-form-item>
|
|
75
|
-
<el-form-item>
|
|
76
|
-
<el-button type="primary" @click="handleSearch">查询</el-button>
|
|
77
|
-
<el-button @click="handleReset">重置</el-button>
|
|
78
|
-
</el-form-item>
|
|
79
|
-
</el-form>
|
|
80
|
-
</el-card>
|
|
81
|
-
|
|
82
|
-
<!-- 展示区域 -->
|
|
83
|
-
<el-card class="display-card" shadow="never">
|
|
84
|
-
<!-- 描述部分 -->
|
|
85
|
-
<div class="description-section">
|
|
86
|
-
<div class="description-left">
|
|
87
|
-
<span class="fund-summary">{{ fundSummary }}</span>
|
|
88
|
-
</div>
|
|
89
|
-
<div class="description-right">
|
|
90
|
-
<span class="text">2025年12月24号新增789条数据,0条未操作。</span>
|
|
91
|
-
<el-button type="primary" size="small" @click="openStatisticsDialog"
|
|
92
|
-
>数据覆盖度统计</el-button
|
|
93
|
-
>
|
|
94
|
-
</div>
|
|
95
|
-
</div>
|
|
96
|
-
|
|
97
|
-
<!-- 表格 -->
|
|
98
|
-
<el-table
|
|
99
|
-
:data="tableData"
|
|
100
|
-
border
|
|
101
|
-
stripe
|
|
102
|
-
class="result-table"
|
|
103
|
-
size="small"
|
|
104
|
-
:default-sort="{ prop: 'fundManagerCode', order: 'ascending' }"
|
|
105
|
-
@sort-change="handleSortChange"
|
|
106
|
-
>
|
|
107
|
-
<el-table-column type="index" label="序号" width="60" fixed="left" />
|
|
108
|
-
<el-table-column prop="fundManagerName" label="基金经理" min-width="150" fixed="left">
|
|
109
|
-
</el-table-column>
|
|
110
|
-
<el-table-column
|
|
111
|
-
prop="fundManagerCode"
|
|
112
|
-
label="基金经理Code"
|
|
113
|
-
width="140"
|
|
114
|
-
sortable="custom"
|
|
115
|
-
fixed="left"
|
|
116
|
-
/>
|
|
117
|
-
<el-table-column prop="inOffice" label="是否在职" width="140" />
|
|
118
|
-
<el-table-column prop="inOfficeYear" label="从业年限" width="140" />
|
|
119
|
-
<el-table-column prop="explainFrame" label="解读框架" min-width="150" />
|
|
120
|
-
<el-table-column prop="category" label="基金经理分类" min-width="120" />
|
|
121
|
-
<el-table-column prop="explainContent" label="生成内容" min-width="200">
|
|
122
|
-
<template slot-scope="{ row }">
|
|
123
|
-
<div class="expandable-content">
|
|
124
|
-
<div
|
|
125
|
-
:class="{
|
|
126
|
-
'content-collapse': !row.expandExplainContent,
|
|
127
|
-
'content-expanded': row.expandExplainContent,
|
|
128
|
-
}"
|
|
129
|
-
>
|
|
130
|
-
{{ row.explainContent }}
|
|
131
|
-
</div>
|
|
132
|
-
<el-button
|
|
133
|
-
v-if="shouldShowExpand(row.explainContent)"
|
|
134
|
-
type="text"
|
|
135
|
-
size="mini"
|
|
136
|
-
@click="toggleExpand(row, 'explainContent')"
|
|
137
|
-
>
|
|
138
|
-
{{ row.expandExplainContent ? '收起' : '展开' }}
|
|
139
|
-
</el-button>
|
|
140
|
-
</div>
|
|
141
|
-
</template>
|
|
142
|
-
</el-table-column>
|
|
143
|
-
<el-table-column prop="explainDimensions" label="解读维度" min-width="150">
|
|
144
|
-
<template slot-scope="{ row }">
|
|
145
|
-
<div class="expandable-content">
|
|
146
|
-
<div
|
|
147
|
-
:class="{
|
|
148
|
-
'content-expanded': row.expandExplainDimensions,
|
|
149
|
-
'content-collapse': !row.expandExplainDimensions,
|
|
150
|
-
}"
|
|
151
|
-
>
|
|
152
|
-
{{ row.explainDimensions }}
|
|
153
|
-
</div>
|
|
154
|
-
<el-button
|
|
155
|
-
v-if="shouldShowExpand(row.explainDimensions)"
|
|
156
|
-
type="text"
|
|
157
|
-
size="mini"
|
|
158
|
-
@click="toggleExpand(row, 'explainDimensions')"
|
|
159
|
-
>
|
|
160
|
-
{{ row.expandExplainDimensions ? '收起' : '展开' }}
|
|
161
|
-
</el-button>
|
|
162
|
-
</div>
|
|
163
|
-
</template>
|
|
164
|
-
</el-table-column>
|
|
165
|
-
<el-table-column prop="explainDirection" label="解读方向" min-width="120">
|
|
166
|
-
<template slot-scope="{ row }">
|
|
167
|
-
<div class="expandable-content">
|
|
168
|
-
<div
|
|
169
|
-
:class="{
|
|
170
|
-
'content-expanded': row.expandExplainDirection,
|
|
171
|
-
'content-collapse': !row.expandExplainDirection,
|
|
172
|
-
}"
|
|
173
|
-
>
|
|
174
|
-
{{ row.explainDirection }}
|
|
175
|
-
</div>
|
|
176
|
-
<el-button
|
|
177
|
-
v-if="shouldShowExpand(row.explainDirection)"
|
|
178
|
-
type="text"
|
|
179
|
-
size="mini"
|
|
180
|
-
@click="toggleExpand(row, 'explainDirection')"
|
|
181
|
-
>
|
|
182
|
-
{{ row.expandExplainDirection ? '收起' : '展开' }}
|
|
183
|
-
</el-button>
|
|
184
|
-
</div>
|
|
185
|
-
</template>
|
|
186
|
-
</el-table-column>
|
|
187
|
-
<el-table-column prop="date" label="数据截止日期" width="120" />
|
|
188
|
-
<el-table-column prop="startDate" label="解读发布时间" width="120" sortable="custom" />
|
|
189
|
-
</el-table>
|
|
190
|
-
|
|
191
|
-
<!-- 分页 -->
|
|
192
|
-
<el-pagination
|
|
193
|
-
background
|
|
194
|
-
@size-change="handleSizeChange"
|
|
195
|
-
@current-change="handleCurrentChange"
|
|
196
|
-
:current-page="pagination.currentPage"
|
|
197
|
-
:page-sizes="[10, 20, 50, 100]"
|
|
198
|
-
:page-size="pagination.pageSize"
|
|
199
|
-
layout="total, sizes, prev, pager, next, jumper"
|
|
200
|
-
:total="pagination.total"
|
|
201
|
-
style="margin-top: 20px; text-align: right"
|
|
202
|
-
>
|
|
203
|
-
</el-pagination>
|
|
204
|
-
</el-card>
|
|
205
|
-
|
|
206
|
-
<!-- 数据统计弹窗 -->
|
|
207
|
-
<el-dialog
|
|
208
|
-
title="数据统计"
|
|
209
|
-
:visible.sync="statisticsDialogVisible"
|
|
210
|
-
width="1200px"
|
|
211
|
-
:close-on-click-modal="false"
|
|
212
|
-
>
|
|
213
|
-
<!-- 上部分:数据总量 -->
|
|
214
|
-
<div class="statistics-top">
|
|
215
|
-
<!-- 第一行 -->
|
|
216
|
-
<div class="statistics-row">
|
|
217
|
-
<div class="statistics-item-left">
|
|
218
|
-
<span class="label">基金总量:</span>
|
|
219
|
-
<span class="value">{{ statisticsData.fundTotal }}</span>
|
|
220
|
-
</div>
|
|
221
|
-
<div class="statistics-item-right">
|
|
222
|
-
<span class="label">数据截止日期:</span>
|
|
223
|
-
<span class="value">{{ statisticsData.date }}</span>
|
|
224
|
-
<el-button type="primary" size="small" style="margin-left: 10px" @click="handleExport">
|
|
225
|
-
数据导出
|
|
226
|
-
</el-button>
|
|
227
|
-
</div>
|
|
228
|
-
</div>
|
|
229
|
-
<!-- 第二行:三列展示 -->
|
|
230
|
-
<div class="statistics-row statistics-three-columns">
|
|
231
|
-
<div class="statistics-column">
|
|
232
|
-
<div class="column-label">应跑基金总量</div>
|
|
233
|
-
<div class="column-value">{{ statisticsData.shouldRunTotal }}</div>
|
|
234
|
-
</div>
|
|
235
|
-
<div class="statistics-column">
|
|
236
|
-
<div class="column-label">有论据基金总量</div>
|
|
237
|
-
<div class="column-value">{{ statisticsData.withArgumentTotal }}</div>
|
|
238
|
-
</div>
|
|
239
|
-
<div class="statistics-column">
|
|
240
|
-
<div class="column-label">兜底基金总量</div>
|
|
241
|
-
<div class="column-value">{{ statisticsData.fallbackTotal }}</div>
|
|
242
|
-
</div>
|
|
243
|
-
</div>
|
|
244
|
-
</div>
|
|
245
|
-
|
|
246
|
-
<!-- 下部分:数据分布 -->
|
|
247
|
-
<div class="statistics-bottom">
|
|
248
|
-
<div class="section-title">数据分布</div>
|
|
249
|
-
<el-table
|
|
250
|
-
:data="distributionTableData"
|
|
251
|
-
row-key="index"
|
|
252
|
-
border
|
|
253
|
-
:default-expand-all="false"
|
|
254
|
-
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
|
255
|
-
>
|
|
256
|
-
style="width: 100%; margin-bottom: 20px;" >
|
|
257
|
-
<el-table-column prop="index" label="框架序号" width="120" />
|
|
258
|
-
<el-table-column prop="frameName" label="解读框架" />
|
|
259
|
-
<el-table-column prop="argument" label="有值论据" />
|
|
260
|
-
<el-table-column prop="nums" label="命中数量" />
|
|
261
|
-
<el-table-column label="占基金总量比例">
|
|
262
|
-
<template slot-scope="scope"> {{ scope.row.rate }}% </template>
|
|
263
|
-
</el-table-column>
|
|
264
|
-
</el-table>
|
|
265
|
-
</div>
|
|
266
|
-
|
|
267
|
-
<span slot="footer" class="dialog-footer">
|
|
268
|
-
<el-button @click="statisticsDialogVisible = false">关 闭</el-button>
|
|
269
|
-
</span>
|
|
270
|
-
</el-dialog>
|
|
271
|
-
</div>
|
|
272
|
-
</template>
|
|
273
|
-
|
|
274
|
-
<script>
|
|
275
|
-
export default {
|
|
276
|
-
name: 'EventInterpretation',
|
|
277
|
-
data() {
|
|
278
|
-
return {
|
|
279
|
-
// 筛选表单
|
|
280
|
-
searchForm: {
|
|
281
|
-
fundManagerName: '',
|
|
282
|
-
fundManagerCode: '',
|
|
283
|
-
explainFrame: [],
|
|
284
|
-
date: '',
|
|
285
|
-
startDateRange: [],
|
|
286
|
-
},
|
|
287
|
-
// 解读框架选项
|
|
288
|
-
explainFrameOptions: [
|
|
289
|
-
{ label: '框架A', value: 'frameA' },
|
|
290
|
-
{ label: '框架B', value: 'frameB' },
|
|
291
|
-
{ label: '框架C', value: 'frameC' },
|
|
292
|
-
{ label: '框架D', value: 'frameD' },
|
|
293
|
-
],
|
|
294
|
-
|
|
295
|
-
endDatePickerOptions: {
|
|
296
|
-
disabledDate(time) {
|
|
297
|
-
const now = new Date()
|
|
298
|
-
const oneMonthAgo = new Date(now.getTime() - 30 * 24 * 60 * 60 * 1000)
|
|
299
|
-
const isWeekend = time.getDay() === 0 || time.getDay() === 6
|
|
300
|
-
return (
|
|
301
|
-
time.getTime() > now.getTime() || time.getTime() < oneMonthAgo.getTime() || isWeekend
|
|
302
|
-
)
|
|
303
|
-
},
|
|
304
|
-
},
|
|
305
|
-
// 日期选择器配置(限制一月内)
|
|
306
|
-
datePickerOptions: {
|
|
307
|
-
disabledDate(time) {
|
|
308
|
-
const now = new Date()
|
|
309
|
-
const oneMonthAgo = new Date(now.getTime() - 30 * 24 * 60 * 60 * 1000)
|
|
310
|
-
return time.getTime() > now.getTime() || time.getTime() < oneMonthAgo.getTime()
|
|
311
|
-
},
|
|
312
|
-
},
|
|
313
|
-
// 基金一句话描述
|
|
314
|
-
fundSummary: '这是一只优秀的基金产品,具有良好的市场表现和投资价值。',
|
|
315
|
-
// 基金简称搜索
|
|
316
|
-
fundAbbrSearch: '',
|
|
317
|
-
// 原始表格数据
|
|
318
|
-
originalTableData: [
|
|
319
|
-
{
|
|
320
|
-
id: 1,
|
|
321
|
-
fundManagerName: '基金A',
|
|
322
|
-
fundManagerCode: '000001',
|
|
323
|
-
explainFrame: '框架A',
|
|
324
|
-
category: '股票型',
|
|
325
|
-
explainContent:
|
|
326
|
-
'11111111111111111111111111111111111111111这是一段很长的解读内容,需要展示在表格中,当内容超过3行时需要显示展开按钮来查看更多内容。这是一段很长的解读内容,需要展示在表格中,当内容超过3行时需要显示展开按钮来查看更多内容。这是一段很长的解读内容,需要展示在表格中,当内容超过3行时需要显示展开按钮来查看更多内容。',
|
|
327
|
-
explainDimensions:
|
|
328
|
-
'qwqw1211111111111111111111111111111111111111111111111111111222222222222222222222222维度1、维度2、维度3、维度4、维度5',
|
|
329
|
-
explainDirection:
|
|
330
|
-
'11111111111111111111111111111222222222222222222222222222222221212222222222222222222222221111向上、向下、持平、向上、向下、持平',
|
|
331
|
-
date: '2024-01-15',
|
|
332
|
-
startDate: '2024-01-20',
|
|
333
|
-
expandExplainContent: false,
|
|
334
|
-
expandExplainDimensions: false,
|
|
335
|
-
expandExplainDirection: false,
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
id: 2,
|
|
339
|
-
fundManagerName: '基金B',
|
|
340
|
-
fundManagerCode: '000002',
|
|
341
|
-
explainFrame: '框架B',
|
|
342
|
-
category: '混合型',
|
|
343
|
-
explainContent: '解读内容B',
|
|
344
|
-
explainDimensions: '维度B',
|
|
345
|
-
explainDirection: '方向B',
|
|
346
|
-
date: '2024-01-16',
|
|
347
|
-
startDate: '2024-01-21',
|
|
348
|
-
expandExplainContent: false,
|
|
349
|
-
expandExplainDimensions: false,
|
|
350
|
-
expandExplainDirection: false,
|
|
351
|
-
},
|
|
352
|
-
],
|
|
353
|
-
// 排序配置
|
|
354
|
-
sortConfig: {
|
|
355
|
-
prop: 'fundManagerCode',
|
|
356
|
-
order: 'ascending',
|
|
357
|
-
},
|
|
358
|
-
// 统计弹窗显示状态
|
|
359
|
-
statisticsDialogVisible: false,
|
|
360
|
-
// 统计数据
|
|
361
|
-
statisticsData: {
|
|
362
|
-
fundTotal: 100,
|
|
363
|
-
date: '2024-01-15',
|
|
364
|
-
shouldRunTotal: 80,
|
|
365
|
-
withArgumentTotal: 65,
|
|
366
|
-
fallbackTotal: 15,
|
|
367
|
-
},
|
|
368
|
-
// 临时修改 distributionTableData 数据(删除 hasChildren 字段)
|
|
369
|
-
distributionTableData: [
|
|
370
|
-
{
|
|
371
|
-
index: '1',
|
|
372
|
-
frameName: '框架A',
|
|
373
|
-
argument: '论据A1',
|
|
374
|
-
nums: 30,
|
|
375
|
-
rate: 30,
|
|
376
|
-
// 移除 hasChildren: true
|
|
377
|
-
children: [
|
|
378
|
-
{ index: '1-1', frameName: '框架A-子项1', argument: '论据A1-1', nums: 20, rate: 20 },
|
|
379
|
-
{ index: '1-2', frameName: '框架A-子项2', argument: '论据A1-2', nums: 10, rate: 10 },
|
|
380
|
-
],
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
index: '2',
|
|
384
|
-
frameName: '框架B',
|
|
385
|
-
argument: '论据B1',
|
|
386
|
-
nums: 25,
|
|
387
|
-
rate: 25,
|
|
388
|
-
// 移除 hasChildren: true
|
|
389
|
-
children: [
|
|
390
|
-
{ index: '2-1', frameName: '框架B-子项1', argument: '论据B1-1', nums: 15, rate: 15 },
|
|
391
|
-
{ index: '2-2', frameName: '框架B-子项2', argument: '论据B1-2', nums: 10, rate: 10 },
|
|
392
|
-
],
|
|
393
|
-
},
|
|
394
|
-
],
|
|
395
|
-
// 展开的行
|
|
396
|
-
expandedRows: {},
|
|
397
|
-
// 分页配置
|
|
398
|
-
pagination: {
|
|
399
|
-
currentPage: 1,
|
|
400
|
-
pageSize: 10,
|
|
401
|
-
total: 0,
|
|
402
|
-
},
|
|
403
|
-
// 表格显示数据
|
|
404
|
-
tableData: [],
|
|
405
|
-
}
|
|
406
|
-
},
|
|
407
|
-
mounted() {
|
|
408
|
-
// 初始化原始数据
|
|
409
|
-
this.originalTableData = JSON.parse(JSON.stringify(this.originalTableData))
|
|
410
|
-
this.fetchData()
|
|
411
|
-
},
|
|
412
|
-
methods: {
|
|
413
|
-
// 获取数据
|
|
414
|
-
fetchData() {
|
|
415
|
-
let data = [...this.originalTableData]
|
|
416
|
-
|
|
417
|
-
// 基金简称模糊查询
|
|
418
|
-
if (this.fundAbbrSearch) {
|
|
419
|
-
data = data.filter(
|
|
420
|
-
item => item.fundManagerName && item.fundManagerName.includes(this.fundAbbrSearch),
|
|
421
|
-
)
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
// 其他筛选条件
|
|
425
|
-
if (this.searchForm.fundManagerName) {
|
|
426
|
-
data = data.filter(
|
|
427
|
-
item =>
|
|
428
|
-
item.fundManagerName && item.fundManagerName.includes(this.searchForm.fundManagerName),
|
|
429
|
-
)
|
|
430
|
-
}
|
|
431
|
-
if (this.searchForm.fundManagerCode) {
|
|
432
|
-
data = data.filter(
|
|
433
|
-
item =>
|
|
434
|
-
item.fundManagerCode && item.fundManagerCode.includes(this.searchForm.fundManagerCode),
|
|
435
|
-
)
|
|
436
|
-
}
|
|
437
|
-
if (this.searchForm.explainFrame && this.searchForm.explainFrame.length > 0) {
|
|
438
|
-
data = data.filter(item => this.searchForm.explainFrame.includes(item.explainFrame))
|
|
439
|
-
}
|
|
440
|
-
if (this.searchForm.date) {
|
|
441
|
-
data = data.filter(item => item.date === this.searchForm.date)
|
|
442
|
-
}
|
|
443
|
-
if (this.searchForm.startDateRange && this.searchForm.startDateRange.length === 2) {
|
|
444
|
-
const [startDate, endDate] = this.searchForm.startDateRange
|
|
445
|
-
data = data.filter(item => {
|
|
446
|
-
return item.startDate >= startDate && item.startDate <= endDate
|
|
447
|
-
})
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
// 排序
|
|
451
|
-
if (this.sortConfig.prop) {
|
|
452
|
-
data.sort((a, b) => {
|
|
453
|
-
const aVal = a[this.sortConfig.prop]
|
|
454
|
-
const bVal = b[this.sortConfig.prop]
|
|
455
|
-
if (this.sortConfig.order === 'ascending') {
|
|
456
|
-
return aVal > bVal ? 1 : aVal < bVal ? -1 : 0
|
|
457
|
-
} else {
|
|
458
|
-
return aVal < bVal ? 1 : aVal > bVal ? -1 : 0
|
|
459
|
-
}
|
|
460
|
-
})
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
// 更新总数
|
|
464
|
-
this.pagination.total = data.length
|
|
465
|
-
|
|
466
|
-
// 分页截取
|
|
467
|
-
const start = (this.pagination.currentPage - 1) * this.pagination.pageSize
|
|
468
|
-
const end = start + this.pagination.pageSize
|
|
469
|
-
this.tableData = data.slice(start, end)
|
|
470
|
-
},
|
|
471
|
-
// 分页大小改变
|
|
472
|
-
handleSizeChange(val) {
|
|
473
|
-
this.pagination.pageSize = val
|
|
474
|
-
this.pagination.currentPage = 1
|
|
475
|
-
this.fetchData()
|
|
476
|
-
},
|
|
477
|
-
// 当前页改变
|
|
478
|
-
handleCurrentChange(val) {
|
|
479
|
-
this.pagination.currentPage = val
|
|
480
|
-
this.fetchData()
|
|
481
|
-
},
|
|
482
|
-
// 基金简称输入(仅中文,且最多 32 个中文字符)
|
|
483
|
-
handleFundAbbrInput(value) {
|
|
484
|
-
if (!value) {
|
|
485
|
-
this.searchForm.fundAbbr = ''
|
|
486
|
-
return
|
|
487
|
-
}
|
|
488
|
-
// 只保留中文字符
|
|
489
|
-
const chineseOnly = value.match(/[\u4e00-\u9fa5]/g)
|
|
490
|
-
const result = chineseOnly ? chineseOnly.join('') : ''
|
|
491
|
-
// 限制最多 32 个中文字符
|
|
492
|
-
this.searchForm.fundAbbr = result.slice(0, 64)
|
|
493
|
-
},
|
|
494
|
-
// 基金代码输入(仅数字和字母,最多 6 位)
|
|
495
|
-
handleFundCodeInput(value) {
|
|
496
|
-
if (!value) {
|
|
497
|
-
this.searchForm.fundCode = ''
|
|
498
|
-
return
|
|
499
|
-
}
|
|
500
|
-
const matched = value.match(/[0-9a-zA-Z]/g)
|
|
501
|
-
const result = matched ? matched.join('') : ''
|
|
502
|
-
this.searchForm.fundCode = result.slice(0, 16)
|
|
503
|
-
},
|
|
504
|
-
// 查询
|
|
505
|
-
handleSearch() {
|
|
506
|
-
console.log('查询条件:', this.searchForm)
|
|
507
|
-
this.pagination.currentPage = 1
|
|
508
|
-
this.fetchData()
|
|
509
|
-
},
|
|
510
|
-
// 重置
|
|
511
|
-
handleReset() {
|
|
512
|
-
this.searchForm = {
|
|
513
|
-
fundManagerName: '',
|
|
514
|
-
fundManagerCode: '',
|
|
515
|
-
explainFrame: [],
|
|
516
|
-
date: '',
|
|
517
|
-
startDateRange: [],
|
|
518
|
-
}
|
|
519
|
-
this.pagination.currentPage = 1
|
|
520
|
-
this.fetchData()
|
|
521
|
-
},
|
|
522
|
-
// 表格排序
|
|
523
|
-
handleSortChange({ prop, order }) {
|
|
524
|
-
if (prop === 'fundManagerCode' || prop === 'startDate') {
|
|
525
|
-
this.sortConfig = { prop, order }
|
|
526
|
-
this.fetchData()
|
|
527
|
-
}
|
|
528
|
-
},
|
|
529
|
-
// // 基金简称筛选
|
|
530
|
-
// handleFundAbbrFilter() {
|
|
531
|
-
// // 通过 computed 属性自动过滤
|
|
532
|
-
// },
|
|
533
|
-
// 判断是否需要显示展开按钮(超过3行)
|
|
534
|
-
shouldShowExpand(content) {
|
|
535
|
-
if (!content) return false
|
|
536
|
-
// 简单的判断:如果内容长度超过某个阈值,认为超过3行
|
|
537
|
-
// 实际可以使用更精确的方法,比如计算实际行数
|
|
538
|
-
return content.length > 100
|
|
539
|
-
},
|
|
540
|
-
// 切换展开/收起
|
|
541
|
-
toggleExpand(row, field) {
|
|
542
|
-
const expandField = `expand${field.charAt(0).toUpperCase() + field.slice(1)}`
|
|
543
|
-
this.$set(row, expandField, !row[expandField])
|
|
544
|
-
},
|
|
545
|
-
// 打开统计弹窗
|
|
546
|
-
openStatisticsDialog() {
|
|
547
|
-
// TODO: 根据当前表格数据查询统计数据
|
|
548
|
-
this.statisticsDialogVisible = true
|
|
549
|
-
},
|
|
550
|
-
// 数据导出
|
|
551
|
-
handleExport() {
|
|
552
|
-
// TODO: 实现数据导出逻辑
|
|
553
|
-
this.$message.success('导出功能开发中...')
|
|
554
|
-
},
|
|
555
|
-
},
|
|
556
|
-
}
|
|
557
|
-
</script>
|
|
558
|
-
|
|
559
|
-
<style scoped lang="scss">
|
|
560
|
-
.event-interpretation {
|
|
561
|
-
padding: 20px;
|
|
562
|
-
background-color: #f5f7fa;
|
|
563
|
-
min-height: calc(100vh - 40px);
|
|
564
|
-
|
|
565
|
-
.filter-card {
|
|
566
|
-
margin-bottom: 20px;
|
|
567
|
-
background-color: #fff;
|
|
568
|
-
|
|
569
|
-
.search-form {
|
|
570
|
-
padding: 10px 0;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
.display-card {
|
|
575
|
-
background-color: #fff;
|
|
576
|
-
|
|
577
|
-
.description-section {
|
|
578
|
-
display: flex;
|
|
579
|
-
justify-content: space-between;
|
|
580
|
-
align-items: center;
|
|
581
|
-
padding: 15px 0;
|
|
582
|
-
border-bottom: 1px solid #ebeef5;
|
|
583
|
-
margin-bottom: 15px;
|
|
584
|
-
|
|
585
|
-
.description-left {
|
|
586
|
-
flex: 1;
|
|
587
|
-
|
|
588
|
-
.fund-summary {
|
|
589
|
-
font-size: 14px;
|
|
590
|
-
color: #606266;
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
.description-right {
|
|
595
|
-
display: flex;
|
|
596
|
-
align-items: center;
|
|
597
|
-
gap: 10px;
|
|
598
|
-
|
|
599
|
-
.text {
|
|
600
|
-
font-size: 14px;
|
|
601
|
-
color: #606266;
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
.result-table {
|
|
607
|
-
.expandable-content {
|
|
608
|
-
width: 100%;
|
|
609
|
-
|
|
610
|
-
/* 折叠状态样式(明确类名) */
|
|
611
|
-
.content-collapse {
|
|
612
|
-
display: -webkit-box;
|
|
613
|
-
-webkit-line-clamp: 3;
|
|
614
|
-
line-clamp: 3;
|
|
615
|
-
-webkit-box-orient: vertical;
|
|
616
|
-
overflow: hidden;
|
|
617
|
-
text-overflow: ellipsis;
|
|
618
|
-
white-space: normal;
|
|
619
|
-
word-wrap: break-word;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
/* 展开状态样式 */
|
|
623
|
-
.content-expanded {
|
|
624
|
-
white-space: normal;
|
|
625
|
-
word-wrap: break-word;
|
|
626
|
-
overflow: visible;
|
|
627
|
-
/* 确保展开后内容完全显示 */
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
/* 按钮样式优化 */
|
|
631
|
-
.el-button {
|
|
632
|
-
margin-top: 5px;
|
|
633
|
-
color: #409eff;
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
// .expandable-content {
|
|
638
|
-
// .content-expanded {
|
|
639
|
-
// white-space: normal;
|
|
640
|
-
// word-wrap: break-word;
|
|
641
|
-
// }
|
|
642
|
-
|
|
643
|
-
// div:not(.content-expanded) {
|
|
644
|
-
// display: -webkit-box;
|
|
645
|
-
// -webkit-line-clamp: 3;
|
|
646
|
-
// line-clamp: 3;
|
|
647
|
-
// -webkit-box-orient: vertical;
|
|
648
|
-
// overflow: hidden;
|
|
649
|
-
// text-overflow: ellipsis;
|
|
650
|
-
// white-space: normal;
|
|
651
|
-
// word-wrap: break-word;
|
|
652
|
-
// }
|
|
653
|
-
// }
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
// 统计弹窗样式
|
|
658
|
-
.statistics-top {
|
|
659
|
-
margin-bottom: 30px;
|
|
660
|
-
|
|
661
|
-
.statistics-row {
|
|
662
|
-
display: flex;
|
|
663
|
-
justify-content: space-between;
|
|
664
|
-
align-items: center;
|
|
665
|
-
margin-bottom: 20px;
|
|
666
|
-
|
|
667
|
-
&.statistics-three-columns {
|
|
668
|
-
display: flex;
|
|
669
|
-
gap: 20px;
|
|
670
|
-
margin-top: 20px;
|
|
671
|
-
|
|
672
|
-
.statistics-column {
|
|
673
|
-
flex: 1;
|
|
674
|
-
padding: 15px;
|
|
675
|
-
background-color: #f5f7fa;
|
|
676
|
-
border-radius: 4px;
|
|
677
|
-
text-align: center;
|
|
678
|
-
|
|
679
|
-
.column-label {
|
|
680
|
-
font-size: 14px;
|
|
681
|
-
color: #606266;
|
|
682
|
-
margin-bottom: 10px;
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
.column-value {
|
|
686
|
-
font-size: 24px;
|
|
687
|
-
font-weight: bold;
|
|
688
|
-
color: #409eff;
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
.statistics-item-left,
|
|
694
|
-
.statistics-item-right {
|
|
695
|
-
display: flex;
|
|
696
|
-
align-items: center;
|
|
697
|
-
|
|
698
|
-
.label {
|
|
699
|
-
font-size: 14px;
|
|
700
|
-
color: #606266;
|
|
701
|
-
margin-right: 5px;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
.value {
|
|
705
|
-
font-size: 14px;
|
|
706
|
-
color: #303133;
|
|
707
|
-
font-weight: 500;
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
.statistics-bottom {
|
|
714
|
-
.section-title {
|
|
715
|
-
font-size: 16px;
|
|
716
|
-
font-weight: bold;
|
|
717
|
-
color: #303133;
|
|
718
|
-
margin-bottom: 15px;
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
.distribution-table {
|
|
722
|
-
.expand-icon {
|
|
723
|
-
cursor: pointer;
|
|
724
|
-
display: inline-block;
|
|
725
|
-
width: 20px;
|
|
726
|
-
text-align: center;
|
|
727
|
-
color: #409eff;
|
|
728
|
-
margin-right: 5px;
|
|
729
|
-
user-select: none;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
.index-text {
|
|
733
|
-
cursor: pointer;
|
|
734
|
-
user-select: none;
|
|
735
|
-
color: #409eff;
|
|
736
|
-
|
|
737
|
-
&:hover {
|
|
738
|
-
text-decoration: underline;
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
/* 电脑端表单样式 */
|
|
745
|
-
.search-form {
|
|
746
|
-
display: flex;
|
|
747
|
-
align-items: center;
|
|
748
|
-
gap: 15px;
|
|
749
|
-
/* 统一表单项之间的间距,替代默认margin的混乱 */
|
|
750
|
-
flex-wrap: wrap;
|
|
751
|
-
/* 极端窄屏(如小尺寸电脑)时自动换行,避免溢出 */
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
/* 清除Element默认的表单项底边距,避免布局错位 */
|
|
755
|
-
.search-form :deep(.el-form-item) {
|
|
756
|
-
margin-bottom: 0;
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
</style>
|