chunk-471fa1e1.55b0efe3.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-471fa1e1"],{"09f4":function(e,t,l){"use strict";l.d(t,"a",(function(){return n})),Math.easeInOutQuad=function(e,t,l,a){return e/=a/2,e<1?l/2*e*e+t:(e--,-l/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 n(e,t,l){var n=o(),i=e-n,s=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=s;var o=Math.easeInOutQuad(c,n,i,t);r(o),c<t?a(e):l&&"function"===typeof l&&l()};u()}},2420:function(e,t,l){"use strict";l("360f")},"331e":function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"m-container"},[e._m(0),e._v(" "),l("div",{staticClass:"m-core"},[l("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[l("el-form-item",{attrs:{prop:"search"}},[l("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(" "),l("el-form-item",{attrs:{prop:"grade"}},[l("el-select",{attrs:{clearable:"",placeholder:"请选择年级"},model:{value:e.searchForm.grade,callback:function(t){e.$set(e.searchForm,"grade","string"===typeof t?t.trim():t)},expression:"searchForm.grade"}},[l("el-option",{attrs:{label:"小学A组:2-3年级",value:"小学A组:2-3年级"}}),e._v(" "),l("el-option",{attrs:{label:"小学B组:4-5年级",value:"小学B组:4-5年级"}}),e._v(" "),l("el-option",{attrs:{label:"中学组:6-8年级",value:"中学组:6-8年级"}})],1)],1),e._v(" "),l("el-form-item",{attrs:{prop:"gender"}},[l("el-select",{attrs:{clearable:"",placeholder:"请选择性别"},model:{value:e.searchForm.gender,callback:function(t){e.$set(e.searchForm,"gender","string"===typeof t?t.trim():t)},expression:"searchForm.gender"}},[l("el-option",{attrs:{label:"男",value:!0}}),e._v(" "),l("el-option",{attrs:{label:"女",value:!1}})],1)],1),e._v(" "),l("el-form-item",{attrs:{prop:"subject"}},[l("el-select",{attrs:{clearable:"",placeholder:"请选择参赛专业"},model:{value:e.searchForm.subject,callback:function(t){e.$set(e.searchForm,"subject","string"===typeof t?t.trim():t)},expression:"searchForm.subject"}},[l("el-option",{attrs:{label:"长笛",value:"长笛"}}),e._v(" "),l("el-option",{attrs:{label:"单簧管",value:"单簧管"}}),e._v(" "),l("el-option",{attrs:{label:"萨克斯",value:"萨克斯"}}),e._v(" "),l("el-option",{attrs:{label:"小号",value:"小号"}}),e._v(" "),l("el-option",{attrs:{label:"圆号",value:"圆号"}}),e._v(" "),l("el-option",{attrs:{label:"长号",value:"长号"}}),e._v(" "),l("el-option",{attrs:{label:"上低音号",value:"上低音号"}})],1)],1),e._v(" "),l("el-form-item",{attrs:{prop:"prizeLevel"}},[l("el-select",{attrs:{clearable:"",placeholder:"请选择获奖级别"},model:{value:e.searchForm.prizeLevel,callback:function(t){e.$set(e.searchForm,"prizeLevel","string"===typeof t?t.trim():t)},expression:"searchForm.prizeLevel"}},[l("el-option",{attrs:{label:"大雅之星",value:1}}),e._v(" "),l("el-option",{attrs:{label:"一等奖",value:2}}),e._v(" "),l("el-option",{attrs:{label:"二等奖",value:3}}),e._v(" "),l("el-option",{attrs:{label:"三等奖",value:4}}),e._v(" "),l("el-option",{attrs:{label:"优秀奖",value:5}})],1)],1),e._v(" "),l("el-form-item",{attrs:{prop:"isShow"}},[l("el-select",{attrs:{clearable:"",placeholder:"请选择是否展示"},model:{value:e.searchForm.isShow,callback:function(t){e.$set(e.searchForm,"isShow","string"===typeof t?t.trim():t)},expression:"searchForm.isShow"}},[l("el-option",{attrs:{label:"是",value:1}}),e._v(" "),l("el-option",{attrs:{label:"否",value:0}})],1)],1),e._v(" "),l("el-form-item",{attrs:{prop:"isReview"}},[l("el-select",{attrs:{clearable:"",placeholder:"请选择是否评审"},model:{value:e.searchForm.isReview,callback:function(t){e.$set(e.searchForm,"isReview","string"===typeof t?t.trim():t)},expression:"searchForm.isReview"}},[l("el-option",{attrs:{label:"是",value:1}}),e._v(" "),l("el-option",{attrs:{label:"否",value:0}})],1)],1),e._v(" "),l("el-form-item",[l("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")]),e._v(" "),l("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),l("div",{staticClass:"tableWrap"},[l("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[l("el-table-column",{attrs:{align:"center",prop:"userId",label:"选手编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("copy-text",[e._v(e._s(t.row.userId))])]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"username",label:"选手姓名"}}),e._v(" "),l("el-table-column",{attrs:{align:"center",width:"200px",prop:"idCardNo",label:"身份证号码"}}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"age",label:"年龄"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.age)+"岁\n ")]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"grade",label:"年级"}}),e._v(" "),l("el-table-column",{attrs:{align:"center",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.gender?"男":"女")+"\n ")]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"subject",label:"参赛专业"}}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"chapter",label:"参赛曲目"}}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"score",label:"得分"}}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"prizeLevel",label:"获奖级别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.prizeLevelList[t.row.prizeLevel])+"\n ")]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"show",label:"是否展示"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.show?"是":"否")+"\n ")]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",prop:"comment",label:"选手点评"},scopedSlots:e._u([{key:"default",fn:function(e){return[l("tooltip",{attrs:{content:e.row.comment}})]}}])}),e._v(" "),l("el-table-column",{attrs:{align:"center",width:"120px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e.permission("studentCompetition/lookDetail")?l("el-button",{attrs:{type:"text"},on:{click:function(l){return e.lookDetail(t.row)}}},[e._v("查看")]):e._e(),e._v(" "),e.permission("studentCompetition/update")?l("el-button",{attrs:{type:"text"},on:{click:function(l){return e.onReview(t.row)}}},[e._v("评审")]):e._e()],1)]}}])})],1),e._v(" "),l("pagination",{attrs:{total:e.pageInfo.total,sync:"",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)],1),e._v(" "),e.dialogVisible?l("el-dialog",{attrs:{title:"查看",visible:e.dialogVisible,width:"900px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[l("match-detail",{attrs:{detail:e.detail}})],1):e._e(),e._v(" "),l("el-dialog",{attrs:{title:"评审",visible:e.reviewStatus,width:"500px"},on:{"update:visible":function(t){e.reviewStatus=t}}},[l("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[l("el-form-item",{attrs:{label:"得分",prop:"score"}},[l("el-input",{attrs:{placeholder:"请输入得分",type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.form.score,callback:function(t){e.$set(e.form,"score","string"===typeof t?t.trim():t)},expression:"form.score"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"获奖级别",prop:"prizeLevel"}},[l("el-select",{staticStyle:{width:"100% !important"},attrs:{placeholder:"请选择获奖级别"},model:{value:e.form.prizeLevel,callback:function(t){e.$set(e.form,"prizeLevel","string"===typeof t?t.trim():t)},expression:"form.prizeLevel"}},[l("el-option",{attrs:{label:"大雅之星",value:1}}),e._v(" "),l("el-option",{attrs:{label:"一等奖",value:2}}),e._v(" "),l("el-option",{attrs:{label:"二等奖",value:3}}),e._v(" "),l("el-option",{attrs:{label:"三等奖",value:4}}),e._v(" "),l("el-option",{attrs:{label:"优秀奖",value:5}}),e._v(" "),l("el-option",{attrs:{label:"无",value:0}})],1)],1),e._v(" "),l("el-form-item",{attrs:{label:"是否展示",prop:"show"}},[l("el-select",{staticStyle:{width:"100% !important"},attrs:{placeholder:"请选择是否展示"},model:{value:e.form.show,callback:function(t){e.$set(e.form,"show","string"===typeof t?t.trim():t)},expression:"form.show"}},[l("el-option",{attrs:{label:"是",value:!0}}),e._v(" "),l("el-option",{attrs:{label:"否",value:!1}})],1)],1),e._v(" "),l("el-form-item",{attrs:{label:"选手点评",prop:"comment"}},[l("el-input",{attrs:{type:"textarea"},model:{value:e.form.comment,callback:function(t){e.$set(e.form,"comment","string"===typeof t?t.trim():t)},expression:"form.comment"}})],1)],1),e._v(" "),l("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{on:{click:function(t){e.reviewStatus=!1}}},[e._v("取 消")]),e._v(" "),l("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onReviewSubmit("ruleForm")}}},[e._v("确 定")])],1)],1)],1)},r=[function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("h2",[l("div",{staticClass:"squrt"}),e._v("比赛管理\n ")])}],o=l("c80c"),n=(l("96cf"),l("3b8d")),i=(l("ac6a"),l("333d")),s=l("ec8a"),c=l("a5b0"),u=l("b775"),p="/api-web";function m(e){return Object(u["a"])({url:p+"/studentCompetition/queryPage",method:"post",data:e})}function v(e){return Object(u["a"])({url:p+"/studentCompetition/update",method:"post",data:e})}var d=l("e3eb"),f=l.n(d),b=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("descriptions",{attrs:{column:2}},[l("descriptions-item",{attrs:{label:"选手姓名:"}},[e._v(e._s(e.detail.username))]),e._v(" "),l("descriptions-item",{attrs:{label:"选手编号:"}},[e._v(e._s(e.detail.userId))]),e._v(" "),l("descriptions-item",{attrs:{label:"身份证号码:"}},[e._v(e._s(e.detail.idCardNo))]),e._v(" "),l("descriptions-item",{attrs:{label:"年龄:"}},[e._v(e._s(e.detail.age)+"岁")]),e._v(" "),l("descriptions-item",{attrs:{label:"年级:"}},[e._v(e._s(e.detail.grade))]),e._v(" "),l("descriptions-item",{attrs:{label:"性别:"}},[e._v(e._s(e.detail.gender?"男":"女"))]),e._v(" "),l("descriptions-item",{attrs:{label:"参赛专业:"}},[e._v(e._s(e.detail.subject))]),e._v(" "),l("descriptions-item",{attrs:{label:"参赛曲目:"}},[e._v(e._s(e.detail.chapter))])],1),e._v(" "),e.detail.videoUrl?l("video",{staticClass:"video",attrs:{controls:"controls",type:"video/mp4",preload:"auto",autopaly:"false",src:e.detail.videoUrl}}):e._e()],1)},_=[],h=l("2b0e"),g=l("ddec");h["default"].use(g["a"]);var w={props:["detail"],data:function(){return{}}},y=w,k=(l("3a1e"),l("2877")),F=Object(k["a"])(y,b,_,!1,null,"34c19d39",null),L=F.exports,x=function(e,t,l){""==t&&"string"==typeof t||null==t?l(new Error("请输入得分")):t<0||t>100?l(new Error("输入得分必须在0-100之间")):l()},S={components:{pagination:i["a"],Tooltip:c["a"],MatchDetail:L},data:function(){return{searchForm:{search:null,gender:null,subject:null,prizeLevel:null,grade:null,isShow:null,isReview:null},tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},prizeLevelList:{1:"大雅之星",2:"一等奖",3:"二等奖",4:"三等奖",5:"优秀奖"},detail:null,dialogVisible:!1,reviewStatus:!1,form:{id:null,score:null,prizeLevel:null,show:null,comment:null},rules:{score:[{required:!0,validator:x,trigger:"blur"}]}}},created:function(){},mounted:function(){this.getList()},activated:function(){},methods:{permission:function(e){return Object(s["a"])(e)},getList:function(){var e=this,t={};Object.assign(t,this.searchForm),t.rows=this.pageInfo.limit,t.page=this.pageInfo.page,m(f()(t)).then((function(t){if(200==t.code){e.pageInfo.total=t.data.total;var l=t.data&&t.data.rows?t.data.rows:[];l.forEach((function(e){e.score=-1==e.score?null:e.score,e.prizeLevel=-1==e.prizeLevel?null:e.prizeLevel})),e.tableList=t.data.rows}}))},search:function(){this.pageInfo.page=1,this.getList()},onReSet:function(){this.pageInfo.page=1,this.$refs["searchForm"].resetFields(),this.getList()},lookDetail:function(e){this.detail=e,this.dialogVisible=!0},onReview:function(e){var t=this;this.$nextTick((function(){t.form={id:e.id,score:e.score,prizeLevel:e.prizeLevel,show:e.show,comment:e.comment}})),this.reviewStatus=!0},onReviewSubmit:function(e){var t=this;this.$refs[e].validate(function(){var e=Object(n["a"])(Object(o["a"])().mark((function e(l){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!l){e.next=5;break}return e.next=3,v(f()(t.form)).then((function(e){200==e.code?(t.$message.success("评审成功"),t.getList(),t.reviewStatus=!1):t.$message.error(e.msg)}));case 3:e.next=6;break;case 5:return e.abrupt("return",!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}}},z=S,$=(l("2420"),Object(k["a"])(z,a,r,!1,null,"63a85c19",null));t["default"]=$.exports},"360f":function(e,t,l){},"3a1e":function(e,t,l){"use strict";l("6701")},6701:function(e,t,l){}}]);