From 87d89bec68cec7d62b8d8506e7975e3cce48df36 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 24 十二月 2021 18:35:58 +0800 Subject: [PATCH] 2021-12-24 --- src/menu/components/share/actioncomponent/formconfig.jsx | 32 +++++++++++++++++++------------- 1 files changed, 19 insertions(+), 13 deletions(-) diff --git a/src/menu/components/share/actioncomponent/formconfig.jsx b/src/menu/components/share/actioncomponent/formconfig.jsx index 24c2e3a..a5e48dd 100644 --- a/src/menu/components/share/actioncomponent/formconfig.jsx +++ b/src/menu/components/share/actioncomponent/formconfig.jsx @@ -1,5 +1,6 @@ import zhCN from '@/locales/zh-CN/model.js' import enUS from '@/locales/en-US/model.js' +import { btnCustomClasses } from '@/utils/option.js' const Formdict = sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS @@ -14,6 +15,7 @@ export function getActionForm (card, functip, config, usefulFields, type, menulist = [], modules = []) { let appType = sessionStorage.getItem('appType') let viewType = sessionStorage.getItem('editMenuType') // 寮圭獥 popview + let printTemps = sessionStorage.getItem('printTemps') || [] let setting = config.setting || {} let columns = config.columns || [] let appMenus = [] @@ -111,7 +113,6 @@ ] pageTemps = [ { value: 'linkpage', text: '鍏宠仈鑿滃崟' }, - // { value: 'pay', text: Formdict['model.pay'] }, { value: 'custom', text: '閾炬帴' } ] } else { @@ -147,6 +148,9 @@ if (!card.control && card.controlField) { card.control = 'disabled' + } + if (appType === 'mob' && card.control === 'parent') { + card.control = '' } let forms = [ @@ -197,7 +201,6 @@ label: '鎸夐挳鍚嶇О', initVal: card.label, required: true, - readonly: false }, { type: 'radio', @@ -235,9 +238,7 @@ initVal: card.innerFunc || '', tooltip: functip, fields: usefulFields, - tooltipClass: 'middle', required: false, - readonly: false }, { type: 'select', @@ -246,6 +247,14 @@ initVal: card.pageTemplate || '', required: true, options: pageTemps + }, + { + type: 'select', + key: 'printTemp', + label: '鎵撳嵃妯℃澘', + initVal: card.printTemp || '', + required: true, + options: printTemps }, { type: 'select', @@ -283,7 +292,6 @@ label: Formdict['header.form.outerFunc'], initVal: card.outerFunc || '', required: false, - readonly: false }, { type: 'textarea', @@ -358,7 +366,6 @@ label: Formdict['header.form.callbackFunc'], initVal: card.callbackFunc || '', required: false, - readonly: false }, { type: 'select', @@ -520,7 +527,7 @@ tooltip: '姝ら鑹蹭负鎸夐挳鍒濆鍖栭鑹诧紝鍙湪鏍峰紡璋冩暣涓慨鏀广��', required: false, forbid: type === 'datacard' && appType === 'mob', // 绉诲姩绔紝婊戝姩鏄剧ず鐨勬寜閽笉璁剧疆閫氱敤棰滆壊 - options: [] + options: btnCustomClasses }, { type: 'radio', @@ -685,7 +692,7 @@ type: 'number', key: 'ratio', min: 1, - max: 24, + max: 3000, precision: 0, label: '姣斾緥', initVal: card.ratio || 85, @@ -746,6 +753,7 @@ key: 'control', label: '鎸夐挳鎺у埗', initVal: card.control || (card.controlField ? 'disabled' : ''), + tooltip: '褰撻�夋嫨绂佺敤鎴栭殣钘忥紝涓斿瓧娈靛�间笌鎺у埗鍊肩浉绛夋椂锛屾寜閽細闅愯棌鎴栫鐢ㄣ�傚綋閫夋嫨涓婄骇锛屼富琛ㄥ瓧娈靛�间笌鎺у埗鍊肩浉绛夋垨涓昏〃瀛楁鍊间笉瀛樺湪鏃讹紝鎸夐挳浼氶殣钘忋�傛敞锛氬涓�肩敤閫楀彿鍒嗛殧', required: false, options: [{ value: '', @@ -756,16 +764,15 @@ }, { value: 'hidden', text: '闅愯棌' - // }, { - // value: 'parent', - // text: '涓婄骇' + }, { + value: 'parent', + text: '涓婄骇' }] }, { type: 'select', key: 'controlField', label: '鎺у埗瀛楁', - tooltip: '鎺у埗瀛楁锛屽彲鏍规嵁鏁版嵁鎺у埗鎸夐挳鐨勯殣钘忔垨绂佺敤銆�', initVal: card.controlField || '', required: true, allowClear: true, @@ -775,7 +782,6 @@ type: 'text', key: 'controlVal', label: '鎺у埗鍊�', - tooltip: '褰撻�夋嫨绂佺敤鎴栭殣钘忥紝涓斿瓧娈靛�间笌鎺у埗鍊肩浉绛夋椂锛屾寜閽細闅愯棌鎴栫鐢紝澶氫釜鍊肩敤閫楀彿鍒嗛殧銆傚綋閫夋嫨涓婄骇鏃讹紝榛樿闅愯棌锛屽彧鏈変富琛ㄨ淇℃伅绗﹀悎鏉′欢鏃舵樉绀猴紝鏍煎紡涓篅field@:values锛宖ield涓轰富琛ㄥ瓧娈靛悕锛寁alues涓哄�煎涓彲鐢ㄩ�楀彿鎷兼帴', initVal: card.controlVal || '', required: false }, -- Gitblit v1.8.0