king
2020-07-16 9a82bce9cf0ed4a51c1b0b0669eaa38cedbace07
src/templates/zshare/formconfig.jsx
@@ -1579,8 +1579,9 @@
 * @param {object} card       // 搜索条件对象
 * @param {Array}  roleList   // 角色列表-黑名单
 * @param {Array}  columns    // 显示列
 * @param {Array}  actions    // 按钮组
 */
export function getChartViewForm (card, roleList = [], _columns) {
export function getChartViewForm (card, roleList = [], _columns, actions) {
  let _charts = [{
    value: 'line',
    text: '折线图'
@@ -1759,6 +1760,14 @@
      initVal: card.blacklist || [],
      required: false,
      options: roleList
    },
    {
      type: 'multiselect',
      key: 'actions',
      label: '按钮组',
      initVal: card.actions || [],
      required: false,
      options: actions
    }
  ]
}