|
@@ -239,8 +239,8 @@ const defaultContent = ref([
|
|
|
]);
|
|
|
const selectType = (value: any) => {
|
|
|
state.ruleForm.planTypes = value.map((item: any) => {
|
|
|
- return { planTypeName: item.name, planTypeId: item.id, planTypeSpliceName: item.spliceName };
|
|
|
- // return { name: item.name, id: item.id, spliceName: item.spliceName };
|
|
|
+ // return { planTypeName: item.name, planTypeId: item.id, planTypeSpliceName: item.spliceName };
|
|
|
+ return { name: item.name, id: item.id, spliceName: item.spliceName };
|
|
|
});
|
|
|
state.ruleForm.planTypeId = value.map((item: any) => item.id);
|
|
|
ruleFormRef.value.validateField('planTypeId');
|
|
@@ -383,7 +383,7 @@ const getDetail = async () => {
|
|
|
state.hotspotExternal = state.ruleForm.hotspotExternal.split(',');
|
|
|
}
|
|
|
state.ruleForm.files = transformFile(state.ruleForm.files);
|
|
|
- state.ruleForm.planTypeId = state.ruleForm.planTypes?.map((item: any) => item.planTypeId);
|
|
|
+ state.ruleForm.planTypeId = state.ruleForm.planTypes?.map((item: any) => item.id);
|
|
|
}
|
|
|
};
|
|
|
onMounted(async () => {
|