Commit 9a174ae4 authored by 皮倩雯's avatar 皮倩雯

修复事件图片选择样式bug

parent 309ad5e4
Pipeline #59264 passed with stages
...@@ -250,7 +250,7 @@ const incident = () => { ...@@ -250,7 +250,7 @@ const incident = () => {
setTreeLoading(true); setTreeLoading(true);
GetCM_Event_LoadEventTable().then(res => { GetCM_Event_LoadEventTable().then(res => {
setTreeLoading(false); setTreeLoading(false);
if (res.msg === 'Ok') { if (res.code === 0) {
console.log(res.data); console.log(res.data);
// setMaxLength(res.data.root.length + 1) // setMaxLength(res.data.root.length + 1)
let arr = formateArrDataA(res.data, 'businessType'); let arr = formateArrDataA(res.data, 'businessType');
...@@ -307,6 +307,13 @@ const incident = () => { ...@@ -307,6 +307,13 @@ const incident = () => {
console.log(newArr[rember]); console.log(newArr[rember]);
console.log(newArr, 'newArr'); console.log(newArr, 'newArr');
setTreeData(newArr); setTreeData(newArr);
}else{
console.log(123)
notification.error({
message: '提示',
duration: 3,
description: res.msg,
});
} }
}); });
}, [flag]); }, [flag]);
......
...@@ -277,7 +277,7 @@ ...@@ -277,7 +277,7 @@
left: -9px; left: -9px;
height: 104px; height: 104px;
width: 104px; width: 104px;
background: rgba(0, 0, 0, 0.5); // background: rgba(0, 0, 0, 0.5);
border-radius: 2px; border-radius: 2px;
z-index:1; z-index:1;
} }
......
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