chunk-11f79fd4.ccc3196a.js 7.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-11f79fd4"],{"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,u=20,c=0;t="undefined"===typeof t?500:t;var l=function e(){c+=u;var o=Math.easeInOutQuad(c,i,s,t);r(o),c<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: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-col",{attrs:{xs:24,sm:24,md:6,lg:5,xl:5}},[n("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",inline:"","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-col",{attrs:{xs:24,sm:24,md:18,lg:19,xl:19}},[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(e._s(t.answerValue?t.answerValue:t.additionalValue))]):n("el-tag",{staticStyle:{margin:"8px 20px","font-size":"14px"},attrs:{type:"danger"}},[e._v("未答题")])],1)})),0)],1)],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("96cf"),n("1da1")),s=n("70b4"),u=n("adb21"),c=n("333d"),l={name:"operationQuestion",components:{pagination:c["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(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.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(i["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.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(s["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"}},"您确定导出问答详情?")}}},p=l,m=(n("925c"),n("2877")),d=Object(m["a"])(p,a,r,!1,null,"26a19de6",null);t["default"]=d.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 u})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"g",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"h",(function(){return d}));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 u(e){return Object(a["a"])({url:r+"/replacementInstrumentCooperation/openPay",method:"post",params:{},data:e,requestType:"form"})}function c(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 m(e){return Object(a["a"])({url:r+"/questionnaireUserResult/queryPage",method:"get",params:e})}function d(e){return Object(a["a"])({url:r+"/replacementInstrumentActivity/updateOpenFlag",method:"post",data:e,requestType:"form"})}},"925c":function(e,t,n){"use strict";n("d039")},adb21:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n("bc3a"),r=n.n(a),o=(n("4328"),n("5f87")),i=n("3908"),s=n("e3eb"),u=n.n(s),c=function(e,t,n){var a=t.url,s={method:t.method?t.method:"get",headers:{Authorization:Object(o["a"])()},url:a,responseType:"blob"};"post"==s.method?s.data=t.params:s.params=t.params,e.$confirm(n||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i["a"].startLoading(),r()(u()(s)).then((function(n){var a=new Blob([n.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=new Response(a).text();r.then((function(n){if(-1!=n.indexOf("code")){var r=JSON.parse(n);e.$message.error(r.msg)}else{var o=URL.createObjectURL(a),i=document.createElement("a"),s=t.fileName||"导出文件.xls";i.href=o,i.setAttribute("download",s),document.body.appendChild(i),i.click()}})),i["a"].endLoading()})).catch((function(t){e.$message.error("下载失败,请联系管理员"),i["a"].endLoading()}))})).catch((function(){}))}},d039:function(e,t,n){}}]);