Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
6005b58d
Commit
6005b58d
authored
Apr 28, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
dcc471b9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
11 deletions
+25
-11
schedulingPlan.vue
src/pages/scheduling/schedulingPlan.vue
+25
-11
No files found.
src/pages/scheduling/schedulingPlan.vue
View file @
6005b58d
...
...
@@ -51,7 +51,9 @@
<q-td
v-if=
"col.name == 'PlanId'"
style=
"padding-right:0px"
>
<div
v-for=
"item in col.value"
>
<div
class=
"border-bottom"
style=
"padding-left: 16px;padding-right: 16px"
>
{{
getStatus
(
props
,
item
)
}}
<span
v-if=
"getStatus(props.row.PlanDate,item)==1"
style=
"color:blue"
>
未开始
</span>
<span
v-if=
"getStatus(props.row.PlanDate,item)==2"
style=
"color:green"
>
进行中
</span>
<span
v-if=
"getStatus(props.row.PlanDate,item)==3"
style=
"color:red"
>
已结束
</span>
</div>
</div>
</q-td>
...
...
@@ -157,15 +159,15 @@
getList
()
{
GetDutyPlanPage
(
this
.
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
console
.
log
(
res
,
'列表数据'
);
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
pageCount
=
res
.
Data
.
PageCount
;
}
})
},
//分页改变
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
get
ClassRoomPage
();
this
.
get
List
();
},
//新增修改值班计划
EditSchedu
(
obj
)
{
...
...
@@ -182,16 +184,28 @@
},
//刷新页面
refreshPage
()
{
// if (!this.classRoomOption) {
// this.msg.pageIndex = 1;
// this.msg.RoomName = "";
// this.msg.School_Id = 0;
// }
// this.getClassRoomPage()
if
(
!
this
.
scheduOption
)
{
this
.
msg
.
pageIndex
=
1
;
}
this
.
getList
()
},
getStatus
(
props
,
obj
){
console
.
log
(
props
,
'props'
);
console
.
log
(
obj
,
'objjjj'
);
let
beginDateStr
=
props
+
' '
+
obj
.
StartTime
;
let
endDateStr
=
props
+
' '
+
obj
.
EndTime
;
let
str
=
0
;
let
curDate
=
new
Date
();
let
beginDate
=
new
Date
(
beginDateStr
);
let
endDate
=
new
Date
(
endDateStr
);
if
(
curDate
<
beginDate
){
str
=
1
//未开始
}
if
(
curDate
>=
beginDate
&&
curDate
<=
endDate
){
str
=
2
//进行中
}
if
(
curDate
>
endDate
){
str
=
3
//已结束
}
return
str
;
}
},
}
...
...
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