Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
bigDataSystem
Commits
39e5089b
Commit
39e5089b
authored
Nov 07, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
机构管理机构树的按钮以及事件
parent
98bdf246
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
423 additions
and
48 deletions
+423
-48
AccountModal.vue
src/views/system/institution/AccountModal.vue
+1
-1
DeptTree.vue
src/views/system/institution/DeptTree.vue
+144
-34
MoveTreeModal.vue
src/views/system/institution/MoveTreeModal.vue
+97
-0
UpdateTreeModal.vue
src/views/system/institution/UpdateTreeModal.vue
+115
-0
index.vue
src/views/system/institution/index.vue
+1
-1
institution.data.ts
src/views/system/institution/institution.data.ts
+44
-1
institutionData.ts
src/views/system/institution/institutionData.ts
+20
-10
moveUser.vue
src/views/system/institution/moveUser.vue
+1
-1
No files found.
src/views/system/institution/AccountModal.vue
View file @
39e5089b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
import
{
ref
,
computed
,
unref
,
reactive
}
from
'vue'
;
import
{
ref
,
computed
,
unref
,
reactive
}
from
'vue'
;
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
accountFormSchema
}
from
'./
account
.data'
;
import
{
accountFormSchema
}
from
'./
institution
.data'
;
import
{
getDeptList
}
from
'@/api/system/dept/dept'
;
import
{
getDeptList
}
from
'@/api/system/dept/dept'
;
import
{
addUserApi
,
UserDetailApi
,
UserUpdataApi
}
from
'@/api/system/user/user'
import
{
addUserApi
,
UserDetailApi
,
UserUpdataApi
}
from
'@/api/system/user/user'
import
{
encryptTwo
}
from
'../../../../src/utils/jsencrypt.js'
import
{
encryptTwo
}
from
'../../../../src/utils/jsencrypt.js'
...
...
src/views/system/institution/DeptTree.vue
View file @
39e5089b
...
@@ -11,22 +11,32 @@
...
@@ -11,22 +11,32 @@
:treeData=
"treeData"
:treeData=
"treeData"
:fieldNames=
"
{ key: 'businessId', title: 'institutionName' }"
:fieldNames=
"
{ key: 'businessId', title: 'institutionName' }"
@select="handleSelect"
@select="handleSelect"
:actionList="actionList"
/>
/>
</div>
</div>
<MoveTreeModal
@
register=
"registerMoveTreeModel"
@
success=
"handleSuccess"
/>
<UpdateTreeModal
@
register=
"registerModal"
@
success=
"handleSuccess"
/>
</
template
>
</
template
>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
nextTick
,
onMounted
,
ref
,
unref
}
from
'vue'
;
import
{
h
,
nextTick
,
onMounted
,
ref
,
unref
}
from
'vue'
;
import
{
BasicTree
,
TreeActionType
,
TreeItem
}
from
'@/components/Tree'
;
import
{
BasicTree
,
TreeActionItem
,
TreeActionType
,
TreeItem
}
from
'@/components/Tree'
;
import
{
getDeptList
}
from
'@/api/system/dept/dept'
;
import
{
getDeptList
}
from
'@/api/system/dept/dept'
;
import
{
Nullable
}
from
"@vben/types"
;
import
{
Nullable
}
from
"@vben/types"
;
import
{
TreeData
}
from
"@/views/system/institution/institutionData"
;
import
{
TreeData
}
from
"@/views/system/institution/institutionData"
;
import
{
DeleteOutlined
,
PlusOutlined
,
EditOutlined
,
FolderOutlined
}
from
"@ant-design/icons-vue"
;
import
{
Modal
}
from
"ant-design-vue"
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
MoveTreeModal
from
'./MoveTreeModal.vue'
;
import
UpdateTreeModal
from
'./UpdateTreeModal.vue'
;
import
{
useModal
}
from
"@/components/Modal"
;
defineOptions
({
name
:
'DeptTree'
});
defineOptions
({
name
:
'DeptTree'
}
);
const
emit
=
defineEmits
([
'select'
]
);
const
{
createMessage
}
=
useMessage
();
const
emit
=
defineEmits
([
'select'
]);
const
treeData
=
ref
<
TreeItem
[]
>
([
]);
const
treeRef
=
ref
<
Nullable
<
TreeActionType
>>
(
null
);
const
treeData
=
ref
<
TreeItem
[]
>
([]
);
const
[
registerModal
,
{
openModal
}]
=
useModal
(
);
const
treeRef
=
ref
<
Nullable
<
TreeActionType
>>
(
null
);
const
[
registerMoveTreeModel
,
{
openModal
:
openMoveTreeModel
}]
=
useModal
(
);
function
getTree
()
{
function
getTree
()
{
const
tree
=
unref
(
treeRef
);
const
tree
=
unref
(
treeRef
);
if
(
!
tree
)
{
if
(
!
tree
)
{
...
@@ -43,31 +53,131 @@ async function fetch() {
...
@@ -43,31 +53,131 @@ async function fetch() {
})
})
}
}
function
handleTree
(
data
,
id
,
parentId
,
children
,
rootId
)
{
function
handleTree
(
data
,
id
,
parentId
,
children
,
rootId
)
{
id
=
id
||
'id'
id
=
id
||
'id'
parentId
=
parentId
||
'parentId'
parentId
=
parentId
||
'parentId'
children
=
children
||
'children'
children
=
children
||
'children'
rootId
=
rootId
||
Math
.
min
.
apply
(
Math
,
data
.
map
(
item
=>
{
return
item
[
parentId
]
}))
||
0
rootId
=
rootId
||
Math
.
min
.
apply
(
Math
,
data
.
map
(
item
=>
{
return
item
[
parentId
]
}))
||
0
// 对源数据深度克隆
// 对源数据深度克隆
const
cloneData
=
JSON
.
parse
(
JSON
.
stringify
(
data
))
const
cloneData
=
JSON
.
parse
(
JSON
.
stringify
(
data
))
// 循环所有项
// 循环所有项
const
treeData
=
cloneData
.
filter
(
father
=>
{
const
treeData
=
cloneData
.
filter
(
father
=>
{
const
branchArr
=
cloneData
.
filter
(
child
=>
{
const
branchArr
=
cloneData
.
filter
(
child
=>
{
// 返回每一项的子级数组
// 返回每一项的子级数组
return
father
[
id
]
===
child
[
parentId
]
return
father
[
id
]
===
child
[
parentId
]
})
branchArr
.
length
>
0
?
father
.
children
=
branchArr
:
''
// 返回第一层
return
father
[
parentId
]
===
rootId
})
})
return
treeData
!==
''
?
treeData
:
data
branchArr
.
length
>
0
?
father
.
children
=
branchArr
:
''
}
// 返回第一层
return
father
[
parentId
]
===
rootId
})
return
treeData
!==
''
?
treeData
:
data
}
function
handleSelect
(
keys
)
{
function
handleSelect
(
keys
)
{
emit
(
'select'
,
keys
[
0
]);
emit
(
'select'
,
keys
[
0
]);
}
}
onMounted
(()
=>
{
fetch
();
});
/** 成功回调函数*/
function
handleSuccess
()
{
}
// 树的操作列表
const
actionList
=
[
{
//新增
render
:
(
node
)
=>
{
return
h
(
PlusOutlined
,
{
class
:
'ml-2'
,
onClick
:
()
=>
{
handleAdd
(
node
);
},
});
},
},
{
//修改
render
:
(
node
)
=>
{
return
h
(
EditOutlined
,
{
class
:
'ml-2'
,
onClick
:
()
=>
{
handleUpdate
(
node
);
},
});
},
},
{
//删除
render
:
(
node
)
=>
{
return
h
(
DeleteOutlined
,
{
class
:
'ml-2'
,
onClick
:
()
=>
{
handleDelete
(
node
);
},
});
},
},
{
//移动
render
:
(
node
)
=>
{
return
h
(
FolderOutlined
,
{
class
:
'ml-2'
,
onClick
:
()
=>
{
handleMove
(
node
);
},
});
},
},
];
onMounted
(()
=>
{
fetch
();
// 新增节点
const
handleAdd
=
(
node
)
=>
{
openModal
(
true
,
{
isAdd
:
true
,
record
:
node
,
});
};
// 修改节点
const
handleUpdate
=
(
node
)
=>
{
openModal
(
true
,
{
isUpdate
:
true
,
record
:
node
,
});
});
};
// 移动节点
const
handleMove
=
(
node
)
=>
{
openMoveTreeModel
(
true
,
{
isMove
:
true
,
record
:
node
,
});
};
// 删除节点
const
handleDelete
=
(
node
)
=>
{
Modal
.
confirm
({
title
:
'确认删除'
,
content
:
'确定要删除此节点吗?'
,
okText
:
'确认'
,
cancelText
:
'取消'
,
onOk
()
{
// 执行删除逻辑
createMessage
.
success
(
'删除成功!'
)
},
onCancel
()
{
console
.
log
(
'取消删除'
);
createMessage
.
info
(
'取消删除'
)
},
});
};
</
script
>
</
script
>
src/views/system/institution/MoveTreeModal.vue
0 → 100644
View file @
39e5089b
<
template
>
<BasicModal
width=
"40%"
v-bind=
"$attrs"
@
register=
"registerModal"
:title=
"getTitle"
@
ok=
"handleSubmit"
>
<BasicForm
@
register=
"registerForm"
/>
</BasicModal>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
ref
,
computed
,
unref
,
reactive
}
from
'vue'
;
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
AddTreeSchema
,
MoveFormSchema
}
from
'./institution.data'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
TreeData
}
from
"@/views/system/institution/institutionData"
;
defineOptions
({
name
:
'AccountModal'
});
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
{
createMessage
}
=
useMessage
();
const
isUpdate
=
ref
(
true
);
const
isMove
=
ref
(
false
);
const
rowId
=
ref
(
''
)
const
form
=
ref
([])
//获取接口数据并放在下拉框里(这里是打开了一个弹框)
//初始化表单
const
[
registerForm
,
{
setFieldsValue
,
updateSchema
,
resetFields
,
validate
}]
=
useForm
({
labelWidth
:
100
,
baseColProps
:
{
lg
:
12
,
md
:
24
},
schemas
:
MoveFormSchema
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
span
:
23
,
},
});
//初始化弹框
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
resetFields
();
setModalProps
({
confirmLoading
:
false
});
form
.
value
=
data
.
record
const
formData
=
{
institutionId
:
data
.
record
.
parentId
,
}
// 塞值
setFieldsValue
({
...
formData
,
});
const
treeList
=
handleTree
(
TreeData
,
'businessId'
,
undefined
,
undefined
,
undefined
)
updateSchema
([
{
field
:
'institutionId'
,
componentProps
:
{
treeData
:
treeList
},
},
]);
});
const
getTitle
=
computed
(()
=>
(
'移动'
));
function
handleTree
(
data
,
id
,
parentId
,
children
,
rootId
)
{
id
=
id
||
'id'
parentId
=
parentId
||
'parentId'
children
=
children
||
'children'
rootId
=
rootId
||
Math
.
min
.
apply
(
Math
,
data
.
map
(
item
=>
{
return
item
[
parentId
]
}))
||
0
// 对源数据深度克隆
const
cloneData
=
JSON
.
parse
(
JSON
.
stringify
(
data
))
// 循环所有项
const
treeData
=
cloneData
.
filter
(
father
=>
{
const
branchArr
=
cloneData
.
filter
(
child
=>
{
// 返回每一项的子级数组
return
father
[
id
]
===
child
[
parentId
]
})
branchArr
.
length
>
0
?
father
.
children
=
branchArr
:
''
// 返回第一层
return
father
[
parentId
]
===
rootId
})
return
treeData
!==
''
?
treeData
:
data
}
/**确定按钮*/
async
function
handleSubmit
()
{
const
values
=
await
validate
();
createMessage
.
success
(
'移动成功'
)
closeModal
()
}
// 格式化日期
function
formatDate
(
date
)
{
const
year
=
date
.
getFullYear
();
const
month
=
String
(
date
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
);
// 月份从0开始,需要加1
const
day
=
String
(
date
.
getDate
()).
padStart
(
2
,
'0'
);
const
hours
=
String
(
date
.
getHours
()).
padStart
(
2
,
'0'
);
const
minutes
=
String
(
date
.
getMinutes
()).
padStart
(
2
,
'0'
);
const
seconds
=
String
(
date
.
getSeconds
()).
padStart
(
2
,
'0'
);
return
`
${
year
}
-
${
month
}
-
${
day
}
${
hours
}
:
${
minutes
}
:
${
seconds
}
`
;
}
</
script
>
src/views/system/institution/UpdateTreeModal.vue
0 → 100644
View file @
39e5089b
<
template
>
<BasicModal
width=
"40%"
v-bind=
"$attrs"
@
register=
"registerModal"
:title=
"getTitle"
@
ok=
"handleSubmit"
>
<BasicForm
@
register=
"registerForm"
/>
</BasicModal>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
ref
,
computed
,
unref
,
reactive
}
from
'vue'
;
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
AddTreeSchema
}
from
'./institution.data'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
TreeData
}
from
"@/views/system/institution/institutionData"
;
defineOptions
({
name
:
'AccountModal'
});
const
emit
=
defineEmits
([
'success'
,
'register'
]);
const
{
createMessage
}
=
useMessage
();
const
isUpdate
=
ref
(
true
);
const
isMove
=
ref
(
false
);
const
isAdd
=
ref
(
false
);
const
rowId
=
ref
(
''
);
//获取接口数据并放在下拉框里(这里是打开了一个弹框)
//初始化表单
const
[
registerForm
,
{
setFieldsValue
,
updateSchema
,
resetFields
,
validate
}]
=
useForm
({
labelWidth
:
100
,
baseColProps
:
{
lg
:
12
,
md
:
24
},
schemas
:
AddTreeSchema
,
showActionButtonGroup
:
false
,
actionColOptions
:
{
span
:
23
,
},
});
//初始化弹框
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
resetFields
();
setModalProps
({
confirmLoading
:
false
});
//修改
isAdd
.
value
=
!!
data
?.
isAdd
;
//修改
isUpdate
.
value
=
!!
data
?.
isUpdate
;
if
(
unref
(
isUpdate
))
{
//修改
// 获取行数据的id
rowId
.
value
=
data
.
record
.
businessId
;
const
formData
=
{
institutionId
:
data
.
record
.
parentId
,
institutionName
:
data
.
record
.
anotherName
,
code
:
data
.
record
.
code
}
// 塞值
setFieldsValue
({
...
formData
,
});
}
else
if
(
unref
(
isAdd
)){
//新增
}
const
treeList
=
handleTree
(
TreeData
,
'businessId'
,
undefined
,
undefined
,
undefined
)
updateSchema
([
{
field
:
'institutionId'
,
componentProps
:
{
treeData
:
treeList
},
},
]);
});
const
getTitle
=
computed
(()
=>
(
!
unref
(
isUpdate
)
?
'新增机构'
:
'编辑机构'
));
function
handleTree
(
data
,
id
,
parentId
,
children
,
rootId
)
{
id
=
id
||
'id'
parentId
=
parentId
||
'parentId'
children
=
children
||
'children'
rootId
=
rootId
||
Math
.
min
.
apply
(
Math
,
data
.
map
(
item
=>
{
return
item
[
parentId
]
}))
||
0
// 对源数据深度克隆
const
cloneData
=
JSON
.
parse
(
JSON
.
stringify
(
data
))
// 循环所有项
const
treeData
=
cloneData
.
filter
(
father
=>
{
const
branchArr
=
cloneData
.
filter
(
child
=>
{
// 返回每一项的子级数组
return
father
[
id
]
===
child
[
parentId
]
})
branchArr
.
length
>
0
?
father
.
children
=
branchArr
:
''
// 返回第一层
return
father
[
parentId
]
===
rootId
})
return
treeData
!==
''
?
treeData
:
data
}
/**确定按钮*/
async
function
handleSubmit
()
{
const
values
=
await
validate
();
if
(
unref
(
isUpdate
)){
createMessage
.
success
(
'修改成功'
)
closeModal
()
}
else
if
(
!
unref
(
isUpdate
)){
createMessage
.
success
(
'新增成功'
)
closeModal
()
}
}
// 格式化日期
function
formatDate
(
date
)
{
const
year
=
date
.
getFullYear
();
const
month
=
String
(
date
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
);
// 月份从0开始,需要加1
const
day
=
String
(
date
.
getDate
()).
padStart
(
2
,
'0'
);
const
hours
=
String
(
date
.
getHours
()).
padStart
(
2
,
'0'
);
const
minutes
=
String
(
date
.
getMinutes
()).
padStart
(
2
,
'0'
);
const
seconds
=
String
(
date
.
getSeconds
()).
padStart
(
2
,
'0'
);
return
`
${
year
}
-
${
month
}
-
${
day
}
${
hours
}
:
${
minutes
}
:
${
seconds
}
`
;
}
</
script
>
src/views/system/institution/index.vue
View file @
39e5089b
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
import
AccountModal
from
'./AccountModal.vue'
;
import
AccountModal
from
'./AccountModal.vue'
;
import
importModal
from
'./importModal.vue'
;
import
importModal
from
'./importModal.vue'
;
import
MoveUser
from
'./moveUser.vue'
;
import
MoveUser
from
'./moveUser.vue'
;
import
{
columns
,
searchFormSchema
}
from
'./
account
.data'
;
import
{
columns
,
searchFormSchema
}
from
'./
institution
.data'
;
import
{
useGo
}
from
'@/hooks/web/usePage'
;
import
{
useGo
}
from
'@/hooks/web/usePage'
;
import
{
downloadByData
}
from
'@/utils/file/download'
;
import
{
downloadByData
}
from
'@/utils/file/download'
;
import
{
useRoute
,
onBeforeRouteLeave
}
from
'vue-router'
;
import
{
useRoute
,
onBeforeRouteLeave
}
from
'vue-router'
;
...
...
src/views/system/institution/
account
.data.ts
→
src/views/system/institution/
institution
.data.ts
View file @
39e5089b
...
@@ -110,7 +110,37 @@ export const accountFormSchema: any[] = [
...
@@ -110,7 +110,37 @@ export const accountFormSchema: any[] = [
export
const
MoveFormSchema
:
any
[]
=
[
export
const
MoveFormSchema
:
any
[]
=
[
{
{
field
:
'institutionId'
,
field
:
'institutionId'
,
label
:
'所属机构'
,
label
:
'目标机构'
,
component
:
'TreeSelect'
,
colProps
:
{
lg
:
24
,
md
:
24
},
componentProps
:
{
fieldNames
:
{
label
:
'institutionName'
,
value
:
'businessId'
,
},
getPopupContainer
:
()
=>
document
.
body
,
},
required
:
true
,
},
]
/**新增*/
export
const
AddTreeSchema
:
any
[]
=
[
{
field
:
'institutionName'
,
label
:
'机构名称'
,
component
:
'Input'
,
colProps
:
{
lg
:
24
,
md
:
24
},
rules
:
[
{
required
:
true
,
message
:
'请输入姓名'
,
},
],
},
{
field
:
'institutionId'
,
label
:
'上级机构'
,
component
:
'TreeSelect'
,
component
:
'TreeSelect'
,
colProps
:
{
lg
:
24
,
md
:
24
},
colProps
:
{
lg
:
24
,
md
:
24
},
componentProps
:
{
componentProps
:
{
...
@@ -122,4 +152,17 @@ export const MoveFormSchema: any[] = [
...
@@ -122,4 +152,17 @@ export const MoveFormSchema: any[] = [
},
},
required
:
true
,
required
:
true
,
},
},
{
field
:
'code'
,
label
:
'机构编码'
,
component
:
'Input'
,
colProps
:
{
lg
:
24
,
md
:
24
},
rules
:
[
{
required
:
true
,
message
:
'请输入机构编码'
,
},
],
},
]
]
src/views/system/institution/institutionData.ts
View file @
39e5089b
...
@@ -57,8 +57,9 @@ export const TreeData: any[] = [
...
@@ -57,8 +57,9 @@ export const TreeData: any[] = [
"flag"
:
"1"
,
"flag"
:
"1"
,
"businessId"
:
100
,
"businessId"
:
100
,
"institutionName"
:
"机构管理"
,
"institutionName"
:
"机构管理"
,
"anotherName"
:
"机构管理"
,
"parentId"
:
0
,
"parentId"
:
0
,
"code
:"
:
"00
1"
,
"code
"
:
"DataGovernanceDep_product
1"
,
"ancestors"
:
"0"
,
"ancestors"
:
"0"
,
"orderNum"
:
0
,
"orderNum"
:
0
,
"children"
:
[
],
"children"
:
[
],
...
@@ -70,8 +71,9 @@ export const TreeData: any[] = [
...
@@ -70,8 +71,9 @@ export const TreeData: any[] = [
"flag"
:
"1"
,
"flag"
:
"1"
,
"businessId"
:
101
,
"businessId"
:
101
,
"institutionName"
:
"数据平台治理部"
,
"institutionName"
:
"数据平台治理部"
,
"anotherName"
:
"数据平台治理部"
,
"parentId"
:
100
,
"parentId"
:
100
,
"code
:"
:
"00
2"
,
"code
"
:
"DataGovernanceDep_product
2"
,
"ancestors"
:
"0,100"
,
"ancestors"
:
"0,100"
,
"orderNum"
:
1
,
"orderNum"
:
1
,
"children"
:
[
],
"children"
:
[
],
...
@@ -83,8 +85,9 @@ export const TreeData: any[] = [
...
@@ -83,8 +85,9 @@ export const TreeData: any[] = [
"flag"
:
"1"
,
"flag"
:
"1"
,
"businessId"
:
107
,
"businessId"
:
107
,
"institutionName"
:
"数据资源管理部"
,
"institutionName"
:
"数据资源管理部"
,
"anotherName"
:
"数据资源管理部"
,
"parentId"
:
100
,
"parentId"
:
100
,
"code
:"
:
"00
3"
,
"code
"
:
"DataGovernanceDep_product
3"
,
"ancestors"
:
"0,100"
,
"ancestors"
:
"0,100"
,
"orderNum"
:
2
,
"orderNum"
:
2
,
"children"
:
[
],
"children"
:
[
],
...
@@ -96,8 +99,9 @@ export const TreeData: any[] = [
...
@@ -96,8 +99,9 @@ export const TreeData: any[] = [
"flag"
:
"1"
,
"flag"
:
"1"
,
"businessId"
:
102
,
"businessId"
:
102
,
"institutionName"
:
"研发部门"
,
"institutionName"
:
"研发部门"
,
"anotherName"
:
"研发部门"
,
"parentId"
:
101
,
"parentId"
:
101
,
"code
:"
:
"00
4"
,
"code
"
:
"DataGovernanceDep_product
4"
,
"ancestors"
:
"0,100,101"
,
"ancestors"
:
"0,100,101"
,
"orderNum"
:
1
,
"orderNum"
:
1
,
"children"
:
[
],
"children"
:
[
],
...
@@ -109,8 +113,9 @@ export const TreeData: any[] = [
...
@@ -109,8 +113,9 @@ export const TreeData: any[] = [
"flag"
:
"1"
,
"flag"
:
"1"
,
"businessId"
:
103
,
"businessId"
:
103
,
"institutionName"
:
"市场部门"
,
"institutionName"
:
"市场部门"
,
"anotherName"
:
"市场部门"
,
"parentId"
:
101
,
"parentId"
:
101
,
"code
:"
:
"00
5"
,
"code
"
:
"DataGovernanceDep_product
5"
,
"ancestors"
:
"0,100,101"
,
"ancestors"
:
"0,100,101"
,
"orderNum"
:
2
,
"orderNum"
:
2
,
"children"
:
[
],
"children"
:
[
],
...
@@ -122,8 +127,9 @@ export const TreeData: any[] = [
...
@@ -122,8 +127,9 @@ export const TreeData: any[] = [
"flag"
:
"1"
,
"flag"
:
"1"
,
"businessId"
:
104
,
"businessId"
:
104
,
"institutionName"
:
"测试部门"
,
"institutionName"
:
"测试部门"
,
"anotherName"
:
"测试部门"
,
"parentId"
:
101
,
"parentId"
:
101
,
"code
:"
:
"00
6"
,
"code
"
:
"DataGovernanceDep_product
6"
,
"ancestors"
:
"0,100,101"
,
"ancestors"
:
"0,100,101"
,
"orderNum"
:
3
,
"orderNum"
:
3
,
"children"
:
[
],
"children"
:
[
],
...
@@ -135,8 +141,9 @@ export const TreeData: any[] = [
...
@@ -135,8 +141,9 @@ export const TreeData: any[] = [
"flag"
:
"1"
,
"flag"
:
"1"
,
"businessId"
:
105
,
"businessId"
:
105
,
"institutionName"
:
"财务部门"
,
"institutionName"
:
"财务部门"
,
"anotherName"
:
"财务部门"
,
"parentId"
:
101
,
"parentId"
:
101
,
"code
:"
:
"00
7"
,
"code
"
:
"DataGovernanceDep_product
7"
,
"ancestors"
:
"0,100,101"
,
"ancestors"
:
"0,100,101"
,
"orderNum"
:
4
,
"orderNum"
:
4
,
"children"
:
[
],
"children"
:
[
],
...
@@ -148,8 +155,9 @@ export const TreeData: any[] = [
...
@@ -148,8 +155,9 @@ export const TreeData: any[] = [
"flag"
:
"1"
,
"flag"
:
"1"
,
"businessId"
:
106
,
"businessId"
:
106
,
"institutionName"
:
"运维部门"
,
"institutionName"
:
"运维部门"
,
"anotherName"
:
"运维部门"
,
"parentId"
:
101
,
"parentId"
:
101
,
"code
:"
:
"00
8"
,
"code
"
:
"DataGovernanceDep_product
8"
,
"ancestors"
:
"0,100,101"
,
"ancestors"
:
"0,100,101"
,
"orderNum"
:
5
,
"orderNum"
:
5
,
"children"
:
[
],
"children"
:
[
],
...
@@ -161,8 +169,9 @@ export const TreeData: any[] = [
...
@@ -161,8 +169,9 @@ export const TreeData: any[] = [
"flag"
:
"1"
,
"flag"
:
"1"
,
"businessId"
:
202
,
"businessId"
:
202
,
"institutionName"
:
"数据部门"
,
"institutionName"
:
"数据部门"
,
"anotherName"
:
"数据部门"
,
"parentId"
:
107
,
"parentId"
:
107
,
"code
:"
:
"00
9"
,
"code
"
:
"DataGovernanceDep_product
9"
,
"ancestors"
:
"0,100,107"
,
"ancestors"
:
"0,100,107"
,
"orderNum"
:
1
,
"orderNum"
:
1
,
"children"
:
[
],
"children"
:
[
],
...
@@ -174,8 +183,9 @@ export const TreeData: any[] = [
...
@@ -174,8 +183,9 @@ export const TreeData: any[] = [
"flag"
:
"0"
,
"flag"
:
"0"
,
"businessId"
:
203
,
"businessId"
:
203
,
"institutionName"
:
"检查部门"
,
"institutionName"
:
"检查部门"
,
"anotherName"
:
"检查部门"
,
"parentId"
:
107
,
"parentId"
:
107
,
"code
:"
:
"0
10"
,
"code
"
:
"DataGovernanceDep_product
10"
,
"ancestors"
:
"0,100,107"
,
"ancestors"
:
"0,100,107"
,
"orderNum"
:
2
,
"orderNum"
:
2
,
"children"
:
[
],
"children"
:
[
],
...
...
src/views/system/institution/moveUser.vue
View file @
39e5089b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
import
{
ref
,
computed
,
unref
,
reactive
}
from
'vue'
;
import
{
ref
,
computed
,
unref
,
reactive
}
from
'vue'
;
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
accountFormSchema
,
MoveFormSchema
,
resetPasswordFormSchema
}
from
'./
account
.data'
;
import
{
accountFormSchema
,
MoveFormSchema
,
resetPasswordFormSchema
}
from
'./
institution
.data'
;
import
{
getDeptList
}
from
'@/api/system/dept/dept'
;
import
{
getDeptList
}
from
'@/api/system/dept/dept'
;
import
{
resetUserPwd
}
from
'@/api/system/user/user'
import
{
resetUserPwd
}
from
'@/api/system/user/user'
import
{
encryptTwo
}
from
'../../../../src/utils/jsencrypt.js'
import
{
encryptTwo
}
from
'../../../../src/utils/jsencrypt.js'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment