/*O6WTuWcE1UtwnQM4MNu/0qiJYFOw2ZKgX65R4TJwt6w=*/ import presetVar from '../presetVar' export default function (status) { this.props.setUrlParam({status: status}); let showBack = false; // 设置页面编辑状态 switch (status) { case presetVar.status.browse: // 设置返回按钮状态 showBack = true; // this.setState({showBack: true}); // 设置表单状态 this.props.form.setFormStatus(presetVar.formAreaId, presetVar.status.browse); // 设置表格状态 this.props.cardTable.setStatus(presetVar.bodyAreaId, presetVar.status.browse); // 设置表格状态 this.props.cardTable.setStatus(presetVar.body2AreaId, presetVar.status.browse); break; case presetVar.status.edit: // 设置返回按钮状态 showBack = false; // this.setState({showBack: false}); // 设置表单状态 this.props.form.setFormStatus(presetVar.formAreaId, presetVar.status.edit); // 设置表格状态 this.props.cardTable.setStatus(presetVar.bodyAreaId, presetVar.status.edit); // 设置表格状态 this.props.cardTable.setStatus(presetVar.body2AreaId, presetVar.status.edit); break; case presetVar.status.add: default: // 设置返回按钮状态 showBack = false; // this.setState({showBack: false}); // 设置表单状态 this.props.form.setFormStatus(presetVar.formAreaId, presetVar.status.add); // 设置表格状态 this.props.cardTable.setStatus(presetVar.bodyAreaId, presetVar.status.edit); // 设置表格状态 this.props.cardTable.setStatus(presetVar.body2AreaId, presetVar.status.edit); break; } this.setState({pagestatus: status, showBack}); } /*O6WTuWcE1UtwnQM4MNu/0qiJYFOw2ZKgX65R4TJwt6w=*/