diff --git a/src/components/FRuleEditor/Debug/index.vue b/src/components/FRuleEditor/Debug/index.vue index 2d34ec3b..00d9ce2c 100644 --- a/src/components/FRuleEditor/Debug/index.vue +++ b/src/components/FRuleEditor/Debug/index.vue @@ -129,7 +129,7 @@ const property = ref([]); const columns = [ { - title: '属性ID', + title: '属性名称', dataIndex: 'id', key: 'id', }, @@ -251,19 +251,22 @@ onUnmounted(() => { clearAction(); }); -const options = ref<{ text: string; value: string }[]>([]); +const options = computed(() => { + return (medataSource.value || []) + .filter((p) => p.id !== props.id) + .map((item) => ({ + text: item.name, + value: item.id, + })); +}) -const getProperty = () => { - // const metadata = productStore.current.metadata || '{}'; - // const _p: PropertyMetadata[] = JSON.parse(metadata).properties || []; - options.value = (medataSource.value || []) - .filter((p) => p.id !== props.id) - .map((item) => ({ - text: item.name, - value: item.id, - })); -}; -getProperty(); +// const getProperty = () => { +// // const metadata = productStore.current.metadata || '{}'; +// // const _p: PropertyMetadata[] = JSON.parse(metadata).properties || []; +// console.log(medataSource.value) +// options.value = +// }; +// getProperty();