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
91ac4f77
Commit
91ac4f77
authored
Jul 08, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
53be60ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
5 deletions
+32
-5
vacationPlan.vue
src/pages/scheduling/vacationPlan.vue
+32
-5
No files found.
src/pages/scheduling/vacationPlan.vue
View file @
91ac4f77
...
...
@@ -24,7 +24,7 @@
<div
class=
"col-2 q-table__title"
>
节假日计划表
</div>
<q-space
/>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
size=
"sm"
icon=
"add"
label=
"新增计划"
@
click=
"Edit
School
(null)"
/>
<q-btn
color=
"accent"
size=
"sm"
icon=
"add"
label=
"新增计划"
@
click=
"Edit
Plan
(null)"
/>
</div>
</
template
>
<!-- <template v-slot:body-cell-time="props">
...
...
@@ -41,9 +41,9 @@
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-family:perfectFont"
label=
"编辑"
@
click=
"Edit
School
(props.row)"
/>
@
click=
"Edit
Plan
(props.row)"
/>
<q-btn
flat
size=
"xs"
icon=
"delete"
color=
"accent"
style=
"font-family:perfectFont"
label=
"删除"
@
click=
"
EditSchool
(props.row)"
/>
@
click=
"
delHolidayPlan
(props.row)"
/>
</q-td>
</
template
>
<
template
v-slot:bottom
>
...
...
@@ -60,6 +60,7 @@
<
script
>
import
{
getHolidayPlanList
,
delHolidayPlan
}
from
'../../api/scheduling/schedu'
import
VacationPlanForm
from
'../../components/schedul/vacationPlan-form'
export
default
{
...
...
@@ -175,8 +176,7 @@
this
.
isShowSchoolForm
=
false
;
},
//新增、修改校区
EditSchool
(
obj
)
{
console
.
log
(
obj
)
EditPlan
(
obj
)
{
if
(
obj
)
{
this
.
objOption
=
obj
;
}
else
{
...
...
@@ -184,6 +184,33 @@
}
this
.
isShowSchoolForm
=
true
;
},
//删除计划
delHolidayPlan
(
item
){
let
that
=
this
this
.
$q
.
dialog
({
title
:
'删除确认'
,
message
:
'删除且无法恢复,你确定要删除吗'
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
,
color
:
"negative"
}
}).
onOk
(()
=>
{
delHolidayPlan
({
HolidayId
:
item
.
HolidayId
}).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
Code
===
1
){
this
.
$message
.
success
(
"操作成功"
)
that
.
resetSearch
()
}
})
})
}
}
}
...
...
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