工业设计的场景从具体类型字典里获取

This commit is contained in:
魏保林
2026-03-31 16:43:44 +08:00
parent 5358622f07
commit e5e79e01c3

View File

@@ -359,9 +359,14 @@ const closeSendFun = () => {
const changeFun = (val: any) => {
console.log('val', val);
if (val.key === 'discipline') {
sendForm.scenario = '';
if (formDemandAndNotFiniteElement.value && simulationType.value === '工业设计') {
// 从角色获取
scenarioList.value = commonStore.getDictData(val.val.value).A;
if (sendForm.discipline === '工业设计') {
scenarioList.value = commonStore.getDictData(val.val.value + '场景').A;
} else {
// 从角色获取
scenarioList.value = commonStore.getDictData(val.val.value).A;
}
}
}
};
@@ -663,8 +668,12 @@ const sendTaskFun = async (row: any) => {
if (row.discipline) {
// 工业设计的场景从具体类型字典里获取
if (formDemandAndNotFiniteElement.value && simulationType.value === '工业设计') {
// 从角色获取
scenarioList.value = commonStore.getDictData(row.discipline).A;
if (sendForm.discipline === '工业设计') {
scenarioList.value = commonStore.getDictData(row.discipline + '场景').A;
} else {
// 从角色获取
scenarioList.value = commonStore.getDictData(row.discipline).A;
}
}
}