king
2025-05-08 400fee62fb40006a9839f1c3a8244b82566b5057
src/views/menudesign/printmenuform/index.jsx
@@ -245,6 +245,35 @@
              </Form.Item>
            </Col> : null}
            <Col span={24}>
              <Form.Item label={
                <Tooltip placement="topLeft" title="启用时,在菜单完成数据加载后自动触发打印预览。">
                  <QuestionCircleOutlined className="mk-form-tip" />
                  自动打印
                </Tooltip>
              }>
                {getFieldDecorator('autoExec', {
                  initialValue: config.autoExec || 'false'
                })(
                  <Radio.Group onChange={(e) => this.selectChange('autoExec', e.target.value)}>
                    <Radio value="false">不启用</Radio>
                    <Radio value="true">启用</Radio>
                  </Radio.Group>
                )}
              </Form.Item>
            </Col>
            {config.autoExec === 'true' ? <Col span={24}>
              <Form.Item label={
                <Tooltip placement="topLeft" title="自动触发打印预览的延迟时间,单位毫秒。">
                  <QuestionCircleOutlined className="mk-form-tip" />
                  延迟时间
                </Tooltip>
              }>
                {getFieldDecorator('autoExecSplit', {
                  initialValue: config.autoExecSplit || 500
                })(<InputNumber min={1} max={9999} precision={0} onChange={(val) => this.selectChange('autoExecSplit', val)}/>)}
              </Form.Item>
            </Col> : null}
            <Col span={24}>
              <Form.Item label="回调">
                {getFieldDecorator('callback', {
                  initialValue: config.callback || 'false'