| | |
| | | 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 = { |
| | |
| | | Tab: PropTypes.any, // 如果当前元素为标签时,tab为标签信息 |
| | | MenuID: PropTypes.string, // 菜单ID |
| | | actions: PropTypes.array, // 按钮组 |
| | | logcolumns: PropTypes.array, // 显示列 |
| | | dict: PropTypes.object, // 字典项 |
| | | setting: PropTypes.any, // 页面通用设置 |
| | | ContainerId: PropTypes.any, // tab页面ID,用于弹窗控制 |
| | |
| | | configMap: {} |
| | | } |
| | | |
| | | refreshdata = (item, type) => { |
| | | this.props.refreshdata(item, type) |
| | | } |
| | | |
| | | /** |
| | | * @description 触发按钮操作 |
| | | */ |
| | |
| | | LText: values.LongParam |
| | | } |
| | | |
| | | param.LText = window.btoa(window.encodeURIComponent(JSON.stringify(param.LText))) |
| | | |
| | | if (btn.sqlType === 'delete') { |
| | | param.LText = window.GLOB.appkey || '' |
| | | param.Remark = '' |
| | |
| | | }) |
| | | } |
| | | |
| | | this.refreshdata(btn, 'success') |
| | | if (btn.execSuccess !== 'never') { |
| | | this.props.refreshdata() |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | } else if (res.ErrCode === 'NM') { |
| | | message.error(res.message || res.ErrMesg) |
| | | } |
| | | |
| | | this.refreshdata(btn, 'error') |
| | | } |
| | | |
| | | |
| | |
| | | destroyOnClose |
| | | > |
| | | <MutilForm |
| | | menuType="HS" |
| | | dict={this.props.dict} |
| | | action={execAction} |
| | | inputSubmit={this.handleOk} |