| | |
| | | |
| | | /** |
| | | * @description 获取图表视图外部配置表单 |
| | | * @param {object} card // 搜索条件对象 |
| | | * @param {Array} roleList // 角色列表-黑名单 |
| | | * @param {Array} columns // 显示列 |
| | | * @param {Array} actions // 按钮组 |
| | | * @param {object} card // 搜索条件对象 |
| | | * @param {Array} roleList // 角色列表-黑名单 |
| | | * @param {Array} columns // 显示列 |
| | | * @param {Array} actions // 按钮组excel |
| | | * @param {Array} extraActions // 常规按钮 |
| | | */ |
| | | export function getChartViewForm (card, roleList = [], _columns, actions) { |
| | | export function getChartViewForm (card, roleList = [], _columns, actions, extraActions) { |
| | | let _charts = [{ |
| | | value: 'line', |
| | | text: '折线图' |
| | |
| | | }] |
| | | }, |
| | | { |
| | | type: 'radio', |
| | | key: 'insert', |
| | | label: '添加卡片', |
| | | initVal: card.insert || 'false', |
| | | tooltip: '选择显示添加卡片,且存在操作类型为添加的按钮时,卡片尾部会增加添加功能卡片(只显示第一个添加按钮)', |
| | | type: 'select', |
| | | key: 'extraAction', |
| | | label: '扩展卡片', |
| | | initVal: card.extraAction || '', |
| | | tooltip: '绑定不选行的按钮,卡片尾部会增加功能卡片', |
| | | required: false, |
| | | options: [{ |
| | | value: 'true', |
| | | text: '显示' |
| | | }, { |
| | | value: 'false', |
| | | text: '隐藏' |
| | | }] |
| | | options: extraActions |
| | | }, |
| | | { |
| | | type: 'multiselect', |
| | |
| | | { |
| | | type: 'multiselect', |
| | | key: 'actions', |
| | | label: '按钮组', |
| | | label: '扩展按钮', |
| | | initVal: card.actions || [], |
| | | tooltip: '可绑定已有的excel导入、导出按钮', |
| | | required: false, |
| | | options: actions |
| | | } |