From 92914c5731faf0797002a3ac0393618bd569b43c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E9=98=94?= Date: Sat, 2 Nov 2024 15:26:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E6=9C=9F=E5=80=BC=E5=92=8C=E4=B8=8A?= =?UTF-8?q?=E6=9C=9F=E5=80=BC=E6=B7=BB=E5=8A=A0=E7=82=B9=E5=87=BB=E5=8F=B3?= =?UTF-8?q?=E9=94=AE=E5=BC=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IndexSearchServiceMs.vue | 56 +++++++++++++++++-- 1 file changed, 51 insertions(+), 5 deletions(-) diff --git a/src/views/dataset/IndexSearchServiceMs/IndexSearchServiceMs.vue b/src/views/dataset/IndexSearchServiceMs/IndexSearchServiceMs.vue index fb2c005..15e79d7 100644 --- a/src/views/dataset/IndexSearchServiceMs/IndexSearchServiceMs.vue +++ b/src/views/dataset/IndexSearchServiceMs/IndexSearchServiceMs.vue @@ -11,7 +11,7 @@ import { TableData } from '@/api/reporting/RepDataProblem/RepDataProblem/types' import { useTable } from '@/hooks/web/useTable' import { useI18n } from '@/hooks/web/useI18n' import { Table, TableColumn } from '@/components/Table' -import { ElButton, ElLink, ElLoading, ElPopconfirm, ElMessage } from 'element-plus' +import { ElButton, ElLink, ElLoading, ElPopconfirm, ElMessage,ElDropdown,ElDropdownMenu,ElDropdownItem } from 'element-plus' import { Search } from '@/components/Search' import { FormSchema } from '@/components/Form' import { ContentWrap } from '@/components/ContentWrap' @@ -63,7 +63,7 @@ const tableColumns = reactive([ }, { field: 'dataDate', - label: '指标代码' + label: '指标代码', }, { field: 'createTime', @@ -75,11 +75,57 @@ const tableColumns = reactive([ }, { field: 'tCategory', - label: '本期值' + label: '本期值', + slots:{ + default:(data:any)=>{ + return + {{ + default:()=>{ + return
+ {data.row.tCategory} +
+ }, + dropdown:()=>{ + return + +
按机构钻取
+
+ +
趋势分析
+
+
+ } + }} +
+ } + } }, { field: 'tCategory', - label: '上期值' + label: '上期值', + slots:{ + default:(data:any)=>{ + return + {{ + default:()=>{ + return
+ {data.row.tCategory} +
+ }, + dropdown:()=>{ + return + +
按机构钻取
+
+ +
趋势分析
+
+
+ } + }} +
+ } + } } ].map(item => ({ minWidth: item.label ? getWidth(item.label) : 120, ...item }) as TableColumn)) @@ -96,7 +142,7 @@ const searchSchema = reactive([ multiple: true, collapseTags: true, showCheckbox: true, - style: { minWidth: '200px' }, + // style: { minWidth: '200px' }, //style: 'width: 100%', checkOnClickNode: true, },