Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
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
new-sing
admin-base
Commits
a91cabf9
Commit
a91cabf9
authored
Sep 16, 2019
by
赵茹林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增 团队概况、小时动态 权限控制
parent
daac14c2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
10 deletions
+29
-10
index.vue
src/components/teacher/index.vue
+1
-2
userservice.vue
src/components/teacher/userservice.vue
+1
-1
hour.vue
src/components/team/hour.vue
+13
-3
index.vue
src/components/team/index.vue
+14
-4
No files found.
src/components/teacher/index.vue
View file @
a91cabf9
...
@@ -385,7 +385,6 @@
...
@@ -385,7 +385,6 @@
}
}
},
},
mounted
(){
mounted
(){
// console.log(s)
let
data
=
localStorage
.
getItem
(
"phoneNum"
);
let
data
=
localStorage
.
getItem
(
"phoneNum"
);
console
.
log
(
data
)
console
.
log
(
data
)
// debugger
// debugger
...
@@ -405,7 +404,7 @@
...
@@ -405,7 +404,7 @@
obj
[
item
.
type
]
=
item
.
name
obj
[
item
.
type
]
=
item
.
name
})
})
teacherTypeSource
=
obj
teacherTypeSource
=
obj
console
.
log
(
obj
)
//
console.log(obj)
});
});
},
},
methods
:{
methods
:{
...
...
src/components/teacher/userservice.vue
View file @
a91cabf9
...
@@ -406,7 +406,7 @@
...
@@ -406,7 +406,7 @@
obj
[
item
.
type
]
=
item
.
name
obj
[
item
.
type
]
=
item
.
name
})
})
teacherTypeSource
=
obj
teacherTypeSource
=
obj
console
.
log
(
obj
)
//
console.log(obj)
});
});
},
},
methods
:{
methods
:{
...
...
src/components/team/hour.vue
View file @
a91cabf9
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
:picker-options=
"pickerOptions"
@
change=
"getData"
>
:picker-options=
"pickerOptions"
@
change=
"getData"
>
</el-date-picker>
</el-date-picker>
<el-tabs
v-model=
"search.team"
type=
"card"
class=
"tabs-refresh"
@
tab-click=
"getData"
>
<el-tabs
v-
if=
"teacherType == ''"
v-
model=
"search.team"
type=
"card"
class=
"tabs-refresh"
@
tab-click=
"getData"
>
<!--
<el-tab-pane
label=
"总计"
name=
"1,2,3,4,5,6,7,8,9,10"
/>
-->
<!--
<el-tab-pane
label=
"总计"
name=
"1,2,3,4,5,6,7,8,9,10"
/>
-->
<el-tab-pane
v-for=
"i in 10"
:key=
"i"
:label=
"'T'+i"
:name=
"i.toString()"
/>
<el-tab-pane
v-for=
"i in 10"
:key=
"i"
:label=
"'T'+i"
:name=
"i.toString()"
/>
</el-tabs>
</el-tabs>
...
@@ -137,11 +137,21 @@
...
@@ -137,11 +137,21 @@
dialogObj
:
{
dialogObj
:
{
show
:
false
,
show
:
false
,
type
:
''
,
// callback, class
type
:
''
,
// callback, class
}
}
,
teacherType
:
''
// 'teacher_leader' // 'teacher' // ''
}
}
}
,
}
,
mounted
()
{
mounted
()
{
this
.
getData
();
var
phoneNum
=
localStorage
.
getItem
(
"phoneNum"
);
this
.
teacherType
=
phoneNum
&&
JSON
.
parse
(
phoneNum
)
&&
JSON
.
parse
(
phoneNum
).
teacher_type
?
JSON
.
parse
(
phoneNum
).
teacher_type
:
''
;
if
(
this
.
teacherType
==
''
)
{
// 总监
this
.
getData
();
}
else
if
(
this
.
teacherType
==
'teacher_leader'
)
{
// 组长
this
.
search
.
team
=
JSON
.
parse
(
phoneNum
).
squad
;
this
.
getData
();
}
else
if
(
this
.
teacherType
==
'teacher'
)
{
// 组员
console
.
log
(
'组员无权限!'
)
}
}
,
}
,
methods
:
{
methods
:
{
transStaff
(
row
)
{
transStaff
(
row
)
{
...
...
src/components/team/index.vue
View file @
a91cabf9
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
:picker-options=
"pickerOptions"
>
:picker-options=
"pickerOptions"
>
</el-date-picker>
</el-date-picker>
<el-tabs
v-model=
"search.team"
type=
"card"
class=
"tabs-refresh"
@
tab-click=
"getData"
>
<el-tabs
v-
if=
"teacherType == ''"
v-
model=
"search.team"
type=
"card"
class=
"tabs-refresh"
@
tab-click=
"getData"
>
<el-tab-pane
label=
"总计"
name=
"1,2,3,4,5,6,7,8,9,10"
/>
<el-tab-pane
label=
"总计"
name=
"1,2,3,4,5,6,7,8,9,10"
/>
<el-tab-pane
v-for=
"i in 10"
:key=
"i"
:label=
"'T'+i"
:name=
"i.toString()"
/>
<el-tab-pane
v-for=
"i in 10"
:key=
"i"
:label=
"'T'+i"
:name=
"i.toString()"
/>
</el-tabs>
</el-tabs>
...
@@ -259,11 +259,21 @@
...
@@ -259,11 +259,21 @@
dialogObj
:
{
dialogObj
:
{
show
:
false
,
show
:
false
,
type
:
''
,
// callback, class
type
:
''
,
// callback, class
}
}
,
teacherType
:
''
// 'teacher_leader' // 'teacher' // ''
}
}
}
,
}
,
mounted
()
{
mounted
()
{
this
.
getData
();
var
phoneNum
=
localStorage
.
getItem
(
"phoneNum"
);
this
.
teacherType
=
phoneNum
&&
JSON
.
parse
(
phoneNum
)
&&
JSON
.
parse
(
phoneNum
).
teacher_type
?
JSON
.
parse
(
phoneNum
).
teacher_type
:
''
;
if
(
this
.
teacherType
==
''
)
{
// 总监
this
.
getData
();
}
else
if
(
this
.
teacherType
==
'teacher_leader'
)
{
// 组长
this
.
search
.
team
=
JSON
.
parse
(
phoneNum
).
squad
;
this
.
getData
();
}
else
if
(
this
.
teacherType
==
'teacher'
)
{
// 组员
console
.
log
(
'组员无权限!'
)
}
}
,
}
,
methods
:
{
methods
:
{
transStaff
(
row
)
{
transStaff
(
row
)
{
...
@@ -277,7 +287,7 @@
...
@@ -277,7 +287,7 @@
}
,
}
,
transRate
(
child
,
mother
)
{
transRate
(
child
,
mother
)
{
if
(
mother
)
{
if
(
mother
)
{
return
`${Math.floor(child * 1000 / mother)
/
10
}
%`
return
`${Math.floor(child * 1000 / mother)
/
10
}
%`
}
else
{
}
else
{
return
'-'
return
'-'
}
}
...
...
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