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
ee6fcf0a
Commit
ee6fcf0a
authored
Apr 28, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
cc62ade9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
18 deletions
+61
-18
schedulingPlan.vue
src/pages/scheduling/schedulingPlan.vue
+61
-18
No files found.
src/pages/scheduling/schedulingPlan.vue
View file @
ee6fcf0a
...
@@ -18,17 +18,44 @@
...
@@ -18,17 +18,44 @@
<q-btn
color=
"accent"
size=
"sm"
icon=
"add"
label=
"新增排班计划"
@
click=
"EditSchedu(null)"
/>
<q-btn
color=
"accent"
size=
"sm"
icon=
"add"
label=
"新增排班计划"
@
click=
"EditSchedu(null)"
/>
</div>
</div>
</
template
>
</
template
>
<
!-- <
template v-slot:body="props">
<
template
v-slot:body=
"props"
>
<q-tr
:props=
"props"
>
<q-tr
:props=
"props"
>
<template></template>
<template
v-for=
"col in props.cols"
>
</q-tr>
<q-td
v-if=
"col.name=='PlanDate'"
>
</template> -->
{{
col
.
value
}}
<
template
v-slot:bottom
>
</q-td>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
<q-td
v-if=
"col.name=='SchoolName'"
>
:input=
"true"
@
input=
"changePage"
/>
{{
col
.
value
}}
</
template
>
</q-td>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
v-if=
"col.name == 'PlanDetails'"
style=
"padding-right:0px"
>
<q-td
:props=
"props"
>
<div
v-for=
"item in col.value"
>
<div
class=
"border-bottom"
style=
"padding-left: 16px;padding-right: 16px"
>
{{
item
.
ShiftName
}}
</div>
</div>
</q-td>
<q-td
v-if=
"col.name == 'StartTime'"
style=
"padding-right:0px"
>
<div
v-for=
"item in col.value"
>
<div
class=
"border-bottom"
style=
"padding-left: 16px;padding-right: 16px"
>
{{
item
.
StartTime
}}
-
{{
item
.
EndTime
}}
</div>
</div>
</q-td>
<q-td
v-if=
"col.name == 'DutyManName'"
style=
"padding-right:0px"
>
<div
v-for=
"item in col.value"
>
<div
class=
"border-bottom"
style=
"padding-left: 16px;padding-right: 16px"
>
{{
item
.
DutyManName
}}
</div>
</div>
</q-td>
<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
)
}}
</div>
</div>
</q-td>
<q-td
v-else-if=
"col.name == 'Id'"
style=
"width:200px;"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
style=
"font-weight:400;"
color=
"edit"
class=
"q-mr-xs"
label=
"修改"
<q-btn
flat
size=
"xs"
icon=
"edit"
style=
"font-weight:400;"
color=
"edit"
class=
"q-mr-xs"
label=
"修改"
@
click=
"EditSchedu(props.row)"
/>
@
click=
"EditSchedu(props.row)"
/>
<q-btn
flat
size=
"xs"
icon=
"delete"
style=
"font-weight:400;"
color=
"negative"
class=
"q-mr-xs"
label=
"删除"
<q-btn
flat
size=
"xs"
icon=
"delete"
style=
"font-weight:400;"
color=
"negative"
class=
"q-mr-xs"
label=
"删除"
...
@@ -36,6 +63,12 @@
...
@@ -36,6 +63,12 @@
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-View"
style=
"font-weight:400;"
class=
"q-mr-xs"
label=
"查看"
@
click=
""
/>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-View"
style=
"font-weight:400;"
class=
"q-mr-xs"
label=
"查看"
@
click=
""
/>
</q-td>
</q-td>
</
template
>
</
template
>
</q-tr>
</template>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</q-table>
</q-table>
<schedul-form
v-if=
"isShowSchedu"
:save-obj=
"scheduOption"
@
close=
"closeScheduForm"
@
success=
"refreshPage"
>
<schedul-form
v-if=
"isShowSchedu"
:save-obj=
"scheduOption"
@
close=
"closeScheduForm"
@
success=
"refreshPage"
>
</schedul-form>
</schedul-form>
...
@@ -70,7 +103,7 @@
...
@@ -70,7 +103,7 @@
align
:
'left'
align
:
'left'
},
},
{
{
name
:
'
ShiftName
'
,
name
:
'
PlanDetails
'
,
label
:
'班次'
,
label
:
'班次'
,
align
:
'left'
,
align
:
'left'
,
field
:
'ShiftName'
,
field
:
'ShiftName'
,
...
@@ -91,16 +124,16 @@
...
@@ -91,16 +124,16 @@
field
:
row
=>
row
.
PlanDetails
field
:
row
=>
row
.
PlanDetails
},
},
{
{
name
:
'Id'
,
name
:
'
Plan
Id'
,
label
:
'状态'
,
label
:
'状态'
,
align
:
'left'
,
align
:
'left'
,
field
:
'Id'
,
field
:
'
Plan
Id'
,
field
:
row
=>
row
.
PlanDetails
field
:
row
=>
row
.
PlanDetails
},
},
{
{
name
:
'
optione
d'
,
name
:
'
I
d'
,
label
:
'操作'
,
label
:
'操作'
,
field
:
'
optione
d'
field
:
'
I
d'
}
}
],
],
dataList
:
[],
dataList
:
[],
...
@@ -156,11 +189,21 @@
...
@@ -156,11 +189,21 @@
// }
// }
// this.getClassRoomPage()
// this.getClassRoomPage()
},
},
getStatus
(
props
,
obj
){
console
.
log
(
props
,
'props'
);
console
.
log
(
obj
,
'objjjj'
);
}
},
},
}
}
</
script
>
</
script
>
<
style
scoped
>
.border-bottom
{
border-bottom
:
1px
dashed
#EEE
;
padding-bottom
:
5px
;
margin-bottom
:
5px
;
}
</
style
>
<
style
lang=
"sass"
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
@import
url('~assets/css/table.sass')
...
...
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