From 54f2a3e1e54a6d8289ccb8d5de158f23150d7a5e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 04 三月 2020 16:11:03 +0800 Subject: [PATCH] 2020-03-04 --- src/templates/tableshare/formconfig.js | 41 ++++++++++++++++++++++++++++++----------- 1 files changed, 30 insertions(+), 11 deletions(-) diff --git a/src/templates/tableshare/formconfig.js b/src/templates/tableshare/formconfig.js index 1f790b1..3f7a21a 100644 --- a/src/templates/tableshare/formconfig.js +++ b/src/templates/tableshare/formconfig.js @@ -788,7 +788,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 +1073,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 +1107,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