From 71fce3cc19f80a6e0eba36cfc5e67995ee9712ff Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 23 七月 2020 09:23:59 +0800 Subject: [PATCH] 2020-07-23 --- src/templates/zshare/formconfig.jsx | 32 ++++++++++++++------------------ 1 files changed, 14 insertions(+), 18 deletions(-) diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx index c0774c5..fc2a31e 100644 --- a/src/templates/zshare/formconfig.jsx +++ b/src/templates/zshare/formconfig.jsx @@ -1576,12 +1576,13 @@ /** * @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 // 鎸夐挳缁別xcel + * @param {Array} extraActions // 甯歌鎸夐挳 */ -export function getChartViewForm (card, roleList = [], _columns, actions) { +export function getChartViewForm (card, roleList = [], _columns, actions, extraActions) { let _charts = [{ value: 'line', text: '鎶樼嚎鍥�' @@ -1739,19 +1740,13 @@ }] }, { - 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', @@ -1764,8 +1759,9 @@ { type: 'multiselect', key: 'actions', - label: '鎸夐挳缁�', + label: '鎵╁睍鎸夐挳', initVal: card.actions || [], + tooltip: '鍙粦瀹氬凡鏈夌殑excel瀵煎叆銆佸鍑烘寜閽�', required: false, options: actions } -- Gitblit v1.8.0