From 99966d855531d813197190f68e84f409f4eb1e61 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 10 三月 2022 18:50:37 +0800 Subject: [PATCH] 2022-03-10 --- src/templates/zshare/formconfig.jsx | 34 ++++++++++++++++++++++++++++------ 1 files changed, 28 insertions(+), 6 deletions(-) diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx index 65e24c3..c8e030c 100644 --- a/src/templates/zshare/formconfig.jsx +++ b/src/templates/zshare/formconfig.jsx @@ -2288,9 +2288,9 @@ }, { value: 'datemonth', text: Formdict['model.form.datemonth'] - }, { - value: 'datetime', - text: '鏃ユ湡锛堝垎/绉掞級' + // }, { + // value: 'datetime', + // text: '鏃ユ湡锛堝垎/绉掞級' }, { value: 'textarea', text: Formdict['model.form.textarea'] @@ -2353,9 +2353,9 @@ }, { value: 'datemonth', text: Formdict['model.form.datemonth'] - }, { - value: 'datetime', - text: '鏃ユ湡锛堝垎/绉掞級' + // }, { + // value: 'datetime', + // text: '鏃ユ湡锛堝垎/绉掞級' }, { value: 'textarea', text: Formdict['model.form.textarea'] @@ -2381,6 +2381,9 @@ _fieldlength = 512 } else if (['textarea', 'brafteditor'].includes(card.type)) { _fieldlength = 8000 + } else if (card.type === 'datetime') { + card.type = 'date' + card.precision = 'second' } let options = card.options || [] @@ -2779,6 +2782,25 @@ }] }, { + type: 'radio', + key: 'precision', + label: '绮剧‘搴�', + initVal: card.precision || 'day', + options: [{ + value: 'day', + text: '澶�' + }, { + value: 'hour', + text: '灏忔椂' + }, { + value: 'minute', + text: '鍒嗛挓' + }, { + value: 'second', + text: '绉�' + }] + }, + { type: 'number', key: 'fieldlength', min: 1, -- Gitblit v1.8.0