update
This commit is contained in:
@@ -9,6 +9,7 @@ import dayjs from "dayjs";
|
||||
import {throttle} from "lodash";
|
||||
import {useSystemStore} from "../../pinia/SystemStore/index.js";
|
||||
import UploadSlot from "../upload/UploadSlot.vue";
|
||||
import useUploadLength from "../../hooks/useUploadLength.js";
|
||||
|
||||
const SystemStore = useSystemStore();
|
||||
const emits = defineEmits(['success']);
|
||||
@@ -33,6 +34,11 @@ const form = reactive({
|
||||
images: [],
|
||||
});
|
||||
|
||||
useUploadLength({
|
||||
array: form.images,
|
||||
length: 5,
|
||||
});
|
||||
|
||||
const {loading, pagination, initFetchData, fetchData} = useTableQuery({
|
||||
parameter: po,
|
||||
api: SystemStore.isRoot ? Api.admin.getExchangeLogIntervention : Api.merchant.getExchangeLog,
|
||||
|
||||
@@ -16,6 +16,7 @@ const upload = (e) => {
|
||||
const createInput = () => {
|
||||
const input = document.createElement('input');
|
||||
input.type = 'file';
|
||||
input.multiple = true;
|
||||
input.onchange = upload;
|
||||
input.style.display = 'none';
|
||||
document.body.append(input);
|
||||
|
||||
Reference in New Issue
Block a user