日志管理,误差体系
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
>
|
||||
<!-- 表格 header 按钮 -->
|
||||
<template #tableHeader>
|
||||
<el-button type='primary' :icon='DataAnalysis'>分析</el-button>
|
||||
<el-button type='primary' :icon='Upload'>导出csv</el-button>
|
||||
</template>
|
||||
</ProTable>
|
||||
@@ -20,13 +21,15 @@
|
||||
import TimeControl from '@/components/TimeControl/index.vue'
|
||||
import { type Log } from '@/api/log/interface'
|
||||
import ProTable from '@/components/ProTable/index.vue'
|
||||
import { Upload } from '@element-plus/icons-vue'
|
||||
import { Upload ,DataAnalysis} from '@element-plus/icons-vue'
|
||||
import logDataList from '@/api/log/logData'
|
||||
import type { ColumnProps, ProTableInstance } from '@/components/ProTable/interface'
|
||||
|
||||
import { reactive,ref } from 'vue'
|
||||
let multipleSelection = ref<string[]>([])
|
||||
const logData = logDataList
|
||||
|
||||
// 定义包含和排除的单位
|
||||
const includedUnits = ['日', '周', '月', '季度']; // 可以根据需要包含的单位
|
||||
const excludedUnits = ['年']; // 要排除的单位
|
||||
// ProTable 实例
|
||||
const proTable = ref<ProTableInstance>()
|
||||
// 表格配置项
|
||||
@@ -67,7 +70,7 @@ const columns = reactive<ColumnProps<Log.LogList>[]>([
|
||||
render: ({ searchParam }) => {
|
||||
return (
|
||||
<div class='flx-flex-start'>
|
||||
<TimeControl />
|
||||
<TimeControl/>
|
||||
</div>
|
||||
)
|
||||
},
|
||||
@@ -81,6 +84,8 @@ const handleSelectionChange = (selection: Log.LogList[]) => {
|
||||
multipleSelection.value = selection.map(row => row.id) // 更新选中的行
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user