fix: 🧩 修复bug

This commit is contained in:
2025-03-28 16:55:37 +08:00
parent 2694a0c905
commit e0f8d6c574
35 changed files with 165 additions and 101 deletions

View File

@@ -189,7 +189,7 @@ const handlePicker = (item: any) => {
if (Array.isArray(_searchParam.value[prop]) && _searchParam.value[prop].length > 0) {
let _date: any = cloneDeep(_searchParam.value[prop]);
_date[0] = _date[0] + " " + "00:00:00";
_date[1] = _date[1] + " " + "00:00:00";
_date[1] = _date[1] + " " + "23:59:59";
_searchParam.value[item.startDate] = _date.join(",");
} else {
_searchParam.value[item.startDate] = "";

View File

@@ -102,7 +102,7 @@ const formItemContext = inject(formItemContextKey, void 0);
const self_disabled = computed(() => {
return props.disabled || formContext?.disabled;
});
const h = import.meta.env.VITE_APP_API_BASE_UPLOAD_URL;
import { h } from "@/utils/url";
/**
* @description 图片上传
* @param options upload 所有配置项

View File

@@ -88,7 +88,7 @@ const self_disabled = computed(() => {
});
const _fileList = ref<UploadUserFile[]>(props.fileList);
const h = import.meta.env.VITE_APP_API_BASE_UPLOAD_URL;
import { h } from "@/utils/url";
// 监听 props.fileList 列表默认值改变
watch(
() => props.fileList,

View File

@@ -37,7 +37,7 @@ import { ElNotification, formContextKey, formItemContextKey } from "element-plus
import type { UploadProps, UploadRequestOptions } from "element-plus";
interface UploadFileProps {
videoUrl: string; // 图片地址 ==> 必传
videoUrl: any; // 图片地址 ==> 必传
api?: (params: any) => Promise<any>; // 上传图片的 api 方法,一般项目上传都是同一个 api 方法,在组件里直接引入即可 ==> 非必传
width?: string;
disabled?: boolean; // 是否禁用上传组件 ==> 非必传(默认为 false