feat: 更新依赖项版本,优化上传组件和路由配置,调整表单字段

This commit is contained in:
2026-01-12 16:04:48 +07:00
parent 07b11e5657
commit ac7882e99b
8 changed files with 47 additions and 94 deletions

View File

@@ -27,7 +27,7 @@ const form = ref<Body>({
description: '',
estimatedValue: '1',
totalSupplyLimit: '100',
proofDocuments: ''
proofDocumentIds: []
});
const rules: FormRules = {
@@ -129,12 +129,12 @@ function handleCreateDraftAndSubmit() {
</NFormItem>
<NFormItem path="proofDocuments" label="资产证明 ">
<Upload
:model-value="form.proofDocuments?.split(',') || []"
:model-value="form.proofDocumentIds || []"
:fetch-options="{
businessType: 'rwa_proof'
}"
accept="application/pdf,image/*,.doc,.docx"
@update:model-value="val => (form.proofDocuments = val.join(','))"
@update:model-value="val => (form.proofDocumentIds = val)"
/>
</NFormItem>
<NSpace justify="end">

View File

@@ -33,7 +33,7 @@ const form = ref<Body>({
description: props.data.description,
estimatedValue: props.data.estimatedValue,
totalSupplyLimit: props.data.totalSupplyLimit,
proofDocuments: props.data.proofDocuments
proofDocumentIds: props.data.proofDocumentIds
});
const rules: FormRules = {
@@ -122,14 +122,14 @@ function handleSubmit() {
<NFormItem path="description" label="产品描述">
<NInput v-model:value="form.description" type="textarea" />
</NFormItem>
<NFormItem path="proofDocuments" label="资产证明 ">
<NFormItem path="proofDocumentIds" label="资产证明 ">
<Upload
:model-value="form.proofDocuments?.split(',') || []"
:model-value="form.proofDocumentIds || []"
:fetch-options="{
businessType: 'rwa_proof'
}"
accept="application/pdf,image/*,.doc,.docx"
@update:model-value="val => (form.proofDocuments = val.join(','))"
@update:model-value="val => (form.proofDocumentIds = val)"
/>
</NFormItem>
<NSpace justify="end">