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

Closed
destinys opened this issue May 16, 2024 · 1 comment

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

@anncwb
Copy link
Collaborator

anncwb commented Jul 16, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@anncwb anncwb added the Stale label Jul 16, 2024
@anncwb anncwb closed this as completed Jul 24, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Aug 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants