Commit 70457ec7 authored by cellee's avatar cellee

Signed-off-by: cellee <893264950@qq.com>

parents 232ce6f0 47af12c0
......@@ -28,49 +28,49 @@ export default {
},
reducers: {
returnPage(state, { Data, DataPage, DataSave }) {
returnPage(state: any, { Data, DataPage, DataSave }: any) {
return { ...state, Data, DataPage, DataSave };
},
returnData3Error(state, { Data3Error }) {
returnData3Error(state: any, { Data3Error }: any) {
return { ...state, Data3Error };
},
returnDataSave(state, { DataSave }) {
returnDataSave(state: any, { DataSave }: any) {
return { ...state, DataSave };
},
DataSaveDetail(state, { DataSaveDetail, returnValue }) {
DataSaveDetail(state: any, { DataSaveDetail, returnValue }: any) {
return { ...state, DataSaveDetail, returnValue };
},
returnSource(state, { sourceData }) {
returnSource(state: any, { sourceData }: any) {
return { ...state, sourceData };
},
returnCurString(state, { curString }) {
returnCurString(state: any, { curString }: any) {
return { ...state, curString };
},
returnResult(state, { Result }) {
returnResult(state: any, { Result }: any) {
return { ...state, Result };
},
returnCommunityInfo(state, { communityInfo }) {
returnCommunityInfo(state: any, { communityInfo }: any) {
return { ...state, communityInfo };
},
PageDate(state, { pageDate }) {
PageDate(state: any, { pageDate }: any) {
return { ...state, pageDate };
},
ReturnValue(state, { returnValue }) {
ReturnValue(state: any, { returnValue }: any) {
return { ...state, returnValue };
},
returnMemberResult(state, { memberResult }) {
returnMemberResult(state: any, { memberResult }: any) {
return { ...state, memberResult };
},
returnDataServices(state, { DataServices }) {
returnDataServices(state: any, { DataServices }: any) {
return { ...state, DataServices };
},
returnData4Error(state, { Data4Error }) {
returnData4Error(state: any, { Data4Error }: any) {
return { ...state, Data4Error };
},
},
effects: {
*RA({ playload }, { call, put }) {
*RA({ playload }: { playload: { index: number } }, { call, put }: any) {
switch (playload.index) {
case 12:
{
......@@ -116,7 +116,6 @@ export default {
break;
case 13:
{
//
history.push('/UserManagement/LIFEUserManagement');
}
break;
......@@ -196,56 +195,56 @@ export default {
}
},
*IA({ playload }, { call, put }) {
*IA({}, { put }: any) {
var Data3 = null;
yield put({ type: 'returnPage3', Data3 });
},
*IA2({ playload }, { call, put }) {
*IA2({}, { put }: any) {
var Data3Error = null;
yield put({ type: 'returnData3Error', Data3Error });
},
*SA({ playload }, { call, put }) {
*SA({ playload }: any, { put }: any) {
var DataSave = playload;
yield put({ type: 'returnDataSave', DataSave });
},
*CA({ playload }, { call, put }) {
*CA({ playload }: any, { put }: any) {
var sourceData = playload;
yield put({ type: 'returnSource', sourceData });
},
*QA({ playload }, { call, put }) {
*QA({ playload }: any, { put }: any) {
var curString = playload;
yield put({ type: 'returnCurString', curString });
},
*ResultClear({}, { put }) {
*ResultClear({}, { put }: any) {
var tmp = null;
yield put({ type: 'returnResult', tmp });
},
*PAGE({ playload }, { put }) {
*PAGE({ playload }: any, { put }: any) {
var pageDate = playload;
yield put({ type: 'PageDate', pageDate });
},
*DataClear({}, { put }) {
*DataClear({}, { put }: any) {
var pageDate = null;
yield put({ type: 'returnPage', pageDate });
},
*MemberResultClear({}, { put }) {
*MemberResultClear({}, { put }: any) {
let memberResult = null;
yield put({ type: 'returnMemberResult', memberResult });
},
*Data4ErrorClear({}, { put }) {
*Data4ErrorClear({}, { put }: any) {
let Data4Error = null;
yield put({ type: 'returnData4Error', Data4Error });
},
*ClearResult({}, { put }) {
*ClearResult({}, { put }: any) {
let Result = null;
yield put({ type: 'returnResult', Result });
},
......
......@@ -10,7 +10,6 @@ import TitleSearch from '../../../components/TitleSearch/TitleSearch';
import { timestampToTime } from '../../../utils/time';
import { RA, getCookie, URL, filterObjbyTg, urlEncode, filterObj } from '@/utils/method';
import { remove } from 'lodash';
const module = 'User';
const module2 = 'History';
......
......@@ -103,9 +103,8 @@ const Detail = (props: any) => {
setLoding(false);
if (Result) {
dispatch({ type: 'ServiceProvider/ResultClear' });
message.success('Logout successful!', 2, () => {
history.goBack();
});
message.success('Logout successful!', 2);
history.goBack();
} else {
message.error('Logout failed. Please try again!', 3);
dispatch({ type: 'ServiceProvider/ResultClear', playload: '' });
......
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