king
2021-11-11 980210de48d28a7645553c741b097311494fb960
2021-11-11
24个文件已修改
98 ■■■■■ 已修改文件
src/menu/components/card/cardcellcomponent/dragaction/card.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/data-card/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/table-card/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/chart/antv-bar/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/chart/antv-pie/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/chart/antv-scatter/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/chart/chart-custom/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/commontable/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/share/normalTable/index.jsx 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/table/edit-table/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/table/edit-table/normalTable/index.jsx 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/table/normal-table/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/subtable/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/subtabtable/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/normalTable/index.jsx 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/calendarconfig/source.jsx 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/comtableconfig/source.jsx 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/formtabconfig/dragelement/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/fieldscomponent/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/searchcomponent/dragsearch/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/subtableconfig/source.jsx 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/zshare/formconfig.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/utils.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcellcomponent/dragaction/card.jsx
@@ -77,6 +77,7 @@
      return (<Icon type={card.icon}/>)
    } else if (card.eleType === 'slider') {
      let val = card.value ? (card.value / card.maxValue) * 100 : 30
      // return <Progress percent={val}/>
      return (
        <div className="ant-mk-slider">
          <div className="ant-mk-slider-rail"></div>
src/menu/components/card/data-card/index.jsx
@@ -277,7 +277,6 @@
      newcard.options = []
      newcard.setAll = 'false'
      newcard.orderType = 'asc'
      newcard.display = 'dropdown'
      newcard.match = '='
    }
src/menu/components/card/table-card/index.jsx
@@ -291,7 +291,6 @@
      newcard.options = []
      newcard.setAll = 'false'
      newcard.orderType = 'asc'
      newcard.display = 'dropdown'
      newcard.match = '='
    }
src/menu/components/chart/antv-bar/index.jsx
@@ -1242,7 +1242,6 @@
    newcard.options = []
    newcard.setAll = 'false'
    newcard.orderType = 'asc'
    newcard.display = 'dropdown'
    newcard.match = '='
    // 注册事件-添加搜索
src/menu/components/chart/antv-pie/index.jsx
@@ -632,7 +632,6 @@
    newcard.options = []
    newcard.setAll = 'false'
    newcard.orderType = 'asc'
    newcard.display = 'dropdown'
    newcard.match = '='
    // 注册事件-添加搜索
src/menu/components/chart/antv-scatter/index.jsx
@@ -280,7 +280,6 @@
    newcard.options = []
    newcard.setAll = 'false'
    newcard.orderType = 'asc'
    newcard.display = 'dropdown'
    newcard.match = '='
    // 注册事件-添加搜索
src/menu/components/chart/chart-custom/index.jsx
@@ -210,7 +210,6 @@
    newcard.options = []
    newcard.setAll = 'false'
    newcard.orderType = 'asc'
    newcard.display = 'dropdown'
    newcard.match = '='
    // 注册事件-添加搜索
src/tabviews/commontable/index.jsx
@@ -400,6 +400,7 @@
      }
      this.setState({
        pageSize: config.setting.pageSize || 10,
        loadingview: false,
        absFields,
        autoMatic,
src/tabviews/custom/components/share/normalTable/index.jsx
@@ -432,7 +432,8 @@
    activeIndex: null,    // 标记当前选中行
    rowspans: null,       // 行合并字段信息
    pickup: false,        // 收起未选择项
    orderfields: {}       // 排序id与field转换
    orderfields: {},      // 排序id与field转换
    pageOptions: []
  }
  UNSAFE_componentWillMount () {
@@ -519,7 +520,17 @@
      document.getElementsByTagName('head')[0].appendChild(ele)
    }
    let size = (setting.pageSize || 10) + ''
    let pageOptions = ['10', '25', '50', '100', '500', '1000']
    if (!pageOptions.includes(size)) {
      pageOptions.push(size)
      pageOptions = pageOptions.sort((a, b) => a - b)
    }
    this.setState({
      pageSize: setting.pageSize || 10,
      pageOptions,
      columns: _columns,
      rowspans,
      tableId,
@@ -845,7 +856,7 @@
  render() {
    const { setting, statFValue, lineMarks, data } = this.props
    const { selectedRowKeys, activeIndex, pickup, tableId } = this.state
    const { selectedRowKeys, activeIndex, pickup, tableId, pageOptions } = this.state
    // 设置表格选择属性:单选、多选、不可选
    let rowSelection = null
@@ -878,7 +889,7 @@
      _pagination = {
        current: this.state.pageIndex,
        pageSize: this.state.pageSize,
        pageSizeOptions: ['10', '25', '50', '100', '500', '1000'],
        pageSizeOptions: pageOptions,
        showSizeChanger: true,
        total: this.props.total || 0,
        showTotal: (total, range) => `${range[0]}-${range[1]} ${this.state.dict['main.pagination.of']} ${total} ${this.state.dict['main.pagination.items']}`
src/tabviews/custom/components/table/edit-table/index.jsx
@@ -108,6 +108,7 @@
    }
    this.setState({
      pageSize: setting.pageSize || 10,
      BID: BID || '',
      BData: BData || '',
      title: _config.wrap.title,
src/tabviews/custom/components/table/edit-table/normalTable/index.jsx
@@ -456,7 +456,8 @@
    pickup: false,        // 收起未选择项
    orderfields: {},      // 排序id与field转换
    loading: false,
    editable: 'false'
    editable: 'false',
    pageOptions: []
  }
  UNSAFE_componentWillMount () {
@@ -541,7 +542,17 @@
      document.getElementsByTagName('head')[0].appendChild(ele)
    }
    let size = (setting.pageSize || 10) + ''
    let pageOptions = ['10', '25', '50', '100', '500', '1000']
    if (!pageOptions.includes(size)) {
      pageOptions.push(size)
      pageOptions = pageOptions.sort((a, b) => a - b)
    }
    this.setState({
      pageSize: setting.pageSize || 10,
      pageOptions,
      data,
      columns: _columns,
      edColumns,
@@ -1033,7 +1044,7 @@
  render() {
    const { setting, statFValue, lineMarks, submit } = this.props
    const { pickup, tableId, data, edData, columns, edColumns, loading } = this.state
    const { pickup, tableId, data, edData, columns, edColumns, loading, pageOptions } = this.state
    const components = {
      body: {
@@ -1057,7 +1068,7 @@
      _pagination = {
        current: this.state.pageIndex,
        pageSize: this.state.pageSize,
        pageSizeOptions: ['10', '25', '50', '100', '500', '1000'],
        pageSizeOptions: pageOptions,
        showSizeChanger: true,
        total: this.props.total || 0,
        showTotal: (total, range) => `${range[0]}-${range[1]} ${this.state.dict['main.pagination.of']} ${total} ${this.state.dict['main.pagination.items']}`
src/tabviews/custom/components/table/normal-table/index.jsx
@@ -124,6 +124,7 @@
    }
    this.setState({
      pageSize: setting.pageSize || 10,
      BID: BID || '',
      BData: BData || '',
      title: _config.wrap.title,
src/tabviews/subtable/index.jsx
@@ -321,6 +321,7 @@
      }
      this.setState({
        pageSize: config.setting.pageSize || 10,
        BID: BID || '',
        BData: BData || '',
        loadingview: false,
src/tabviews/subtabtable/index.jsx
@@ -284,6 +284,7 @@
      }
      this.setState({
        pageSize: config.setting.pageSize || 10,
        loadingview: false,
        config,
        absFields,
src/tabviews/zshare/normalTable/index.jsx
@@ -55,7 +55,8 @@
    columns: null,        // 显示列
    lineMarks: null,      // 行标记
    activeIndex: null,    // 标记当前选中行
    rowspans: null        // 行合并字段信息
    rowspans: null,       // 行合并字段信息
    pageOptions: []
  }
  UNSAFE_componentWillMount () {
@@ -221,8 +222,17 @@
        rowspans = null
      }
    }
    let size = (setting.pageSize || 10) + ''
    let pageOptions = ['10', '25', '50', '100', '500', '1000']
    if (!pageOptions.includes(size)) {
      pageOptions.push(size)
      pageOptions = pageOptions.sort((a, b) => a - b)
    }
    
    this.setState({
      pageOptions,
      columns: _columns,
      pageSize: pageSize ? pageSize : 10,
      lineMarks,
@@ -1156,7 +1166,7 @@
  render() {
    const { setting, pickup, statFValue } = this.props
    const { selectedRowKeys, lineMarks, activeIndex } = this.state
    const { selectedRowKeys, lineMarks, activeIndex, pageOptions } = this.state
    let components = {
      body: {}
@@ -1205,7 +1215,7 @@
      _pagination = {
        current: this.state.pageIndex,
        pageSize: this.state.pageSize,
        pageSizeOptions: ['10', '25', '50', '100', '500', '1000'],
        pageSizeOptions: pageOptions,
        showSizeChanger: true,
        total: this.props.total || 0,
        showTotal: (total, range) => `${range[0]}-${range[1]} ${this.props.dict['main.pagination.of']} ${total} ${this.props.dict['main.pagination.items']}`
src/templates/calendarconfig/source.jsx
@@ -48,7 +48,6 @@
        options: [],
        orderType: 'asc',
        match: 'like',
        display: 'dropdown'
      }, {
        origin: true,
        uuid: Utils.getuuid(),
@@ -61,7 +60,6 @@
        options: [],
        orderType: 'asc',
        match: 'equal',
        display: 'dropdown'
      }, {
        origin: true,
        uuid: Utils.getuuid(),
@@ -74,7 +72,6 @@
        options: [],
        orderType: 'asc',
        match: 'greater',
        display: 'dropdown'
      }
    ]
  }
src/templates/comtableconfig/source.jsx
@@ -40,7 +40,6 @@
        options: [],
        orderType: 'asc',
        match: 'like',
        display: 'dropdown'
      }, {
        origin: true,
        uuid: Utils.getuuid(),
@@ -53,7 +52,6 @@
        options: [],
        orderType: 'asc',
        match: 'equal',
        display: 'dropdown'
      }, {
        origin: true,
        uuid: Utils.getuuid(),
@@ -66,7 +64,6 @@
        options: [],
        orderType: 'asc',
        match: 'greater',
        display: 'dropdown'
      }
    ],
    action: [
src/templates/formtabconfig/dragelement/index.jsx
@@ -118,7 +118,6 @@
        newcard.setAll = 'false'
        newcard.orderType = 'asc'
        newcard.match = _match
        newcard.display = 'dropdown'
      } else if (item.type === 'action') {
        newcard.label = 'button'
        newcard.Ot = 'requiredSgl'
src/templates/sharecomponent/fieldscomponent/index.jsx
@@ -130,7 +130,6 @@
          options: [],
          orderType: 'asc',
          match: _match,
          display: 'dropdown'
        }
        items.push(newcard)
src/templates/sharecomponent/searchcomponent/dragsearch/index.jsx
@@ -91,7 +91,6 @@
      newcard.options = []
      newcard.setAll = 'false'
      newcard.orderType = 'asc'
      newcard.display = 'dropdown'
      
      let _match = 'like'
      if (item.subType === 'select' || item.subType === 'link' || item.subType === 'checkcard') {
src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx
@@ -714,6 +714,18 @@
            </Col> : null}
            <Col span={12}>
              <Form.Item label={
                <Tooltip placement="topLeft" title="选择分页时有效,默认为10条。">
                  <Icon type="question-circle" />
                  每页数量
                </Tooltip>
              }>
                {getFieldDecorator('pageSize', {
                  initialValue: setting.pageSize || '',
                })(<InputNumber min={1} max={500} precision={0} />)}
              </Form.Item>
            </Col>
            <Col span={12}>
              <Form.Item label={
                <Tooltip placement="topLeft" title="高级搜索弹窗的宽度,注:当宽度值小于100时表示占窗口的百分比,大于100时表示宽度的绝对值。">
                  <Icon type="question-circle" />
                  高级搜索
src/templates/subtableconfig/source.jsx
@@ -39,7 +39,6 @@
        options: [],
        orderType: 'asc',
        match: 'like',
        display: 'dropdown'
      }, {
        origin: true,
        uuid: Utils.getuuid(),
@@ -52,7 +51,6 @@
        options: [],
        orderType: 'asc',
        match: 'equal',
        display: 'dropdown'
      }, {
        origin: true,
        uuid: Utils.getuuid(),
@@ -65,7 +63,6 @@
        options: [],
        orderType: 'asc',
        match: 'greater',
        display: 'dropdown'
      }
    ],
    action: [
src/templates/zshare/formconfig.jsx
@@ -734,14 +734,14 @@
    {
      type: 'radio',
      key: 'labelShow',
      label: '显示名称',
      label: '名称',
      initVal: card.labelShow || 'true',
      options: [{
        value: 'true',
        text: Formdict['model.true']
        text: '显示'
      }, {
        value: 'false',
        text: Formdict['model.false']
        text: '隐藏'
      }]
    },
    {
src/utils/utils.js
@@ -735,9 +735,11 @@
    arrfield = arrfield.join(',')
    if (item.orderBy) {
      sql = `select ${item.type === 'checkcard' ? 'top 20' : ''} ${arrfield} from (select distinct ${arrfield},${item.orderBy} as orderfield from ${_datasource} ) a order by orderfield ${item.orderType}`
      // sql = `select ${item.type === 'checkcard' ? 'top 20' : ''} ${arrfield} from (select distinct ${arrfield},${item.orderBy} as orderfield from ${_datasource} ) a order by orderfield ${item.orderType}`
      sql = `select distinct ${arrfield},${item.orderBy} as orderfield from ${_datasource} order by orderfield ${item.orderType}`
    } else {
      sql = `select ${item.type === 'checkcard' ? 'top 20' : ''} ${arrfield} from (select distinct ${arrfield} from ${_datasource}) a`
      // sql = `select ${item.type === 'checkcard' ? 'top 20' : ''} ${arrfield} from (select distinct ${arrfield} from ${_datasource}) a`
      sql = `select distinct ${arrfield} from ${_datasource}`
    }
    if (sessionStorage.getItem('dataM') === 'true') { // 数据权限