工业设计的场景从具体类型字典里获取
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user