From 835b48025a582b1c19c4de128906aff6a5e63612 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 22 八月 2020 12:08:35 +0800 Subject: [PATCH] 2020-08-22 --- src/templates/zshare/formconfig.jsx | 102 --------------------------------------------------- 1 files changed, 0 insertions(+), 102 deletions(-) diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx index 000f39f..1033580 100644 --- a/src/templates/zshare/formconfig.jsx +++ b/src/templates/zshare/formconfig.jsx @@ -517,108 +517,6 @@ } /** - * @description 鑾峰彇涓昏彍鍗曞熀鏈俊鎭〃鍗曢厤缃俊鎭� - * @param {object} menu // 涓昏〃鍩烘湰淇℃伅 - * @param {object} config // 涓昏〃閰嶇疆淇℃伅 - */ -export function getMainMenuForm (menu, _config) { - return [ - { - type: 'select', - key: 'fstMenuId', - label: Formdict['model.menu.level1'], - initVal: menu.fstMenuId, - required: true, - readonly: false, - options: menu.fstMenuList - }, - { - type: 'select', - key: 'parentId', - label: Formdict['model.menu.level2'], - initVal: menu.ParentID, - required: true, - readonly: false, - options: menu.supMenuList - }, - { - type: 'text', - key: 'MenuName', - label: Formdict['model.menu'] + Formdict['model.name'], - initVal: menu.MenuName, - required: true, - readonly: false - }, - { - type: 'text', - key: 'MenuNo', - label: Formdict['model.menu'] + Formdict['model.param'], - initVal: menu.MenuNo, - required: true, - readonly: false - }, - { - type: 'select', - key: 'opentype', - label: Formdict['model.openway'], - initVal: menu.PageParam.OpenType, - required: true, - options: [{ - MenuID: 'newtab', - text: Formdict['model.form.tab'] - }, { - MenuID: 'newpage', - text: Formdict['model.form.newpage'] - }, { - MenuID: 'currenttab', - text: Formdict['header.form.currenttab'] - }] - }, - { - type: 'text', - key: 'easyCode', - label: Formdict['header.form.easyCode'], - initVal: _config.easyCode, - required: false, - readonly: false - } - ] -} - -/** - * @description 鑾峰彇瀛愯彍鍗曞熀鏈俊鎭〃鍗曢厤缃俊鎭� - * @param {object} config // 瀛愯〃閰嶇疆淇℃伅 - */ -export function getSubMenuForm (config) { - return [ - { - type: 'text', - key: 'MenuName', - label: Formdict['header.menu.viewName'], - initVal: config.tabName, - required: true, - readonly: false - }, - { - type: 'text', - key: 'MenuNo', - label: Formdict['model.menu'] + Formdict['model.param'], - initVal: config.tabNo, - required: true, - readonly: false - }, - { - type: 'text', - key: 'Remark', - label: Formdict['header.menu.Remark'], - initVal: config.Remark, - required: false, - readonly: false - } - ] -} - -/** * @description 鑾峰彇鎼滅储鏉′欢琛ㄥ崟閰嶇疆淇℃伅 * @param {object} card // 鎼滅储鏉′欢瀵硅薄 * @param {Array} roleList // 瑙掕壊鍒楄〃 -- Gitblit v1.8.0