反馈更改

dev
lion 3 months ago
parent cf3d3b981d
commit 92692415eb

@ -8,7 +8,6 @@
:title="type === 'add' ? '新增日程' : '编辑日程'"
:form="form"
:rules="rules"
@submit="submit"
>
<template v-slot:is_publish>
<div class="xy-table-item">
@ -297,12 +296,21 @@
</div>
</div>
</template>
<template v-slot:footerContent>
<el-button type="primary" size="small" @click="submit"></el-button>
<!-- <el-popconfirm style="margin:0 10px" @confirm="delCalendar" title="确定删除吗?">
<el-button type="danger" size="small" v-if="type==='editor'" slot="reference"></el-button>
</el-popconfirm> -->
<el-popconfirm style="margin:0 10px" @confirm="delCalendar" title="确定删除吗?">
<el-button type="danger" size="small" slot="reference">删除</el-button>
</el-popconfirm>
</template>
</xy-dialog>
</div>
</template>
<script>
import { show, save } from "@/api/calendars/index.js";
import { show, save,destroy } from "@/api/calendars/index.js";
import { index as courseIndex } from "@/api/course/index.js";
import { index as courseContentIndex } from "@/api/course/courseContent.js";
export default {
@ -590,6 +598,18 @@ export default {
this.showTinymce = true;
});
},
delCalendar() {
destroy({
id: this.id,
}).then((res) => {
this.$message({
type: "success",
message: "删除成功",
});
this.isShow = false;
this.$emit("refresh");
});
},
},
watch: {
isShow(newVal) {

Loading…
Cancel
Save