king
2023-12-30 1f9def3ba3bef13148b67fe4be05832e4c3667a5
2023-12-30
3个文件已修改
93 ■■■■ 已修改文件
src/menu/components/chart/antv-dashboard/chartcompile/formconfig.jsx 60 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/chart/antv-scatter/chartcompile/formconfig.jsx 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/chart/antv-dashboard/chartcompile/formconfig.jsx
@@ -95,7 +95,7 @@
 * @param {Array}  columns    // 显示列
 */
export function getOptionForm (card, columns) {
  let appType = sessionStorage.getItem('appType')
  // let appType = sessionStorage.getItem('appType')
  let yfields = columns.filter(item => /^(Int|Decimal)/ig.test(item.datatype))
  return [
@@ -149,20 +149,20 @@
        value: 'false',
        text: '不使用'
      }]
    }, {
      type: 'radio',
      key: 'download',
      label: '导出图片',
      initVal: card.download || 'forbid',
      required: false,
      forbid: appType === 'mob',
      options: [{
        value: 'forbid',
        text: '禁用'
      }, {
        value: 'enable',
        text: '启用'
      }]
    // }, {
    //   type: 'radio',
    //   key: 'download',
    //   label: '导出图片',
    //   initVal: card.download || 'forbid',
    //   required: false,
    //   forbid: appType === 'mob',
    //   options: [{
    //     value: 'forbid',
    //     text: '禁用'
    //   }, {
    //     value: 'enable',
    //     text: '启用'
    //   }]
    },
    // {
    //   type: 'radio',
@@ -199,7 +199,7 @@
 * @param {Array}  columns    // 显示列
 */
export function getRadioOptionForm (card, columns) {
  let appType = sessionStorage.getItem('appType')
  // let appType = sessionStorage.getItem('appType')
  let xfields = columns.filter(item => /^Nvarchar/ig.test(item.datatype))
  let yfields = columns.filter(item => /^(Int|Decimal)/ig.test(item.datatype))
@@ -264,20 +264,20 @@
        value: 'false',
        text: '不使用'
      }]
    }, {
      type: 'radio',
      key: 'download',
      label: '导出图片',
      initVal: card.download || 'forbid',
      required: false,
      forbid: appType === 'mob',
      options: [{
        value: 'forbid',
        text: '禁用'
      }, {
        value: 'enable',
        text: '启用'
      }]
    // }, {
    //   type: 'radio',
    //   key: 'download',
    //   label: '导出图片',
    //   initVal: card.download || 'forbid',
    //   required: false,
    //   forbid: appType === 'mob',
    //   options: [{
    //     value: 'forbid',
    //     text: '禁用'
    //   }, {
    //     value: 'enable',
    //     text: '启用'
    //   }]
    },
    {
      type: 'color',
src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx
@@ -164,6 +164,9 @@
      controlFields: [
        {field: 'type', values: ['nest']},
        {field: 'legend', values: ['pie', 'ring']},
        {field: 'show', values: ['pie', 'ring']},
        {field: 'splitLine', values: ['pie', 'ring']},
        {field: 'splitColor', values: ['pie', 'ring']},
        {field: 'innerRadius', values: ['nest', 'ring']},
      ]
    },
src/menu/components/chart/antv-scatter/chartcompile/formconfig.jsx
@@ -96,7 +96,7 @@
 * @param {Array}  columns    // 显示列
 */
export function getOptionForm (card, columns) {
  let appType = sessionStorage.getItem('appType')
  // let appType = sessionStorage.getItem('appType')
  let xfields = columns.filter(item => /^Nvarchar/ig.test(item.datatype))
  let yfields = columns.filter(item => /^(Int|Decimal)/ig.test(item.datatype))
@@ -152,20 +152,20 @@
        value: 'false',
        text: '隐藏'
      }]
    }, {
      type: 'radio',
      key: 'download',
      label: '导出图片',
      initVal: card.download || 'forbid',
      required: false,
      forbid: appType === 'mob',
      options: [{
        value: 'forbid',
        text: '禁用'
      }, {
        value: 'enable',
        text: '启用'
      }]
    // }, {
    //   type: 'radio',
    //   key: 'download',
    //   label: '导出图片',
    //   initVal: card.download || 'forbid',
    //   required: false,
    //   forbid: appType === 'mob',
    //   options: [{
    //     value: 'forbid',
    //     text: '禁用'
    //   }, {
    //     value: 'enable',
    //     text: '启用'
    //   }]
    },
    {
      type: 'radio',