Commit 34bd254a authored by cellee's avatar cellee

去除操作成功提示

Signed-off-by: cellee's avatarcellee <893264950@qq.com>
parent b7a6b4bb
...@@ -63,7 +63,7 @@ const Facilitys = (props: any) => { ...@@ -63,7 +63,7 @@ const Facilitys = (props: any) => {
onChange(info: any) { onChange(info: any) {
// console.log(info); // console.log(info);
if (info.file.status === 'done') { if (info.file.status === 'done') {
message.success(`${info.file.name} file uploaded successfully`); // message.success(`${info.file.name} file uploaded successfully`);
// 拿到key 值 开始存储 // 拿到key 值 开始存储
let key = info.fileList[0].response.data.identification; let key = info.fileList[0].response.data.identification;
let list = FacilitysList; let list = FacilitysList;
......
...@@ -60,7 +60,7 @@ const Facilitys = (props: any) => { ...@@ -60,7 +60,7 @@ const Facilitys = (props: any) => {
onChange(info: any) { onChange(info: any) {
// console.log(info); // console.log(info);
if (info.file.status === 'done') { if (info.file.status === 'done') {
message.success(`${info.file.name} file uploaded successfully`); // message.success(`${info.file.name} file uploaded successfully`);
// 后台返回的值 // 后台返回的值
let data = info.file.response.data; let data = info.file.response.data;
// 拿到key 值 开始存储 // 拿到key 值 开始存储
......
import React, { useState,useEffect} from 'react'; import React, { useState, useEffect } from 'react';
import { Upload,Button, message,Row,Col } from 'antd'; import { Upload, Button, message, Row, Col } from 'antd';
import { UploadOutlined } from '@ant-design/icons'; import { UploadOutlined } from '@ant-design/icons';
// { imageType: "tosContract", extends: extend } // { imageType: "tosContract", extends: extend }
//"/tos/image/upload" //"/tos/image/upload"
import { Fromate2 } from '@/utils/method' import { Fromate2 } from '@/utils/method';
const FileUpload = (props: any) => { const FileUpload = (props: any) => {
const { value, onChange } = props;
const {value,onChange}=props
const [fileList, setFileList] = useState([]); const [fileList, setFileList] = useState([]);
const uploadProps = { const uploadProps = {
accept:".pdf,", accept: '.pdf,',
action:props.url, action: props.url,
data: props.data, data: props.data,
fileList: fileList, fileList: fileList,
showUploadList:false, showUploadList: false,
onChange({ file, fileList }) { onChange({ file, fileList }) {
let tmp=fileList let tmp = fileList;
setFileList(tmp.filter(file => !!file.status)) setFileList(tmp.filter((file) => !!file.status));
if (file.status == 'done') { if (file.status == 'done') {
console.log(fileList); console.log(fileList);
message.success(file.name, 3) // message.success(file.name, 3)
if (props.reg != null) { if (props.reg != null) {
onChange(Fromate2(fileList,props.reg)) onChange(Fromate2(fileList, props.reg));
} else { } else {
onChange(fileList) onChange(fileList);
} }
} }
}, },
...@@ -38,16 +36,17 @@ const FileUpload = (props: any) => { ...@@ -38,16 +36,17 @@ const FileUpload = (props: any) => {
return ( return (
<> <>
<Row gutter={8}> <Row gutter={8}>
<Col><div style={{lineHeight:2}}>{props.title}</div></Col> <Col>
<div style={{ lineHeight: 2 }}>{props.title}</div>
</Col>
<Col> <Col>
<Upload {...uploadProps}> <Upload {...uploadProps}>
<Button> <Button>
<UploadOutlined /> Upload <UploadOutlined /> Upload
</Button> </Button>
</Upload> </Upload>
</Col> </Col>
</Row> </Row>
</> </>
); );
}; };
......
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +65,7 @@ export default {
break; break;
case 27: case 27:
{ {
message.success('Save Success !'); // message.success('Save Success !');
let tmp = resp; let tmp = resp;
let Data = null; let Data = null;
yield put({ type: 'returnResult', tmp }); yield put({ type: 'returnResult', tmp });
......
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
case 6: case 6:
case 17: case 17:
{ {
message.success('Success Operation!', 3); // message.success('Success Operation!', 3);
history.push('/CommunityManagement/FacilityBookings'); history.push('/CommunityManagement/FacilityBookings');
} }
break; break;
......
...@@ -94,7 +94,7 @@ const Account = (props: any) => { ...@@ -94,7 +94,7 @@ const Account = (props: any) => {
if (SubResult != null) { if (SubResult != null) {
if (SubResult.statr == 0 && SubResult.desc == 0) { if (SubResult.statr == 0 && SubResult.desc == 0) {
// 保存成功, 清掉原来数据 并且跳转 // 保存成功, 清掉原来数据 并且跳转
message.success('Submitted Successfully !'); // message.success('Submitted Successfully !');
dispatch({ type: module + '/ReData' }); dispatch({ type: module + '/ReData' });
dispatch({ type: module + '/AccountClear' }); dispatch({ type: module + '/AccountClear' });
setLoading(false); setLoading(false);
......
...@@ -508,7 +508,6 @@ const Account = (props: any) => { ...@@ -508,7 +508,6 @@ const Account = (props: any) => {
<div className="label"> <div className="label">
{user && user.currentUser.tosUserLevel !== 3 ? ( {user && user.currentUser.tosUserLevel !== 3 ? (
<Button danger style={{ marginRight: 15 }} onClick={lockS}> <Button danger style={{ marginRight: 15 }} onClick={lockS}>
<PoweroffOutlined />
Close Account Close Account
</Button> </Button>
) : ( ) : (
......
...@@ -108,7 +108,7 @@ const Adds = (props: any) => { ...@@ -108,7 +108,7 @@ const Adds = (props: any) => {
dispatch({ type: 'Init/addCommunityget', playload: { Result: new Array(Result.data) } }); dispatch({ type: 'Init/addCommunityget', playload: { Result: new Array(Result.data) } });
} }
// 提示跳转 // 提示跳转
message.success(`Information saved successfully!`); // message.success(`Information saved successfully!`);
history.push('/CommunityManagement/CellList'); history.push('/CommunityManagement/CellList');
} }
}, [Result, Data]); }, [Result, Data]);
......
...@@ -295,7 +295,6 @@ const Detail = (props: any) => { ...@@ -295,7 +295,6 @@ const Detail = (props: any) => {
<Button <Button
danger danger
style={{ marginRight: '15px' }} style={{ marginRight: '15px' }}
icon={<PoweroffOutlined />}
loading={false} loading={false}
onClick={openModel} onClick={openModel}
> >
......
...@@ -114,7 +114,7 @@ const Bookings = (props: any) => { ...@@ -114,7 +114,7 @@ const Bookings = (props: any) => {
} else { } else {
// 提交成功 // 提交成功
ResultClear(); // 清除结果 ResultClear(); // 清除结果
message.success('Success Operation!', 3); // message.success('Success Operation!', 3);
history.push('/CommunityManagement/FacilityBookings'); history.push('/CommunityManagement/FacilityBookings');
} }
} }
......
...@@ -144,7 +144,7 @@ const FacilityTow = (props: any) => { ...@@ -144,7 +144,7 @@ const FacilityTow = (props: any) => {
// 设施删除结果 // 设施删除结果
useEffect(() => { useEffect(() => {
if (FacilityDelete) { if (FacilityDelete) {
message.success('Closed Successfully!'); // message.success('Closed Successfully!');
setIsModalVisible(false); setIsModalVisible(false);
history.push('/CommunityManagement/FacilityBookings'); history.push('/CommunityManagement/FacilityBookings');
dispatch({ type: 'FacilityBookings/FacilityDel' }); dispatch({ type: 'FacilityBookings/FacilityDel' });
...@@ -492,7 +492,6 @@ const FacilityTow = (props: any) => { ...@@ -492,7 +492,6 @@ const FacilityTow = (props: any) => {
<> <>
{facilityDetail && user && user.currentUser.permission.includes('58') ? ( {facilityDetail && user && user.currentUser.permission.includes('58') ? (
<Button danger onClick={showModal}> <Button danger onClick={showModal}>
<PoweroffOutlined />
Close The Selected Facility Close The Selected Facility
</Button> </Button>
) : ( ) : (
......
...@@ -178,7 +178,7 @@ const ContractContent = (props: any) => { ...@@ -178,7 +178,7 @@ const ContractContent = (props: any) => {
setimgLoad(false); setimgLoad(false);
} }
if (file.status === 'done') { if (file.status === 'done') {
message.success(file.name + ' Upload Successful !'); // message.success(file.name + ' Upload Successful !');
// 实现在线预览 // 实现在线预览
let obj = { let obj = {
......
...@@ -224,7 +224,7 @@ const ContractContent = (props: any) => { ...@@ -224,7 +224,7 @@ const ContractContent = (props: any) => {
dispatchs({ type: 'setimgLoad', payload: false }); dispatchs({ type: 'setimgLoad', payload: false });
} }
if (file.status === 'done') { if (file.status === 'done') {
message.success(file.name + ' Upload Successful !'); // message.success(file.name + ' Upload Successful !');
let data = file.response.data; let data = file.response.data;
// 实现在线预览 // 实现在线预览
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment