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
2fec99fe
Commit
2fec99fe
authored
Aug 05, 2019
by
linking2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备移交 - 新增移交时间选择;优化移交确认框显示、移交时间显示;修复顾问列表包含离职人员问题
设备监管记录 - 新增设备名、顾问名点击搜索
parent
bc16044a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
28 deletions
+47
-28
App.vue
src/App.vue
+11
-0
staff.vue
src/components/system/staff.vue
+0
-4
staffRecord.vue
src/components/system/staffRecord.vue
+15
-4
index.vue
src/components/teacher/index.vue
+21
-20
No files found.
src/App.vue
View file @
2fec99fe
...
...
@@ -108,4 +108,15 @@ body {
visibility
:
hidden
;
clear
:
both
;
}
.page-div
{
padding-top
:
20px
;
}
.cell-link
{
/*color: #409EFF;*/
text-decoration
:
underline
;
cursor
:
pointer
;
user-select
:
none
;
}
</
style
>
src/components/system/staff.vue
View file @
2fec99fe
...
...
@@ -359,8 +359,4 @@
justify-content
:
flex-start
;
align-items
:
center
;
}
.page-div
{
padding-top
:
20px
;
}
</
style
>
src/components/system/staffRecord.vue
View file @
2fec99fe
...
...
@@ -50,8 +50,16 @@
<el-table
:data=
"tableData"
>
<el-table-column
prop=
"id"
label=
"ID"
></el-table-column>
<el-table-column
prop=
"teacher_name"
label=
"设备名称"
></el-table-column>
<el-table-column
prop=
"staff_name"
label=
"当前顾问"
></el-table-column>
<el-table-column
label=
"设备名称"
>
<template
slot-scope=
"scope"
>
<span
@
click=
"onSearch('teacher', scope.row.teacher_id)"
class=
"cell-link"
>
{{
scope
.
row
.
teacher_name
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"staff_name"
label=
"当前顾问"
>
<
template
slot-scope=
"scope"
>
<span
@
click=
"onSearch('staff', scope.row.staff_id)"
class=
"cell-link"
>
{{
scope
.
row
.
staff_name
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"start_at"
label=
"设备开始使用时间"
></el-table-column>
<el-table-column
label=
"设备使用结束时间"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -74,7 +82,7 @@
data
()
{
return
{
searchFrom
:
{
type
:
'
-
1'
,
type
:
'1'
,
teacher_id
:
''
,
staff_id
:
''
},
...
...
@@ -121,7 +129,10 @@
});
},
onSearch
(){
onSearch
(
type
,
id
){
if
(
type
)
{
this
.
searchFrom
[
`
${
type
}
_id`
]
=
id
;
}
this
.
getData
();
},
...
...
src/components/teacher/index.vue
View file @
2fec99fe
...
...
@@ -25,10 +25,10 @@
</el-form-item>
<el-form-item
label=
"任务日期"
>
<el-date-picker
style=
"width: 125px;"
style=
"width: 140px;"
type=
"date"
v-model=
"searchFrom.task_date"
value-format=
"yyyy-MM-dd"
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
...
...
@@ -57,7 +57,7 @@
<a
:href=
"scope.row.qr"
target=
"_blank"
class=
"clearfix"
>
<img
class=
"avatar"
:src=
"scope.row.qr"
alt=
"二维码"
>
</a>
<div
style=
"display: flex;"
>
<div>
老师名:
{{
scope
.
row
.
name
}}
<br>
微信号:
{{
scope
.
row
.
alias
}}
...
...
@@ -66,7 +66,7 @@
<br>
顾问:
{{
scope
.
row
.
adviser
}}
<br>
开始时间:
{{
scope
.
row
.
teacher_start
}}
开始时间:
<span
style=
"display: inline-block;width: 72px;vertical-align: text-top;line-height: 16px;"
>
{{
scope
.
row
.
teacher_start
}}
</span>
</div>
</div>
</
template
>
...
...
@@ -256,8 +256,11 @@
</el-select>
</el-form-item>
<el-form-item
label=
"移交时间:"
prop=
"transfer_at"
>
<el-date-picker
v-model=
"transfer.form.transfer_at"
type=
"date"
value-format=
"yyyy-MM-dd"
:clearable=
"false"
placeholder=
"选择日期"
></el-date-picker>
<div
style=
"display: flex;"
>
<el-date-picker
v-model=
"transfer.form.transfer_at"
:clearable=
"false"
value-format=
"yyyy-MM-dd HH:mm:ss"
type=
"datetime"
placeholder=
"选择时间"
></el-date-picker>
</div>
</el-form-item>
</el-form>
<div
slot=
"footer"
>
...
...
@@ -324,16 +327,13 @@
title
:
'班级列表'
,
id
:
''
},
teacherTypeOption
:
[
{
id
:
0
,
label
:
'老师'
},
{
id
:
1
,
label
:
'新星妈妈'
}
],
teacherTypeOption
:
[{
id
:
0
,
label
:
'老师'
},
{
id
:
1
,
label
:
'新星妈妈'
}],
phoneNumObj
:{}
}
},
...
...
@@ -442,7 +442,7 @@
this
.
transfer
.
show
=
!
this
.
transfer
.
show
;
if
(
this
.
transfer
.
show
){
if
(
this
.
transfer
.
staff
[
0
]
===
0
)
{
let
json
=
{
limit
:
1000
,
page
:
1
};
let
json
=
{
limit
:
1000
,
page
:
1
,
status
:
0
};
// status 0 在职
getStaffListApi
(
json
).
then
(
res
=>
{
this
.
transfer
.
staff
=
res
.
list
;
});
...
...
@@ -463,10 +463,11 @@
this
.
$refs
[
'transferForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
$confirm
(
`确
认
将
${
this
.
transfer
.
form
.
teacher_name
}
移交给
${
this
.
transfer
.
form
.
staff_name
}
移交开始时间
this
.
$confirm
(
`确
定
将
<span style="color: red;">
${
this
.
transfer
.
form
.
teacher_name
}
</span>
移交给
<span style="color: red;">
${
this
.
transfer
.
form
.
staff_name
}
</span> ?<br>
移交开始时间
${
this
.
transfer
.
form
.
transfer_at
}
`
,
'提示'
,
{
dangerouslyUseHTMLString
:
true
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
...
...
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