|
|
@ -83,11 +83,17 @@
|
|
|
|
const init = () => {
|
|
|
|
const init = () => {
|
|
|
|
visible.value = true
|
|
|
|
visible.value = true
|
|
|
|
nextTick(() => {
|
|
|
|
nextTick(() => {
|
|
|
|
|
|
|
|
console.log(colData.value)
|
|
|
|
TableColDragRef.value.init(colData.value)
|
|
|
|
TableColDragRef.value.init(colData.value)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
onMounted(() => {
|
|
|
|
onMounted(() => {
|
|
|
|
|
|
|
|
console.log(props.columns)
|
|
|
|
|
|
|
|
if (props.type == 'excel') {
|
|
|
|
colData.value = props.columns.data
|
|
|
|
colData.value = props.columns.data
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
colData.value = props.columns
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
const handleOk = (b) => {
|
|
|
|
const handleOk = (b) => {
|
|
|
|
const content = JSON.stringify(TableColDragRef.value.getColList())
|
|
|
|
const content = JSON.stringify(TableColDragRef.value.getColList())
|
|
|
|