|
|
|
@ -130,7 +130,7 @@ import { basicProps } from './props'
|
|
|
|
|
import { isFunction } from '/@/utils/is'
|
|
|
|
|
import { warn } from '/@/utils/log'
|
|
|
|
|
// vxe列设置接口
|
|
|
|
|
import { getColumnSetInfoByModule } from '/@/views/baseinfo/columnset/api'
|
|
|
|
|
import { getColumnSetInfoByModule, UpdateColumnSetField } from '/@/views/baseinfo/columnset/api'
|
|
|
|
|
// 引入表格权限信息(包含id和name)
|
|
|
|
|
import { permissionsInfo } from '/@/hooks/web/usePermission'
|
|
|
|
|
|
|
|
|
@ -163,7 +163,6 @@ export default defineComponent({
|
|
|
|
|
'columns-change'
|
|
|
|
|
],
|
|
|
|
|
setup(props, { attrs, emit, slots, expose }) {
|
|
|
|
|
console.log(props)
|
|
|
|
|
const tableElRef = ref(null)
|
|
|
|
|
const tableData = ref<Recordable[]>([])
|
|
|
|
|
|
|
|
|
@ -254,7 +253,6 @@ export default defineComponent({
|
|
|
|
|
getColumnsRef,
|
|
|
|
|
getCacheColumns,
|
|
|
|
|
} = useColumns(getProps, getPaginationInfo)
|
|
|
|
|
|
|
|
|
|
const { getScrollRef, redoHeight, tableHeightRef } = useTableScroll(
|
|
|
|
|
getProps,
|
|
|
|
|
tableElRef,
|
|
|
|
@ -262,7 +260,7 @@ export default defineComponent({
|
|
|
|
|
getRowSelectionRef,
|
|
|
|
|
getDataSourceRef,
|
|
|
|
|
wrapRef,
|
|
|
|
|
formRef,
|
|
|
|
|
formRef
|
|
|
|
|
)
|
|
|
|
|
const { scrollTo } = useTableScrollTo(tableElRef, getDataSourceRef)
|
|
|
|
|
|
|
|
|
@ -431,8 +429,13 @@ export default defineComponent({
|
|
|
|
|
}
|
|
|
|
|
// vxe拖动列触发实时保存
|
|
|
|
|
const resizableChangeEvent = (item) => {
|
|
|
|
|
|
|
|
|
|
console.log(item)
|
|
|
|
|
const postData = {
|
|
|
|
|
permissionId: permissionsInfo().permissionId,
|
|
|
|
|
columnNo: props.id,
|
|
|
|
|
field: item.column.field,
|
|
|
|
|
width: item.resizeWidth
|
|
|
|
|
}
|
|
|
|
|
UpdateColumnSetField(postData)
|
|
|
|
|
}
|
|
|
|
|
// 更新vxe列设置
|
|
|
|
|
const updateCol = (data) => {
|
|
|
|
|