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