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