1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f7c1e8d4"],{"09f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),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 r(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 i(e,t,n){var i=o(),s=e-i,c=20,u=0;t="undefined"===typeof t?500:t;var l=function e(){u+=c;var o=Math.easeInOutQuad(u,i,s,t);r(o),u<t?a(e):n&&"function"===typeof n&&n()};l()}},"624e":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("重置")]),e._v(" "),e.$helpers.permission("questionnaireUserResult/export")?n("el-button",{attrs:{type:"primary"},on:{click:e.onExport}},[e._v("导出")]):e._e()],1)],1),e._v(" "),e._l(e.tableList,(function(t){return n("el-card",{key:t.id,staticClass:"box-card"},[n("el-row",[n("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",inline:!0,"label-width":"90px"}},[n("el-form-item",{attrs:{label:"学生编号"}},[n("span",[n("copy-text",[e._v(e._s(t.userId))])],1)]),e._v(" "),n("el-form-item",{attrs:{label:"学生姓名"}},[n("span",[n("copy-text",[e._v(e._s(t.username))])],1)]),e._v(" "),n("el-form-item",{attrs:{label:"学生手机号"}},[n("span",[n("copy-text",[e._v(e._s(t.phone))])],1)])],1)],1),e._v(" "),n("el-row",[n("el-collapse",[n("el-collapse-item",{attrs:{title:"查看答案",name:"1"}},e._l(t.questionnaireResultDtoList,(function(t,a){return n("div",{key:a,staticClass:"text item"},[n("el-alert",{attrs:{title:t.content,type:"info",closable:!1}}),e._v(" "),t.answerValue||t.additionalValue?n("div",{staticStyle:{padding:"8px 20px","font-size":"14px"}},[e._v("\n "+e._s(t.answerValue?t.answerValue:t.additionalValue)+"\n ")]):n("el-tag",{staticStyle:{margin:"8px 20px","font-size":"14px"},attrs:{type:"danger"}},[e._v("未答题")])],1)})),0)],1)],1)],1)})),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}})],2)])},r=[],o=n("5530"),i=(n("386d"),n("c7eb")),s=(n("96cf"),n("1da1")),c=n("70b4"),u=n("adb21"),l=n("333d"),p={name:"operationQuestion",components:{pagination:l["a"]},data:function(){var e=this.$route.query,t="问答详情";return{titleName:t,id:e.id,topicId:e.topicId,searchForm:{search:null},tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){var e=Object(s["a"])(Object(i["a"])().mark((function e(){return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.getList();case 1:case"end":return e.stop()}}),e,this)})));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(i["a"])().mark((function e(){var t,n;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=Object(o["a"])({activeId:this.id,activeType:"REPLACEMENT",page:this.pageInfo.page,rows:this.pageInfo.limit},this.searchForm),e.next=4,Object(c["f"])(t);case 4:n=e.sent,this.tableList=n.data.rows,this.pageInfo.total=n.data.total,e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11: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:"/otherManager/reaplceMusicPlayer"})},onExport:function(){Object(u["a"])(this,{url:"/api-web/questionnaireUserResult/export",fileName:"问答详情.xls",method:"get",params:{cooperationId:this.id,activeType:"REPLACEMENT"}},"您确定导出问答详情?")}}},d=p,m=(n("d02e"),n("2877")),f=Object(m["a"])(d,a,r,!1,null,"0629008c",null);t["default"]=f.exports},"70b4":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"i",(function(){return i})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"g",(function(){return p})),n.d(t,"f",(function(){return d})),n.d(t,"h",(function(){return m}));n("b775");var a=n("829b"),r=(n("4328"),"/api-web");function o(e){return Object(a["a"])({url:r+"/replacementInstrumentCooperation/add",method:"post",params:{},requestType:"form",data:e})}function i(e){return Object(a["a"])({url:r+"/replacementInstrumentCooperation/update",method:"post",params:{},requestType:"form",data:e})}function s(e){return Object(a["a"])({url:r+"/replacementInstrumentCooperation/queryPage",method:"get",params:e,requestType:"form"})}function c(e){return Object(a["a"])({url:r+"/replacementInstrumentCooperation/openPay",method:"post",params:{},data:e,requestType:"form"})}function u(e){return Object(a["a"])({url:r+"/replacementInstrument/queryPage",method:"get",params:e,requestType:"form"})}function l(e){return Object(a["a"])({url:r+"/replacementInstrumentActivity/queryPage",method:"get",params:e,requestType:"form"})}function p(e){return Object(a["a"])({url:r+"/replacementInstrumentActivity/update",method:"post",data:e,requestType:"form"})}function d(e){return Object(a["a"])({url:r+"/questionnaireUserResult/queryPage",method:"get",params:e})}function m(e){return Object(a["a"])({url:r+"/replacementInstrumentActivity/updateOpenFlag",method:"post",data:e,requestType:"form"})}},"72a2":function(e,t,n){},adb21:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n("bc3a"),r=n.n(a),o=(n("4328"),n("5f87")),i=n("3908"),s=n("e3eb"),c=n.n(s),u=function(e,t,n,a){var s=t.url,u={method:t.method?t.method:"get",headers:{Authorization:Object(o["b"])(),tenantId:Object(o["a"])()},url:s,responseType:"blob"};"post"==u.method?u.data=t.params:u.params=t.params,e.$confirm(n||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i["a"].startLoading(),r()(c()(u)).then((function(n){var r=new Blob([n.data],{type:"application/vnd.ms-excel;charset=utf-8"}),o=new Response(r).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 i=URL.createObjectURL(r),s=document.createElement("a"),c=t.fileName||"导出文件.xls";s.href=i,s.setAttribute("download",c),document.body.appendChild(s),s.click(),a&&a()}})),i["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),i["a"].endLoading()}))})).catch((function(){}))}},d02e:function(e,t,n){"use strict";n("72a2")}}]);
|