Commit 86b3b28f authored by Sixiang_Zzb's avatar Sixiang_Zzb

服务商编辑页提交bug修复

parent 6b46650b
......@@ -98,6 +98,14 @@ export default {
yield put({ type: 'returnCurData', CurData });
return;
}
// 小区选择错误
if (resp.error_code === "0004") {
let CurData: Boolean = false;
yield put({ type: "returnCurData", CurData });
message.error("Company name already exists!")
return;
}
},
//获取服务商保安根据服务商名
......
......@@ -67,8 +67,7 @@ const Edit = (props: any) => {
useEffect(() => {
if (SaveChooseData != null) {
console.log(optionsList);
console.log(SaveChooseData);
setCList(SaveChooseData.serviceCommunityList);
if (SaveChooseData.serviceScopeList.length <= 1) {
// 处理服务范围数据
optionsList.forEach((v) => {
......@@ -77,7 +76,6 @@ const Edit = (props: any) => {
}
});
} else {
console.log(1122);
// 处理服务范围数据
optionsList.forEach((v1) => {
SaveChooseData.serviceScopeList.forEach((v2: string, index: number) => {
......@@ -105,11 +103,10 @@ const Edit = (props: any) => {
val.serviceCommunityList = CList;
val.creator = 'admin';
val.updater = 'admin';
// val.serviceScopeList = val.serviceScopeList;
if (SaveChooseData) {
val.id = SaveChooseData.id;
}
console.log(val);
// console.log(val);
setload(true);
TosTosServiceProviderSave(val);
};
......
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