import{g as s,h as i}from"./online-course.07094acf.js";import{A as n}from"./add-course.4b5bbdd4.js";import{n as a}from"./vueComponentNormalizer.9ef17bb1.js";import"./index.f5168bf8.js";import"./org.23184f20.js";/* empty css                                                              *//* empty css                                                                   */import"./TableLayout.05a39499.js";/* empty css                                                    */import"./DialogLayout.e3af3567.js";import"./ActionBar.1725b1a3.js";/* empty css                                                     *//* empty css                                                               */import"./Preview.0aa9dcef.js";import"./data-report.0c7c73f2.js";import"./index.2adbb9ac.js";import"./my-course.d26f38fb.js";import"./button-selft.a87deecf.js";import"./utils.068fedb0.js";import"./PaperSelectQuestionTable.9e024c19.js";/* empty css                */import"./questions.7b7a7919.js";import"./QuestionDifficultyLevelSelector.b9a0d127.js";import"./QuestionListPreview.baa07396.js";import"./QuestionItem.1944680c.js";import"./questionInfoMapJsonTrans.58e126b5.js";import"./course-disscuss.1394e5b3.js";var u=function(){var t=this,o=t.$createElement,r=t._self._c||o;return t.nowEditorCourseInfo?r("AddCourse",{attrs:{classify:t.classifyList_tree,nowCheckCourse:t.nowEditorCourseInfo},on:{close_addCourse:function(m){return t.$router.back()}}}):t._e()},c=[];const l={components:{AddCourse:n},data:()=>({classifyList_tree:[],nowEditorCourseInfo:null}),activated(){this.nowEditorCourseInfo=null,this.$nextTick(()=>{var t,o;this[(t=this.$route.params)!=null&&t.courseId?"edit":"add"]((o=this.$route.params)==null?void 0:o.courseId)}),this.getClassifyList()},methods:{async getClassifyList(){const{data:t}=await s(),{tree:o}=t.toTree();this.classifyList_tree=o},add(){var t;this.nowEditorCourseInfo={creator:this.$store.user.id,updater:this.$store.user.id,remarks:null,name:"",classify:((t=this.nowCheckClassify)==null?void 0:t.id)||1,sectionCount:0,difficulty:1,status:1,grade:0,cover:"",explain:"",studyOrgId:1,sectionSortStudy:0,coursewareSortStudy:0,openQuiz:0,openDiscussion:0,openSelfEvaluation:0,openEval:0,txtOrGradeEvealute:0,textOrGradeSelfEval:0,textEvaluateTitle:"",selfTextEvaluateTitle:"",exercise:[],evalDimension:[],courseSectionContent:[]}},async edit(t){const{data:o}=await i(t);this.nowEditorCourseInfo=o}}},e={};var p=a(l,u,c,!1,d,null,null,null);function d(t){for(let o in e)this[o]=e[o]}const q=function(){return p.exports}();export{q as default};
