Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table启用FormSearch后,针对查询结果点击编辑,record不会生成editValueRefs以及xxxCbs属性 #3852

Open
destinys opened this issue May 16, 2024 · 0 comments

Comments

@destinys
Copy link

<script lang="ts" setup> import { BasicTable, useTable, TableAction,

} from '@/components/Table';

import { contractInfoApi, deleteContractApi, updateContractApi } from "@/api/service/management.api";
import { useMessage } from '@/hooks/web/useMessage';
import { getBasicColumns, getModalConfig } from "@/views/management/contract/tableMeta";
import { getFormConfig } from "@/views/management/contract/tableMeta";
import { useTableAction } from "@/views/comp/hooks/useTableAction";
import { ref } from "vue";

const { createMessage: msg } = useMessage();
const currentEditKeyRef = ref('');
const [registerTable,{deleteTableDataRecord}] = useTable({
title: '',
useSearchForm: true,
api: contractInfoApi,
columns: getBasicColumns(),
formConfig: getFormConfig(),
modalConfig:getModalConfig(),
showIndexColumn: false,
showTableSetting: false,
tableSetting: { fullScreen: true },
rowKey: 'id',
actionColumn: {
width: 100,
title: 'Action',
dataIndex: 'action',
// slots: { customRender: 'action' },
},
});

当配置useSearchForm=true时,针对查询结果进行编辑,修改无法保存;

默认加载数据,当前含包含editValueRefs以及xxxCbs等属性
image

点击查询后,针对查询结果行进行编辑,当前行没有editValueRefs以及xxxCbs等属性
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant