2025-04-18 17:17:23 +08:00
|
|
|
<script setup>
|
|
|
|
const props = defineProps({
|
|
|
|
rows: {}
|
|
|
|
})
|
2025-04-18 17:43:08 +08:00
|
|
|
|
|
|
|
const fieldsDescInfo = props.rows.fields_desc
|
|
|
|
const rows = props.rows.rows
|
|
|
|
|
|
|
|
console.log("fields desc:", fieldsDescInfo)
|
2025-04-18 17:17:23 +08:00
|
|
|
console.log("rows:", props.rows)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<el-container>
|
|
|
|
<el-header>
|
|
|
|
<el-button size="large" type="primary">添加</el-button>
|
|
|
|
</el-header>
|
|
|
|
<el-main>
|
2025-04-18 17:43:08 +08:00
|
|
|
<el-table :data="rows" style="width: 100%" table-layout="auto" stripe>
|
|
|
|
<template v-for="fieldDescInfo in fieldsDescInfo">
|
|
|
|
<el-table-column :prop="fieldDescInfo.key" :label="fieldDescInfo.name"></el-table-column>/
|
|
|
|
</template>
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
<el-dialog v-model="addvisible" title="添加" modal="true" :before-close="handleCloseAdd" destroy-on-close>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
2025-04-18 17:17:23 +08:00
|
|
|
</el-main>
|
|
|
|
</el-container>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
</style>
|