1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-088e310f"],{"730a":function(t,e,c){"use strict";c.r(e);var i=function(){var t=this,e=t.$createElement,c=t._self._c||e;return c("div",{staticClass:"home-container"},[c("head-bar",{on:{back:t.back},scopedSlots:t._u([{key:"title",fn:function(){return[c("div",{staticClass:"navTitle"},[t._v("查看问卷")])]},proxy:!0}])}),c("div",{staticClass:"step_box"},[c("topicVue",{attrs:{cJson:t.cJson,title:t.name,brief:t.brief,checktype:2,see:t.see}})],1)],1)},s=[],n=(c("b0c0"),c("5530")),o=c("98e5"),r=c("71ed"),a=c("2f62"),u=c("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 t=this,e={cid:this.courseid,tid:this.tid};Object(o["f"])(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.see=1==e[0][0].open,t.$forceUpdate()})).catch((function(t){console.error(t)}))},publish:function(){var t=this,e=this.$refs["topicVue"].checkArray,c=[{uid:this.userinfo.userid,cid:this.courseid,cjson:JSON.stringify(e),type:2}];Object(o["a"])(c).then((function(e){t.$message.success("提交成功"),t.back()})).catch((function(t){console.error(t)}))}},mounted:function(){this.getData()}},h=f,d=(c("9197"),c("2877")),b=Object(d["a"])(h,i,s,!1,null,"bcdb5cfa",null);e["default"]=b.exports},9197:function(t,e,c){"use strict";var i=c("945c"),s=c.n(i);s.a},"945c":function(t,e,c){}}]);
|