(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5aa45bf3"],{"730a":function(e,t,i){"use strict";i.r(t);var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"home-container"},[i("head-bar",{on:{back:e.back},scopedSlots:e._u([{key:"title",fn:function(){return[i("div",{staticClass:"navTitle"},[e._v("查看问卷")])]},proxy:!0}])}),i("div",{staticClass:"step_box"},[i("topicVue",{attrs:{cJson:e.cJson,title:e.name,brief:e.brief,checktype:2,see:e.see}})],1)],1)},c=[],n=(i("b0c0"),i("5530")),o=i("98e5"),r=i("71ed"),a=i("2f62"),u=i("bf3a"),f={components:{headBar:r["a"],topicVue:u["a"]},data:function(){return{courseid:this.$route.query.courseid,tid:this.$route.query.tid,name:this.$route.query.name,title:"",brief:"",cJson:[],see:!1}},computed:Object(n["a"])({},Object(a["c"])(["userinfo"])),methods:{back:function(){this.$router.push({path:"/test"})},getData:function(){var e=this,t={cid:this.courseid,tid:this.tid};Object(o["f"])(t).then((function(t){t[1].length&&(e.cJson=JSON.parse(t[1][0].courseJson)),e.title=t[0][0].title,e.brief=t[0][0].brief,e.see=1==t[0][0].open,e.$forceUpdate()})).catch((function(e){console.error(e)}))},publish:function(){var e=this,t=this.$refs["topicVue"].checkArray,i=[{uid:this.userinfo.userid,cid:this.courseid,cjson:JSON.stringify(t),type:2}];Object(o["a"])(i).then((function(t){e.$message.success("提交成功"),e.back()})).catch((function(e){console.error(e)}))}},mounted:function(){this.getData()}},d=f,h=(i("fde8"),i("2877")),b=Object(h["a"])(d,s,c,!1,null,"7e34b660",null);t["default"]=b.exports},d8b6:function(e,t,i){},fde8:function(e,t,i){"use strict";var s=i("d8b6"),c=i.n(s);c.a}}]);