Commit b866d29c authored by 田翔's avatar 田翔

fix: 父级台账批量操作台账名称传参问题

parent 3af4ae2b
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "6.10.2", "version": "6.10.3",
"description": "6.10.2 支持配置分页选项配置", "description": "6.10.3 父级台账批量操作台账名称传参问题",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -156,7 +156,7 @@ const Account = (props, ref) => { ...@@ -156,7 +156,7 @@ const Account = (props, ref) => {
cancelText: '取消', cancelText: '取消',
onOk: async () => { onOk: async () => {
return await new Promise(async (resolve, reject) => { return await new Promise(async (resolve, reject) => {
const { code, data, msg } = await DeleteTableDataInfo({ accountTable: accountName, ids: keys.join(',') }); const { code, data, msg } = await DeleteTableDataInfo({ accountTable: params.accountName, ids: keys.join(',') });
if (code === 0) { if (code === 0) {
message.success('批量删除成功!'); message.success('批量删除成功!');
getDataSource(); getDataSource();
...@@ -173,7 +173,7 @@ const Account = (props, ref) => { ...@@ -173,7 +173,7 @@ const Account = (props, ref) => {
if (!keys.length) { if (!keys.length) {
return message.info('请勾选要修改的数据!'); return message.info('请勾选要修改的数据!');
} }
batchEditRef.current.open({ accountTable: accountName, id: keys.join(',') }); batchEditRef.current.open({ accountTable: params.accountName, id: keys.join(',') });
} }
if (['导出数据', '导出全字段数据'].includes(type)) { if (['导出数据', '导出全字段数据'].includes(type)) {
exportData({ exportAll: type === '导出全字段数据' }); exportData({ exportAll: type === '导出全字段数据' });
...@@ -254,7 +254,6 @@ const Account = (props, ref) => { ...@@ -254,7 +254,6 @@ const Account = (props, ref) => {
const saveClick = (field, formJson, values, type) => { const saveClick = (field, formJson, values, type) => {
let json = JSON.parse(JSON.stringify(formJson)); let json = JSON.parse(JSON.stringify(formJson));
let parent = json?.properties; let parent = json?.properties;
console.log(1, field, json)
if (isObject(parent)) { if (isObject(parent)) {
for (let v in parent) { for (let v in parent) {
let hidden = true; let hidden = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment