From 2245384d97d69e36d09cd6baa877e50a81d9aff9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 29 十二月 2021 21:59:09 +0800 Subject: [PATCH] 2021-12-29 --- src/menu/components/card/data-card/options.jsx | 37 ++++++++++++++++++++++++++++++++++--- 1 files changed, 34 insertions(+), 3 deletions(-) diff --git a/src/menu/components/card/data-card/options.jsx b/src/menu/components/card/data-card/options.jsx index 1614f78..1c71ab8 100644 --- a/src/menu/components/card/data-card/options.jsx +++ b/src/menu/components/card/data-card/options.jsx @@ -64,9 +64,10 @@ tooltip: '閫夋嫨闈欐�佸�硷紝鏃犻渶閰嶇疆鏁版嵁婧愩��', required: false, options: [ - {value: 'dynamic', label: '鍔ㄦ��'}, - {value: 'static', label: '闈欐��'}, + {value: 'dynamic', label: '鍔ㄦ��', priKeyType: 'static'}, + {value: 'static', label: '闈欐��', priKeyType: 'static'}, ], + linkFields: ['priKeyType'], controlFields: [ {field: 'goback', values: ['dynamic']}, {field: 'supModule', values: ['static']}, @@ -102,8 +103,25 @@ {field: 'checkAll', values: ['checkbox']}, {field: 'selected', values: ['radio', 'checkbox']}, {field: 'selStyle', values: ['radio', 'checkbox']}, + {field: 'priKeyType', values: ['radio', 'checkbox']}, ], forbid: subtype === 'tablecard' + }, + { + type: 'radio', + field: 'priKeyType', + label: '涓婚敭', + initval: wrap.priKeyType || 'static', + tooltip: '鎷兼帴鍊间负鍔ㄦ�佷富閿笌鐢ㄦ埛鑷畾涔夌殑闈欐�佷富閿娇鐢ㄩ�楀彿鎷兼帴銆�', + required: false, + linkField: 'datatype', + options: [ + {ParentID: 'static', value: 'static', label: '闈欐�佸��'}, + {ParentID: 'dynamic', value: 'static', label: '闈欐�佸��'}, + {ParentID: 'dynamic', value: 'dynamic', label: '鍔ㄦ�佸��'}, + {ParentID: 'dynamic', value: 'joint', label: '鎷兼帴鍊�'}, + ], + forbid: subtype !== 'propcard' }, { type: 'radio', @@ -114,7 +132,7 @@ options: [ {value: 'false', label: '鏃�'}, {value: 'init', label: '鍒濆鍖�'}, - {value: 'always', label: '鏁版嵁鍔犺浇', disabled: subtype === 'propcard'}, + {value: 'always', label: '鏁版嵁鍔犺浇'}, ] }, { @@ -224,6 +242,19 @@ forbid: subtype !== 'propcard' || appType !== 'mob' }, { + type: 'radio', + field: 'empty', + label: '绌哄�奸殣钘�', + initval: wrap.empty || 'show', + tooltip: '褰撴煡璇㈡暟鎹负绌烘椂锛岄殣钘忚缁勪欢銆�', + required: false, + options: [ + {value: 'show', label: '鍚�'}, + {value: 'hidden', label: '鏄�'}, + ], + forbid: subtype !== 'datacard' + }, + { type: 'cascader', field: 'supModule', label: '涓婄骇缁勪欢', -- Gitblit v1.8.0