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
feba2a6d
Commit
feba2a6d
authored
May 08, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
b6a9b628
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
13 deletions
+62
-13
mySchedule.vue
src/pages/scheduling/mySchedule.vue
+62
-13
No files found.
src/pages/scheduling/mySchedule.vue
View file @
feba2a6d
...
@@ -2,11 +2,12 @@
...
@@ -2,11 +2,12 @@
.Mysche_Dian
{
.Mysche_Dian
{
width
:
6px
;
width
:
6px
;
height
:
6px
;
height
:
6px
;
background-color
:
#6D97FF
;
background-color
:
gray
;
border-radius
:
50%
;
border-radius
:
50%
;
margin-right
:
10px
;
}
}
.sch_isWorked
{
background-color
:
#6D97FF
!important
;
}
.myPlan_List
{
.myPlan_List
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -16,7 +17,30 @@
...
@@ -16,7 +17,30 @@
background-color
:
transparent
;
background-color
:
transparent
;
border
:
0
;
border
:
0
;
}
}
.mySchPopDiv
{
max-height
:
300px
;
overflow
:
auto
;
}
.mySchpopTable
td
{
height
:
27px
;
}
.mySchPopDiv
::-webkit-scrollbar
{
width
:
3px
;
height
:
3px
;
background-color
:
#F5F5F5
;
}
/*!*定义滚动条轨道 内阴影+圆角*!*/
.mySchPopDiv
::-webkit-scrollbar-track
{
-webkit-box-shadow
:
inset
0
0
6px
rgba
(
0
,
0
,
0
,
0.3
);
border-radius
:
10px
;
background-color
:
#F5F5F5
;
}
/*!*定义滑块 内阴影+圆角*!*/
.mySchPopDiv
::-webkit-scrollbar-thumb
{
border-radius
:
10px
;
-webkit-box-shadow
:
-webkit-gradient
(
linear
,
0
0
,
0
100%
,
color-stop
(
.5
,
rgba
(
255
,
255
,
255
,
.2
)),
color-stop
(
.5
,
transparent
),
to
(
transparent
));
background-color
:
#0ae
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"page-body"
>
<div
class=
"page-body"
>
...
@@ -39,14 +63,6 @@
...
@@ -39,14 +63,6 @@
<div
class=
"page-content"
>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table"
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table"
separator=
"none"
title=
"我的排班计划"
:data=
"dataList"
:columns=
"columns"
row-key=
"name"
>
separator=
"none"
title=
"我的排班计划"
:data=
"dataList"
:columns=
"columns"
row-key=
"name"
>
<
template
v-slot:body-cell-PlanList=
"props"
>
<q-td>
<div
v-for=
"(item,index) in props.row.PlanList"
class=
"myPlan_List"
>
<div
class=
"Mysche_Dian"
></div>
<div>
{{
item
.
ItemName
}}
</div>
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-StatusStr=
"props"
>
<
template
v-slot:body-cell-StatusStr=
"props"
>
<q-td>
<q-td>
<div
v-if=
"props.row.Status==0"
style=
"color:blue"
>
<div
v-if=
"props.row.Status==0"
style=
"color:blue"
>
...
@@ -83,6 +99,30 @@
...
@@ -83,6 +99,30 @@
</div>
</div>
</q-td>
</q-td>
</template>
</template>
<
template
v-slot:body-cell-PlanList=
"props"
>
<q-td>
<el-popover
placement=
"bottom"
popper-class=
"mySchePop"
width=
"300"
trigger=
"click"
>
<div
class=
"mySchPopDiv"
>
<table
class=
"mySchpopTable"
style=
"width:100%;"
>
<tr
v-for=
"item in props.row.PlanList"
>
<td
style=
"width:10px;"
>
<div
class=
"Mysche_Dian"
:class=
"
{'sch_isWorked':item.IsChecked==1}">
</div>
</td>
<td>
{{
item
.
ItemName
}}
</td>
<td
style=
"width:40px;text-align:center;"
>
<img
v-if=
"item.IsChecked==1"
style=
"width:20px;height:20px;"
src=
"../../assets/images/da_gou.png"
/>
</td>
</tr>
</table>
</div>
<div
slot=
"reference"
style=
"cursor:pointer;text-align:center;"
>
{{
getWorked
(
props
.
row
.
PlanList
)
}}
/
{{
props
.
row
.
PlanList
.
length
}}
</div>
</el-popover>
</q-td>
</
template
>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
:input=
"true"
@
input=
"changePage"
/>
...
@@ -247,8 +287,17 @@
...
@@ -247,8 +287,17 @@
Shift
:
item
.
Shift
Shift
:
item
.
Shift
}
}
});
});
},
//已经完成的
getWorked
(
PlanList
){
let
count
=
0
;
PlanList
.
forEach
(
x
=>
{
if
(
x
.
IsChecked
==
1
){
count
=
count
+
1
;
}
})
return
count
;
}
}
},
},
}
}
...
...
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