<template>
|
<app-collapse-form title="基础信息">
|
<app-form-details v-bind="formDetailsProps">
|
</app-form-details>
|
</app-collapse-form>
|
</template>
|
|
<script setup>
|
|
import {meta} from "@/hooks";
|
|
const {useMetaData} = meta;
|
|
const formDetailsRef = ref();
|
|
const [, , fields] = useMetaData(
|
'fee_model_band',
|
async () => {
|
formDetailsProps.fields = fields;
|
formDetailsRef.value.$forceUpdate(formDetailsProps);
|
}
|
);
|
|
const formDetailsProps = {
|
ref: formDetailsRef,
|
fields: []
|
}
|
|
const onSetData = (row) => {
|
formDetailsRef.value.setModel(row);
|
}
|
|
defineExpose({
|
/**
|
* 初始化
|
*/
|
onSetData
|
});
|
|
|
</script>
|