|
|
@ -6,6 +6,7 @@ |
|
|
|
row-key="id" |
|
|
|
style="width: 1050px; max-height: 70vh; overflow-y: auto" |
|
|
|
v-if="tableData.length > 0 && dialogTableVisible == true" |
|
|
|
v-loading='isLoading' |
|
|
|
> |
|
|
|
<el-table-column type="expand" width="50"> |
|
|
|
<template #default="scope"> |
|
|
@ -150,6 +151,7 @@ const dialogTableVisible = ref(false) |
|
|
|
const defaultExpandAll = ref(false) |
|
|
|
|
|
|
|
const tableData = ref([]) |
|
|
|
const isLoading = ref(false) |
|
|
|
const openLabel = (tableList) => { |
|
|
|
dialogTableVisible.value = true |
|
|
|
tableData.value = tableList |
|
|
@ -317,7 +319,6 @@ const submitForm = () => { |
|
|
|
return |
|
|
|
} |
|
|
|
console.log(343546568678) |
|
|
|
|
|
|
|
emit('submitForm', tableData.value) |
|
|
|
} |
|
|
|
// 添加托 |
|
|
@ -467,7 +468,7 @@ const blurThree = (oneRow, twoRow) => { |
|
|
|
} |
|
|
|
// 传递给父类 |
|
|
|
const emit = defineEmits(['submitForm']) |
|
|
|
defineExpose({ openLabel }) // 提供 open 方法,用于打开弹窗 |
|
|
|
defineExpose({ openLabel,dialogTableVisible,isLoading }) // 提供 open 方法,用于打开弹窗 |
|
|
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
|
|
::v-deep .row-expand-cover td .el-table__expand-icon { |
|
|
|