king
2021-05-10 422e566764decc740601a95118aa3a189ba7ffa6
2021-05-10
3个文件已修改
79 ■■■■ 已修改文件
src/tabviews/home/index.jsx 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/actioncomponent/verifyexcelout/columnform/index.jsx 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx 60 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/home/index.jsx
@@ -24,6 +24,11 @@
  componentDidMount () {
    this.loadHomeConfig()
    if (this.props.permMenus.length > 0 && JSON.stringify(this.props.permAction) !== '{}') {
      this.setState({
        waiting: false
      })
    }
  }
  UNSAFE_componentWillReceiveProps (nextProps) {
src/templates/sharecomponent/actioncomponent/verifyexcelout/columnform/index.jsx
@@ -1,6 +1,6 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import { Form, Row, Col, Button, Input, InputNumber, Radio } from 'antd'
import { Form, Row, Col, Button, Input, InputNumber } from 'antd'
import './index.scss'
class ExcelOutColumn extends Component {
@@ -40,7 +40,7 @@
    return (
      <Form {...formItemLayout} className="verify-form">
        <Row gutter={24}>
          <Col span={5}>
          <Col span={7}>
            <Form.Item label={dict['model.form.field']}>
              {getFieldDecorator('Column', {
                initialValue: '',
@@ -53,7 +53,7 @@
              })(<Input placeholder="" autoComplete="off" />)}
            </Form.Item>
          </Col>
          <Col span={5}>
          <Col span={7}>
            <Form.Item label={dict['model.name']}>
              {getFieldDecorator('Text', {
                initialValue: '',
@@ -66,7 +66,7 @@
              })(<Input placeholder="" autoComplete="off" />)}
            </Form.Item>
          </Col>
          <Col span={5}>
          <Col span={7}>
            <Form.Item label={dict['model.form.columnWidth']}>
              {getFieldDecorator('Width', {
                initialValue: 20,
@@ -79,7 +79,7 @@
              })(<InputNumber min={5} max={200} precision={0} />)}
            </Form.Item>
          </Col>
          <Col span={5}>
          {/* <Col span={5}>
            <Form.Item label="类型">
              {getFieldDecorator('type', {
                initialValue: 'text'
@@ -90,8 +90,8 @@
                </Radio.Group>
              )}
            </Form.Item>
          </Col>
          <Col span={4} className="add">
          </Col> */}
          <Col span={3} className="add">
            <Button onClick={this.handleConfirm} type="primary" className="mk-green">
              添加
            </Button>
src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx
@@ -33,14 +33,14 @@
        inputType: 'input',
        editable: true,
        unique: true,
        width: '20%'
        width: '25%'
      },
      {
        title: this.props.dict['model.name'],
        dataIndex: 'Text',
        inputType: 'input',
        editable: true,
        width: '20%'
        width: '25%'
      },
      {
        title: this.props.dict['model.form.columnWidth'],
@@ -49,34 +49,34 @@
        min: 5,
        max: 200,
        editable: true,
        width: '20%'
        width: '25%'
      },
      {
        title: '类型',
        dataIndex: 'type',
        inputType: 'select',
        editable: true,
        required: false,
        width: '20%',
        render: (text) => {
          if (text === 'image') {
            return '图片'
          } else {
            return '文本'
          }
        },
        options: [
          {value: 'text', text: '文本'},
          {value: 'image', text: '图片'}
        ]
      },
      // {
      //   title: '类型',
      //   dataIndex: 'type',
      //   inputType: 'select',
      //   editable: true,
      //   required: false,
      //   width: '20%',
      //   render: (text) => {
      //     if (text === 'image') {
      //       return '图片'
      //     } else {
      //       return '文本'
      //     }
      //   },
      //   options: [
      //     {value: 'text', text: '文本'},
      //     {value: 'image', text: '图片'}
      //   ]
      // },
      {
        title: '取绝对值',
        dataIndex: 'abs',
        inputType: 'select',
        editable: true,
        required: false,
        width: '20%',
        width: '25%',
        render: (text) => {
          if (text === 'true') {
            return '是'
@@ -106,12 +106,12 @@
    if (card.intertype !== 'system') {
      _verify.enable = 'false'
    }
    if (_verify.columns[0] && !_verify.columns[0].type) {
      _verify.columns = _verify.columns.map(col => {
        col.type = col.type || 'text'
        return col
      })
    }
    // if (_verify.columns[0] && !_verify.columns[0].type) {
    //   _verify.columns = _verify.columns.map(col => {
    //     col.type = col.type || 'text'
    //     return col
    //   })
    // }
    let defaultscript = ''
    if (!_verify.script && card.intertype === 'system') {
@@ -395,7 +395,7 @@
        Text: item.label,
        Width: 20,
        abs: 'false',
        type: 'text',
        // type: 'text',
        uuid: Utils.getuuid()
      })
    })