From 75623dd039b742dbb44fb4c6b4af563404ed9c7f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 03 二月 2020 16:06:04 +0800 Subject: [PATCH] 2020-02-03 --- src/templates/tableshare/formconfig.js | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 54 insertions(+), 2 deletions(-) diff --git a/src/templates/tableshare/formconfig.js b/src/templates/tableshare/formconfig.js index 38c3fc0..6d4b5b0 100644 --- a/src/templates/tableshare/formconfig.js +++ b/src/templates/tableshare/formconfig.js @@ -190,6 +190,19 @@ value: 'button', text: Formdict['header.form.button'] }] + }, + { + type: 'radio', + key: 'database', + label: Formdict['header.form.database'], + initVal: card.database || 'local', + options: [{ + value: 'local', + text: Formdict['header.form.database.local'] + }, { + value: 'sso', + text: Formdict['header.form.database.sso'] + }] } ] } @@ -673,7 +686,16 @@ * @param {*} card * @param {*} inputfields */ -export function getModalForm (card, inputfields) { +export function getModalForm (card, inputfields, subtable = false) { + let _openType = [] + + if (subtable) { + _openType.push({ + value: 'linkMain', + text: Formdict['header.form.linkMain'] + }) + } + return [ { type: 'text', @@ -727,7 +749,11 @@ }, { value: 'textarea', text: Formdict['header.form.textarea'] - }] + }, { + value: 'funcvar', + text: Formdict['header.form.funcvar'] + }, + ..._openType] }, { type: 'text', @@ -872,6 +898,32 @@ }] }, { + type: 'radio', + key: 'hidden', + label: Formdict['header.form.field.ishidden'], + initVal: card.hidden || 'false', + options: [{ + value: 'true', + text: Formdict['header.form.true'] + }, { + value: 'false', + text: Formdict['header.form.false'] + }] + }, + { + type: 'radio', + key: 'database', + label: Formdict['header.form.database'], + initVal: card.database || 'local', + options: [{ + value: 'local', + text: Formdict['header.form.database.local'] + }, { + value: 'sso', + text: Formdict['header.form.database.sso'] + }] + }, + { type: 'multiselect', key: 'linkSubField', label: Formdict['header.form.linkForm'], -- Gitblit v1.8.0