增加UPLOAD_FILE_TYPE_ENUM

master
LiuJiaNan 2026-04-07 09:29:03 +08:00
parent 67be0e7fef
commit 355c46cfdd
10 changed files with 10 additions and 16 deletions

View File

@ -5,8 +5,7 @@ import type { BasicCascaderProps } from "../Basic";
*
*/
export interface AreaCascaderProps extends Omit<BasicCascaderProps, "options" | "placeholder" | "nameKey" | "idKey" | "childrenKey"> {
/** 占位符,默认 "属地" */
placeholder?: string;
}
/**

View File

@ -6,12 +6,11 @@ import BasicCascader from "../Basic";
*/
function AreaCascader(props) {
const {
placeholder = "属地",
...restProps
} = props;
return (
<BasicCascader data={Area} placeholder={placeholder} nameKey="label" idKey="value" {...restProps} />
<BasicCascader data={Area} nameKey="label" idKey="value" {...restProps} />
);
}

View File

@ -5,8 +5,7 @@ import type { BasicCascaderProps } from "../Basic";
*
*/
export interface IndustryCascaderProps extends Omit<BasicCascaderProps, "options" | "placeholder" | "nameKey" | "idKey" | "childrenKey"> {
/** 占位符,默认 "行业类型" */
placeholder?: string;
}
/**

View File

@ -6,12 +6,11 @@ import BasicCascader from "../Basic";
*/
function IndustryCascader(props) {
const {
placeholder = "行业类型",
...restProps
} = props;
return (
<BasicCascader data={Industry} placeholder={placeholder} nameKey="dict_label" idKey="dict_value" childrenKey="childrenList" {...restProps} />
<BasicCascader data={Industry} nameKey="dict_label" idKey="dict_value" childrenKey="childrenList" {...restProps} />
);
}

View File

@ -5,8 +5,7 @@ import type { BasicSelectTreeProps } from "../Basic";
*
*/
export interface AreaSelectTreeProps extends Omit<BasicSelectTreeProps, "treeData" | "placeholder" | "nameKey" | "idKey" | "childrenKey"> {
/** 占位符,默认"属地" */
placeholder?: string;
}
/**

View File

@ -6,14 +6,12 @@ import BasicSelectTree from "../Basic";
*/
function AreaSelectTree(props) {
const {
placeholder = "属地",
...restProps
} = props;
return (
<BasicSelectTree
treeData={Area}
placeholder={placeholder}
nameKey="label"
idKey="value"
{...restProps}

View File

@ -5,8 +5,7 @@ import type { BasicSelectTreeProps } from "../Basic";
*
*/
export interface IndustrySelectTreeProps extends Omit<BasicSelectTreeProps, "treeData" | "placeholder" | "nameKey" | "idKey" | "childrenKey"> {
/** 占位符,默认"行业类型" */
placeholder?: string;
}
/**

View File

@ -6,14 +6,12 @@ import BasicSelectTree from "../Basic";
*/
function IndustrySelectTree(props) {
const {
placeholder = "行业类型",
...restProps
} = props;
return (
<BasicSelectTree
treeData={Industry}
placeholder={placeholder}
nameKey="dict_label"
idKey="dict_value"
childrenKey="childrenList"

View File

@ -112,6 +112,7 @@ export declare const UPLOAD_FILE_TYPE_ENUM: {
177: 177; // key_homework_confirmer 重点作业确认人签字
302: 302; // fire_safety_inspection_passed_images - 消防点检检查合格
407: 407; // special_operation_restricted_space_ledger_attachment - 特殊作业-受限空间作业台账附件
701: 701; // material_equipment_warehouse_equipment_facilities - 物资装备库-设备设施
};
/**
@ -228,4 +229,5 @@ export declare const UPLOAD_FILE_PATH_ENUM: {
177: "key_homework_confirmer";
302: "fire_safety_inspection_passed_images";
407: "special_operation_restricted_space_ledger_attachment";
701: "material_equipment_warehouse_equipment_facilities";
};

View File

@ -115,6 +115,7 @@ export const UPLOAD_FILE_TYPE_ENUM = {
177: 177, // key_homework_confirmer 重点作业确认人签字
302: 302, // fire_safety_inspection_passed_images - 消防点检检查合格
407: 407, // special_operation_restricted_space_ledger_attachment - 特殊作业-受限空间作业台账附件
701: 701, // material_equipment_warehouse_equipment_facilities - 物资装备库-设备设施
};
/**
@ -231,4 +232,5 @@ export const UPLOAD_FILE_PATH_ENUM = {
177: "key_homework_confirmer",
302: "fire_safety_inspection_passed_images",
407: "special_operation_restricted_space_ledger_attachment",
701: "material_equipment_warehouse_equipment_facilities",
};