From 0c439ced2c97905cb2b02f5f689a37b19369fb8a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 22 七月 2022 15:00:58 +0800 Subject: [PATCH] 2022-07-22 --- src/tabviews/scriptmanage/actionList/index.jsx | 18 ++++++------------ 1 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/tabviews/scriptmanage/actionList/index.jsx b/src/tabviews/scriptmanage/actionList/index.jsx index c63750c..6ddf524 100644 --- a/src/tabviews/scriptmanage/actionList/index.jsx +++ b/src/tabviews/scriptmanage/actionList/index.jsx @@ -2,13 +2,15 @@ import PropTypes from 'prop-types' import moment from 'moment' import { Button, Modal, notification, message } from 'antd' -import MutilForm from '@/tabviews/zshare/mutilform' + +import asyncSpinComponent from '@/utils/asyncSpinComponent' import options from '@/store/options.js' import Utils from '@/utils/utils.js' import Api from '@/api' import './index.scss' const { confirm } = Modal +const MutilForm = asyncSpinComponent(() => import('@/tabviews/zshare/mutilform')) class MainAction extends Component { static propTpyes = { @@ -17,7 +19,6 @@ Tab: PropTypes.any, // 濡傛灉褰撳墠鍏冪礌涓烘爣绛炬椂锛宼ab涓烘爣绛句俊鎭� MenuID: PropTypes.string, // 鑿滃崟ID actions: PropTypes.array, // 鎸夐挳缁� - logcolumns: PropTypes.array, // 鏄剧ず鍒� dict: PropTypes.object, // 瀛楀吀椤� setting: PropTypes.any, // 椤甸潰閫氱敤璁剧疆 ContainerId: PropTypes.any, // tab椤甸潰ID锛岀敤浜庡脊绐楁帶鍒� @@ -34,10 +35,6 @@ configMap: {} } - refreshdata = (item, type) => { - this.props.refreshdata(item, type) - } - /** * @description 瑙﹀彂鎸夐挳鎿嶄綔 */ @@ -125,8 +122,6 @@ LText: values.LongParam } - param.LText = window.btoa(window.encodeURIComponent(JSON.stringify(param.LText))) - if (btn.sqlType === 'delete') { param.LText = window.GLOB.appkey || '' param.Remark = '' @@ -180,7 +175,9 @@ }) } - this.refreshdata(btn, 'success') + if (btn.execSuccess !== 'never') { + this.props.refreshdata() + } } /** @@ -210,8 +207,6 @@ } else if (res.ErrCode === 'NM') { message.error(res.message || res.ErrMesg) } - - this.refreshdata(btn, 'error') } @@ -282,7 +277,6 @@ destroyOnClose > <MutilForm - menuType="HS" dict={this.props.dict} action={execAction} inputSubmit={this.handleOk} -- Gitblit v1.8.0