This commit is contained in:
2025-07-07 19:31:29 +08:00
parent b083567241
commit b19e50f135
9 changed files with 34 additions and 5 deletions

View File

@@ -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,

View File

@@ -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);