From 8bd2686b73046ba6a13867078ddb4497fe95d2f3 Mon Sep 17 00:00:00 2001 From: futian.liu <liufutianyoo@163.com> Date: 星期二, 12 十二月 2023 18:05:46 +0800 Subject: [PATCH] 添加部门同名验证 --- admin-web/README-注意事项.md | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) diff --git "a/admin-web/README-\346\263\250\346\204\217\344\272\213\351\241\271.md" "b/admin-web/README-\346\263\250\346\204\217\344\272\213\351\241\271.md" index 43d48df..3e067f3 100644 --- "a/admin-web/README-\346\263\250\346\204\217\344\272\213\351\241\271.md" +++ "b/admin-web/README-\346\263\250\346\204\217\344\272\213\351\241\271.md" @@ -79,4 +79,36 @@ return { value: DateFormatter.LongToDateTime(row.create_time) } } ``` +7. 琛ㄥ崟鎼滅储椤圭骇鑱� +``` + { + type: 'select', + dataIndex: 'orgId', + label: '涓诲姙鍗曚綅', + placeholder: '璇烽�夋嫨', + defaultValue: '', + options: [], + cascader: [{key:'orgDeptId',queryKey: 'parentId'}], + optionsConfig: { + label: 'label', + value: 'id', + url: SettingIplatform.apiBaseURL + '/base/dept/select/treeDept' + } + }, + { + type: 'select', + dataIndex: 'orgDeptId', + label: '涓诲姙閮ㄩ棬', + placeholder: '璇烽�夋嫨', + defaultValue: '', + // 閫夋嫨鍚庝細瑙﹀彂鍝簺椤圭殑鍔犺浇锛屾敮鎸佸涓紱 parentId + // 浼氳嚜鍔ㄥ湪鎸囧畾椤瑰姞涓妠[dataIndex]: value}鐨勭瓫閫夋潯浠� + options: [], + optionsConfig: { + label: 'deptName', + value: 'id', + url: SettingIplatform.apiBaseURL + '/base/dept/selectDeptByParentId' + } + }, +``` -- Gitblit v1.9.1