提交 e91ee543 authored 作者: 王绍森's avatar 王绍森

AuditPage修改

上级 7bba1a75
...@@ -2,7 +2,7 @@ import React from 'react'; ...@@ -2,7 +2,7 @@ import React from 'react';
import PageTypeMatching from '@/highOrderComponent/PageTypeMatching'; import PageTypeMatching from '@/highOrderComponent/PageTypeMatching';
import getInfoGenerator from '../getInfoGenerator'; import getInfoGenerator from '../getInfoGenerator';
export { DataType } from '../getInfoGenerator' export { DataType } from '../getInfoGenerator';
const defaultNameSpan = { big: 9, small: 9 }; const defaultNameSpan = { big: 9, small: 9 };
const defaultFieldSpan = { big: 4, small: 4 }; const defaultFieldSpan = { big: 4, small: 4 };
...@@ -14,13 +14,12 @@ const defaultPageSetting = { ...@@ -14,13 +14,12 @@ const defaultPageSetting = {
buttonArea: true, // 是否拥有 按钮区, buttonArea: true, // 是否拥有 按钮区,
}; };
export default function AuditPage({ appId, tab1 = {}, tab2 = {} }) { export default function AuditPage({ appId, tab1 = {}, tab2 = {} }) {
const pageSearch = { const pageSearch = {
tab1: { tab1: {
search: { search: {
searchType: 'cascadeSearchNew', searchType: 'cascadeSearchNew',
getInfo: getInfoGenerator(tab1.condition), getInfo: tab1.getInfo || getInfoGenerator(tab1.condition),
url: '/common/assigneeTasks', url: '/common/assigneeTasks',
field: { field: {
appId: { appId: {
...@@ -38,7 +37,7 @@ export default function AuditPage({ appId, tab1 = {}, tab2 = {} }) { ...@@ -38,7 +37,7 @@ export default function AuditPage({ appId, tab1 = {}, tab2 = {} }) {
tab2: { tab2: {
search: { search: {
searchType: 'cascadeSearchNew', searchType: 'cascadeSearchNew',
getInfo: getInfoGenerator(tab2.condition), getInfo: tab2.getInfo || getInfoGenerator(tab2.condition),
url: '/common/assigneeDTasks', url: '/common/assigneeDTasks',
field: { field: {
appId: { appId: {
......
...@@ -18,7 +18,7 @@ export default function getInfoGenerator(condition) { ...@@ -18,7 +18,7 @@ export default function getInfoGenerator(condition) {
item => item.key === key && typeof item.dataType !== 'undefined' item => item.key === key && typeof item.dataType !== 'undefined'
); );
if (conditionItemHasDataType) { if (conditionItemHasDataType && typeof value !== 'undefined') {
const oldQueryInfo = acc.queryInfo || []; const oldQueryInfo = acc.queryInfo || [];
return { return {
...acc, ...acc,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论