update
This commit is contained in:
parent
cb0823bbcb
commit
55eacd99f8
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ant-design-pro",
|
"name": "ant-design-pro",
|
||||||
"version": "4.5.26",
|
"version": "4.5.31",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "An out-of-box UI solution for enterprise applications",
|
"description": "An out-of-box UI solution for enterprise applications",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -914,6 +914,8 @@ const BrandTable: React.FC<{ currentUser: CurrentUser }> = ({ currentUser }) =>
|
|||||||
}
|
}
|
||||||
const data = await getServiceDetail(req)
|
const data = await getServiceDetail(req)
|
||||||
setServiceName(data.SERVERPART_NAME)
|
setServiceName(data.SERVERPART_NAME)
|
||||||
|
console.log('datadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatadatavv', data);
|
||||||
|
|
||||||
setServiceDetail(data)
|
setServiceDetail(data)
|
||||||
}
|
}
|
||||||
const typeObj = {
|
const typeObj = {
|
||||||
|
|||||||
@ -1169,6 +1169,14 @@ const SupplierList: React.FC<{ currentUser: CurrentUser | undefined }> = ({ curr
|
|||||||
multiple: true,
|
multiple: true,
|
||||||
onPreview: async (file) => {
|
onPreview: async (file) => {
|
||||||
},
|
},
|
||||||
|
customRequest: ({ file, onSuccess }) => {
|
||||||
|
// 自定义上传,不实际发送请求
|
||||||
|
setTimeout(() => {
|
||||||
|
if (onSuccess) {
|
||||||
|
onSuccess({});
|
||||||
|
}
|
||||||
|
}, 0);
|
||||||
|
},
|
||||||
beforeUpload: (file, files) => {
|
beforeUpload: (file, files) => {
|
||||||
setFileList([...fileList, ...files])
|
setFileList([...fileList, ...files])
|
||||||
return false
|
return false
|
||||||
|
|||||||
@ -550,6 +550,14 @@ const LostandFoundAPPliance: React.FC<{ currentUser: CurrentUser }> = (props) =>
|
|||||||
beforeUpload,
|
beforeUpload,
|
||||||
onPreview: handlePreview,
|
onPreview: handlePreview,
|
||||||
// fileList: fileList, // 绑定 fileList
|
// fileList: fileList, // 绑定 fileList
|
||||||
|
customRequest: ({ file, onSuccess }) => {
|
||||||
|
// 自定义上传,不实际发送请求
|
||||||
|
setTimeout(() => {
|
||||||
|
if (onSuccess) {
|
||||||
|
onSuccess({});
|
||||||
|
}
|
||||||
|
}, 0);
|
||||||
|
},
|
||||||
onChange: async (info: any) => {
|
onChange: async (info: any) => {
|
||||||
console.log('info', info);
|
console.log('info', info);
|
||||||
console.log('fileList', fileList);
|
console.log('fileList', fileList);
|
||||||
|
|||||||
@ -345,6 +345,14 @@ const LostandFoundReview: React.FC<{ currentUser: CurrentUser | undefined }> = (
|
|||||||
beforeUpload,
|
beforeUpload,
|
||||||
onPreview: handlePreview,
|
onPreview: handlePreview,
|
||||||
// fileList: fileList, // 绑定 fileList
|
// fileList: fileList, // 绑定 fileList
|
||||||
|
customRequest: ({ file, onSuccess }) => {
|
||||||
|
// 自定义上传,不实际发送请求
|
||||||
|
setTimeout(() => {
|
||||||
|
if (onSuccess) {
|
||||||
|
onSuccess({});
|
||||||
|
}
|
||||||
|
}, 0);
|
||||||
|
},
|
||||||
onChange: async (info: any) => {
|
onChange: async (info: any) => {
|
||||||
console.log('info', info);
|
console.log('info', info);
|
||||||
console.log('fileList', fileList);
|
console.log('fileList', fileList);
|
||||||
|
|||||||
@ -559,6 +559,14 @@ const MallBrandManage: React.FC<{ currentUser: CurrentUser }> = (props) => {
|
|||||||
beforeUpload,
|
beforeUpload,
|
||||||
onPreview: handlePreview,
|
onPreview: handlePreview,
|
||||||
fileList: fileList, // 绑定 fileList
|
fileList: fileList, // 绑定 fileList
|
||||||
|
customRequest: ({ file, onSuccess }) => {
|
||||||
|
// 自定义上传,不实际发送请求
|
||||||
|
setTimeout(() => {
|
||||||
|
if (onSuccess) {
|
||||||
|
onSuccess({});
|
||||||
|
}
|
||||||
|
}, 0);
|
||||||
|
},
|
||||||
onChange: async (info: any) => {
|
onChange: async (info: any) => {
|
||||||
if (info.file.status === 'removed') {
|
if (info.file.status === 'removed') {
|
||||||
const index = fileList.findIndex(n => n.uid === info.file.uid);
|
const index = fileList.findIndex(n => n.uid === info.file.uid);
|
||||||
|
|||||||
@ -514,8 +514,17 @@ const MerchantEvaluationManage: React.FC<{ currentUser: CurrentUser, isComponent
|
|||||||
listType="picture-card"
|
listType="picture-card"
|
||||||
accept="image/*"
|
accept="image/*"
|
||||||
fieldProps={{
|
fieldProps={{
|
||||||
onPreview: handlePreview
|
onPreview: handlePreview,
|
||||||
|
customRequest: ({ file, onSuccess }) => {
|
||||||
|
// 自定义上传,不实际发送请求
|
||||||
|
setTimeout(() => {
|
||||||
|
if (onSuccess) {
|
||||||
|
onSuccess({});
|
||||||
|
}
|
||||||
|
}, 0);
|
||||||
|
},
|
||||||
}}
|
}}
|
||||||
|
|
||||||
/>
|
/>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
||||||
|
|||||||
@ -842,6 +842,14 @@ const OrderProductManage: React.FC<{ currentUser: CurrentUser | undefined }> = (
|
|||||||
maxCount: 1,
|
maxCount: 1,
|
||||||
onPreview: handlePreview,
|
onPreview: handlePreview,
|
||||||
fileList: fileList, // 绑定 fileList
|
fileList: fileList, // 绑定 fileList
|
||||||
|
customRequest: ({ file, onSuccess }) => {
|
||||||
|
// 自定义上传,不实际发送请求
|
||||||
|
setTimeout(() => {
|
||||||
|
if (onSuccess) {
|
||||||
|
onSuccess({});
|
||||||
|
}
|
||||||
|
}, 0);
|
||||||
|
},
|
||||||
onChange: async (info: any) => {
|
onChange: async (info: any) => {
|
||||||
if (info.file.status === 'removed') {
|
if (info.file.status === 'removed') {
|
||||||
const index = fileList.findIndex(n => n.uid === info.file.uid);
|
const index = fileList.findIndex(n => n.uid === info.file.uid);
|
||||||
|
|||||||
@ -1410,6 +1410,14 @@ const COMMODITYTable: React.FC<{ currentUser: CurrentUser | undefined }> = (prop
|
|||||||
handlePreview(1)
|
handlePreview(1)
|
||||||
},
|
},
|
||||||
fileList: mainImgList, // 绑定 fileList
|
fileList: mainImgList, // 绑定 fileList
|
||||||
|
customRequest: ({ file, onSuccess }) => {
|
||||||
|
// 自定义上传,不实际发送请求
|
||||||
|
setTimeout(() => {
|
||||||
|
if (onSuccess) {
|
||||||
|
onSuccess({});
|
||||||
|
}
|
||||||
|
}, 0);
|
||||||
|
},
|
||||||
onChange: async (info: any) => {
|
onChange: async (info: any) => {
|
||||||
if (info.file.status === 'removed') {
|
if (info.file.status === 'removed') {
|
||||||
const index = mainImgList.findIndex(n => n.uid === info.file.uid);
|
const index = mainImgList.findIndex(n => n.uid === info.file.uid);
|
||||||
@ -1461,6 +1469,14 @@ const COMMODITYTable: React.FC<{ currentUser: CurrentUser | undefined }> = (prop
|
|||||||
handlePreview(2)
|
handlePreview(2)
|
||||||
},
|
},
|
||||||
fileList: headerImgList, // 绑定 fileList
|
fileList: headerImgList, // 绑定 fileList
|
||||||
|
customRequest: ({ file, onSuccess }) => {
|
||||||
|
// 自定义上传,不实际发送请求
|
||||||
|
setTimeout(() => {
|
||||||
|
if (onSuccess) {
|
||||||
|
onSuccess({});
|
||||||
|
}
|
||||||
|
}, 0);
|
||||||
|
},
|
||||||
onChange: async (info: any) => {
|
onChange: async (info: any) => {
|
||||||
if (info.file.status === 'removed') {
|
if (info.file.status === 'removed') {
|
||||||
const index = headerImgList.findIndex(n => n.uid === info.file.uid);
|
const index = headerImgList.findIndex(n => n.uid === info.file.uid);
|
||||||
@ -1512,6 +1528,14 @@ const COMMODITYTable: React.FC<{ currentUser: CurrentUser | undefined }> = (prop
|
|||||||
handlePreview(3)
|
handlePreview(3)
|
||||||
},
|
},
|
||||||
fileList: detailImgList, // 绑定 fileList
|
fileList: detailImgList, // 绑定 fileList
|
||||||
|
customRequest: ({ file, onSuccess }) => {
|
||||||
|
// 自定义上传,不实际发送请求
|
||||||
|
setTimeout(() => {
|
||||||
|
if (onSuccess) {
|
||||||
|
onSuccess({});
|
||||||
|
}
|
||||||
|
}, 0);
|
||||||
|
},
|
||||||
onChange: async (info: any) => {
|
onChange: async (info: any) => {
|
||||||
if (info.file.status === 'removed') {
|
if (info.file.status === 'removed') {
|
||||||
const index = detailImgList.findIndex(n => n.uid === info.file.uid);
|
const index = detailImgList.findIndex(n => n.uid === info.file.uid);
|
||||||
|
|||||||
@ -1316,6 +1316,14 @@ const ShoppingMallProductSearch: React.FC<{ currentUser: CurrentUser | undefined
|
|||||||
beforeUpload,
|
beforeUpload,
|
||||||
onPreview: handlePreview,
|
onPreview: handlePreview,
|
||||||
fileList: mainImgList, // 绑定 fileList
|
fileList: mainImgList, // 绑定 fileList
|
||||||
|
customRequest: ({ file, onSuccess }) => {
|
||||||
|
// 自定义上传,不实际发送请求
|
||||||
|
setTimeout(() => {
|
||||||
|
if (onSuccess) {
|
||||||
|
onSuccess({});
|
||||||
|
}
|
||||||
|
}, 0);
|
||||||
|
},
|
||||||
onChange: async (info: any) => {
|
onChange: async (info: any) => {
|
||||||
if (info.file.status === 'removed') {
|
if (info.file.status === 'removed') {
|
||||||
const index = mainImgList.findIndex(n => n.uid === info.file.uid);
|
const index = mainImgList.findIndex(n => n.uid === info.file.uid);
|
||||||
@ -1365,6 +1373,14 @@ const ShoppingMallProductSearch: React.FC<{ currentUser: CurrentUser | undefined
|
|||||||
beforeUpload,
|
beforeUpload,
|
||||||
onPreview: handlePreview,
|
onPreview: handlePreview,
|
||||||
fileList: headerImgList, // 绑定 fileList
|
fileList: headerImgList, // 绑定 fileList
|
||||||
|
customRequest: ({ file, onSuccess }) => {
|
||||||
|
// 自定义上传,不实际发送请求
|
||||||
|
setTimeout(() => {
|
||||||
|
if (onSuccess) {
|
||||||
|
onSuccess({});
|
||||||
|
}
|
||||||
|
}, 0);
|
||||||
|
},
|
||||||
onChange: async (info: any) => {
|
onChange: async (info: any) => {
|
||||||
if (info.file.status === 'removed') {
|
if (info.file.status === 'removed') {
|
||||||
const index = headerImgList.findIndex(n => n.uid === info.file.uid);
|
const index = headerImgList.findIndex(n => n.uid === info.file.uid);
|
||||||
@ -1416,6 +1432,14 @@ const ShoppingMallProductSearch: React.FC<{ currentUser: CurrentUser | undefined
|
|||||||
beforeUpload,
|
beforeUpload,
|
||||||
onPreview: handlePreview,
|
onPreview: handlePreview,
|
||||||
fileList: detailImgList, // 绑定 fileList
|
fileList: detailImgList, // 绑定 fileList
|
||||||
|
customRequest: ({ file, onSuccess }) => {
|
||||||
|
// 自定义上传,不实际发送请求
|
||||||
|
setTimeout(() => {
|
||||||
|
if (onSuccess) {
|
||||||
|
onSuccess({});
|
||||||
|
}
|
||||||
|
}, 0);
|
||||||
|
},
|
||||||
onChange: async (info: any) => {
|
onChange: async (info: any) => {
|
||||||
if (info.file.status === 'removed') {
|
if (info.file.status === 'removed') {
|
||||||
const index = detailImgList.findIndex(n => n.uid === info.file.uid);
|
const index = detailImgList.findIndex(n => n.uid === info.file.uid);
|
||||||
|
|||||||
@ -488,6 +488,14 @@ const SummaryofMerchantReviews: React.FC<{ currentUser: CurrentUser, isComponent
|
|||||||
accept="image/*"
|
accept="image/*"
|
||||||
fieldProps={{
|
fieldProps={{
|
||||||
onPreview: handlePreview,
|
onPreview: handlePreview,
|
||||||
|
customRequest: ({ file, onSuccess }) => {
|
||||||
|
// 自定义上传,不实际发送请求
|
||||||
|
setTimeout(() => {
|
||||||
|
if (onSuccess) {
|
||||||
|
onSuccess({});
|
||||||
|
}
|
||||||
|
}, 0);
|
||||||
|
},
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Col>
|
</Col>
|
||||||
|
|||||||
@ -107,6 +107,8 @@ const scenicSpotConfig: React.FC<{ currentUser: CurrentUser | undefined }> = (pr
|
|||||||
fixed: "left",
|
fixed: "left",
|
||||||
render: (_, record) => {
|
render: (_, record) => {
|
||||||
return <a onClick={() => {
|
return <a onClick={() => {
|
||||||
|
console.log('recordrecord', record);
|
||||||
|
|
||||||
let imgList: any = []
|
let imgList: any = []
|
||||||
if (record?.ImageList && record?.ImageList.length > 0) {
|
if (record?.ImageList && record?.ImageList.length > 0) {
|
||||||
record?.ImageList.forEach((item: any) => {
|
record?.ImageList.forEach((item: any) => {
|
||||||
@ -345,16 +347,20 @@ const scenicSpotConfig: React.FC<{ currentUser: CurrentUser | undefined }> = (pr
|
|||||||
OPERATE_DATE: moment().format('YYYY-MM-DD HH:mm:ss'),
|
OPERATE_DATE: moment().format('YYYY-MM-DD HH:mm:ss'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
handleConfirmLoading(true)
|
||||||
|
|
||||||
const data = await handeSynchroSCENICAREA(req)
|
const data = await handeSynchroSCENICAREA(req)
|
||||||
console.log('datadatadatadata', data);
|
console.log('datadatadatadata', data);
|
||||||
|
|
||||||
handleConfirmLoading(false)
|
|
||||||
if (data.Result_Code === 100) {
|
if (data.Result_Code === 100) {
|
||||||
|
console.log('res.SCENICAREA_Imageres.SCENICAREA_Imageres.SCENICAREA_Image', res.SCENICAREA_Image);
|
||||||
if (res.SCENICAREA_Image && res.SCENICAREA_Image.length > 0) {
|
if (res.SCENICAREA_Image && res.SCENICAREA_Image.length > 0) {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
res.SCENICAREA_Image.forEach((file: any) => {
|
res.SCENICAREA_Image.forEach((file: any) => {
|
||||||
|
if (!file.ImageUrl) {
|
||||||
formData.append('files[]', file.originFileObj);
|
formData.append('files[]', file.originFileObj);
|
||||||
formData.append('ImageName', typeof file !== 'string' ? file?.name : '');
|
formData.append('ImageName', typeof file !== 'string' ? file?.name : '');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
formData.append('TableId', data.Result_Data.SCENICAREA_ID);
|
formData.append('TableId', data.Result_Data.SCENICAREA_ID);
|
||||||
formData.append('TableType', '1305');
|
formData.append('TableType', '1305');
|
||||||
@ -365,6 +371,8 @@ const scenicSpotConfig: React.FC<{ currentUser: CurrentUser | undefined }> = (pr
|
|||||||
|
|
||||||
handleSetlogSave(`${currentRow?.SCENICAREA_ID ? `更新${currentRow?.SCENICAREA_NAME}景区` : `新增${data.Result_Data.SCENICAREA_NAME}`}信息`)
|
handleSetlogSave(`${currentRow?.SCENICAREA_ID ? `更新${currentRow?.SCENICAREA_NAME}景区` : `新增${data.Result_Data.SCENICAREA_NAME}`}信息`)
|
||||||
|
|
||||||
|
|
||||||
|
handleConfirmLoading(false)
|
||||||
message.success("更新成功!")
|
message.success("更新成功!")
|
||||||
setCurrentRow(undefined)
|
setCurrentRow(undefined)
|
||||||
formRef?.current?.resetFields()
|
formRef?.current?.resetFields()
|
||||||
@ -372,6 +380,7 @@ const scenicSpotConfig: React.FC<{ currentUser: CurrentUser | undefined }> = (pr
|
|||||||
actionRef.current?.reload()
|
actionRef.current?.reload()
|
||||||
setFileList([])
|
setFileList([])
|
||||||
} else {
|
} else {
|
||||||
|
handleConfirmLoading(false)
|
||||||
message.error(data.Result_Desc)
|
message.error(data.Result_Desc)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -682,9 +691,17 @@ const scenicSpotConfig: React.FC<{ currentUser: CurrentUser | undefined }> = (pr
|
|||||||
listType="picture-card"
|
listType="picture-card"
|
||||||
accept="image/*"
|
accept="image/*"
|
||||||
fieldProps={{
|
fieldProps={{
|
||||||
beforeUpload,
|
beforeUpload: beforeUpload,
|
||||||
onPreview: handlePreview,
|
onPreview: handlePreview,
|
||||||
fileList: fileList, // 绑定 fileList
|
fileList: fileList, // 绑定 fileList
|
||||||
|
customRequest: ({ file, onSuccess }) => {
|
||||||
|
// 自定义上传,不实际发送请求
|
||||||
|
setTimeout(() => {
|
||||||
|
if (onSuccess) {
|
||||||
|
onSuccess({});
|
||||||
|
}
|
||||||
|
}, 0);
|
||||||
|
},
|
||||||
onChange: async (info: any) => {
|
onChange: async (info: any) => {
|
||||||
console.log('info', info);
|
console.log('info', info);
|
||||||
console.log('fileList', fileList);
|
console.log('fileList', fileList);
|
||||||
|
|||||||
@ -892,6 +892,14 @@ const serverpartInfo: React.FC<{ currentUser: CurrentUser }> = (props) => {
|
|||||||
beforeUpload,
|
beforeUpload,
|
||||||
onPreview: handlePreview,
|
onPreview: handlePreview,
|
||||||
fileList: fileList, // 绑定 fileList
|
fileList: fileList, // 绑定 fileList
|
||||||
|
customRequest: ({ file, onSuccess }) => {
|
||||||
|
// 自定义上传,不实际发送请求
|
||||||
|
setTimeout(() => {
|
||||||
|
if (onSuccess) {
|
||||||
|
onSuccess({});
|
||||||
|
}
|
||||||
|
}, 0);
|
||||||
|
},
|
||||||
onChange: async (info: any) => {
|
onChange: async (info: any) => {
|
||||||
console.log('info', info);
|
console.log('info', info);
|
||||||
console.log('fileList', fileList);
|
console.log('fileList', fileList);
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
// 由 scripts/writeVersion.js 自动生成
|
// 由 scripts/writeVersion.js 自动生成
|
||||||
export const VERSION = "4.5.26";
|
export const VERSION = "4.5.31";
|
||||||
export const GIT_HASH = "c145b6c";
|
export const GIT_HASH = "cb0823b";
|
||||||
export const BUILD_TIME = "2025-08-15T08:20:30.752Z";
|
export const BUILD_TIME = "2025-08-18T02:35:36.007Z";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user