Showing
1 changed file
with
20 additions
and
10 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-08-29 14:31:20 | 2 | * @Date: 2022-08-29 14:31:20 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-07-30 09:52:32 | 4 | + * @LastEditTime: 2024-07-30 13:42:10 |
| 5 | * @FilePath: /data-table/src/components/OrgPickerField/MyComponent.vue | 5 | * @FilePath: /data-table/src/components/OrgPickerField/MyComponent.vue |
| 6 | * @Description: 树形组件 | 6 | * @Description: 树形组件 |
| 7 | --> | 7 | --> |
| ... | @@ -332,16 +332,26 @@ const openTree = () => { | ... | @@ -332,16 +332,26 @@ const openTree = () => { |
| 332 | }); | 332 | }); |
| 333 | } | 333 | } |
| 334 | 334 | ||
| 335 | -const clickNode = (node) => { // 点击显示选择详情 | 335 | +const clickNode = ({ id, type, name, mobile='' }) => { // 点击显示选择详情 |
| 336 | if (!props.component_props.readonly) return false; // 非只读不予许操作 | 336 | if (!props.component_props.readonly) return false; // 非只读不予许操作 |
| 337 | - // TODO:暂时隐藏等待后续接口提供更多字段 显示 | 337 | + const obj = { |
| 338 | - // showDialog({ | 338 | + dept: '部门', |
| 339 | - // title: '详情', | 339 | + role: '角色', |
| 340 | - // message: `${node.id}-${node.name}-${node.type}`, | 340 | + user: '成员' |
| 341 | - // confirmButtonColor: styleColor.baseColor | 341 | + } |
| 342 | - // }).then(() => { | 342 | + if (mobile === null) { |
| 343 | - // // on close | 343 | + mobile = '' |
| 344 | - // }); | 344 | + } |
| 345 | + // 显示更多详情 | ||
| 346 | + showDialog({ | ||
| 347 | + title: '详情', | ||
| 348 | + // message: `${obj[type]}-${name}-${mobile}`, | ||
| 349 | + message: `姓名:${name}\n组织结构类型:${obj[type]}\n手机号:${mobile}`, | ||
| 350 | + confirmButtonColor: styleColor.baseColor, | ||
| 351 | + messageAlign: 'left', | ||
| 352 | + }).then(() => { | ||
| 353 | + // on close | ||
| 354 | + }); | ||
| 345 | } | 355 | } |
| 346 | 356 | ||
| 347 | const emitCheckedGroup = ref({ | 357 | const emitCheckedGroup = ref({ | ... | ... |
-
Please register or login to post a comment