From e1cee96b38805bcccf48e7bcb9d296f2bc54c720 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 24 一月 2025 11:10:32 +0800
Subject: [PATCH] 2025-01-24
---
src/menu/components/share/actioncomponent/formconfig.jsx | 766 +++++++++++++++++++++++++++++++++++++++++-----------------
1 files changed, 541 insertions(+), 225 deletions(-)
diff --git a/src/menu/components/share/actioncomponent/formconfig.jsx b/src/menu/components/share/actioncomponent/formconfig.jsx
index e37705d..894f804 100644
--- a/src/menu/components/share/actioncomponent/formconfig.jsx
+++ b/src/menu/components/share/actioncomponent/formconfig.jsx
@@ -1,5 +1,5 @@
import React from 'react'
-import { btnClasses } from '@/utils/option.js'
+import { btnClasses, modalClasses } from '@/utils/option.js'
/**
* @description 鑾峰彇鎸夐挳琛ㄥ崟閰嶇疆淇℃伅
@@ -18,12 +18,21 @@
let type = ''
let alltype = config.type + '_' + config.subtype
+ columns = columns.map(item => ({
+ value: item.field,
+ text: `${item.label}锛�${item.field}锛塦
+ }))
+
if (card.eleType === 'button') {
type = 'card'
} else if (config.subtype === 'datacard' || config.subtype === 'tablecard' || config.subtype === 'dualdatacard') {
type = 'datacard'
} else if (config.type === 'line' || config.type === 'bar' || config.type === 'scatter') {
type = 'chart'
+ }
+
+ if (card.color && (type !== 'datacard' || appType !== 'mob') && !card.class) {
+ card.class = 'primary'
}
let opentypes = [
@@ -178,6 +187,9 @@
} else {
appMenus = []
}
+ // if (appType === 'mob') {
+ // appMenus.push({value: 'sign', text: '绛惧悕锛堢郴缁熼〉锛�'})
+ // }
appMenus.push({value: 'goback', text: '杩斿洖锛堜笂涓�椤碉級'})
} else {
menulist = sessionStorage.getItem('fstMenuList')
@@ -202,11 +214,14 @@
{ value: 'mkBinding', text: '寮�閫氭壂鐮佺櫥褰�' },
{ value: 'mkUnBinding', text: '鐢ㄦ埛瑙g粦' },
{ value: 'mkUnsubscribe', text: '娉ㄩ攢璐︽埛' },
- { value: 'reAuth', text: '鍒囨崲绯荤粺锛堟竻绌虹紦瀛�-灏忕▼搴忥級' },
+ { value: 'reAuth', text: '鍒囨崲鎺堟潈鐮� / 灏忕▼搴忔竻绌虹紦瀛�' },
+ { value: 'reSystem', text: '鍒囨崲绯荤粺' },
{ value: 'clearCache', text: '娓呯┖鏈湴閰嶇疆' },
{ value: 'copyurl', text: '澶嶅埗閾炬帴鍦板潃' },
{ value: 'expPdf', text: '瀵煎嚭PDF' },
{ value: 'shareLink', text: '鍒嗕韩閾炬帴' },
+ { value: 'openLocation', text: '鎵撳紑鍦板浘'},
+ { value: 'wxPublicAuth', text: '寰俊鍏紬鍙锋巿鏉�'},
{ value: 'logout', text: '閫�鍑�' },
{ value: 'goBack', text: '杩斿洖' },
]
@@ -218,6 +233,7 @@
opentypes = opentypes.filter(item => item.value !== 'tab')
funTypes = [
{ value: 'print', text: '鏍囩鎵撳嵃' },
+ { value: 'refund', text: '閫�娆�' },
]
pageTemps = [
{ value: 'linkpage', text: '鍏宠仈鑿滃崟' },
@@ -314,8 +330,48 @@
}
let width = card.width || (card.width === 0 ? 0 : 12)
- if (/x/.test(card.width)) {
+ if (card.width && /x/.test(card.width)) {
width = +width.replace(/x/, '.5')
+ }
+
+ let extraParam = []
+ if (card.recordUser === 'true') {
+ extraParam.push('recordUser')
+ }
+ if (card.dataM === 'true') {
+ extraParam.push('dataM')
+ }
+
+ let apps = []
+ let merchs = []
+ if (!appType) {
+ if (typeof(card.openmenu) === 'string') {
+ card.openmenu = []
+ }
+
+ if (window.GLOB.WXApps) {
+ window.GLOB.WXApps.forEach(item => {
+ if (item.appType === 'merchant') {
+ merchs.push({value: item.appId, text: item.appName})
+ } else {
+ apps.push({value: item.appId, text: item.appName})
+ }
+ })
+ }
+ } else {
+ if (typeof(card.openmenu) !== 'string') {
+ card.openmenu = ''
+ }
+ }
+
+ if (card.syncComponents && card.syncComponents[0] && Array.isArray(card.syncComponents[0])) {
+ card.syncComponents = card.syncComponents.map((item, i) => {
+ return {
+ syncComId: item,
+ label: '',
+ uuid: 'fixed' + i
+ }
+ })
}
let forms = [
@@ -399,20 +455,20 @@
required: true,
options: []
},
- {
- type: 'checkbox',
- key: 'payType',
- label: '鏀粯鏂瑰紡',
- initVal: card.payType || [],
- required: true,
- options: [{
- value: 'wxpay',
- text: '寰俊'
- // }, {
- // value: 'alipay',
- // text: '鏀粯瀹�'
- }]
- },
+ // {
+ // type: 'checkbox',
+ // key: 'payType',
+ // label: '鏀粯鏂瑰紡',
+ // initVal: card.payType || [],
+ // required: true,
+ // options: [{
+ // value: 'wxpay',
+ // text: '寰俊'
+ // // }, {
+ // // value: 'alipay',
+ // // text: '鏀粯瀹�'
+ // }]
+ // },
{
type: 'radio',
key: 'procMode',
@@ -448,15 +504,6 @@
},
{
type: 'text',
- key: 'innerFunc',
- label: '鍐呴儴鍑芥暟',
- initVal: card.innerFunc || '',
- tooltip: functip,
- fields: usefulFields,
- required: false,
- },
- {
- type: 'text',
key: 'urlkey',
label: '鍦板潃瀛楁',
initVal: card.urlkey || '',
@@ -471,6 +518,53 @@
initVal: card.pageTemplate || '',
required: true,
options: pageTemps
+ },
+ {
+ type: 'radio',
+ key: 'payMode',
+ label: '鍙傛暟澶勭悊',
+ initVal: card.payMode || 'none',
+ tooltip: '鏀粯锛堟垨閫�娆撅級鍗曞彿鐨勯澶勭悊鏂瑰紡銆�',
+ required: true,
+ options: [{
+ value: 'system',
+ text: '绯荤粺鍑芥暟'
+ }, {
+ value: 'inner',
+ text: '鍐呴儴鍑芥暟'
+ }, {
+ value: 'none',
+ text: '鏃�'
+ }]
+ },
+ {
+ type: 'select',
+ key: 'wxApp',
+ label: '鍏宠仈搴旂敤',
+ initVal: card.wxApp || '',
+ tooltip: '璇峰叧鑱旀敮浠樼殑鍏紬鍙锋垨灏忕▼搴忋��',
+ required: true,
+ forbid: apps.length === 0,
+ options: apps
+ },
+ {
+ type: 'select',
+ key: 'wxMerch',
+ label: '鍏宠仈鍟嗘埛',
+ initVal: card.wxMerch || '',
+ tooltip: '璇峰叧鑱旀敮浠樼殑鍟嗘埛鍙枫��',
+ required: true,
+ forbid: merchs.length === 0,
+ options: merchs
+ },
+ {
+ type: 'text',
+ key: 'innerFunc',
+ label: '鍐呴儴鍑芥暟',
+ initVal: card.innerFunc || '',
+ tooltip: functip,
+ fields: usefulFields,
+ required: false,
},
{
type: 'printTemps',
@@ -506,7 +600,7 @@
key: 'prefix',
label: '鍓嶇紑',
initVal: card.prefix || '',
- tooltip: '鎵爜淇℃伅灏嗕笌鍓嶇紑鎷兼帴鍚庢墽琛屻�傛敞锛氳烦杞彍鍗曢渶浠kbid寮�澶淬��',
+ tooltip: '鎵爜淇℃伅灏嗕笌鍓嶇紑鎷兼帴鍚庢墽琛屻�傛敞锛氳烦杞彍鍗曢渶浠kbid锛�:鎴�,锛夊紑澶达紝mkbid锛�:鎴�,锛夎烦杞悗灏嗚鍘婚櫎銆備緥濡傦細mkbid:123456 璺宠浆鍚庨〉闈ID涓� 123456銆�',
required: false
},
{
@@ -514,7 +608,8 @@
key: 'url',
label: '椤甸潰鍦板潃',
initVal: card.url || '',
- tooltip: appType === '' ? '鍦板潃鏍煎紡涓猴細http://******/admin/index.html#/iframe/menuId/loginuid/BID 浼氭墦寮�鏍囩椤点�傛敞锛氫娇鐢ˊloginuid@鏃惰嚜鍔ㄦ浛鎹负褰撳墠绯荤粺鐨刲oginuid锛涢�夋嫨鍗曡涓旀嫾鎺ュ弬鏁版椂浼氭嫾鎺ID銆�' : '',
+ tooltip: '鍦ㄩ摼鎺ヤ腑浠***@褰㈠紡鎷兼帴鐨勫瓧娈碉紙瀛楁鏉ユ簮浜庡瓧娈甸泦涓紝姝ゅ id銆乤ppkey銆乽serid銆丩oginUID 涓虹郴缁熷瓧娈碉級锛岃烦杞椂灏嗘浛鎹负瀵瑰簲鍊硷紝渚嬪锛歨ttp://sso.mk9h.cn/doc/index.html?appkey=@appkey@&LoginUID=@LoginUID@锛屽叾涓璦ppkey涓嶭oginUID灏嗚鏇挎崲銆�' + (appType === '' ? '鍦板潃鏍煎紡涓猴細******/admin/index.html#/iframe/menuId/@loginuid@ 浼氭墦寮�鏍囩椤点��' : ''),
+ toolWidth: 350,
required: true
},
{
@@ -522,7 +617,8 @@
key: 'proUrl',
label: '姝e紡鍦板潃',
initVal: card.proUrl || '',
- tooltip: appType === '' ? '鍦板潃鏍煎紡涓猴細http://******/admin/index.html#/iframe/menuId/loginuid/BID 浼氭墦寮�鏍囩椤点�傛敞锛氫娇鐢ˊloginuid@鏃惰嚜鍔ㄦ浛鎹负褰撳墠绯荤粺鐨刲oginuid锛涢�夋嫨鍗曡涓旀嫾鎺ュ弬鏁版椂浼氭嫾鎺ID銆�' : '',
+ tooltip: '鍦ㄩ摼鎺ヤ腑浠***@褰㈠紡鎷兼帴鐨勫瓧娈碉紙瀛楁鏉ユ簮浜庡瓧娈甸泦涓紝姝ゅ id銆乤ppkey銆乽serid銆丩oginUID 涓虹郴缁熷瓧娈碉級锛岃烦杞椂灏嗘浛鎹负瀵瑰簲鍊硷紝渚嬪锛歨ttp://sso.mk9h.cn/doc/index.html?appkey=@appkey@&LoginUID=@LoginUID@锛屽叾涓璦ppkey涓嶭oginUID灏嗚鏇挎崲銆�' + (appType === '' ? '鍦板潃鏍煎紡涓猴細******/admin/index.html#/iframe/menuId/@loginuid@ 浼氭墦寮�鏍囩椤点��' : ''),
+ toolWidth: 350,
required: false
},
{
@@ -691,7 +787,7 @@
key: 'execSuccess',
label: '鎴愬姛鍚�',
initVal: card.execSuccess || 'grid',
- tooltip: refresh.length ? '鎵ц鍒锋柊婧愮粍浠舵椂锛岃鍦ㄦ簮鎸夐挳锛堝脊绐楁寜閽級涓缃叧闂悗鍒锋柊閭d竴椤癸紝娉細姝ゆ椂浼氬悓姝ュ埛鏂板綋鍓嶇粍浠跺拰涓婄骇缁勪欢-琛屻�傚闇�璇煶鎾姤璇蜂互@speak@寮�澶达紝鎾姤鍐呭鎴栨枃浠舵斁缃簬<<>>涓�傝繑鍥炰俊鎭紙@retmsg锛夌壒娈婃爣璇嗭細@close_tab@ 鎵ц锛堝叧闂爣绛�-绠$悊绯荤粺锛夛紱@close_popup@ 鎵ц锛堝叧闂脊绐楋級锛汙goback@ 鎵ц锛堣繑鍥炰笂涓�椤�-瀛愬簲鐢級锛汙no_target_menu@ 涓嶆墽琛屾墦寮�鑿滃崟銆�' : '閫夋嫨鍒锋柊琛屾椂锛屽鏋滈�夋嫨澶氭潯鏁版嵁浼氬埛鏂扮粍浠讹紱閫夋嫨鍒锋柊琛� / 缁勪欢鏃讹紝濡傛灉褰撳墠琛屾暟鎹笉瀛樺湪浼氬埛鏂扮粍浠躲�傛敞锛氫笂绾х粍浠跺湪鏁版嵁婧愪腑娣诲姞銆傚闇�璇煶鎾姤璇蜂互@speak@寮�澶达紝鎾姤鍐呭鎴栨枃浠舵斁缃簬<<>>涓�傝繑鍥炰俊鎭紙@retmsg锛夌壒娈婃爣璇嗭細@close_tab@ 鎵ц锛堝叧闂爣绛�-绠$悊绯荤粺锛夛紱@close_popup@ 鎵ц锛堝叧闂脊绐楋級锛汙goback@ 鎵ц锛堣繑鍥炰笂涓�椤�-瀛愬簲鐢級锛汙no_target_menu@ 涓嶆墽琛屾墦寮�鑿滃崟銆�',
+ tooltip: refresh.length ? '鎵ц鍒锋柊婧愮粍浠舵椂锛岃鍦ㄦ簮鎸夐挳锛堝脊绐楁寜閽級涓缃叧闂悗鍒锋柊閭d竴椤癸紝娉細姝ゆ椂浼氬悓姝ュ埛鏂板綋鍓嶇粍浠跺拰涓婄骇缁勪欢-琛屻�傚闇�鑱氱劍琛ㄥ崟璇蜂互 @focus:鑱氱劍瀛楁@ 鏍煎紡杩斿洖銆傚闇�璇煶鎾姤璇蜂互@speak@寮�澶达紝鎾姤鍐呭鎴栨枃浠舵斁缃簬<<>>涓�傝繑鍥炰俊鎭紙@retmsg锛夌壒娈婃爣璇嗭細@close_tab@ 鎵ц锛堝叧闂爣绛�-绠$悊绯荤粺锛夛紱@close_popup@ 鎵ц锛堝叧闂脊绐楋級锛汙goback@ 鎵ц锛堣繑鍥炰笂涓�椤�-瀛愬簲鐢級锛汙no_target_menu@ 涓嶆墽琛屾墦寮�鑿滃崟銆�' : '閫夋嫨鍒锋柊琛屾椂锛屽鏋滈�夋嫨澶氭潯鏁版嵁浼氬埛鏂扮粍浠讹紱閫夋嫨鍒锋柊琛� / 缁勪欢鏃讹紝濡傛灉褰撳墠琛屾暟鎹笉瀛樺湪浼氬埛鏂扮粍浠躲�傛敞锛氫笂绾х粍浠跺湪鏁版嵁婧愪腑娣诲姞銆傚闇�鑱氱劍琛ㄥ崟璇蜂互 @focus:鑱氱劍瀛楁@ 鏍煎紡杩斿洖銆傚闇�璇煶鎾姤璇蜂互@speak@寮�澶达紝鎾姤鍐呭鎴栨枃浠舵斁缃簬<<>>涓�傝繑鍥炰俊鎭紙@retmsg锛夌壒娈婃爣璇嗭細@close_tab@ 鎵ц锛堝叧闂爣绛�-绠$悊绯荤粺锛夛紱@close_popup@ 鎵ц锛堝叧闂脊绐楋級锛汙goback@ 鎵ц锛堣繑鍥炰笂涓�椤�-瀛愬簲鐢級锛汙no_target_menu@ 涓嶆墽琛屾墦寮�鑿滃崟銆�',
required: true,
options: [{
value: 'never',
@@ -710,6 +806,9 @@
}, {
value: 'mainline',
text: '鍒锋柊涓婄骇缁勪欢 - 琛�'
+ }, {
+ value: 'maingrid',
+ text: '鍒锋柊涓婄骇缁勪欢'
},
...closetab,
...refresh]
@@ -719,7 +818,7 @@
key: 'execError',
label: '澶辫触鍚�',
initVal: card.execError || 'never',
- tooltip: refresh.length ? '鎵ц鍒锋柊婧愮粍浠舵椂锛岃鍦ㄦ簮鎸夐挳锛堝脊绐楁寜閽級涓缃叧闂悗鍒锋柊閭d竴椤癸紝娉細姝ゆ椂浼氬悓姝ュ埛鏂板綋鍓嶇粍浠跺拰涓婄骇缁勪欢-琛屻�傚闇�璇煶鎾姤璇蜂互@speak@寮�澶达紝鎾姤鍐呭鎴栨枃浠舵斁缃簬<<>>涓�傝繑鍥炰俊鎭紙@retmsg锛夌壒娈婃爣璇嗭細@close_tab@ 鎵ц锛堝叧闂爣绛�-绠$悊绯荤粺锛夛紱@close_popup@ 鎵ц锛堝叧闂脊绐楋級锛汙goback@ 鎵ц锛堣繑鍥炰笂涓�椤�-瀛愬簲鐢級銆�' : '閫夋嫨鍒锋柊琛屾椂锛屽鏋滈�夋嫨澶氭潯鏁版嵁浼氬埛鏂扮粍浠讹紱閫夋嫨鍒锋柊琛� / 缁勪欢鏃讹紝濡傛灉褰撳墠琛屾暟鎹笉瀛樺湪浼氬埛鏂扮粍浠躲�傛敞锛氫笂绾х粍浠跺湪鏁版嵁婧愪腑娣诲姞銆傚闇�璇煶鎾姤璇蜂互@speak@寮�澶达紝鎾姤鍐呭鎴栨枃浠舵斁缃簬<<>>涓�傝繑鍥炰俊鎭紙@retmsg锛夌壒娈婃爣璇嗭細@close_tab@ 鎵ц锛堝叧闂爣绛�-绠$悊绯荤粺锛夛紱@close_popup@ 鎵ц锛堝叧闂脊绐楋級锛汙goback@ 鎵ц锛堣繑鍥炰笂涓�椤�-瀛愬簲鐢級銆�',
+ tooltip: refresh.length ? '鎵ц鍒锋柊婧愮粍浠舵椂锛岃鍦ㄦ簮鎸夐挳锛堝脊绐楁寜閽級涓缃叧闂悗鍒锋柊閭d竴椤癸紝娉細姝ゆ椂浼氬悓姝ュ埛鏂板綋鍓嶇粍浠跺拰涓婄骇缁勪欢-琛屻�傚闇�璇煶鎾姤璇蜂互@speak@寮�澶达紝鎾姤鍐呭鎴栨枃浠舵斁缃簬<<>>涓�傝繑鍥炰俊鎭紙@retmsg锛夌壒娈婃爣璇嗭細@close_tab@ 鎵ц锛堝叧闂爣绛�-绠$悊绯荤粺锛夛紱@close_popup@ 鎵ц锛堝叧闂脊绐楋級锛汙goback@ 鎵ц锛堣繑鍥炰笂涓�椤�-瀛愬簲鐢級锛汙open_target_menu@ 鍙墽琛屾墦寮�鑿滃崟銆�' : '閫夋嫨鍒锋柊琛屾椂锛屽鏋滈�夋嫨澶氭潯鏁版嵁浼氬埛鏂扮粍浠讹紱閫夋嫨鍒锋柊琛� / 缁勪欢鏃讹紝濡傛灉褰撳墠琛屾暟鎹笉瀛樺湪浼氬埛鏂扮粍浠躲�傛敞锛氫笂绾х粍浠跺湪鏁版嵁婧愪腑娣诲姞銆傚闇�璇煶鎾姤璇蜂互@speak@寮�澶达紝鎾姤鍐呭鎴栨枃浠舵斁缃簬<<>>涓�傝繑鍥炰俊鎭紙@retmsg锛夌壒娈婃爣璇嗭細@close_tab@ 鎵ц锛堝叧闂爣绛�-绠$悊绯荤粺锛夛紱@close_popup@ 鎵ц锛堝叧闂脊绐楋級锛汙goback@ 鎵ц锛堣繑鍥炰笂涓�椤�-瀛愬簲鐢級锛汙open_target_menu@ 鍙墽琛屾墦寮�鑿滃崟銆�',
required: true,
options: [{
value: 'never',
@@ -738,6 +837,9 @@
}, {
value: 'mainline',
text: '鍒锋柊涓婄骇缁勪欢 - 琛�'
+ }, {
+ value: 'maingrid',
+ text: '鍒锋柊涓婄骇缁勪欢'
},
...refresh]
},
@@ -751,11 +853,18 @@
value: 'never',
text: '涓嶅埛鏂�'
}, {
+ value: 'line',
+ text: '鍒锋柊琛�',
+ $disabled: !['table_normaltable', 'table_editable', 'table_basetable', 'card_datacard', 'card_dualdatacard'].includes(alltype)
+ }, {
value: 'grid',
text: '鍒锋柊褰撳墠缁勪欢'
}, {
value: 'mainline',
text: '鍒锋柊涓婄骇缁勪欢 - 琛�'
+ }, {
+ value: 'maingrid',
+ text: '鍒锋柊涓婄骇缁勪欢'
}]
},
{
@@ -771,6 +880,25 @@
value: 'false',
text: '涓嶉噸缃�'
}]
+ },
+ {
+ type: 'select',
+ key: 'nameField',
+ label: '浣嶇疆鍚嶅瓧娈�',
+ initVal: card.nameField || '',
+ tooltip: '鎵撳紑鍦板浘鏃跺彲灞曠ず浣嶇疆鍚嶄笌璇︾粏鍦板潃锛岃缁戝畾鏁版嵁婧愬瓧娈甸泦锛岀粡绾害璇蜂娇鐢╨atitude銆乴ongitude涓旂粡绾害涓嶅彲涓虹┖銆�',
+ required: false,
+ allowClear: true,
+ options: columns
+ },
+ {
+ type: 'select',
+ key: 'addressField',
+ label: '鍦板潃瀛楁',
+ initVal: card.addressField || '',
+ required: false,
+ allowClear: true,
+ options: columns
},
{
type: 'radio',
@@ -861,7 +989,7 @@
initVal: card.hover || '',
tooltip: '榧犳爣鎮诞鎸夐挳涓婃柟鏃剁殑棰滆壊鍙樺寲銆�',
required: false,
- forbid: type === 'card' || appType === 'mob',
+ forbid: appType === 'mob',
options: [{
value: '',
text: '鏃�'
@@ -935,20 +1063,6 @@
}]
},
{
- type: 'radio',
- key: 'joint',
- label: '鎷兼帴鍙傛暟',
- initVal: card.joint || 'true',
- required: false,
- options: [{
- value: 'true',
- text: '鏄�'
- }, {
- value: 'false',
- text: '鍚�'
- }]
- },
- {
type: 'text',
key: 'sheet',
label: '琛ㄥ悕',
@@ -960,9 +1074,66 @@
key: 'syncComponent',
label: '鍒锋柊缁勪欢',
initVal: card.syncComponent || [],
- tooltip: '鎵ц鎴愬姛鍚庯紙鎴栧脊绐楁爣绛惧叧闂椂锛夛紝闇�瑕佸悓姝ュ埛鏂扮殑缁勪欢銆傛敞锛氶�夋嫨褰撳墠缁勪欢鐨勪笂绾х粍浠舵棤鏁堬紝鍒锋柊涓婄骇缁勪欢璇烽�夋嫨鎴愬姛鍚庘�滃埛鏂颁笂绾х粍浠� - 琛屸�濄��',
+ tooltip: '鎵ц鎴愬姛鍚庯紙鎵ц澶辫触涓斿瓨鍦ㄥ埛鏂伴」銆佸脊绐楁爣绛惧叧闂級锛岄渶瑕佸悓姝ュ埛鏂扮殑缁勪欢銆傛敞锛氶�夋嫨褰撳墠缁勪欢鐨勪笂绾х粍浠舵棤鏁堬紝鍒锋柊涓婄骇缁勪欢璇烽�夋嫨鎴愬姛鍚庘�滃埛鏂颁笂绾х粍浠� - 琛屸�濄��',
required: false,
options: modules.length ? [...modules, {value: 'multiComponent', label: '澶氱粍浠�'}] : []
+ },
+ {
+ type: 'cascader',
+ key: 'refreshTab',
+ label: '鍒锋柊鑿滃崟',
+ initVal: card.refreshTab || [],
+ tooltip: '鎵ц鎴愬姛鍚庯紙鎴栨墽琛屽け璐ヤ笖瀛樺湪鍒锋柊椤规椂锛夛紝闇�瑕佸悓姝ュ埛鏂扮殑鑿滃崟',
+ required: false,
+ forbid: isApp || viewType === 'popview',
+ options: menulist
+ },
+ {
+ type: 'radio',
+ key: 'urlPar',
+ label: 'URL鍙橀噺',
+ initVal: card.urlPar || 'false',
+ tooltip: '鍒锋柊鑿滃崟鏃舵槸鍚︽竻闄RL鍙橀噺銆�',
+ required: false,
+ options: [{
+ value: 'true',
+ text: '娓呯┖'
+ }, {
+ value: 'false',
+ text: '涓嶆竻绌�'
+ }],
+ forbid: isApp || viewType === 'popview',
+ },
+ {
+ type: !appType ? 'cascader' : 'select',
+ key: 'openmenu',
+ label: '鎵撳紑鑿滃崟',
+ tooltip: '鎵ц鎴愬姛鍚庯紙鎴栧け璐ユ椂杩斿洖@open_target_menu@锛夐渶瑕佹墦寮�鐨勮彍鍗曘��',
+ initVal: card.openmenu || (!appType ? [] : ''),
+ help: appType === 'mob' || appType === 'pc' ? '鍙繑鍥炰笂涓�椤点��' : null,
+ extendName: 'MenuNo',
+ required: false,
+ allowClear: true,
+ options: appType === 'mob' || appType === 'pc' ? appMenus : menulist,
+ forbid: viewType === 'popview'
+ },
+ {
+ type: 'cascader',
+ key: 'switchTab',
+ label: '鍒囨崲鏍囩',
+ initVal: card.switchTab || [],
+ tooltip: '鎵ц鎴愬姛鍚庯紝闇�瑕佸垏鎹㈢殑鏍囩椤点��' + (appType === 'mob' ? '娉細灏忕▼搴忎腑鏃犳晥' : ''),
+ required: false,
+ options: tabs
+ },
+ {
+ type: 'cascader',
+ key: 'anchors',
+ label: '璺宠浆閿氱偣',
+ initVal: card.anchors || [],
+ tooltip: '鎵ц鎴愬姛鍚庯紝闇�瑕佽烦杞殑閿氱偣銆�' + (appType === 'mob' ? '娉細灏忕▼搴忎腑鏃犳晥' : ''),
+ required: false,
+ options: anchors
},
{
type: 'radio',
@@ -996,47 +1167,6 @@
forbid: appType === 'mob'
},
{
- type: 'cascader',
- key: 'switchTab',
- label: '鍒囨崲鏍囩',
- initVal: card.switchTab || [],
- tooltip: '鎵ц鎴愬姛鍚庯紝闇�瑕佸垏鎹㈢殑鏍囩椤点��' + (appType === 'mob' ? '娉細灏忕▼搴忎腑鏃犳晥' : ''),
- required: false,
- options: tabs
- },
- {
- type: 'cascader',
- key: 'anchors',
- label: '璺宠浆閿氱偣',
- initVal: card.anchors || [],
- tooltip: '鎵ц鎴愬姛鍚庯紝闇�瑕佽烦杞殑閿氱偣銆�' + (appType === 'mob' ? '娉細灏忕▼搴忎腑鏃犳晥' : ''),
- required: false,
- options: anchors
- },
- {
- type: 'cascader',
- key: 'refreshTab',
- label: '鍒锋柊鑿滃崟',
- initVal: card.refreshTab || [],
- tooltip: '鎵ц鎴愬姛鍚庯紙鎴栧姛鑳芥寜閽腑鏍囩鍏抽棴绫诲瀷锛夛紝闇�瑕佸悓姝ュ埛鏂扮殑鑿滃崟',
- required: false,
- forbid: isApp || viewType === 'popview',
- options: menulist
- },
- {
- type: !appType ? 'cascader' : 'select',
- key: 'openmenu',
- label: '鎵撳紑鑿滃崟',
- tooltip: '鎵ц鎴愬姛鍚庨渶瑕佹墦寮�鐨勮彍鍗曘��',
- initVal: card.openmenu || (!appType ? [] : ''),
- help: appType === 'mob' || appType === 'pc' ? '鍙繑鍥炰笂涓�椤点��' : null,
- extendName: 'MenuNo',
- required: false,
- allowClear: true,
- options: appType === 'mob' || appType === 'pc' ? appMenus : menulist,
- forbid: viewType === 'popview'
- },
- {
type: 'select',
key: 'preButton',
label: '鍓嶇疆鎸夐挳',
@@ -1060,7 +1190,7 @@
key: 'tipTitle',
label: '纭鎻愮ず',
initVal: card.tipTitle || '',
- tooltip: '娉細寮圭獥锛堣〃鍗曪級鍦ㄦ樉绀轰负鏄惁妗嗘椂鏈夋晥銆�',
+ tooltip: '鎻愮ず妗嗙殑纭鎻愮ず淇℃伅銆�',
required: false
},
{
@@ -1081,10 +1211,7 @@
required: false,
allowClear: true,
forbid: position !== 'line',
- options: columns.map(item => ({
- value: item.field,
- text: `${item.label}锛�${item.field}锛塦
- }))
+ options: columns
},
{
type: 'radio',
@@ -1259,18 +1386,18 @@
forbid: appType === 'mob'
},
{
- type: 'radio',
- key: 'recordUser',
- label: '璁板綍鐢ㄦ埛',
- initVal: card.recordUser || 'false',
- tooltip: '褰撻�夋嫨鈥滄槸鈥濇椂锛屽唴閮ㄥ嚱鏁扮殑浼犲弬浼氬鍔� username 涓� fullname銆�',
+ type: 'checkbox',
+ key: 'extraParam',
+ label: '鎵╁睍鍙傛暟',
+ initVal: extraParam,
+ tooltip: '閫夋嫨鈥滅敤鎴蜂俊鎭�濇椂锛屽唴閮ㄥ嚱鏁扮殑浼犲弬浼氬鍔� username 涓� fullname銆傞�夋嫨鈥滄暟鎹鐞嗗憳鈥濇椂锛屽唴閮ㄥ嚱鏁扮殑浼犲弬浼氬鍔� dataM 锛岀鐞嗗憳鍊间负鈥淵鈥濓紝鏅�氱敤鎴蜂负绌恒��',
required: false,
options: [{
- value: 'false',
- text: '鍚�'
+ value: 'recordUser',
+ text: '鐢ㄦ埛淇℃伅'
}, {
- value: 'true',
- text: '鏄�'
+ value: 'dataM',
+ text: '鏁版嵁绠$悊鍛�'
}]
},
{
@@ -1301,10 +1428,7 @@
initVal: card.controlField || '',
required: true,
allowClear: true,
- options: columns.map(item => ({
- value: item.field,
- text: `${item.label}锛�${item.field}锛塦
- }))
+ options: columns
},
{
type: 'text',
@@ -1319,21 +1443,6 @@
label: '绂佺敤鍘熷洜',
initVal: card.reason || '',
required: false
- },
- {
- type: 'radio',
- key: 'formCache',
- label: '琛ㄥ崟缂撳瓨',
- initVal: card.formCache || 'false',
- tooltip: '涓昏鐢ㄤ簬鏁版嵁淇敼鍚庯紝鏇存柊鐩稿叧琛ㄥ崟鐨勯�夐」锛屾竻绌虹紦瀛樺悗琛ㄥ崟鍐嶆鎵撳紑鏃舵暟鎹細閲嶆柊鍔犺浇銆�',
- required: false,
- options: [{
- value: 'false',
- text: '涓嶆竻绌�'
- }, {
- value: 'clear',
- text: '娓呯┖'
- }]
},
{
type: 'radio',
@@ -1352,15 +1461,86 @@
},
{
type: 'radio',
+ key: 'database',
+ label: '鏁版嵁搴�',
+ initVal: card.database || 'local',
+ options: [{
+ value: 'local',
+ text: '鏈湴'
+ }, {
+ value: 'sso',
+ text: '鍗曠偣'
+ }]
+ },
+ {
+ type: 'radio',
key: 'permission',
label: '鏉冮檺楠岃瘉',
initVal: card.permission || 'true',
required: false,
options: [
- {value: 'true', text: '缁ф壙鑿滃崟'},
+ {value: 'true', text: '缁ф壙缁勪欢'},
{value: 'false', text: '绂佺敤'},
],
forbid: viewType === 'popview'
+ },
+ {
+ type: 'radio',
+ key: 'extBtn',
+ label: '鎵╁睍鎸夐挳',
+ initVal: card.extBtn || 'false',
+ tooltip: '鐐瑰嚮鎵╁睍鎸夐挳鏃讹紝鍙橀噺 mk_submit_type 灏嗚璧嬪�笺��',
+ required: false,
+ options: [
+ {value: 'true', text: '鍚敤'},
+ {value: 'false', text: '绂佺敤'},
+ ],
+ forbid: appType === 'mob'
+ },
+ {
+ type: 'text',
+ key: 'extValue',
+ label: '鎵╁睍鍊�',
+ initVal: card.extValue || '',
+ required: true,
+ readonly: false,
+ forbid: appType === 'mob'
+ },
+ {
+ type: 'text',
+ key: 'extLabel',
+ label: '鎵╁睍鍚嶇О',
+ initVal: card.extLabel || '',
+ required: true,
+ readonly: false,
+ forbid: appType === 'mob'
+ },
+ {
+ type: 'select',
+ key: 'extStyle',
+ label: '鎵╁睍鏍峰紡',
+ initVal: card.extStyle || '',
+ required: false,
+ options: modalClasses,
+ forbid: appType === 'mob'
+ },
+ {
+ type: 'text',
+ key: 'confLabel',
+ label: '纭畾鍚嶇О',
+ initVal: card.confLabel || '',
+ required: false,
+ readonly: false,
+ forbid: appType === 'mob'
+ },
+ {
+ type: 'select',
+ key: 'confStyle',
+ label: '纭畾鏍峰紡',
+ initVal: card.confStyle || '',
+ required: false,
+ options: modalClasses,
+ forbid: appType === 'mob'
},
{
type: 'splitLine',
@@ -1517,10 +1697,13 @@
required: false,
options: [{
value: '',
- text: '绌�'
+ text: '缁勪欢BID'
}, {
value: 'js',
text: '鍓嶇鐢熸垚'
+ }, {
+ value: 'empty',
+ text: '绌�'
}]
},
{
@@ -1692,6 +1875,32 @@
card.OpenType = 'pop'
}
+ let extraParam = []
+ if (card.recordUser === 'true') {
+ extraParam.push('recordUser')
+ }
+ if (card.dataM === 'true') {
+ extraParam.push('dataM')
+ }
+
+ let apps = []
+ let merchs = []
+
+ if (window.GLOB.WXApps) {
+ window.GLOB.WXApps.forEach(item => {
+ if (item.appType === 'merchant') {
+ merchs.push({value: item.appId, text: item.appName})
+ } else {
+ apps.push({value: item.appId, text: item.appName})
+ }
+ })
+ }
+
+ let width = card.width || (card.width === 0 ? 0 : 12)
+ if (card.width && /x/.test(card.width)) {
+ width = +width.replace(/x/, '.5')
+ }
+
let forms = [
{
type: 'select',
@@ -1752,20 +1961,20 @@
required: true,
options: []
},
- {
- type: 'checkbox',
- key: 'payType',
- label: '鏀粯鏂瑰紡',
- initVal: card.payType || [],
- required: true,
- options: [{
- value: 'wxpay',
- text: '寰俊'
- // }, {
- // value: 'alipay',
- // text: '鏀粯瀹�'
- }]
- },
+ // {
+ // type: 'checkbox',
+ // key: 'payType',
+ // label: '鏀粯鏂瑰紡',
+ // initVal: card.payType || [],
+ // required: true,
+ // options: [{
+ // value: 'wxpay',
+ // text: '寰俊'
+ // // }, {
+ // // value: 'alipay',
+ // // text: '鏀粯瀹�'
+ // }]
+ // },
{
type: 'radio',
key: 'procMode',
@@ -1801,15 +2010,6 @@
},
{
type: 'text',
- key: 'innerFunc',
- label: '鍐呴儴鍑芥暟',
- initVal: card.innerFunc || '',
- tooltip: functip,
- fields: usefulFields,
- required: false,
- },
- {
- type: 'text',
key: 'urlkey',
label: '鍦板潃瀛楁',
initVal: card.urlkey || '',
@@ -1824,6 +2024,53 @@
initVal: card.pageTemplate || '',
required: true,
options: pageTemps
+ },
+ {
+ type: 'radio',
+ key: 'payMode',
+ label: '鍙傛暟澶勭悊',
+ initVal: card.payMode || 'none',
+ tooltip: '鏀粯锛堟垨閫�娆撅級鍗曞彿鐨勯澶勭悊鏂瑰紡銆�',
+ required: true,
+ options: [{
+ value: 'system',
+ text: '绯荤粺鍑芥暟'
+ }, {
+ value: 'inner',
+ text: '鍐呴儴鍑芥暟'
+ }, {
+ value: 'none',
+ text: '鏃�'
+ }]
+ },
+ {
+ type: 'select',
+ key: 'wxApp',
+ label: '鍏宠仈搴旂敤',
+ initVal: card.wxApp || '',
+ tooltip: '璇峰叧鑱旀敮浠樼殑鍏紬鍙锋垨灏忕▼搴忋��',
+ required: true,
+ forbid: apps.length === 0,
+ options: apps
+ },
+ {
+ type: 'select',
+ key: 'wxMerch',
+ label: '鍏宠仈鍟嗘埛',
+ initVal: card.wxMerch || '',
+ tooltip: '璇峰叧鑱旀敮浠樼殑鍟嗘埛鍙枫��',
+ required: true,
+ forbid: merchs.length === 0,
+ options: merchs
+ },
+ {
+ type: 'text',
+ key: 'innerFunc',
+ label: '鍐呴儴鍑芥暟',
+ initVal: card.innerFunc || '',
+ tooltip: functip,
+ fields: usefulFields,
+ required: false,
},
{
type: 'printTemps',
@@ -1859,7 +2106,8 @@
key: 'url',
label: '椤甸潰鍦板潃',
initVal: card.url || '',
- tooltip: '鍦板潃鏍煎紡涓猴細http://******/admin/index.html#/iframe/menuId/loginuid/BID 浼氭墦寮�鏍囩椤点�傛敞锛氫娇鐢ˊloginuid@鏃惰嚜鍔ㄦ浛鎹负褰撳墠绯荤粺鐨刲oginuid锛涢�夋嫨鍗曡涓旀嫾鎺ュ弬鏁版椂浼氭嫾鎺ID銆�',
+ tooltip: '鍦ㄩ摼鎺ヤ腑浠***@褰㈠紡鎷兼帴鐨勫瓧娈碉紙瀛楁鏉ユ簮浜庡瓧娈甸泦涓紝姝ゅ id銆乤ppkey銆乽serid銆丩oginUID 涓虹郴缁熷瓧娈碉級锛岃烦杞椂灏嗘浛鎹负瀵瑰簲鍊硷紝渚嬪锛歨ttp://sso.mk9h.cn/doc/index.html?appkey=@appkey@&LoginUID=@LoginUID@锛屽叾涓璦ppkey涓嶭oginUID灏嗚鏇挎崲銆傚湴鍧�鏍煎紡涓猴細******/admin/index.html#/iframe/menuId/@loginuid@ 浼氭墦寮�鏍囩椤点��',
+ toolWidth: 350,
required: true
},
{
@@ -1867,7 +2115,8 @@
key: 'proUrl',
label: '姝e紡鍦板潃',
initVal: card.proUrl || '',
- tooltip: '鍦板潃鏍煎紡涓猴細http://******/admin/index.html#/iframe/menuId/loginuid/BID 浼氭墦寮�鏍囩椤点�傛敞锛氫娇鐢ˊloginuid@鏃惰嚜鍔ㄦ浛鎹负褰撳墠绯荤粺鐨刲oginuid锛涢�夋嫨鍗曡涓旀嫾鎺ュ弬鏁版椂浼氭嫾鎺ID銆�',
+ tooltip: '鍦ㄩ摼鎺ヤ腑浠***@褰㈠紡鎷兼帴鐨勫瓧娈碉紙瀛楁鏉ユ簮浜庡瓧娈甸泦涓紝姝ゅ id銆乤ppkey銆乽serid銆丩oginUID 涓虹郴缁熷瓧娈碉級锛岃烦杞椂灏嗘浛鎹负瀵瑰簲鍊硷紝渚嬪锛歨ttp://sso.mk9h.cn/doc/index.html?appkey=@appkey@&LoginUID=@LoginUID@锛屽叾涓璦ppkey涓嶭oginUID灏嗚鏇挎崲銆傚湴鍧�鏍煎紡涓猴細******/admin/index.html#/iframe/menuId/@loginuid@ 浼氭墦寮�鏍囩椤点��',
+ toolWidth: 350,
required: false
},
{
@@ -2036,7 +2285,7 @@
key: 'execSuccess',
label: '鎴愬姛鍚�',
initVal: card.execSuccess || 'grid',
- tooltip: refresh.length ? '鎵ц鍒锋柊婧愮粍浠舵椂锛岃鍦ㄦ簮鎸夐挳锛堝脊绐楁寜閽級涓缃叧闂悗鍒锋柊閭d竴椤癸紝娉細姝ゆ椂浼氬悓姝ュ埛鏂板綋鍓嶇粍浠跺拰涓婄骇缁勪欢-琛屻�傚闇�璇煶鎾姤璇蜂互@speak@寮�澶达紝鎾姤鍐呭鎴栨枃浠舵斁缃簬<<>>涓�傝繑鍥炰俊鎭紙@retmsg锛夌壒娈婃爣璇嗭細@close_tab@ 鎵ц锛堝叧闂爣绛�-绠$悊绯荤粺锛夛紱@close_popup@ 鎵ц锛堝叧闂脊绐楋級锛汙goback@ 鎵ц锛堣繑鍥炰笂涓�椤�-瀛愬簲鐢級锛汙no_target_menu@ 涓嶆墽琛屾墦寮�鑿滃崟銆�' : '閫夋嫨鍒锋柊琛屾椂锛屽鏋滈�夋嫨澶氭潯鏁版嵁浼氬埛鏂扮粍浠讹紱閫夋嫨鍒锋柊琛� / 缁勪欢鏃讹紝濡傛灉褰撳墠琛屾暟鎹笉瀛樺湪浼氬埛鏂扮粍浠躲�傛敞锛氫笂绾х粍浠跺湪鏁版嵁婧愪腑娣诲姞銆傚闇�璇煶鎾姤璇蜂互@speak@寮�澶达紝鎾姤鍐呭鎴栨枃浠舵斁缃簬<<>>涓�傝繑鍥炰俊鎭紙@retmsg锛夌壒娈婃爣璇嗭細@close_tab@ 鎵ц锛堝叧闂爣绛�-绠$悊绯荤粺锛夛紱@close_popup@ 鎵ц锛堝叧闂脊绐楋級锛汙goback@ 鎵ц锛堣繑鍥炰笂涓�椤�-瀛愬簲鐢級锛汙no_target_menu@ 涓嶆墽琛屾墦寮�鑿滃崟銆�',
+ tooltip: refresh.length ? '鎵ц鍒锋柊婧愮粍浠舵椂锛岃鍦ㄦ簮鎸夐挳锛堝脊绐楁寜閽級涓缃叧闂悗鍒锋柊閭d竴椤癸紝娉細姝ゆ椂浼氬悓姝ュ埛鏂板綋鍓嶇粍浠跺拰涓婄骇缁勪欢-琛屻�傚闇�鑱氱劍琛ㄥ崟璇蜂互 @focus:鑱氱劍瀛楁@ 鏍煎紡杩斿洖銆傚闇�璇煶鎾姤璇蜂互@speak@寮�澶达紝鎾姤鍐呭鎴栨枃浠舵斁缃簬<<>>涓�傝繑鍥炰俊鎭紙@retmsg锛夌壒娈婃爣璇嗭細@close_tab@ 鎵ц锛堝叧闂爣绛�-绠$悊绯荤粺锛夛紱@close_popup@ 鎵ц锛堝叧闂脊绐楋級锛汙goback@ 鎵ц锛堣繑鍥炰笂涓�椤�-瀛愬簲鐢級锛汙no_target_menu@ 涓嶆墽琛屾墦寮�鑿滃崟銆�' : '閫夋嫨鍒锋柊琛屾椂锛屽鏋滈�夋嫨澶氭潯鏁版嵁浼氬埛鏂扮粍浠讹紱閫夋嫨鍒锋柊琛� / 缁勪欢鏃讹紝濡傛灉褰撳墠琛屾暟鎹笉瀛樺湪浼氬埛鏂扮粍浠躲�傛敞锛氫笂绾х粍浠跺湪鏁版嵁婧愪腑娣诲姞銆傚闇�鑱氱劍琛ㄥ崟璇蜂互 @focus:鑱氱劍瀛楁@ 鏍煎紡杩斿洖銆傚闇�璇煶鎾姤璇蜂互@speak@寮�澶达紝鎾姤鍐呭鎴栨枃浠舵斁缃簬<<>>涓�傝繑鍥炰俊鎭紙@retmsg锛夌壒娈婃爣璇嗭細@close_tab@ 鎵ц锛堝叧闂爣绛�-绠$悊绯荤粺锛夛紱@close_popup@ 鎵ц锛堝叧闂脊绐楋級锛汙goback@ 鎵ц锛堣繑鍥炰笂涓�椤�-瀛愬簲鐢級锛汙no_target_menu@ 涓嶆墽琛屾墦寮�鑿滃崟銆�',
required: true,
options: [{
value: 'never',
@@ -2053,6 +2302,9 @@
}, {
value: 'mainline',
text: '鍒锋柊涓婄骇缁勪欢 - 琛�'
+ }, {
+ value: 'maingrid',
+ text: '鍒锋柊涓婄骇缁勪欢'
},
...refresh]
},
@@ -2061,7 +2313,7 @@
key: 'execError',
label: '澶辫触鍚�',
initVal: card.execError || 'never',
- tooltip: refresh.length ? '鎵ц鍒锋柊婧愮粍浠舵椂锛岃鍦ㄦ簮鎸夐挳锛堝脊绐楁寜閽級涓缃叧闂悗鍒锋柊鍝竴椤癸紝娉細姝ゆ椂浼氬悓姝ュ埛鏂板綋鍓嶇粍浠跺拰涓婄骇缁勪欢-琛屻�傚闇�璇煶鎾姤璇蜂互@speak@寮�澶达紝鎾姤鍐呭鎴栨枃浠舵斁缃簬<<>>涓�傝繑鍥炰俊鎭紙@retmsg锛夌壒娈婃爣璇嗭細@close_tab@ 鎵ц锛堝叧闂爣绛�-绠$悊绯荤粺锛夛紱@close_popup@ 鎵ц锛堝叧闂脊绐楋級锛汙goback@ 鎵ц锛堣繑鍥炰笂涓�椤�-瀛愬簲鐢級銆�' : '閫夋嫨鍒锋柊琛屾椂锛屽鏋滈�夋嫨澶氭潯鏁版嵁浼氬埛鏂扮粍浠讹紱閫夋嫨鍒锋柊琛� / 缁勪欢鏃讹紝濡傛灉褰撳墠琛屾暟鎹笉瀛樺湪浼氬埛鏂扮粍浠躲�傛敞锛氫笂绾х粍浠跺湪鏁版嵁婧愪腑娣诲姞銆傚闇�璇煶鎾姤璇蜂互@speak@寮�澶达紝鎾姤鍐呭鎴栨枃浠舵斁缃簬<<>>涓�傝繑鍥炰俊鎭紙@retmsg锛夌壒娈婃爣璇嗭細@close_tab@ 鎵ц锛堝叧闂爣绛�-绠$悊绯荤粺锛夛紱@close_popup@ 鎵ц锛堝叧闂脊绐楋級锛汙goback@ 鎵ц锛堣繑鍥炰笂涓�椤�-瀛愬簲鐢級銆�',
+ tooltip: refresh.length ? '鎵ц鍒锋柊婧愮粍浠舵椂锛岃鍦ㄦ簮鎸夐挳锛堝脊绐楁寜閽級涓缃叧闂悗鍒锋柊鍝竴椤癸紝娉細姝ゆ椂浼氬悓姝ュ埛鏂板綋鍓嶇粍浠跺拰涓婄骇缁勪欢-琛屻�傚闇�璇煶鎾姤璇蜂互@speak@寮�澶达紝鎾姤鍐呭鎴栨枃浠舵斁缃簬<<>>涓�傝繑鍥炰俊鎭紙@retmsg锛夌壒娈婃爣璇嗭細@close_tab@ 鎵ц锛堝叧闂爣绛�-绠$悊绯荤粺锛夛紱@close_popup@ 鎵ц锛堝叧闂脊绐楋級锛汙goback@ 鎵ц锛堣繑鍥炰笂涓�椤�-瀛愬簲鐢級锛汙open_target_menu@ 鍙墽琛屾墦寮�鑿滃崟銆�' : '閫夋嫨鍒锋柊琛屾椂锛屽鏋滈�夋嫨澶氭潯鏁版嵁浼氬埛鏂扮粍浠讹紱閫夋嫨鍒锋柊琛� / 缁勪欢鏃讹紝濡傛灉褰撳墠琛屾暟鎹笉瀛樺湪浼氬埛鏂扮粍浠躲�傛敞锛氫笂绾х粍浠跺湪鏁版嵁婧愪腑娣诲姞銆傚闇�璇煶鎾姤璇蜂互@speak@寮�澶达紝鎾姤鍐呭鎴栨枃浠舵斁缃簬<<>>涓�傝繑鍥炰俊鎭紙@retmsg锛夌壒娈婃爣璇嗭細@close_tab@ 鎵ц锛堝叧闂爣绛�-绠$悊绯荤粺锛夛紱@close_popup@ 鎵ц锛堝叧闂脊绐楋級锛汙goback@ 鎵ц锛堣繑鍥炰笂涓�椤�-瀛愬簲鐢級锛汙open_target_menu@ 鍙墽琛屾墦寮�鑿滃崟銆�',
required: true,
options: [{
value: 'never',
@@ -2078,6 +2330,9 @@
}, {
value: 'mainline',
text: '鍒锋柊涓婄骇缁勪欢 - 琛�'
+ }, {
+ value: 'maingrid',
+ text: '鍒锋柊涓婄骇缁勪欢'
},
...refresh]
},
@@ -2091,11 +2346,17 @@
value: 'never',
text: '涓嶅埛鏂�'
}, {
+ value: 'line',
+ text: '鍒锋柊琛�'
+ }, {
value: 'grid',
text: '鍒锋柊褰撳墠缁勪欢'
}, {
value: 'mainline',
text: '鍒锋柊涓婄骇缁勪欢 - 琛�'
+ }, {
+ value: 'maingrid',
+ text: '鍒锋柊涓婄骇缁勪欢'
}]
},
{
@@ -2164,18 +2425,18 @@
tooltip: '鍒嗕韩鏃跺鐢ㄦ埛鐨勬彁绀轰俊鎭��',
required: false
},
- // {
- // type: 'number',
- // key: 'width',
- // min: 1,
- // max: 24,
- // precision: 0,
- // label: '瀹藉害',
- // initVal: card.width || 12,
- // tooltip: '鏍呮牸甯冨眬锛屾瘡琛岀瓑鍒嗕负24鍒椼��',
- // forbid: card.eleType !== 'button',
- // required: true
- // },
+ {
+ type: 'number',
+ key: 'width',
+ min: 0,
+ max: 24,
+ precision: 1,
+ label: '瀹藉害',
+ initVal: width,
+ tooltip: '鏍呮牸甯冨眬锛屾瘡琛岀瓑鍒嗕负24鍒椼�備负 0 鏃跺搴﹁嚜閫傚簲銆傚彲璁剧疆鍗婂垪鍗�.5銆�',
+ forbid: position !== 'line',
+ required: true
+ },
{
type: 'radio',
key: 'show',
@@ -2228,20 +2489,6 @@
options: btnClasses
},
{
- type: 'radio',
- key: 'joint',
- label: '鎷兼帴鍙傛暟',
- initVal: card.joint || 'true',
- required: false,
- options: [{
- value: 'true',
- text: '鏄�'
- }, {
- value: 'false',
- text: '鍚�'
- }]
- },
- {
type: 'text',
key: 'sheet',
label: '琛ㄥ悕',
@@ -2253,9 +2500,47 @@
key: 'syncComponent',
label: '鍒锋柊缁勪欢',
initVal: card.syncComponent || [],
- tooltip: '鎵ц鎴愬姛鍚庯紙鎴栧脊绐楁爣绛惧叧闂椂锛夛紝闇�瑕佸悓姝ュ埛鏂扮殑缁勪欢銆傛敞锛氶�夋嫨褰撳墠缁勪欢鐨勪笂绾х粍浠舵棤鏁堬紝鍒锋柊涓婄骇缁勪欢璇烽�夋嫨鎴愬姛鍚庘�滃埛鏂颁笂绾х粍浠� - 琛屸�濄��',
+ tooltip: '鎵ц鎴愬姛鍚庯紙鎵ц澶辫触涓斿瓨鍦ㄥ埛鏂伴」銆佸脊绐楁爣绛惧叧闂級锛岄渶瑕佸悓姝ュ埛鏂扮殑缁勪欢銆傛敞锛氶�夋嫨褰撳墠缁勪欢鐨勪笂绾х粍浠舵棤鏁堬紝鍒锋柊涓婄骇缁勪欢璇烽�夋嫨鎴愬姛鍚庘�滃埛鏂颁笂绾х粍浠� - 琛屸�濄��',
required: false,
options: modules.length ? [...modules, {value: 'multiComponent', label: '澶氱粍浠�'}] : []
+ },
+ {
+ type: 'cascader',
+ key: 'refreshTab',
+ label: '鍒锋柊鑿滃崟',
+ initVal: card.refreshTab || [],
+ tooltip: '鎵ц鎴愬姛鍚庯紙鎴栨墽琛屽け璐ヤ笖瀛樺湪鍒锋柊椤规椂锛夛紝闇�瑕佸悓姝ュ埛鏂扮殑鑿滃崟',
+ required: false,
+ forbid: viewType === 'popview',
+ options: menulist
+ },
+ {
+ type: 'radio',
+ key: 'urlPar',
+ label: 'URL鍙橀噺',
+ initVal: card.urlPar || 'false',
+ tooltip: '鍒锋柊鑿滃崟鏃舵槸鍚︽竻闄RL鍙橀噺銆�',
+ required: false,
+ options: [{
+ value: 'true',
+ text: '娓呯┖'
+ }, {
+ value: 'false',
+ text: '涓嶆竻绌�'
+ }],
+ forbid: viewType === 'popview',
+ },
+ {
+ type: 'cascader',
+ key: 'openmenu',
+ label: '鎵撳紑鑿滃崟',
+ tooltip: '鎵ц鎴愬姛鍚庯紙鎴栧け璐ユ椂杩斿洖@open_target_menu@锛夐渶瑕佹墦寮�鐨勮彍鍗曘��',
+ initVal: card.openmenu || [],
+ extendName: 'MenuNo',
+ required: false,
+ allowClear: true,
+ options: menulist,
+ forbid: viewType === 'popview'
},
{
type: 'radio',
@@ -2287,28 +2572,6 @@
}]
},
{
- type: 'cascader',
- key: 'refreshTab',
- label: '鍒锋柊鑿滃崟',
- initVal: card.refreshTab || [],
- tooltip: '鎵ц鎴愬姛鍚庯紙鎴栧姛鑳芥寜閽腑鏍囩鍏抽棴绫诲瀷锛夛紝闇�瑕佸悓姝ュ埛鏂扮殑鑿滃崟',
- required: false,
- forbid: viewType === 'popview',
- options: menulist
- },
- {
- type: 'cascader',
- key: 'openmenu',
- label: '鎵撳紑鑿滃崟',
- tooltip: '鎵ц鎴愬姛鍚庨渶瑕佹墦寮�鐨勮彍鍗曘��',
- initVal: card.openmenu || [],
- extendName: 'MenuNo',
- required: false,
- allowClear: true,
- options: menulist,
- forbid: viewType === 'popview'
- },
- {
type: 'text',
key: 'output',
label: '杩斿洖鍊�',
@@ -2322,7 +2585,7 @@
key: 'tipTitle',
label: '纭鎻愮ず',
initVal: card.tipTitle || '',
- tooltip: '娉細寮圭獥锛堣〃鍗曪級鍦ㄦ樉绀轰负鏄惁妗嗘椂鏈夋晥銆�',
+ tooltip: '鎻愮ず妗嗙殑纭鎻愮ず淇℃伅銆�',
required: false
},
{
@@ -2442,18 +2705,18 @@
required: false
},
{
- type: 'radio',
- key: 'recordUser',
- label: '璁板綍鐢ㄦ埛',
- initVal: card.recordUser || 'false',
- tooltip: '褰撻�夋嫨鈥滄槸鈥濇椂锛屽唴閮ㄥ嚱鏁扮殑浼犲弬浼氬鍔� username 涓� fullname銆�',
+ type: 'checkbox',
+ key: 'extraParam',
+ label: '鎵╁睍鍙傛暟',
+ initVal: extraParam,
+ tooltip: '閫夋嫨鈥滅敤鎴蜂俊鎭�濇椂锛屽唴閮ㄥ嚱鏁扮殑浼犲弬浼氬鍔� username 涓� fullname銆傞�夋嫨鈥滄暟鎹鐞嗗憳鈥濇椂锛屽唴閮ㄥ嚱鏁扮殑浼犲弬浼氬鍔� dataM 锛岀鐞嗗憳鍊间负鈥淵鈥濓紝鏅�氱敤鎴蜂负绌恒��',
required: false,
options: [{
- value: 'false',
- text: '鍚�'
+ value: 'recordUser',
+ text: '鐢ㄦ埛淇℃伅'
}, {
- value: 'true',
- text: '鏄�'
+ value: 'dataM',
+ text: '鏁版嵁绠$悊鍛�'
}]
},
{
@@ -2505,21 +2768,6 @@
},
{
type: 'radio',
- key: 'formCache',
- label: '琛ㄥ崟缂撳瓨',
- initVal: card.formCache || 'false',
- tooltip: '涓昏鐢ㄤ簬鏁版嵁淇敼鍚庯紝鏇存柊鐩稿叧琛ㄥ崟鐨勯�夐」锛屾竻绌虹紦瀛樺悗琛ㄥ崟鍐嶆鎵撳紑鏃舵暟鎹細閲嶆柊鍔犺浇銆�',
- required: false,
- options: [{
- value: 'false',
- text: '涓嶆竻绌�'
- }, {
- value: 'clear',
- text: '娓呯┖'
- }]
- },
- {
- type: 'radio',
key: 'hidden',
label: '闅愯棌',
initVal: card.hidden || 'false',
@@ -2535,6 +2783,19 @@
},
{
type: 'radio',
+ key: 'database',
+ label: '鏁版嵁搴�',
+ initVal: card.database || 'local',
+ options: [{
+ value: 'local',
+ text: '鏈湴'
+ }, {
+ value: 'sso',
+ text: '鍗曠偣'
+ }]
+ },
+ {
+ type: 'radio',
key: 'permission',
label: '鏉冮檺楠岃瘉',
initVal: card.permission || 'true',
@@ -2544,6 +2805,58 @@
{value: 'false', text: '绂佺敤'},
],
forbid: viewType === 'popview'
+ },
+ {
+ type: 'radio',
+ key: 'extBtn',
+ label: '鎵╁睍鎸夐挳',
+ initVal: card.extBtn || 'false',
+ tooltip: '鐐瑰嚮鎵╁睍鎸夐挳鏃讹紝鍙橀噺 mk_submit_type 灏嗚璧嬪�笺��',
+ required: false,
+ options: [
+ {value: 'true', text: '鍚敤'},
+ {value: 'false', text: '绂佺敤'},
+ ],
+ },
+ {
+ type: 'text',
+ key: 'extValue',
+ label: '鎵╁睍鍊�',
+ initVal: card.extValue || '',
+ required: true,
+ readonly: false
+ },
+ {
+ type: 'text',
+ key: 'extLabel',
+ label: '鎵╁睍鍚嶇О',
+ initVal: card.extLabel || '',
+ required: true,
+ readonly: false
+ },
+ {
+ type: 'select',
+ key: 'extStyle',
+ label: '鎵╁睍鏍峰紡',
+ initVal: card.extStyle || '',
+ required: false,
+ options: modalClasses
+ },
+ {
+ type: 'text',
+ key: 'confLabel',
+ label: '纭畾鍚嶇О',
+ initVal: card.confLabel || '',
+ required: false,
+ readonly: false
+ },
+ {
+ type: 'select',
+ key: 'confStyle',
+ label: '纭畾鏍峰紡',
+ initVal: card.confStyle || '',
+ required: false,
+ options: modalClasses
},
{
type: 'radio',
@@ -2605,10 +2918,13 @@
required: false,
options: [{
value: '',
- text: '绌�'
+ text: '缁勪欢BID'
}, {
value: 'js',
text: '鍓嶇鐢熸垚'
+ }, {
+ value: 'empty',
+ text: '绌�'
}]
},
{
--
Gitblit v1.8.0