king
2021-09-28 342d3498191f1683059fe586209ec920545e0bf9
2021-09-28
19个文件已修改
189 ■■■■■ 已修改文件
src/menu/components/share/normalheader/index.scss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/table/normal-table/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/table/normal-table/index.scss 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/table/normal-table/options.jsx 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/tree/antd-tree/index.scss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/normalbutton/index.jsx 60 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/printbutton/index.jsx 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/mutilform/index.scss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/mutilform/mkCheckCard/index.scss 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/topSearch/advanceform/index.scss 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/topSearch/index.jsx 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/topSearch/index.scss 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/modalconfig/checkCard/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/modalconfig/dragelement/card.jsx 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/modalconfig/dragelement/index.scss 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/modalconfig/settingform/index.jsx 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/searchcomponent/index.jsx 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/searchcomponent/index.scss 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/searchcomponent/searchform/index.jsx 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/normalheader/index.scss
@@ -22,7 +22,7 @@
  }
  .ant-input-search.ant-input-affix-wrapper {
    width: 50%;
    max-width: 130px;
    max-width: 150px;
    margin-top: 8px;
    margin-right: 25px;
    float: right;
src/menu/components/table/normal-table/index.jsx
@@ -66,7 +66,7 @@
        name: card.name,
        subtype: card.subtype,
        setting: { interType: 'system' },
        wrap: { name: card.name, width: card.width || 24, bordered: 'true', tableType: 'checkbox' },
        wrap: { name: card.name, width: card.width || 24, bordered: 'true', tableType: 'checkbox', show: 'true' },
        style: { marginLeft: '8px', marginRight: '8px', marginTop: '8px', marginBottom: '8px' },
        headerStyle: { fontSize: '16px', borderBottomWidth: '1px', borderBottomColor: '#e8e8e8' },
        columns: [],
src/menu/components/table/normal-table/index.scss
@@ -17,6 +17,21 @@
    .page-card {
      background: transparent;
    }
    .quickly-add {
      display: inline-block;
      position: absolute;
      z-index: 3;
      right: 70px;
      bottom: 5px;
      .ant-btn-block {
        background-color: transparent;
        color: #1890ff;
        border: none;
        box-shadow: none !important;
        height: 18px;
        padding: 0 10px;
      }
    }
  }
  .model-table-search-list.length0 {
    display: none;
src/menu/components/table/normal-table/options.jsx
@@ -118,6 +118,18 @@
      ]
    },
    {
      type: 'radio',
      field: 'show',
      label: '搜索按钮',
      initval: wrap.show || 'true',
      tooltip: '搜索条件存在时,可选择是否显示搜索按钮。',
      required: false,
      options: [
        {value: 'true', label: '显示'},
        {value: 'false', label: '隐藏'},
      ]
    },
    {
      type: 'color',
      field: 'borderColor',
      label: '边框颜色',
src/tabviews/custom/components/tree/antd-tree/index.scss
@@ -26,7 +26,7 @@
    }
    .ant-input-search.ant-input-affix-wrapper {
      width: 50%;
      max-width: 130px;
      max-width: 150px;
      margin-top: 6px;
      float: right;
      height: 30px;
src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -109,9 +109,7 @@
    if (btn.uuid !== res.menuId) return
    this.setState({
      loading: true
    })
    this.setState({ loading: true })
    this.execSubmit(this.state.tabledata, () => {}, res.form)
  }
@@ -127,17 +125,12 @@
  /**
   * @description 按钮状态改变
   */
  updateStatus = (type) => {
    if (type === 'start') {
      this.setState({
        loading: true
      })
    } else if (type === 'over') {
      this.setState({
        loading: false,
        visible: false
      })
    }
  updateStatus = () => {
    this.setState({
      loading: false,
      visible: false,
      confirmLoading: false
    })
  }
  
  /**
@@ -242,7 +235,7 @@
      MKEmitter.emit('mkFormSubmit', btn.uuid)
      return
    } else if (btn.OpenType === 'prompt') {
      this.updateStatus('start')
      this.setState({loading: true})
      confirm({
        title: this.state.dict['main.action.confirm.tip'],
        onOk() {
@@ -251,21 +244,20 @@
          })
        },
        onCancel() {
          _this.updateStatus('over')
          _this.setState({loading: false})
        }
      })
    } else if (btn.OpenType === 'exec') {
      this.updateStatus('start')
      this.setState({loading: true})
      this.execSubmit(data, () => { this.setState({loading: false})})
    } else if (btn.OpenType === 'pop') {
      this.updateStatus('start')
      let modal = this.state.btnconfig
      if (!modal && btn.modal) {
        modal = this.handleModelConfig(btn.modal)
      }
      this.setState({
        loading: true,
        tabledata: data,
        btnconfig: modal
      }, () => {
@@ -712,7 +704,7 @@
                }
                resolve(res)
              }, () => {
                this.updateStatus('over')
                this.updateStatus()
                _resolve()
              })
            }, 100 * i)
@@ -867,7 +859,7 @@
                }
                resolve()
              }, () => {
                _this.updateStatus('over')
                _this.updateStatus()
                resolve()
                _resolve()
              })
@@ -884,7 +876,7 @@
        _resolve()
      }
    }, () => {
      this.updateStatus('over')
      this.updateStatus()
      _resolve()
    })
  }
@@ -1136,7 +1128,7 @@
        _resolve()
      }
    }, () => {
      this.updateStatus('over')
      this.updateStatus()
      _resolve()
    })
  }
@@ -1189,7 +1181,7 @@
        _resolve()
      }
    }, () => {
      this.updateStatus('over')
      this.updateStatus()
      _resolve()
    })
  }
@@ -1242,7 +1234,7 @@
            _resolve()
          }
        }, () => {
          this.updateStatus('over')
          this.updateStatus()
          _resolve()
        })
      } else {
@@ -1680,14 +1672,14 @@
            message: res.message,
            duration: 5
          })
          this.updateStatus('over')
          this.setState({ loading: false })
        } else if (!_LongParam || (btn.OpenType === 'pop' && _LongParam.type !== 'Modal')) {
          notification.warning({
            top: 92,
            message: '未获取到按钮配置信息!',
            duration: 5
          })
          this.updateStatus('over')
          this.setState({ loading: false })
        } else {
          _LongParam = updateForm(_LongParam)
          _LongParam = this.handleModelConfig(_LongParam)
@@ -1713,15 +1705,9 @@
   */
  handleOk = () => {
    this.formRef.handleConfirm().then(res => {
      this.setState({
        confirmLoading: true
      })
      this.setState({ confirmLoading: true })
      this.execSubmit(this.state.tabledata, () => {
        this.setState({
          confirmLoading: false
        })
      }, res)
      this.execSubmit(this.state.tabledata, () => { this.setState({ confirmLoading: false }) }, res)
    })
  }
@@ -1730,10 +1716,10 @@
   */
  handleCancel = () => {
    this.setState({
      loading: false,
      visible: false,
      confirmLoading: false
    })
    this.updateStatus('over')
  }
  modelconfirm = () => {
@@ -1799,7 +1785,7 @@
        })
      },
      onCancel() {
        _this.updateStatus('over')
        _this.setState({ loading: false })
      }
    })
  }
src/tabviews/zshare/actionList/printbutton/index.jsx
@@ -91,21 +91,6 @@
    }
    MKEmitter.removeListener('triggerBtnId', this.actionTrigger)
  }
  /**
   * @description 按钮状态改变
   */
  updateStatus = (type) => {
    if (type === 'start') {
      this.setState({
        loading: true
      })
    } else if (type === 'over') {
      this.setState({
        loading: false
      })
    }
  }
  
  /**
   * @description 触发按钮操作
@@ -166,27 +151,27 @@
    }
    if (btn.execMode === 'pop') {
      this.updateStatus('start')
      let modal = this.state.btnconfig
      if (!modal && btn.modal) {
        modal = this.handleModelConfig(btn.modal)
      }
      this.setState({
        loading: true,
        tabledata: data,
        btnconfig: modal
      }, () => {
        this.improveAction()
      })
    } else if (btn.execMode === 'prompt') {
      this.updateStatus('start')
      this.setState({ loading: true })
      confirm({
        title: this.state.dict['main.action.confirm.tip'],
        onOk() {
          _this.triggerPrint(data)
        },
        onCancel() {
          _this.updateStatus('over')
          _this.setState({ loading: false })
        }
      })
    } else {
@@ -1348,14 +1333,14 @@
            message: res.message,
            duration: 5
          })
          this.updateStatus('over')
          this.setState({ loading: false })
        } else if (!_LongParam || (btn.execMode === 'pop' && _LongParam.type !== 'Modal')) {
          notification.warning({
            top: 92,
            message: '未获取到按钮配置信息!',
            duration: 5
          })
          this.updateStatus('over')
          this.setState({ loading: false })
        } else {
          _LongParam = updateForm(_LongParam)
          _LongParam = this.handleModelConfig(_LongParam)
@@ -1380,10 +1365,13 @@
   * @description 模态框(表单),确认
   */
  handleOk = () => {
    const { btnconfig } = this.state
    this.formRef.handleConfirm().then(res => {
      this.setState({
        visible: false
      })
      if (btnconfig.setting.finish !== 'unclose') {
        this.setState({
          visible: false
        })
      }
      this.triggerPrint(this.state.tabledata, res)
    })
  }
@@ -1393,9 +1381,9 @@
   */
  handleCancel = () => {
    this.setState({
      loading: false,
      visible: false
    })
    this.updateStatus('over')
  }
  modelconfirm = () => {
@@ -1452,7 +1440,7 @@
        _this.triggerPrint(tabledata, result)
      },
      onCancel() {
        _this.updateStatus('over')
        _this.setState({ loading: false })
      }
    })
  }
src/tabviews/zshare/mutilform/index.scss
@@ -27,7 +27,7 @@
  .ant-form-item.checkcard, .ant-form-item.file-upload {
    margin-bottom: 10px;
    .ant-form-item-control {
      line-height: 1.5;
      line-height: 1;
    }
  }
  .ant-form-item.readonly {
src/tabviews/zshare/mutilform/mkCheckCard/index.scss
@@ -1,6 +1,6 @@
.check-card-form-box {
  margin-top: 10px;
  margin-bottom: -10px;
  margin-top: 5px;
  // margin-bottom: -10px;
  .card-cell {
    position: relative;
    border: 1px solid #bcbcbc;
src/tabviews/zshare/topSearch/advanceform/index.scss
@@ -26,9 +26,6 @@
  .ant-calendar-picker-container {
    z-index: 10 !important;
  }
  .check-card-form-box {
    margin-top: 5px;
  }
  .advance-button {
    position: absolute;
    left: 0;
src/tabviews/zshare/topSearch/index.jsx
@@ -77,6 +77,9 @@
    }
    if (searchlist) {
      if (setting && setting.show === 'false') {
        showButton = false
      }
      _searchlist = fromJS(searchlist).toJS()
    } else if (config) {
      _searchlist = fromJS(config.search).toJS()
src/tabviews/zshare/topSearch/index.scss
@@ -74,9 +74,6 @@
      }
    }
  }
  .check-card-form-box {
    margin-top: 5px;
  }
  .ant-calendar-picker-clear, .ant-calendar-picker-icon {
    right: 8px;
  }
src/templates/modalconfig/checkCard/index.jsx
@@ -73,7 +73,7 @@
  render() {
    return (
      <div className="check-card-edit-box" style={{marginTop: '10px'}}>
      <div className="check-card-edit-box" style={{marginTop: '5px'}}>
        <Row gutter={12}>{this.getCards()}</Row>
      </div>
    )
src/templates/modalconfig/dragelement/card.jsx
@@ -64,6 +64,7 @@
  }
  let formItem = null
  let className = 'ant-form-item'
  if (card.type === 'text') {
    formItem = (<Input style={{marginTop: '4px'}} placeholder={card.placeholder || ''} value={card.initval} />)
  } else if (card.type === 'number') {
@@ -114,6 +115,7 @@
  } else if (card.type === 'split') {
    formItem = <div className="split-line">{card.label}</div>
  } else if (card.type === 'checkcard') {
    className += ' checkcard'
    formItem = <CheckCard config={card} />
  }
@@ -136,7 +138,7 @@
      <div className="page-card" style={{ opacity: opacity}}>
        <div ref={node => drag(drop(node))} onDoubleClick={edit}>
          {card.type === 'split' ? formItem : <Form.Item
            className="ant-form-item"
            className={className}
            colon={!!_label}
            label={_label}
            required={card.required === 'true'}
src/templates/modalconfig/dragelement/index.scss
@@ -28,6 +28,11 @@
    padding-left: 10px;
    border-bottom: 1px solid #e9e9e9;
  }
  .ant-form-item.checkcard {
    .ant-form-item-control {
      line-height: 1;
    }
  }
  .ant-form-item {
    cursor: move;
    display: flex;
src/templates/modalconfig/settingform/index.jsx
@@ -193,7 +193,12 @@
            </Form.Item>
          </Col>
          <Col span={12}>
            <Form.Item label="显示方式">
            <Form.Item label={
              <Tooltip placement="topLeft" title="打印按钮中无效。">
                <Icon type="question-circle" />
                显示方式
              </Tooltip>
            }>
              {getFieldDecorator('display', {
                initialValue: display || 'modal'
              })(
src/templates/sharecomponent/searchcomponent/index.jsx
@@ -9,13 +9,15 @@
import zhCN from '@/locales/zh-CN/model.js'
import enUS from '@/locales/en-US/model.js'
import { getSearchForm } from '@/templates/zshare/formconfig'
import asyncComponent from '@/utils/asyncComponent'
import MKEmitter from '@/utils/events.js'
import SearchForm from './searchform'
import DragElement from './dragsearch'
import './index.scss'
const { confirm } = Modal
const FieldsComponent = asyncComponent(() => import('@/templates/sharecomponent/fieldscomponent'))
class SearchComponent extends Component {
  static propTpyes = {
@@ -311,22 +313,34 @@
  }
  shouldComponentUpdate (nextProps, nextState) {
    return !is(fromJS(this.state), fromJS(nextState)) || this.props.config.setting.show !== nextProps.config.setting.show
    if (!is(fromJS(this.state), fromJS(nextState))) {
      return true
    } else if (this.props.config.wrap) {
      return this.props.config.wrap.show !== nextProps.config.wrap.show
    } else {
      return this.props.config.setting.show !== nextProps.config.setting.show
    }
  }
  render() {
    const { config } = this.props
    const { dict, searchlist, visible, sqlVerifing, card, showField } = this.state
    let show = config.setting.show
    if (config.wrap) {
      show = config.wrap.show
    }
    return (
      <div className={'model-table-search-list length' + searchlist.length}>
        <Tooltip placement="bottomLeft" overlayClassName="middle" title={dict['model.tooltip.search.guide']}>
          <Icon type="question-circle" />
        </Tooltip>
        <FieldsComponent config={config} type="search" />
        <Switch checkedChildren={dict['model.switch.open']} unCheckedChildren={dict['model.switch.close']} defaultChecked={showField} onChange={this.onFieldChange} />
        <DragElement
          list={searchlist}
          show={config.setting.show}
          show={show}
          showField={showField}
          handleList={this.handleList}
          handleMenu={this.handleSearch}
src/templates/sharecomponent/searchcomponent/index.scss
@@ -4,6 +4,9 @@
  position: relative;
  border-bottom: 1px solid #d9d9d9;
  .quickly-add {
    display: none;
  }
  .anticon-question-circle {
    color: #c49f47;
    position: relative;
src/templates/sharecomponent/searchcomponent/searchform/index.jsx
@@ -654,8 +654,6 @@
            }
          } else if (['multiselect', 'select', 'link', 'checkcard'].includes(values.type) && values.resourceType === '1') {
            values.options = []
          } else if (values.type === 'text' && values.advanced === 'true') {
            values.inputType = 'input'
          }
          if (values.type === 'range') {