Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mt-education-web
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
王旭
mt-education-web
Commits
302ec7aa
Commit
302ec7aa
authored
Oct 22, 2019
by
gaoyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
可见范围及选部门代码提交
parent
2fa73afe
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
909 additions
and
694 deletions
+909
-694
search.png
src/assets/image/search.png
+0
-0
select.png
src/assets/image/select.png
+0
-0
shareAct.png
src/assets/image/shareAct.png
+0
-0
index.vue
src/components/mt-organization/index.vue
+864
-684
utils.js
src/components/mt-organization/utils.js
+31
-0
onlineCourseMain.vue
src/views/courseTrain/onlineCourse/onlineCourseMain.vue
+14
-9
UserManage.vue
src/views/systemManagement/UserManage.vue
+0
-1
No files found.
src/assets/image/search.png
0 → 100644
View file @
302ec7aa
317 Bytes
src/assets/image/select.png
0 → 100644
View file @
302ec7aa
186 Bytes
src/assets/image/shareAct.png
0 → 100644
View file @
302ec7aa
1.25 KB
src/components/mt-organization/index.vue
View file @
302ec7aa
This diff is collapsed.
Click to expand it.
src/components/mt-organization/utils.js
0 → 100644
View file @
302ec7aa
export
default
{
// name: '$util',
// install: {
/**
* @description
* @param {Function} fn 处理函数
* @param {Number} delay 延时时间(ms)
*/
Debounce
(
fn
,
delay
)
{
let
timeout
;
return
function
()
{
clearTimeout
(
timeout
);
let
args
=
arguments
;
let
context
=
this
;
timeout
=
setTimeout
(()
=>
{
fn
.
apply
(
context
,
args
);
},
delay
);
};
},
//数组去重
deduplication
(
array
,
key
){
let
hash
=
{};
array
=
array
.
reduce
((
preVal
,
curVal
)
=>
{
hash
[
curVal
[
key
]]
?
''
:
hash
[
curVal
[
key
]]
=
true
&&
preVal
.
push
(
curVal
);
return
preVal
},
[])
return
array
;
},
// }
}
src/views/courseTrain/onlineCourse/onlineCourseMain.vue
View file @
302ec7aa
...
...
@@ -354,8 +354,8 @@
this
.
recommendList
=
res
.
data
;
for
(
const
i
in
res
.
data
)
{
const
obj
=
{
name
:
'李太友'
,
accountId
:
'133'
name
:
res
.
data
[
i
].
targetName
,
id
:
res
.
data
[
i
].
targetId
};
if
(
res
.
data
[
i
].
type
===
'1'
)
{
// 推荐的是部门
...
...
@@ -363,11 +363,6 @@
}
defaulSelectRe
.
push
(
obj
);
}
const
aa
=
{
accountId
:
'133'
,
name
:
'李太友'
};
console
.
log
(
'dfdf1'
,
defaulSelectRe
);
console
.
log
(
'dfdf2'
,
[
aa
]);
this
.
organizationData
.
allselectedData
=
defaulSelectRe
;
this
.
organizationData
.
openDialog
=
true
;
this
.
organizationData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
organizationData
));
...
...
@@ -394,6 +389,8 @@
// 选中部门及人员后,提交推荐数据
getPeopleDialoResult
(
res
)
{
console
.
log
(
'getPeopleDialoResult'
,
res
);
this
.
recommendSelectData
.
recommendDepart
=
[];
this
.
recommendSelectData
.
recommendPerson
=
[];
for
(
const
i
in
res
)
{
if
(
res
[
i
].
isDept
)
{
this
.
recommendSelectData
.
recommendDepart
.
push
(
res
[
i
].
id
);
...
...
@@ -531,10 +528,18 @@
}
}
.show_people_modal {
height: 100%;
.ant-modal-content {
position: fixed;
/*position: fixed;*/
height: 95%;
width: 520px;
// width: 520px;
&:before{
content: " ";
position: absolute;
top: 0;
right: 0;
bottom: 0;
}
.ant-modal-body {
height: 82%;
.modal_tag_div {
...
...
src/views/systemManagement/UserManage.vue
View file @
302ec7aa
...
...
@@ -21,7 +21,6 @@
:dropdownStyle=
"
{ maxHeight: '400px', overflow: 'auto' }"
:treeData="departTreeList"
placeholder="请选择"
treeDefaultExpandAll
v-model="queryParam.depart"
>
<a-icon
type=
"caret-down"
slot=
"suffixIcon"
/>
...
...
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