修改 冀北现场问题

This commit is contained in:
GGJ
2024-08-06 20:58:01 +08:00
parent bd3dbca8e1
commit b6ef6cf999
13 changed files with 123 additions and 63 deletions

View File

@@ -68,8 +68,19 @@
</el-select>
</el-form-item>
</template>
<template #operation>
<!-- <el-button icon="el-icon-Plus" type="primary" @click="addFormModel">新增</el-button> -->
<el-button icon="el-icon-Download" @click="exportEvent" type="primary">下载报告</el-button>
</template>
</TableHeader>
<Table ref="tableRef" :tree-config="{ transform: true, parentField: 'pid' }" :scroll-y="{ enabled: true }" />
<Table
ref="tableRef"
:column-config="{ resizable: true }"
:checkbox-config="{ labelField: 'name', highlight: true }"
:tree-config="{ transform: true, parentField: 'pid' }"
:scroll-y="{ enabled: true }"
/>
</template>
<script setup lang="ts">
import { ref, onMounted, provide, nextTick } from 'vue'
@@ -92,7 +103,8 @@ const tableStore = new TableStore({
showPage: false,
method: 'POST',
column: [
{ field: 'name', title: '电网拓扑', minWidth: '180px', align: 'left', treeNode: true },
// { width: '60', title: '111', },
{ field: 'name', title: '电网拓扑', minWidth: '180px', type: 'checkbox', align: 'left', treeNode: true },
{
field: 'ip',
title: '网络参数',
@@ -214,6 +226,9 @@ const tree2List = (list: any, pid?: string) => {
onMounted(() => {
tableStore.index()
})
const exportEvent = () => {
console.log(tableRef.value.getRef().getCheckboxRecords())
}
</script>
<style scoped lang="scss"></style>