Commit 9b671adc authored by 彭俊龙's avatar 彭俊龙

解决台账编辑白屏问题

parent ecfe39da
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "6.10.68", "version": "6.10.71",
"description": "6.10.68 电子手签画布范围调整,关联选择新增表数据联动", "description": "6.10.71 解决台账编辑功能白屏问题",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -338,6 +338,23 @@ const Account = (props, ref) => { ...@@ -338,6 +338,23 @@ const Account = (props, ref) => {
setOperation({ type: defaultType, id: null }) setOperation({ type: defaultType, id: null })
saveClick(addField, formJson, [], defaultType) saveClick(addField, formJson, [], defaultType)
} }
if (['详情', '编辑'].includes(defaultType) && accountId) {
setOperation({ type: defaultType, id: accountId });
let Limit = 0
if (defaultType === '编辑' && timeLimit) {
Limit = Number(timeLimit)
}
const res = await GetTableDataInfoExtend({ accountName: params.accountName, id: accountId, timeLimit: Limit });
if (res.code === 0) {
const _data = res.data;
const { accountFieids } = config
const editField = accountFieids.filter(v => v.isEdit).map(v => v.fieldName)
saveClick(editField, isJson(_data.formJson) ? JSON.parse(_data.formJson) : {}, _data.value, defaultType);
} else {
message.error(res.msg);
}
}
defaultParams = { defaultParams = {
sortFields: data?.defaultSortFields || '录入时间', sortFields: data?.defaultSortFields || '录入时间',
direction: data?.sortOrder || 'desc', direction: data?.sortOrder || 'desc',
...@@ -421,9 +438,9 @@ const Account = (props, ref) => { ...@@ -421,9 +438,9 @@ const Account = (props, ref) => {
} else { } else {
//如果传入该值 //如果传入该值
console.log(1, accountId, defaultType, ['详情', '编辑'].includes(defaultType)) console.log(1, accountId, defaultType, ['详情', '编辑'].includes(defaultType))
if (accountId && ['详情', '编辑'].includes(defaultType)) { // if (accountId && ['详情', '编辑'].includes(defaultType)) {
btnsClick({ type: defaultType, row: { ID: accountId } }) // btnsClick({ type: defaultType, row: { ID: accountId } })
} // }
getConfig({ accountName }); getConfig({ accountName });
} }
if (superAccount) { if (superAccount) {
......
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