(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-61c025e8"],{"3a2e":function(t,e,i){"use strict";i.r(e);var c=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.name,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)},s=[],n=(i("b0c0"),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,tid:this.$route.query.tid,name:this.$route.query.name,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,tid:this.tid};Object(o["e"])(e).then((function(e){e[1].length&&(t.cJson=JSON.parse(e[1][0].courseJson)),t.title=e[0][0].title,t.brief=e[0][0].brief,t.$forceUpdate()})).catch((function(t){console.error(t)}))},publish:function(){var t=this,e=this.$refs["topicVue"].checkArray,i=[{uid:this.tid,cid:this.courseid,cjson:JSON.stringify(e),type:"2"}];Object(o["b"])(i).then((function(e){t.$message.success("修改成功"),t.back()})).catch((function(t){console.error(t)}))}},mounted:function(){this.getData()}},d=f,h=(i("6ac5"),i("2877")),l=Object(h["a"])(d,c,s,!1,null,"011f61f4",null);e["default"]=l.exports},"6ac5":function(t,e,i){"use strict";var c=i("a1e6"),s=i.n(c);s.a},a1e6:function(t,e,i){}}]);