update
This commit is contained in:
parent
c1f19fdafc
commit
ab65611732
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ant-design-pro",
|
||||
"version": "4.5.18",
|
||||
"version": "4.5.21",
|
||||
"private": true,
|
||||
"description": "An out-of-box UI solution for enterprise applications",
|
||||
"scripts": {
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
// 首页广告
|
||||
// 地址管理
|
||||
import React, { useRef, useState, Suspense, useEffect } from 'react';
|
||||
import moment from 'moment'; // 时间相关引用,没有使用可以删除
|
||||
import numeral from "numeral"; // 数字相关引用,没有使用可以删除
|
||||
@ -41,6 +40,7 @@ const beforeUpload = (file: any) => {
|
||||
|
||||
const HomepageAds: React.FC<{ currentUser: CurrentUser | undefined }> = (props) => {
|
||||
const { currentUser } = props
|
||||
const { confirm } = Modal;
|
||||
const actionRef = useRef<ActionType>();
|
||||
const formRef = useRef<FormInstance>();
|
||||
const [currentRow, setCurrentRow] = useState<any>();
|
||||
@ -350,6 +350,7 @@ const HomepageAds: React.FC<{ currentUser: CurrentUser | undefined }> = (props)
|
||||
<Modal
|
||||
title={
|
||||
<div
|
||||
className='HomepageAds'
|
||||
style={{
|
||||
width: '100%',
|
||||
cursor: 'move',
|
||||
@ -397,6 +398,7 @@ const HomepageAds: React.FC<{ currentUser: CurrentUser | undefined }> = (props)
|
||||
disabled={disabled}
|
||||
bounds={bounds}
|
||||
onStart={(event, uiData) => onDraggaleStart(event, uiData)}
|
||||
handle={'.HomepageAds'}
|
||||
>
|
||||
<div ref={draggleRef}>{modal}</div>
|
||||
</Draggable>
|
||||
@ -503,6 +505,17 @@ const HomepageAds: React.FC<{ currentUser: CurrentUser | undefined }> = (props)
|
||||
} else {
|
||||
message.error("您上传的图片不存在.")
|
||||
}
|
||||
},
|
||||
onChange: async (info: any) => {
|
||||
if (info.file.status === 'removed') {
|
||||
confirm({
|
||||
title: '确认删除该图片吗?',
|
||||
icon: <ExclamationCircleOutlined rev={undefined} />,
|
||||
async onOk() {
|
||||
setFileList([])
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
// 失物招领申请
|
||||
import { connect } from "umi";
|
||||
import type { CurrentUser } from "umi";
|
||||
import type { ConnectState } from "@/models/connect";
|
||||
@ -49,8 +50,6 @@ const LostandFoundAPPliance: React.FC<{ currentUser: CurrentUser }> = (props) =>
|
||||
// 显示新增窗口
|
||||
const [showAddModal, setShowAddModal] = useState<boolean>(false)
|
||||
|
||||
|
||||
|
||||
// 树相关的属性和方法
|
||||
const [selectedId, setSelectedId] = useState<string>()
|
||||
// 导出的加载效果
|
||||
@ -162,6 +161,7 @@ const LostandFoundAPPliance: React.FC<{ currentUser: CurrentUser }> = (props) =>
|
||||
align: 'center',
|
||||
valueType: 'select',
|
||||
valueEnum: {
|
||||
"1": "审核通过",
|
||||
"2": "审核中",
|
||||
"9": "已驳回"
|
||||
},
|
||||
@ -216,7 +216,6 @@ const LostandFoundAPPliance: React.FC<{ currentUser: CurrentUser }> = (props) =>
|
||||
// }
|
||||
]
|
||||
|
||||
|
||||
// 悬浮框的关闭事件
|
||||
const handleModalClose = () => {
|
||||
setConfirmLoading(false)
|
||||
@ -302,6 +301,8 @@ const LostandFoundAPPliance: React.FC<{ currentUser: CurrentUser }> = (props) =>
|
||||
const handleChangePreview = (val: any) => {
|
||||
setImagePreviewVisible(val)
|
||||
}
|
||||
|
||||
|
||||
return (
|
||||
<div ref={(el) => {
|
||||
// 打印报表
|
||||
@ -350,7 +351,7 @@ const LostandFoundAPPliance: React.FC<{ currentUser: CurrentUser }> = (props) =>
|
||||
SearchParameter: {
|
||||
SUGGESTION_TYPES: 4000,
|
||||
SERVERPART_IDS: selectedId,
|
||||
SUGGESTION_STATES: "2,9",
|
||||
SUGGESTION_STATES: "1,2,9",
|
||||
ENUM_LABEL: params?.ENUM_LABEL || ''
|
||||
},
|
||||
PageIndex: 1,
|
||||
@ -403,6 +404,23 @@ const LostandFoundAPPliance: React.FC<{ currentUser: CurrentUser }> = (props) =>
|
||||
onCancel={() => {
|
||||
handleModalClose()
|
||||
}}
|
||||
footer={currentRow?.SUGGESTION_ID ? false :
|
||||
<div style={{ width: '100%', display: 'flex', alignItems: 'center', justifyContent: 'space-between', boxSizing: 'border-box', padding: '0 16px' }}>
|
||||
<div></div>
|
||||
<div>
|
||||
<Button style={{ marginRight: '8px' }} onClick={() => {
|
||||
handleModalClose()
|
||||
}}>取消</Button>
|
||||
<Button type={'primary'} loading={confirmLoading} onClick={() => {
|
||||
modalRef.current?.validateFields().then(async (res: any) => {
|
||||
setConfirmLoading(true)
|
||||
await handleAddLostThing(res)
|
||||
setConfirmLoading(false)
|
||||
})
|
||||
}}>发起申请</Button>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
okText={"发起申请"}
|
||||
onOk={async () => { // 提交框内的数据
|
||||
modalRef.current?.validateFields().then(async (res: any) => {
|
||||
|
||||
@ -465,7 +465,7 @@ const MemberDetail = ({ showDetailDrawer, currentRow, handleCloseModal, currentU
|
||||
style={{ width: '150px' }}
|
||||
value={selectUserLabel}
|
||||
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
|
||||
placeholder="Please select"
|
||||
placeholder="请选择会员标签"
|
||||
allowClear
|
||||
treeDefaultExpandAll
|
||||
onChange={(e: any) => {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
// 由 scripts/writeVersion.js 自动生成
|
||||
export const VERSION = "4.5.18";
|
||||
export const GIT_HASH = "a07144f";
|
||||
export const BUILD_TIME = "2025-08-06T11:01:18.410Z";
|
||||
export const VERSION = "4.5.21";
|
||||
export const GIT_HASH = "c1f19fd";
|
||||
export const BUILD_TIME = "2025-08-08T10:13:54.850Z";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user