Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-07-30 13:43:11 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
398774df6b8390db7a5df8b72efc57b476d3c05d
398774df
1 parent
6f92850d
组织结构组件可以查看点击查看更多详情
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
src/components/OrgPickerField/MyComponent.vue
src/components/OrgPickerField/MyComponent.vue
View file @
398774d
<!--
* @Date: 2022-08-29 14:31:20
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-30
09:52:32
* @LastEditTime: 2024-07-30
13:42:10
* @FilePath: /data-table/src/components/OrgPickerField/MyComponent.vue
* @Description: 树形组件
-->
...
...
@@ -332,16 +332,26 @@ const openTree = () => {
});
}
const clickNode = (
node
) => { // 点击显示选择详情
const clickNode = (
{ id, type, name, mobile='' }
) => { // 点击显示选择详情
if (!props.component_props.readonly) return false; // 非只读不予许操作
// TODO:暂时隐藏等待后续接口提供更多字段 显示
// showDialog({
// title: '详情',
// message: `${node.id}-${node.name}-${node.type}`,
// confirmButtonColor: styleColor.baseColor
// }).then(() => {
// // on close
// });
const obj = {
dept: '部门',
role: '角色',
user: '成员'
}
if (mobile === null) {
mobile = ''
}
// 显示更多详情
showDialog({
title: '详情',
// message: `${obj[type]}-${name}-${mobile}`,
message: `姓名:${name}\n组织结构类型:${obj[type]}\n手机号:${mobile}`,
confirmButtonColor: styleColor.baseColor,
messageAlign: 'left',
}).then(() => {
// on close
});
}
const emitCheckedGroup = ref({
...
...
Please
register
or
login
to post a comment