This commit is contained in:
ChenYi 2025-10-23 14:31:42 +08:00
parent 2874160e45
commit 68ff5db53f
2 changed files with 6 additions and 8 deletions

View File

@ -100,7 +100,6 @@ const editRow: Record<string, any> = ref({});
//
const hasData = ref(true);
const [ThingModelModal, thingModelModalApi] = useVbenModal({
draggable: true,
footer: true,
@ -278,7 +277,7 @@ const openCopyAnotherThingModelModal = async () => {
console.log('打开复制模态框当前props:', {
productId: props.productId,
productName: props.productName,
ioTPlatform: props.ioTPlatform
ioTPlatform: props.ioTPlatform,
});
copyModalApi.open();
};
@ -295,8 +294,8 @@ async function submitCopy() {
props: {
productId: props.productId,
productName: props.productName,
ioTPlatform: props.ioTPlatform
}
ioTPlatform: props.ioTPlatform,
},
});
try {
@ -365,7 +364,6 @@ function closeModal() {
emit('update:visible', false);
emit('close');
}
</script>
<template>

View File

@ -354,7 +354,7 @@ export const editThingModelFormSchema = computed(() => [
return items.map((item: any) => ({
...item,
// 使用secondValue的小写版本作为value保持label为原始value
value: item.secondValue || item.value?.toLowerCase(),
value: item.secondValue || item.value,
label: item.value, // 显示文本
}));
},