Commit 91ac4f77 authored by 罗超's avatar 罗超

1

parent 53be60ce
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<div class="col-2 q-table__title">节假日计划表</div> <div class="col-2 q-table__title">节假日计划表</div>
<q-space /> <q-space />
<div class="page-option"> <div class="page-option">
<q-btn color="accent" size="sm" icon="add" label="新增计划" @click="EditSchool(null)" /> <q-btn color="accent" size="sm" icon="add" label="新增计划" @click="EditPlan(null)" />
</div> </div>
</template> </template>
<!-- <template v-slot:body-cell-time="props"> <!-- <template v-slot:body-cell-time="props">
...@@ -41,9 +41,9 @@ ...@@ -41,9 +41,9 @@
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props">
<q-btn flat size="xs" icon="edit" color="accent" style="font-family:perfectFont" label="编辑" <q-btn flat size="xs" icon="edit" color="accent" style="font-family:perfectFont" label="编辑"
@click="EditSchool(props.row)" /> @click="EditPlan(props.row)" />
<q-btn flat size="xs" icon="delete" color="accent" style="font-family:perfectFont" label="删除" <q-btn flat size="xs" icon="delete" color="accent" style="font-family:perfectFont" label="删除"
@click="EditSchool(props.row)" /> @click="delHolidayPlan(props.row)" />
</q-td> </q-td>
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
<script> <script>
import { import {
getHolidayPlanList, getHolidayPlanList,
delHolidayPlan
} from '../../api/scheduling/schedu' } from '../../api/scheduling/schedu'
import VacationPlanForm from '../../components/schedul/vacationPlan-form' import VacationPlanForm from '../../components/schedul/vacationPlan-form'
export default { export default {
...@@ -175,8 +176,7 @@ ...@@ -175,8 +176,7 @@
this.isShowSchoolForm = false; this.isShowSchoolForm = false;
}, },
//新增、修改校区 //新增、修改校区
EditSchool(obj) { EditPlan(obj) {
console.log(obj)
if (obj) { if (obj) {
this.objOption = obj; this.objOption = obj;
} else { } else {
...@@ -184,6 +184,33 @@ ...@@ -184,6 +184,33 @@
} }
this.isShowSchoolForm = true; 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()
}
})
})
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment