From 6b699dc5a69457d76577d17903d54011a6561d97 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 23 八月 2023 11:48:47 +0800 Subject: [PATCH] Merge branch 'master' into positec --- src/menu/components/share/actioncomponent/actionform/index.jsx | 41 ++++++++++++++++++++++++++--------------- 1 files changed, 26 insertions(+), 15 deletions(-) diff --git a/src/menu/components/share/actioncomponent/actionform/index.jsx b/src/menu/components/share/actioncomponent/actionform/index.jsx index b79847b..e83ff55 100644 --- a/src/menu/components/share/actioncomponent/actionform/index.jsx +++ b/src/menu/components/share/actioncomponent/actionform/index.jsx @@ -1,16 +1,16 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' import { fromJS } from 'immutable' -import { Form, Row, Col, Input, Select, Radio, Tooltip, InputNumber, Cascader, Checkbox, Typography } from 'antd' +import { Form, Row, Col, Input, Select, Radio, Tooltip, InputNumber, Cascader, Checkbox } from 'antd' import { QuestionCircleOutlined } from '@ant-design/icons' import { formRule } from '@/utils/option.js' import asyncComponent from '@/utils/asyncComponent' import KeyInterface from '@/components/keyInterface' +import MkPrintTemps from './mkPrintTemps' import './index.scss' const { TextArea } = Input -const { Paragraph } = Typography const MkEditIcon = asyncComponent(() => import('@/components/mkIcon')) const MKTable = asyncComponent(() => import('@/components/normalform/modalform/mkTable')) const acTyOptions = { @@ -354,7 +354,12 @@ } } else if (openType === 'excelOut') { reOptions.intertype = this.state.interTypeOptions.filter(op => op.value !== 'custom') - reOptions.Ot = requireOptions.filter(op => ['notRequired', 'requiredOnce'].includes(op.value)) + + if (appType === 'mob') { + reOptions.Ot = requireOptions.filter(op => ['notRequired'].includes(op.value)) + } else { + reOptions.Ot = requireOptions.filter(op => ['notRequired', 'requiredOnce'].includes(op.value)) + } if (this.record.intertype === 'outer') { shows.push('innerFunc', 'sysInterface', 'outerFunc') @@ -382,7 +387,9 @@ if (this.record.execSuccess === 'grid' || this.record.execError === 'grid') { shows.push('resetPageIndex') } - if (this.record.Ot !== 'notRequired' && this.record.Ot !== 'requiredOnce') { + if (this.record.Ot !== 'notRequired' && appType === 'mob') { + this.record.Ot = 'notRequired' + } else if (this.record.Ot !== 'notRequired' && this.record.Ot !== 'requiredOnce') { this.record.Ot = 'notRequired' } } else if (openType === 'popview') { @@ -924,6 +931,12 @@ } content = <TextArea rows={2} readOnly={item.readonly}/> + } else if (item.type === 'printTemps') { + rules = [ + { required: item.required, message: '璇烽�夋嫨' + item.label + '!' } + ] + + content = <MkPrintTemps /> } else if (item.type === 'keyinterface') { span = 24 className = 'textarea' @@ -937,7 +950,7 @@ fields.push( <Col span={span} key={index}> <Form.Item className={className} help={item.help} label={item.tooltip ? - <Tooltip placement="topLeft" title={item.tooltip}> + <Tooltip placement="topLeft" overlayStyle={{maxWidth: item.tooltip.length > 25 ? 350 : 250 }} title={<span onClick={(e) => e.stopPropagation()}>{item.tooltip}</span>}> <QuestionCircleOutlined className="mk-form-tip" /> {item.label} </Tooltip> : item.label @@ -950,16 +963,6 @@ </Col> ) }) - - if (window.debugger && this.props.card.uuid) { - fields.push( - <Col span={12} key="uuid"> - <Form.Item label="鎸夐挳ID"> - <Paragraph copyable>{this.props.card.uuid}</Paragraph> - </Form.Item> - </Col> - ) - } return fields } @@ -1006,6 +1009,10 @@ values.verify.sheet = values.verify.sheet || 'Sheet1' } + + if (values.verify) { + values.verify.scripts = [] + } } else if (card.OpenType === 'excelIn' && values.OpenType === 'excelOut') { if (values.verify && values.verify.columns && values.verify.columns.length > 0) { values.verify.columns = values.verify.columns.map(col => { @@ -1027,6 +1034,10 @@ return col }) } + + if (values.verify) { + values.verify.scripts = [] + } } if (values.OpenType === 'form') { -- Gitblit v1.8.0