|
|
|
@ -8,7 +8,6 @@
|
|
|
|
:title="type === 'add' ? '新增日程' : '编辑日程'"
|
|
|
|
:title="type === 'add' ? '新增日程' : '编辑日程'"
|
|
|
|
:form="form"
|
|
|
|
:form="form"
|
|
|
|
:rules="rules"
|
|
|
|
:rules="rules"
|
|
|
|
@submit="submit"
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template v-slot:is_publish>
|
|
|
|
<template v-slot:is_publish>
|
|
|
|
<div class="xy-table-item">
|
|
|
|
<div class="xy-table-item">
|
|
|
|
@ -297,12 +296,21 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</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>
|
|
|
|
</xy-dialog>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<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 courseIndex } from "@/api/course/index.js";
|
|
|
|
import { index as courseContentIndex } from "@/api/course/courseContent.js";
|
|
|
|
import { index as courseContentIndex } from "@/api/course/courseContent.js";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
@ -590,6 +598,18 @@ export default {
|
|
|
|
this.showTinymce = true;
|
|
|
|
this.showTinymce = true;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
delCalendar() {
|
|
|
|
|
|
|
|
destroy({
|
|
|
|
|
|
|
|
id: this.id,
|
|
|
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
type: "success",
|
|
|
|
|
|
|
|
message: "删除成功",
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.isShow = false;
|
|
|
|
|
|
|
|
this.$emit("refresh");
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
watch: {
|
|
|
|
isShow(newVal) {
|
|
|
|
isShow(newVal) {
|
|
|
|
|