From 7c3c82d429f86358142adceb080e8922f6a18aa0 Mon Sep 17 00:00:00 2001 From: Riku <risaku@163.com> Date: 星期一, 12 八月 2024 22:43:33 +0800 Subject: [PATCH] 设备信息管理模块 --- pages/inspection/scene/info/device-info-items.js | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pages/inspection/scene/info/device-info-items.js b/pages/inspection/scene/info/device-info-items.js index e34449c..f293483 100644 --- a/pages/inspection/scene/info/device-info-items.js +++ b/pages/inspection/scene/info/device-info-items.js @@ -9,7 +9,7 @@ * 鐢熸垚涓�鏉¤〃鍗曟潯鐩� * @param {String} _label 鏍囩鍚嶇О * @param {String} _name 瀛楁鍚嶇О - * @param {String} _type 杈撳叆绫诲瀷 锛坱ext: 杈撳叆妗�; switch: 鍒囨崲鎸夐挳; picker: 涓嬫媺妗嗛�夐」锛� + * @param {String} _type 杈撳叆绫诲瀷 锛坱ext: 杈撳叆妗�; switch: 鍒囨崲鎸夐挳; picker: 涓嬫媺妗嗛�夐」; cascader: 绾ц仈閫夋嫨锛� * @param {Boolean} _required 鏄惁涓哄繀濉」 * @param {Array} _options 褰撹緭鍏ョ被鍨嬩负picker鏃讹紝鎻愪緵鍙�夐」 */ @@ -17,13 +17,15 @@ return { required: _required, label: _label, - placeholder: '璇疯緭鍏�' + _label, + placeholder: (_type == 'text' ? '璇疯緭鍏�' : '璇烽�夋嫨') + _label, name: _name, - value: _type == 'switch' ? false : null, + value: null, status: 'success', tips: _label + '涓嶈兘涓虹┖', inputType: _type, options: _options, + cascaderTitles: ['1', '2'], + visible: false, }; } -- Gitblit v1.9.3