bug修复,隐藏字段被展示

pet
liujun 2024-11-22 11:45:36 +08:00
parent 559a861f79
commit 5a680bd0d4
2 changed files with 2 additions and 1 deletions

View File

@ -116,7 +116,7 @@ export default {
listStructure: [ listStructure: [
{name: "动火操作人部门", key_name: "DEPARTMENT_NAME", key_id: "DEPARTMENT_ID", type: 0}, {name: "动火操作人部门", key_name: "DEPARTMENT_NAME", key_id: "DEPARTMENT_ID", type: 0},
{name: "动火操作人", key_name: "USER_NAME", key_id: "USER_ID", type: 0}, {name: "动火操作人", key_name: "USER_NAME", key_id: "USER_ID", type: 0},
{name: "所属端", key_name: "TYPE", type: 0, IS_NOT_SHOW: "1"}, {name: "所属端", key_name: "TYPE", type: 0, IS_NOT_SHOW: 1},
], ],
}, },
{name: '动火操作人', key_name: 'SUPERVISOR_OF_HOT_WORK_UNIT', type: 0}, {name: '动火操作人', key_name: 'SUPERVISOR_OF_HOT_WORK_UNIT', type: 0},

View File

@ -21,6 +21,7 @@ const processFormData = async (formData, formItems) => {
FK_NAME: formItem.key_id || '', FK_NAME: formItem.key_id || '',
FK_VALUE: formData[formItem.key_id] || '', FK_VALUE: formData[formItem.key_id] || '',
TYPE: formItem.type, TYPE: formItem.type,
IS_NOT_SHOW: formItem.IS_NOT_SHOW || 0,
SORT: i + 1 SORT: i + 1
} }
if (formItem.type === 1 || formItem.type === 2) { if (formItem.type === 1 || formItem.type === 2) {