From 1dfd49b103e721f9bb63fd4d472b6fcc225d94a1 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 12 三月 2020 18:42:20 +0800 Subject: [PATCH] 2020-03-12 --- src/templates/tableshare/formconfig.js | 51 ++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 40 insertions(+), 11 deletions(-) diff --git a/src/templates/tableshare/formconfig.js b/src/templates/tableshare/formconfig.js index 1f790b1..57410cd 100644 --- a/src/templates/tableshare/formconfig.js +++ b/src/templates/tableshare/formconfig.js @@ -205,6 +205,16 @@ }] }, { + type: 'number', + key: 'ratio', + min: 1, + max: 24, + label: Formdict['header.form.ratio'], + tooltip: '姣忚鍒嗕负24浠斤紝姣斾緥鍙缃负1-24', + initVal: card.ratio, + required: false + }, + { type: 'select', key: 'quick', label: Formdict['header.form.quickadd'], @@ -788,7 +798,7 @@ * @param {*} card * @param {*} inputfields */ -export function getModalForm (card, inputfields, linkableFields, subtable = false) { +export function getModalForm (card, inputfields, linkableFields, linksupFields, subtable = false) { let _openType = [] let _fieldlength = 50 @@ -1073,11 +1083,30 @@ }] }, { - type: 'multiselect', - key: 'linkSubField', - label: Formdict['header.form.linkForm'], - initVal: card.linkSubField || [], - options: inputfields + type: 'number', + key: 'maxRows', + label: Formdict['header.form.maxRows'], + initVal: card.maxRows || 6, + required: false + }, + { + type: 'select', + key: 'supField', + label: '涓婄骇琛ㄥ崟', + tooltip: '涓婄骇琛ㄥ崟涓轰笅鎷夐�夋嫨鎴栧叧鑱旇彍鍗曪紝璁剧疆涓婄骇琛ㄥ崟鍚庯紝璇ヨ〃鍗曞彈鎺т簬涓婄骇鑿滃崟锛屾敞锛氬彈鎺у叧绯诲湪璇ヨ〃鍗曢殣钘忔椂澶辨晥銆�', + initVal: card.supField || '', + required: false, + readonly: false, + options: linksupFields + }, + { + type: 'text', + key: 'supvalue', + label: '鏄剧ず鍊�', + tooltip: '閫夋嫨涓婄骇琛ㄥ崟鍚庯紝濉啓鏄剧ず鍊硷紝鍙湁涓婄骇琛ㄥ崟鍊间笌鏄剧ず鍊肩浉鍚屾椂锛岃琛ㄥ崟鎵嶄細鏄剧ず锛屾敞锛氬涓�肩敤閫楀彿鍒嗛殧銆�', + initVal: card.supvalue || '', + required: true, + readonly: false }, { type: 'select', @@ -1088,11 +1117,11 @@ options: [] }, { - type: 'number', - key: 'maxRows', - label: Formdict['header.form.maxRows'], - initVal: card.maxRows || 6, - required: false + type: 'multiselect', + key: 'linkSubField', + label: Formdict['header.form.linkForm'], + initVal: card.linkSubField || [], + options: inputfields } ] } \ No newline at end of file -- Gitblit v1.8.0