|
|
@ -51,13 +51,15 @@
|
|
|
|
@cell-dblclick="dbclickVxeRow"
|
|
|
|
@cell-dblclick="dbclickVxeRow"
|
|
|
|
@sort-change="sortChangeEvent"
|
|
|
|
@sort-change="sortChangeEvent"
|
|
|
|
@resizable-change="resizableChangeEvent"
|
|
|
|
@resizable-change="resizableChangeEvent"
|
|
|
|
|
|
|
|
@radio-change="rowChange"
|
|
|
|
|
|
|
|
@checkbox-change="rowChange"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template #empty>
|
|
|
|
<template #empty>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<img src="../../../assets/images/nodata.png" />
|
|
|
|
<img src="../../../assets/images/nodata.png" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<vxe-column type="checkbox" fixed="left" width="40"></vxe-column>
|
|
|
|
<vxe-column :type="getBindValues?.rowSelection?.type" fixed="left" width="40"></vxe-column>
|
|
|
|
<vxe-column v-if="numberCol !== false" type="seq" title="序号" width="50"></vxe-column>
|
|
|
|
<vxe-column v-if="numberCol !== false" type="seq" title="序号" width="50"></vxe-column>
|
|
|
|
<template
|
|
|
|
<template
|
|
|
|
v-for="(item, index) in getBindValues.columns"
|
|
|
|
v-for="(item, index) in getBindValues.columns"
|
|
|
@ -182,7 +184,8 @@ export default defineComponent({
|
|
|
|
'edit-change',
|
|
|
|
'edit-change',
|
|
|
|
'expanded-rows-change',
|
|
|
|
'expanded-rows-change',
|
|
|
|
'change',
|
|
|
|
'change',
|
|
|
|
'columns-change'
|
|
|
|
'columns-change',
|
|
|
|
|
|
|
|
'row-change'
|
|
|
|
],
|
|
|
|
],
|
|
|
|
setup(props, { attrs, emit, slots, expose }) {
|
|
|
|
setup(props, { attrs, emit, slots, expose }) {
|
|
|
|
const tableElRef = ref(null)
|
|
|
|
const tableElRef = ref(null)
|
|
|
@ -518,6 +521,10 @@ export default defineComponent({
|
|
|
|
// fetch()
|
|
|
|
// fetch()
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
// vxetable 行监听
|
|
|
|
|
|
|
|
const rowChange = (data) => {
|
|
|
|
|
|
|
|
emit('row-change', data)
|
|
|
|
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
vxeSetId,
|
|
|
|
vxeSetId,
|
|
|
|
formRef,
|
|
|
|
formRef,
|
|
|
@ -549,7 +556,8 @@ export default defineComponent({
|
|
|
|
resizeColumn,
|
|
|
|
resizeColumn,
|
|
|
|
reload,
|
|
|
|
reload,
|
|
|
|
updateCol,
|
|
|
|
updateCol,
|
|
|
|
numberCol
|
|
|
|
numberCol,
|
|
|
|
|
|
|
|
rowChange
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
})
|
|
|
|