@@ -67,13 +67,6 @@ const recognitionActionChartDimension = ref<RecognitionActionChartDimension>('av
6767// 搜索关键词
6868const searchKeyword = ref (' ' )
6969
70- // 清空本地数据
71- const clearLocalData = () => {
72- localTasks .value = []
73- useLocalData .value = false
74- parseProgress .value = 0
75- }
76-
7770// 处理文件上传
7871const handleFileUpload = async (file : File ) => {
7972 // 如果正在上传,忽略新的上传请求
@@ -433,18 +426,13 @@ const recognitionActionSummary = computed(() => {
433426 }
434427})
435428
436- // 当前显示的摘要
437- const summary = computed (() => {
438- return statMode .value === ' node' ? nodeSummary .value : recognitionActionSummary .value
439- })
440-
441429// 节点统计饼图数据(根据选择的维度)
442430const nodeChartOption = computed (() => {
443431 if (nodeStatistics .value .length === 0 ) return null
444432
445433 const dimension = nodeChartDimension .value
446434 let title = ' '
447- let formatter = ' '
435+ let formatter: string | (( params : any ) => string ) = ' '
448436 let sortFn: (a : NodeStatistics , b : NodeStatistics ) => number
449437 let valueFn: (item : NodeStatistics ) => number
450438
@@ -547,7 +535,7 @@ const recognitionActionChartOption = computed(() => {
547535
548536 const dimension = recognitionActionChartDimension .value
549537 let title = ' '
550- let formatter = ' '
538+ let formatter: string | (( params : any ) => string ) = ' '
551539 let sortFn: (a : RecognitionActionStatistics , b : RecognitionActionStatistics ) => number
552540 let valueFn: (item : RecognitionActionStatistics ) => number
553541 let filterFn: (item : RecognitionActionStatistics ) => boolean = () => true
0 commit comments