增加UPLOAD_FILE_TYPE_ENUM
parent
67be0e7fef
commit
355c46cfdd
|
|
@ -5,8 +5,7 @@ import type { BasicCascaderProps } from "../Basic";
|
||||||
* 组件属性
|
* 组件属性
|
||||||
*/
|
*/
|
||||||
export interface AreaCascaderProps extends Omit<BasicCascaderProps, "options" | "placeholder" | "nameKey" | "idKey" | "childrenKey"> {
|
export interface AreaCascaderProps extends Omit<BasicCascaderProps, "options" | "placeholder" | "nameKey" | "idKey" | "childrenKey"> {
|
||||||
/** 占位符,默认 "属地" */
|
|
||||||
placeholder?: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,11 @@ import BasicCascader from "../Basic";
|
||||||
*/
|
*/
|
||||||
function AreaCascader(props) {
|
function AreaCascader(props) {
|
||||||
const {
|
const {
|
||||||
placeholder = "属地",
|
|
||||||
...restProps
|
...restProps
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BasicCascader data={Area} placeholder={placeholder} nameKey="label" idKey="value" {...restProps} />
|
<BasicCascader data={Area} nameKey="label" idKey="value" {...restProps} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,7 @@ import type { BasicCascaderProps } from "../Basic";
|
||||||
* 组件属性
|
* 组件属性
|
||||||
*/
|
*/
|
||||||
export interface IndustryCascaderProps extends Omit<BasicCascaderProps, "options" | "placeholder" | "nameKey" | "idKey" | "childrenKey"> {
|
export interface IndustryCascaderProps extends Omit<BasicCascaderProps, "options" | "placeholder" | "nameKey" | "idKey" | "childrenKey"> {
|
||||||
/** 占位符,默认 "行业类型" */
|
|
||||||
placeholder?: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,11 @@ import BasicCascader from "../Basic";
|
||||||
*/
|
*/
|
||||||
function IndustryCascader(props) {
|
function IndustryCascader(props) {
|
||||||
const {
|
const {
|
||||||
placeholder = "行业类型",
|
|
||||||
...restProps
|
...restProps
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
return (
|
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} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,7 @@ import type { BasicSelectTreeProps } from "../Basic";
|
||||||
* 组件属性
|
* 组件属性
|
||||||
*/
|
*/
|
||||||
export interface AreaSelectTreeProps extends Omit<BasicSelectTreeProps, "treeData" | "placeholder" | "nameKey" | "idKey" | "childrenKey"> {
|
export interface AreaSelectTreeProps extends Omit<BasicSelectTreeProps, "treeData" | "placeholder" | "nameKey" | "idKey" | "childrenKey"> {
|
||||||
/** 占位符,默认"属地" */
|
|
||||||
placeholder?: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -6,14 +6,12 @@ import BasicSelectTree from "../Basic";
|
||||||
*/
|
*/
|
||||||
function AreaSelectTree(props) {
|
function AreaSelectTree(props) {
|
||||||
const {
|
const {
|
||||||
placeholder = "属地",
|
|
||||||
...restProps
|
...restProps
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BasicSelectTree
|
<BasicSelectTree
|
||||||
treeData={Area}
|
treeData={Area}
|
||||||
placeholder={placeholder}
|
|
||||||
nameKey="label"
|
nameKey="label"
|
||||||
idKey="value"
|
idKey="value"
|
||||||
{...restProps}
|
{...restProps}
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,7 @@ import type { BasicSelectTreeProps } from "../Basic";
|
||||||
* 组件属性
|
* 组件属性
|
||||||
*/
|
*/
|
||||||
export interface IndustrySelectTreeProps extends Omit<BasicSelectTreeProps, "treeData" | "placeholder" | "nameKey" | "idKey" | "childrenKey"> {
|
export interface IndustrySelectTreeProps extends Omit<BasicSelectTreeProps, "treeData" | "placeholder" | "nameKey" | "idKey" | "childrenKey"> {
|
||||||
/** 占位符,默认"行业类型" */
|
|
||||||
placeholder?: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -6,14 +6,12 @@ import BasicSelectTree from "../Basic";
|
||||||
*/
|
*/
|
||||||
function IndustrySelectTree(props) {
|
function IndustrySelectTree(props) {
|
||||||
const {
|
const {
|
||||||
placeholder = "行业类型",
|
|
||||||
...restProps
|
...restProps
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BasicSelectTree
|
<BasicSelectTree
|
||||||
treeData={Industry}
|
treeData={Industry}
|
||||||
placeholder={placeholder}
|
|
||||||
nameKey="dict_label"
|
nameKey="dict_label"
|
||||||
idKey="dict_value"
|
idKey="dict_value"
|
||||||
childrenKey="childrenList"
|
childrenKey="childrenList"
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,7 @@ export declare const UPLOAD_FILE_TYPE_ENUM: {
|
||||||
177: 177; // key_homework_confirmer 重点作业确认人签字
|
177: 177; // key_homework_confirmer 重点作业确认人签字
|
||||||
302: 302; // fire_safety_inspection_passed_images - 消防点检检查合格
|
302: 302; // fire_safety_inspection_passed_images - 消防点检检查合格
|
||||||
407: 407; // special_operation_restricted_space_ledger_attachment - 特殊作业-受限空间作业台账附件
|
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";
|
177: "key_homework_confirmer";
|
||||||
302: "fire_safety_inspection_passed_images";
|
302: "fire_safety_inspection_passed_images";
|
||||||
407: "special_operation_restricted_space_ledger_attachment";
|
407: "special_operation_restricted_space_ledger_attachment";
|
||||||
|
701: "material_equipment_warehouse_equipment_facilities";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,7 @@ export const UPLOAD_FILE_TYPE_ENUM = {
|
||||||
177: 177, // key_homework_confirmer 重点作业确认人签字
|
177: 177, // key_homework_confirmer 重点作业确认人签字
|
||||||
302: 302, // fire_safety_inspection_passed_images - 消防点检检查合格
|
302: 302, // fire_safety_inspection_passed_images - 消防点检检查合格
|
||||||
407: 407, // special_operation_restricted_space_ledger_attachment - 特殊作业-受限空间作业台账附件
|
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",
|
177: "key_homework_confirmer",
|
||||||
302: "fire_safety_inspection_passed_images",
|
302: "fire_safety_inspection_passed_images",
|
||||||
407: "special_operation_restricted_space_ledger_attachment",
|
407: "special_operation_restricted_space_ledger_attachment",
|
||||||
|
701: "material_equipment_warehouse_equipment_facilities",
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue