修改 冀北现场问题
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user