From d59f518f466274b2caeb2e01c10c92deafe7c93b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 09 二月 2022 11:48:29 +0800 Subject: [PATCH] 2022-02-09 --- src/tabviews/scriptmanage/actionList/index.jsx | 19 +++++++------------ 1 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/tabviews/scriptmanage/actionList/index.jsx b/src/tabviews/scriptmanage/actionList/index.jsx index 8053551..0aa7502 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 = Utils.formatOptions(param.LText) - if (btn.sqlType === 'delete') { param.LText = window.GLOB.appkey || '' param.Remark = '' @@ -134,7 +129,7 @@ param.func_param = '' } - param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') + '.000' + param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') param.secretkey = Utils.encrypt(param.LText, param.timestamp) if (options.cloudServiceApi) { @@ -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') } -- Gitblit v1.8.0