(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0308873e"],{"14b9":function(t,e,i){},6051:function(t,e,i){"use strict";var s=i("14b9"),c=i.n(s);c.a},eaa4:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"home-container"},[i("head-bar",{on:{back:t.back},scopedSlots:t._u([{key:"title",fn:function(){return[i("div",{staticClass:"navTitle"},[t._v("填写问卷")])]},proxy:!0}])}),i("div",{staticClass:"step_box"},[i("topicVue",{ref:"topicVue",attrs:{cJson:t.cJson,title:t.title,brief:t.brief}})],1),i("div",{staticClass:"edit_top"},[i("div",{staticClass:"op_btn"},[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.publish}},[t._v("提交")])],1)])],1)},c=[],n=i("5530"),o=i("98e5"),a=i("71ed"),r=i("2f62"),u=i("bf3a"),f={components:{headBar:a["a"],topicVue:u["a"]},data:function(){return{courseid:this.$route.query.courseid,title:"",brief:"",cJson:[]}},computed:Object(n["a"])({},Object(r["c"])(["userinfo"])),methods:{back:function(){this.$router.push({path:"/test"})},getData:function(){var t=this,e={cid:this.courseid};Object(o["d"])(e).then((function(e){t.cJson=JSON.parse(e[0][0].chapters),t.title=e[0][0].title,t.brief=e[0][0].brief})).catch((function(t){console.error(t)}))},publish:function(){var t=this,e=this.$refs["topicVue"].checkArray,i=[{uid:this.userinfo.userid,cid:this.courseid,cjson:JSON.stringify(e),type:2}];Object(o["a"])(i).then((function(e){t.$message.success("提交成功"),t.back()})).catch((function(t){console.error(t)}))}},mounted:function(){this.getData()}},d=f,l=(i("6051"),i("2877")),h=Object(l["a"])(d,s,c,!1,null,"38cd110d",null);e["default"]=h.exports}}]);