提交 3d4ca361 authored 作者: 钟是志's avatar 钟是志

23704 学工通用流程审批界面新增支持流程节点下查询

上级 78f60e0b
......@@ -61,7 +61,7 @@ export default class AuditPage extends Component {
};
handleSearchSet = () => {
const { columns, searchCondition } = this.props;
const { columns, searchCondition, allConfigSetInfo } = this.props;
console.log(searchCondition);
const tab1 = {
search: {
......@@ -71,7 +71,7 @@ export default class AuditPage extends Component {
beforeSearchData: (data) => {
let searcherKeyValue = {};
for (let item of searchCondition) {
if (typeof data[item.key] !== 'undefined') {
if (typeof data[item.key] !== 'undefined' && item.key !== 'taskDefKey') {
searcherKeyValue[item.base52] = data[item.key];
}
}
......@@ -83,7 +83,13 @@ export default class AuditPage extends Component {
responseCallBack: (response) => {
return response;
},
condition: searchCondition,
condition: searchCondition.filter((g) => {
if(!allConfigSetInfo.isShowWaitTaskDef){
return g.key !== 'taskDefKey';
}else{
return true;
}
}),
nameSpan: { big: 8, small: 9 },
fileSpan: { big: 4, small: 4 },
},
......@@ -101,7 +107,7 @@ export default class AuditPage extends Component {
beforeSearchData: (data) => {
let searcherKeyValue = {};
for (let item of searchCondition) {
if (typeof data[item.key] !== 'undefined') {
if (typeof data[item.key] !== 'undefined' && item.key !== 'taskDefKey') {
searcherKeyValue[item.base52] = data[item.key];
}
}
......@@ -110,7 +116,13 @@ export default class AuditPage extends Component {
}
return data;
},
condition: searchCondition,
condition: searchCondition.filter((g) => {
if(!allConfigSetInfo.isShowHandledTaskDef){
return g.key !== 'taskDefKey';
}else{
return true;
}
}),
nameSpan: { big: 8, small: 9 },
fileSpan: { big: 4, small: 4 },
},
......
......@@ -60,6 +60,11 @@ const getColumns = (workId) => {
return apiRequest('/UnifiedAppFormApi/getFormTitle', { id: workId });
};
const findListTaskDefinition = (params) => {
// 获取表头 workId
return apiRequest('/UnifiedAppFormApi/findListTaskDefinition', params);
};
const getHead = (dataObjId) => {
// 获取表头 workId
return apiRequest('/DataColumnApi/getHeaderList', { dataObjId });
......@@ -238,4 +243,5 @@ export {
getSqlOptions,
getHead,
getGroupList,
findListTaskDefinition,
};
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论