Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
f9006b9b
Commit
f9006b9b
authored
Aug 10, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:处理重名问题
parent
ac4b314f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
10 deletions
+15
-10
src/modules/college-manage/components/DepartMentTabCon.jsx
+1
-1
src/modules/college-manage/components/DepartMentTabCon.less
+0
-1
src/modules/college-manage/components/LeftStructureTree.jsx
+11
-5
src/modules/college-manage/components/LeftStructureTree.less
+3
-3
No files found.
src/modules/college-manage/components/DepartMentTabCon.jsx
View file @
f9006b9b
...
...
@@ -388,7 +388,7 @@ function DepartMentTabCon(props) {
image
:
college
,
description
:
"暂无数据"
,
}
}
scroll=
{
{
x
:
15
00
}
}
scroll=
{
{
x
:
8
00
}
}
bordered
size=
"middle"
pagination=
{
false
}
...
...
src/modules/college-manage/components/DepartMentTabCon.less
View file @
f9006b9b
.department-tab-con{
display: flex;
.table-con{
margin-left:16px;
flex:1;
.post-name{
max-width: 200px;
...
...
src/modules/college-manage/components/LeftStructureTree.jsx
View file @
f9006b9b
...
...
@@ -65,6 +65,8 @@ function LeftStructureTree(props) {
display
:
'flex'
,
justifyContent
:
'space-between'
,
}
}
depId=
{
record
.
id
}
type=
{
type
}
>
{
type
===
'user'
?
<
div
><
WWOpenDataCom
type=
"userName"
openid=
{
record
.
userName
}
/></
div
>
...
...
@@ -104,17 +106,21 @@ function LeftStructureTree(props) {
return
placeholder
}
function
confirmSearchSelect
(
value
,
option
){
const
param
=
{}
setOpen
(
false
);
setQueryName
(
value
);
console
.
log
(
'option'
,
option
);
console
.
log
(
'_option'
,
option
);
// setSelctQueryName(option.label.props.children[0].props.children.props);
props
.
searchUserList
({
queryName
:
value
},
treeType
,
1
);
if
(
option
.
label
.
props
.
type
===
'user'
){
param
.
queryName
=
value
;
}
else
{
param
.
id
=
option
.
label
.
props
.
depId
;
}
props
.
searchUserList
(
param
,
treeType
,
1
);
}
// 获取关键词的搜索结果
function
getCompleteOptionData
(
value
){
// setQueryName(value);
setCompleteOption
([]);
console
.
log
(
"treeType"
,
props
.
treeType
);
const
params
=
{
depType
:
DepType
[
props
.
treeType
],
...
...
@@ -326,7 +332,7 @@ function LeftStructureTree(props) {
let
content
=
'删除后,该岗位组下的岗位及也将全部删除。'
;
if
(
record
.
departmentCount
&&
record
.
departmentCount
>
0
){
title
=
'删除失败'
;
if
(
record
.
l
evel
>
0
){
if
(
record
.
depL
evel
>
0
){
content
=
`
${
record
.
name
}
存在学员,不能删除该岗位`
;
}
else
{
content
=
`
${
record
.
name
}
存在学员,不能删除该岗位组`
;
...
...
src/modules/college-manage/components/LeftStructureTree.less
View file @
f9006b9b
.left-structure-tree {
margin-right:
24
px;
margin-right:
17
px;
width:260px;
flex-shrink: 0;
height: calc(~'100vh - 260px');
overflow: scroll;
flex-shrink: 0
;
border-right:1px solid #eee
;
.organization{
overflow: scroll;
.search-con{
margin-bottom: 10px;
}
...
...
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