From 6ed64ed071c75901ed8848131bfefa51c5c27fce Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 24 九月 2020 23:51:51 +0800 Subject: [PATCH] 2020-09-24 --- src/templates/sharecomponent/actioncomponent/index.jsx | 17 ++--------------- 1 files changed, 2 insertions(+), 15 deletions(-) diff --git a/src/templates/sharecomponent/actioncomponent/index.jsx b/src/templates/sharecomponent/actioncomponent/index.jsx index 6ef56de..730a43c 100644 --- a/src/templates/sharecomponent/actioncomponent/index.jsx +++ b/src/templates/sharecomponent/actioncomponent/index.jsx @@ -856,14 +856,6 @@ const { config, type, menu } = this.props this.actionFormRef.handleConfirm().then(result => { - if (result.Ot === 'requiredOnce') { - notification.warning({ - top: 92, - message: '澶氳鎷兼帴鏃讹紝涓嶅彲鍒涘缓鎺ュ彛锛�', - duration: 5 - }) - return - } let _menu = { type: type, MenuID: menu.MenuID, @@ -907,11 +899,6 @@ const { config } = this.props const { actionlist, visible, card, dict, copying, profVisible } = this.state - let hasbtncrtinter = false - if (card && !card.copyType && config.setting.interType === 'system' && config.setting.dataresource) { - hasbtncrtinter = true - } - return ( <div className="model-table-action-list" style={config.charts.length > 1 ? {paddingTop: 25} : null}> <Tooltip placement="bottomLeft" overlayClassName="middle" title={dict['model.tooltip.action.guide']}> @@ -935,8 +922,8 @@ maskClosable={false} onCancel={this.editModalCancel} footer={[ - hasbtncrtinter ? <CreateInterface key="interface" dict={dict} ref="btnCreatInterface" trigger={this.btnCreatInterface}/> : null, - card && !card.copyType ? <CreateFunc key="create" dict={dict} ref="btnCreatFunc" trigger={this.creatFunc}/> : null, + <CreateInterface key="interface" dict={dict} ref="btnCreatInterface" trigger={this.btnCreatInterface}/>, + <CreateFunc key="create" dict={dict} ref="btnCreatFunc" trigger={this.creatFunc}/>, <Button key="cancel" onClick={this.editModalCancel}>{dict['model.cancel']}</Button>, <Button key="confirm" type="primary" loading={copying} onClick={this.handleSubmit}>{dict['model.confirm']}</Button> ]} -- Gitblit v1.8.0