refactor: add uploadFileList
This commit is contained in:
parent
ae88c19964
commit
b36a92c050
1 changed files with 10 additions and 2 deletions
|
|
@ -12,6 +12,8 @@ import {
|
||||||
DeleteButton,
|
DeleteButton,
|
||||||
UndoButton,
|
UndoButton,
|
||||||
} from 'components/button';
|
} from 'components/button';
|
||||||
|
import UploadFile from 'src/components/upload-file/UploadFile.vue';
|
||||||
|
import { uploadFileList } from '../../constant';
|
||||||
|
|
||||||
const item = defineModel<NonNullable<CustomerCreate['customerBranch']>[number]>(
|
const item = defineModel<NonNullable<CustomerCreate['customerBranch']>[number]>(
|
||||||
'customerBranch',
|
'customerBranch',
|
||||||
|
|
@ -160,10 +162,16 @@ defineProps<{
|
||||||
/>
|
/>
|
||||||
</q-tab-panel>
|
</q-tab-panel>
|
||||||
<q-tab-panel name="attachment">
|
<q-tab-panel name="attachment">
|
||||||
<EmployerFormAttachment
|
<UploadFile
|
||||||
|
:dropdown-list="uploadFileList"
|
||||||
|
v-model:file="item.file"
|
||||||
|
hide-action
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- <EmployerFormAttachment
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
v-model:attachment="item.file"
|
v-model:attachment="item.file"
|
||||||
/>
|
/> -->
|
||||||
</q-tab-panel>
|
</q-tab-panel>
|
||||||
</q-tab-panels>
|
</q-tab-panels>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue