dev_aliyun_beta
杨树林 5 years ago
commit 898686a256

@ -605,7 +605,7 @@ class ExerciseNewCommon extends Component{
<i className="iconfont icon-tianjiafangda color-white font-14 mr5" style={{ marginTop: '-1px', display: 'inline-block'}}></i>
</ActionBtn>
{exercise_id && <ActionBtn style="blue" className="fr" onClick={() => this.goToPreview()}>
{exercise_id && !this.props.hidePreviewButton && <ActionBtn style="blue" className="fr" onClick={() => this.goToPreview()}>
{/* <i className="iconfont icon-tianjiafangda color-white font-14 mr5" style={{ marginTop: '-1px', display: 'inline-block'}}></i> */}
试卷预览
</ActionBtn>}

@ -53,6 +53,7 @@ class ExerciseBanksEdit extends Component {
{...this.props}
{...this.state}
{...common}
hidePreviewButton={true}
wrappedComponentRef={(ref) => this.exerciseNewCommonRef = ref}
isEdit={true}
shixunsUrl={`/exercise_banks/choose_shixun.json`}

Loading…
Cancel
Save