未分发的和已分发的合并起来,单个需求任务的分发功能开发
This commit is contained in:
46
src/tenants/lyric/views/task/lyricTask.ts
Normal file
46
src/tenants/lyric/views/task/lyricTask.ts
Normal file
@@ -0,0 +1,46 @@
|
||||
export const getDemandHideKeys = (key: string) => {
|
||||
const allKeys = [
|
||||
'simulationPurpose',
|
||||
'animationPurpose',
|
||||
'robotBrand',
|
||||
'axis',
|
||||
'beatDemand',
|
||||
'useType',
|
||||
'styleRequirements',
|
||||
'viewRequirements',
|
||||
'referenceData',
|
||||
'deviceMessage',
|
||||
'materialAndCraftsmanship',
|
||||
];
|
||||
let keys: string[] = [];
|
||||
if (key.indexOf('有限元') !== -1 || key.indexOf('DISCIPLINE_TYPE') !== -1) {
|
||||
const finiteElementKeys = ['simulationPurpose'];
|
||||
keys = allKeys.filter((item) => !finiteElementKeys.includes(item));
|
||||
} else if (key.indexOf('动画') !== -1) {
|
||||
const animationKeys = ['animationPurpose', 'robotBrand', 'axis', 'beatDemand'];
|
||||
keys = allKeys.filter((item) => !animationKeys.includes(item));
|
||||
} else if (key.indexOf('工业') !== -1) {
|
||||
const industrialKeys = [
|
||||
'useType',
|
||||
'styleRequirements',
|
||||
'viewRequirements',
|
||||
'referenceData',
|
||||
'deviceMessage',
|
||||
'materialAndCraftsmanship',
|
||||
];
|
||||
keys = allKeys.filter((item) => !industrialKeys.includes(item));
|
||||
} else if (key.indexOf('机器人') !== -1) {
|
||||
const robotKeys = ['robotBrand', 'axis'];
|
||||
keys = allKeys.filter((item) => !robotKeys.includes(item));
|
||||
} else if (key.indexOf('公差') !== -1) {
|
||||
const toleranceKeys = [''];
|
||||
keys = allKeys.filter((item) => !toleranceKeys.includes(item));
|
||||
}
|
||||
return keys;
|
||||
};
|
||||
|
||||
export const getUserSimulationType = () => {
|
||||
return '有限元';
|
||||
// return '动画';
|
||||
// return '工业';
|
||||
};
|
||||
Reference in New Issue
Block a user