king
2023-11-12 da5ff4b9866a2d458d950f0c743ab9244e16c66d
2023-11-12
8个文件已修改
97 ■■■■■ 已修改文件
src/menu/components/card/data-card/options.jsx 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/double-data-card/options.jsx 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/chart/antv-bar/index.jsx 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/data-card/index.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/data-card/index.scss 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/double-data-card/index.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/double-data-card/index.scss 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/chart/antv-bar-line/index.jsx 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/data-card/options.jsx
@@ -607,6 +607,19 @@
      forbid: !!appType || isprint
    },
    {
      type: 'radio',
      field: 'shifting',
      label: '按钮偏移',
      initval: wrap.shifting || 'false',
      tooltip: '启用时,工具栏按钮将显示在标题栏右上角。',
      required: false,
      options: [
        {value: 'true', label: '启用'},
        {value: 'false', label: '禁用'},
      ],
      forbid: !!appType || subtype !== 'datacard' || isprint
    },
    {
      type: 'multiselect',
      field: 'blacklist',
      label: '黑名单',
src/menu/components/card/double-data-card/options.jsx
@@ -251,6 +251,19 @@
      forbid: !!appType || isprint
    },
    {
      type: 'radio',
      field: 'shifting',
      label: '按钮偏移',
      initval: wrap.shifting || 'false',
      tooltip: '启用时,工具栏按钮将显示在标题栏右上角。',
      required: false,
      options: [
        {value: 'true', label: '启用'},
        {value: 'false', label: '禁用'},
      ],
      forbid: !!appType || isprint
    },
    {
      type: 'multiselect',
      field: 'blacklist',
      label: '黑名单',
src/menu/components/chart/antv-bar/index.jsx
@@ -550,7 +550,8 @@
      })
    }
    if (!plot.legend || plot.legend === 'hidden') {
    let noLegend = !plot.legend || plot.legend === 'hidden'
    if (noLegend) {
      chart.legend(false)
    } else {
      chart.legend({
@@ -643,7 +644,9 @@
      }
      view1.axis('value', yc)
  
      // view1.legend(false)
      if (!noLegend) {
        view1.legend(false)
      }
  
      if (plot.mutilBar !== 'stack') {
        let _chart = view1
@@ -770,7 +773,9 @@
    view2.data(dv.rows)
    // view2.legend(false)
    if (!noLegend) {
      view2.legend(false)
    }
    fields.forEach(item => {
      if (item.chartType === 'bar' && !Bar_axis.length) {
src/tabviews/custom/components/card/data-card/index.jsx
@@ -136,6 +136,12 @@
    _config.wrap.wrapClass = `${_config.wrap.selStyle} ${_config.wrap.cardType || ''} ${_config.wrap.scale}`
    if (_config.wrap.shifting === 'true') {
      _config.wrap.shifting = 'shifting'
    } else {
      _config.wrap.shifting = ''
    }
    let pageOptions = ['10', '25', '50', '100', '500', '1000']
    if (!_config.setting.laypage) {
@@ -1178,7 +1184,7 @@
    }
    return (
      <div className="custom-data-card-box" id={'anchor' + config.uuid} style={config.style}>
      <div className={'custom-data-card-box ' + config.wrap.shifting} id={'anchor' + config.uuid} style={config.style}>
        {loading ?
          <div className="loading-mask">
            {data.length ? <div className="ant-spin-blur"></div> : null}
src/tabviews/custom/components/card/data-card/index.scss
@@ -251,6 +251,22 @@
    }
  }
}
.custom-data-card-box.shifting {
  .normal-header:not(.header-search) + .toolbar-button {
    position: absolute;
    top: 0px;
    right: 0px;
    button {
      margin-bottom: 0px!important;
    }
  }
  .normal-header:not(.header-search) + .toolbar-button + .pickup-wrap{
    position: relative;
    button {
      position: relative;
    }
  }
}
.custom-data-card-box::-webkit-scrollbar {
  width: 7px;
  height: 7px;
src/tabviews/custom/components/card/double-data-card/index.jsx
@@ -129,6 +129,12 @@
    _config.wrap.wrapClass =  `${_config.wrap.selStyle} ${_config.wrap.cardType || ''}`
    if (_config.wrap.shifting === 'true') {
      _config.wrap.shifting = 'shifting'
    } else {
      _config.wrap.shifting = ''
    }
    let wrapStyle = null
    let subcard = fromJS(_card).toJS()
    let subconfig = fromJS(_config).toJS()
@@ -1135,7 +1141,7 @@
    }
    return (
      <div className="double-data-card-box" id={'anchor' + config.uuid} style={config.style}>
      <div className={'double-data-card-box ' + config.wrap.shifting} id={'anchor' + config.uuid} style={config.style}>
        {loading ?
          <div className="loading-mask">
            {data.length ? <div className="ant-spin-blur"></div> : null}
src/tabviews/custom/components/card/double-data-card/index.scss
@@ -305,6 +305,22 @@
    background: rgba(0, 0, 0, 0);
  }
}
.double-data-card-box.shifting {
  .normal-header:not(.header-search) + .toolbar-button {
    position: absolute;
    top: 0px;
    right: 0px;
    button {
      margin-bottom: 0px!important;
    }
  }
  .normal-header:not(.header-search) + .toolbar-button + .pickup-wrap{
    position: relative;
    button {
      position: relative;
    }
  }
}
.double-data-card-box::-webkit-scrollbar {
  width: 7px;
  height: 7px;
src/tabviews/custom/components/chart/antv-bar-line/index.jsx
@@ -1187,7 +1187,8 @@
      })
    }
    if (!plot.legend || plot.legend === 'hidden') {
    let noLegend = !plot.legend || plot.legend === 'hidden'
    if (noLegend) {
      chart.legend(false)
    } else {
      chart.legend({
@@ -1273,7 +1274,9 @@
      view1.scale('value', c)
      view1.axis('value', plot.$yc)
  
      // view1.legend(false)
      if (!noLegend) {
        view1.legend(false)
      }
      let colorIndex = 0
  
@@ -1407,7 +1410,10 @@
    }
    view2.data(dv.rows)
    // view2.legend(false)
    if (!noLegend) {
      view2.legend(false)
    }
    plot.customs.forEach(item => {
      if (item.chartType === 'bar' && !plot.Bar_axis) {