1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-486695b8"],{"09f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),Math.easeInOutQuad=function(e,t,n,a){return e/=a/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function i(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function r(e,t,n){var r=o(),s=e-r,u=20,c=0;t="undefined"===typeof t?500:t;var l=function e(){c+=u;var o=Math.easeInOutQuad(c,r,s,t);i(o),c<t?a(e):n&&"function"===typeof n&&n()};l()}},"2ace":function(e,t,n){},"5cdb":function(e,t,n){},"5f60":function(e,t,n){"use strict";n("2ace")},"8c36":function(e,t,n){"use strict";n("5cdb")},a92a:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return c}));var a=n("829b"),i=function(e){return Object(a["a"])({url:"/api-web/questionnaireTopic/queryPage",params:e,method:"get"})},o=function(e){return Object(a["a"])({url:"/api-web/questionnaireTopic/getDetail",params:e,method:"get"})},r=function(e){return Object(a["a"])({url:"/api-web/questionnaireTopic/add",data:e,method:"post"})},s=function(e){return Object(a["a"])({url:"/api-web/questionnaireTopic/update",data:e,method:"post"})},u=function(e){return Object(a["a"])({url:"/api-web/questionnaireTopic/updateStatus",data:e,method:"post",requestType:"form"})},c=function(e){return Object(a["a"])({url:"/api-web/questionnaireUserResult/queryResultPage",data:e,params:e,method:"get"})}},adb21:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n("bc3a"),i=n.n(a),o=(n("4328"),n("5f87")),r=n("3908"),s=n("e3eb"),u=n.n(s),c=function(e,t,n,a){var s=t.url,c={method:t.method?t.method:"get",headers:{Authorization:Object(o["b"])(),tenantId:Object(o["a"])()},url:s,responseType:"blob"};"post"==c.method?c.data=t.params:c.params=t.params,e.$confirm(n||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){r["a"].startLoading(),i()(u()(c)).then((function(n){var i=new Blob([n.data],{type:"application/vnd.ms-excel;charset=utf-8"}),o=new Response(i).text();o.then((function(n){if(-1!=n.indexOf("code")){var o=JSON.parse(n);if(403==o.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==o.code?e.$message.success(o.msg):e.$message.error(o.msg),a&&a()}else{var r=URL.createObjectURL(i),s=document.createElement("a"),u=t.fileName||"导出文件.xls";s.href=r,s.setAttribute("download",u),document.body.appendChild(s),s.click(),a&&a()}})),r["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),r["a"].endLoading()}))})).catch((function(){}))}},c95ca:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[n("h2",[n("el-page-header",{attrs:{content:e.titleName},on:{back:e.onCancel}})],1),e._v(" "),n("div",{staticClass:"m-core"},[n("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[n("el-form-item",{attrs:{prop:"search"}},[n("el-input",{attrs:{clearable:"",placeholder:"请输入搜索内容"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{"native-type":"submit",type:"primary"}},[e._v("搜索")]),e._v(" "),n("el-button",{attrs:{"native-type":"reset",type:"danger"}},[e._v("重置")])],1)],1),e._v(" "),e.tableList.length>0?n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[e.loginFlag?n("el-table-column",{key:"name",attrs:{align:"center",label:"学生姓名",prop:"username"}}):e._e(),e._v(" "),e.loginFlag?n("el-table-column",{key:"id",attrs:{align:"center",label:"学生编号",prop:"userId"}}):e._e(),e._v(" "),e._l(e.questionList.questionnaireQuestionList,(function(t,a){return n("el-table-column",{key:t.id,attrs:{align:"center",label:t.content},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.questionnaireResultDtoList[a]&&t.row.questionnaireResultDtoList[a].type?n("div",["radio"==t.row.questionnaireResultDtoList[a].type?n("p",[e._v("\n\n "+e._s(t.row.questionnaireResultDtoList[a].answerValue)+"\n ")]):e._e(),e._v(" "),"checkbox"==t.row.questionnaireResultDtoList[a].type?n("div",e._l(t.row.questionnaireResultDtoList[a].answerValue.split(","),(function(t,a){return n("p",{key:a},[e._v(e._s(t))])})),0):e._e(),e._v(" "),"textarea"==t.row.questionnaireResultDtoList[a].type?n("p",[n("overflow-text",{attrs:{text:t.row.questionnaireResultDtoList[a].additionalValue}})],1):e._e(),e._v(" "),"image"==t.row.questionnaireResultDtoList[a].type?n("div",[t.row.questionnaireResultDtoList[a].additionalValue?n("div",{staticClass:"imgWrap"},[n("el-image",{ref:"refImg",refInFor:!0,staticClass:"refImg",staticStyle:{width:"50px",height:"50px","margin-right":"5px"},attrs:{src:t.row.questionnaireResultDtoList[a].additionalValue,"preview-src-list":[t.row.questionnaireResultDtoList[a].additionalValue]}})],1):n("span",[e._v("--")])]):e._e()]):n("p",[e._v("--")])]}}],null,!0)})}))],2)],1):e._e(),e._v(" "),e.tableList.length<=0?n("empty"):e._e(),e._v(" "),n("pagination",{attrs:{sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)])},i=[],o=n("db72"),r=(n("386d"),n("c80c")),s=(n("96cf"),n("3b8d")),u=(n("7f7f"),n("a92a")),c=(n("adb21"),n("333d")),l={name:"operationQuestion",components:{pagination:c["a"]},data:function(){var e=this.$route.query;return{titleName:e.name,id:e.id,searchForm:{search:null},tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},loginFlag:null,questionList:null}},mounted:function(){var e=Object(s["a"])(Object(r["a"])().mark((function e(){var t;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loginFlag=1*this.$route.query.loginFlag,this.getList(),e.prev=2,e.next=5,Object(u["b"])({id:this.id});case 5:t=e.sent,this.questionList=t.data,this.settemplateType(t.data.templateType),this.disabled=!t.data.modifyFlag,e.next=13;break;case 11:e.prev=11,e.t0=e["catch"](2);case 13:case"end":return e.stop()}}),e,this,[[2,11]])})));function t(){return e.apply(this,arguments)}return t}(),methods:{search:function(){this.pageInfo.page=1,this.getList()},onReSet:function(){this.$refs.searchForm.resetFields(),this.search()},getList:function(){var e=Object(s["a"])(Object(r["a"])().mark((function e(){var t,n;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=Object(o["a"])({topicId:this.id,page:this.pageInfo.page,rows:this.pageInfo.limit},this.searchForm),e.next=4,Object(u["f"])(t);case 4:n=e.sent,this.tableList=n.data.rows,this.pageInfo.total=n.data.total,e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),console.log(e.t0);case 12:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/operateManager/setQuestions"})}}},d=l,p=(n("5f60"),n("8c36"),n("2877")),f=Object(p["a"])(d,a,i,!1,null,"3fafc9c5",null);t["default"]=f.exports}}]);
|