Commit 1eedb243 authored by Sixiang_Zzb's avatar Sixiang_Zzb

物业服务删除提示修复

parent d7f8c2e0
...@@ -196,11 +196,11 @@ export default { ...@@ -196,11 +196,11 @@ export default {
} }
}, },
*IA({}, { put }: any) { *IA({ }, { put }: any) {
var Data3 = null; var Data3 = null;
yield put({ type: 'returnPage3', Data3 }); yield put({ type: 'returnPage3', Data3 });
}, },
*IA2({}, { put }: any) { *IA2({ }, { put }: any) {
var Data3Error = null; var Data3Error = null;
yield put({ type: 'returnData3Error', Data3Error }); yield put({ type: 'returnData3Error', Data3Error });
}, },
...@@ -220,7 +220,7 @@ export default { ...@@ -220,7 +220,7 @@ export default {
yield put({ type: 'returnCurString', curString }); yield put({ type: 'returnCurString', curString });
}, },
*ResultClear({}, { put }: any) { *ResultClear({ }, { put }: any) {
var tmp = null; var tmp = null;
yield put({ type: 'returnResult', tmp }); yield put({ type: 'returnResult', tmp });
}, },
...@@ -230,24 +230,29 @@ export default { ...@@ -230,24 +230,29 @@ export default {
yield put({ type: 'PageDate', pageDate }); yield put({ type: 'PageDate', pageDate });
}, },
*DataClear({}, { put }: any) { *DataClear({ }, { put }: any) {
var pageDate = null; var pageDate = null;
yield put({ type: 'returnPage', pageDate }); yield put({ type: 'returnPage', pageDate });
}, },
*MemberResultClear({}, { put }: any) { *MemberResultClear({ }, { put }: any) {
let memberResult = null; let memberResult = null;
yield put({ type: 'returnMemberResult', memberResult }); yield put({ type: 'returnMemberResult', memberResult });
}, },
*Data4ErrorClear({}, { put }: any) { *Data4ErrorClear({ }, { put }: any) {
let Data4Error = null; let Data4Error = null;
yield put({ type: 'returnData4Error', Data4Error }); yield put({ type: 'returnData4Error', Data4Error });
}, },
*ClearResult({}, { put }: any) { *ClearResult({ }, { put }: any) {
let Result = null; let Result = null;
yield put({ type: 'returnResult', Result }); yield put({ type: 'returnResult', Result });
}, },
*ClearReturnValue({ }, { put }: any) {
let returnValue = null;
yield put({ type: "ReturnValue", returnValue })
}
}, },
}; };
...@@ -91,14 +91,21 @@ const UsersDetail = (props: any) => { ...@@ -91,14 +91,21 @@ const UsersDetail = (props: any) => {
if (returnValue != null) { if (returnValue != null) {
if (returnValue.error_code !== '0001') { if (returnValue.error_code !== '0001') {
message.success('Delete Successfully!', 3); message.success('Delete Successfully!', 3);
RA(13, { // RA(13, {
id: DataSave.id, // id: DataSave.id,
owerName: DataSave.owerName, // owerName: DataSave.owerName,
enable: DataSave.enable, // enable: DataSave.enable,
buildingNumber: DataSave.buildingNumber, // buildingNumber: DataSave.buildingNumber,
floorNumber: DataSave.floorNumber, // floorNumber: DataSave.floorNumber,
roomNumber: DataSave.roomNumber, // roomNumber: DataSave.roomNumber,
// });
dispatch({
type: 'User/ClearReturnValue',
playload: {},
}); });
history.back();
} else { } else {
message.error(returnValue.error_msg, 3); message.error(returnValue.error_msg, 3);
} }
......
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