Commit 9d998c56 authored by 吴江's avatar 吴江

规则修改适配

parent 0c28219d
......@@ -26,14 +26,11 @@ export const getObjFromNet = (url, callback) => {
* @param {string} type
*/
export const initView3DAction = (type,riskSourceId) => {
let param = {};
if (riskSourceId) {
param = { type, riskSourceId };
if (!riskSourceId) {
riskSourceId="";
}
else {
param = { type };
}
const url = formatUrl(FscSerUrl.view3dInitUrl, param);
const url = formatUrl(FscSerUrl.view3dInitUrl, {type,riskSourceId});
return commonGet(url);
};
......
......@@ -114,7 +114,7 @@ class MaskContent extends Component {
<TopMsg alarmStart={alarmStart} />
{!isShowActionBar && <ModelHeader headerName={headerName} handleExceptModel={this.handleExceptModel} />}
{isShowActionBar && <ActionBar activeAction={activeAction} onActionItemClick={(e) => this.actionBarClick(e)} animationProps={controlAnimation}/> }
{/*{alarmStarted && <LayerPool animationProps={layerPoolAnimation} planStart={planStart} planQuit={planQuit} planStarted={planStarted} />}*/}
{alarmStarted && <LayerPool animationProps={layerPoolAnimation} planStart={planStart} planQuit={planQuit} planStarted={planStarted} />}
</div>
);
}
......
......@@ -787,7 +787,6 @@ class View3D extends Component {
renderAreas = () => {
this.areas = [];
this.getAreas(this.state.treeData);
console.log(this.areas)
return this.areas;
}
onRegionCreated = (polygonRegion,item) => {
......
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