chunk-6082be37.ecbe6d67.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6082be37"],{"09f4":function(t,e,l){"use strict";l.d(e,"a",(function(){return i})),Math.easeInOutQuad=function(t,e,l,a){return t/=a/2,t<1?l/2*t*t+e:(t--,-l/2*(t*(t-2)-1)+e)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function s(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,l){var i=o(),r=t-i,n=20,c=0;e="undefined"===typeof e?500:e;var p=function t(){c+=n;var o=Math.easeInOutQuad(c,i,r,e);s(o),c<e?a(t):l&&"function"===typeof l&&l()};p()}},"92f6":function(t,e,l){"use strict";l.r(e);var a=function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("div",{staticClass:"m-container"},[t._m(0),t._v(" "),l("div",{staticClass:"m-core"},[l("save-form",{ref:"searchForm",attrs:{inline:!0,saveKey:"courseCreditials",model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[l("el-form-item",{attrs:{prop:"search"}},[l("el-input",{attrs:{placeholder:"学生编号/姓名",clearable:"",type:"text"},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search","string"===typeof e?e.trim():e)},expression:"searchForm.search"}})],1),t._v(" "),l("el-form-item",{attrs:{prop:"organId"}},[l("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:t.searchForm.organId,callback:function(e){t.$set(t.searchForm,"organId","string"===typeof e?e.trim():e)},expression:"searchForm.organId"}},t._l(t.selects.branchs,(function(t,e){return l("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),l("el-form-item",[l("el-button",{attrs:{"native-type":"submit",type:"primary"}},[t._v("搜索")]),t._v(" "),l("el-button",{attrs:{"native-type":"reset",type:"danger"}},[t._v("重置")])],1)],1),t._v(" "),l("div",{staticClass:"tableWrap"},[l("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[l("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),t._v(" "),l("el-table-column",{attrs:{align:"center",label:"学员信息",width:"120px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.username)),l("br"),t._v(" "),l("copy-text",[t._v(t._s(e.row.userId))])]}}])}),t._v(" "),l("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号",width:"120px"}}),t._v(" "),l("el-table-column",{attrs:{align:"center",prop:"one",label:"1v1"}},[l("template",{slot:"header"},[l("div",{staticClass:"titleCell"},[l("span",[t._v("1v1")]),t._v(" "),l("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[l("div",{attrs:{slot:"content"},slot:"content"},[t._v("已上课次/总课次")]),t._v(" "),l("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)])],2),t._v(" "),l("el-table-column",{attrs:{align:"center",prop:"two",label:"1v2"}},[l("template",{slot:"header"},[l("div",{staticClass:"titleCell"},[l("span",[t._v("1v2")]),t._v(" "),l("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[l("div",{attrs:{slot:"content"},slot:"content"},[t._v("已上课次/总课次")]),t._v(" "),l("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)])],2),t._v(" "),l("el-table-column",{attrs:{align:"center",prop:"three",label:"1v3"}},[l("template",{slot:"header"},[l("div",{staticClass:"titleCell"},[l("span",[t._v("1v3")]),t._v(" "),l("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[l("div",{attrs:{slot:"content"},slot:"content"},[t._v("已上课次/总课次")]),t._v(" "),l("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)])],2),t._v(" "),l("el-table-column",{attrs:{align:"center",prop:"four",label:"1v4"}},[l("template",{slot:"header"},[l("div",{staticClass:"titleCell"},[l("span",[t._v("1v4")]),t._v(" "),l("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[l("div",{attrs:{slot:"content"},slot:"content"},[t._v("已上课次/总课次")]),t._v(" "),l("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)])],2),t._v(" "),l("el-table-column",{attrs:{align:"center",prop:"five",label:"1v5"}},[l("template",{slot:"header"},[l("div",{staticClass:"titleCell"},[l("span",[t._v("1v5")]),t._v(" "),l("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[l("div",{attrs:{slot:"content"},slot:"content"},[t._v("已上课次/总课次")]),t._v(" "),l("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)])],2),t._v(" "),l("el-table-column",{attrs:{align:"center",prop:"six",label:"1v6"}},[l("template",{slot:"header"},[l("div",{staticClass:"titleCell"},[l("span",[t._v("1v6")]),t._v(" "),l("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[l("div",{attrs:{slot:"content"},slot:"content"},[t._v("已上课次/总课次")]),t._v(" "),l("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)])],2),t._v(" "),l("el-table-column",{attrs:{align:"center",prop:"seven",label:"1v7"}},[l("template",{slot:"header"},[l("div",{staticClass:"titleCell"},[l("span",[t._v("1v7")]),t._v(" "),l("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[l("div",{attrs:{slot:"content"},slot:"content"},[t._v("已上课次/总课次")]),t._v(" "),l("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)])],2),t._v(" "),l("el-table-column",{attrs:{align:"center",prop:"theory",label:"乐理课"}},[l("template",{slot:"header"},[l("div",{staticClass:"titleCell"},[l("span",[t._v("乐理课")]),t._v(" "),l("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[l("div",{attrs:{slot:"content"},slot:"content"},[t._v("已上课次/总课次")]),t._v(" "),l("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)])],2),t._v(" "),l("el-table-column",{attrs:{align:"center",prop:"practice",label:"网管课"}},[l("template",{slot:"header"},[l("div",{staticClass:"titleCell"},[l("span",[t._v("网管课")]),t._v(" "),l("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[l("div",{attrs:{slot:"content"},slot:"content"},[t._v("已上课次/总课次")]),t._v(" "),l("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)])],2),t._v(" "),l("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("div",[l("el-button",{attrs:{type:"text"},on:{click:function(l){return t.gotoDetail(e.row)}}},[t._v("详情")])],1)]}}])})],1),t._v(" "),l("pagination",{attrs:{sync:"",saveKey:"courseCreditials",total:t.rules.total,page:t.rules.page,limit:t.rules.limit,"page-sizes":t.rules.page_size},on:{"update:total":function(e){return t.$set(t.rules,"total",e)},"update:page":function(e){return t.$set(t.rules,"page",e)},"update:limit":function(e){return t.$set(t.rules,"limit",e)},pagination:t.getList}})],1)],1),t._v(" "),l("el-dialog",{attrs:{visible:t.detailVisible,title:"查看详情",width:"900px"},on:{"update:visible":function(e){t.detailVisible=e}}},[t.detailVisible?l("detail",{attrs:{userId:t.selectUserId}}):t._e()],1)],1)},s=[function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("h2",[l("div",{staticClass:"squrt"}),t._v("\n 排课资格列表\n ")])}],o=(l("386d"),l("c80c")),i=l("db72"),r=(l("96cf"),l("3b8d")),n=l("333d"),c=l("829b"),p=function(t){return Object(c["a"])({url:"/api-web/activityUserMapper/queryDetailPage",data:t,method:"post"})},u=function(t){return Object(c["a"])({url:"/api-web/activityUserMapper/querySumPage",data:t,method:"post"})},v=function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("div",{staticClass:"detail"},[l("save-form",{ref:"searchForm",attrs:{inline:!0,model:t.searchForm,saveKey:"courseCreditialsDialog"},on:{submit:t.search,reset:t.onReSet}},[l("el-form-item",{attrs:{prop:"search"}},[l("el-input",{attrs:{placeholder:"活动编号/活动名称",clearable:"",type:"text"},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search","string"===typeof e?e.trim():e)},expression:"searchForm.search"}})],1),t._v(" "),l("el-form-item",[l("el-button",{attrs:{"native-type":"submit",type:"primary"}},[t._v("搜索")]),t._v(" "),l("el-button",{attrs:{"native-type":"reset",type:"danger"}},[t._v("重置")])],1)],1),t._v(" "),l("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[l("el-table-column",{attrs:{align:"center",prop:"activityId",label:"活动编号"}}),t._v(" "),l("el-table-column",{attrs:{align:"center",prop:"addMemo",label:"活动名称"}}),t._v(" "),l("el-table-column",{attrs:{width:"160px",align:"center",prop:"createTime",label:"时间"}}),t._v(" "),l("el-table-column",{attrs:{align:"center",prop:"freeFlag",label:"付费方式"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.freeFlag?"赠送":"付费")+"\n ")]}}])}),t._v(" "),l("el-table-column",{attrs:{align:"center",prop:"organName",label:"排课资格"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(Math.abs(e.row.totalCourseNum-e.row.subCourseNum))+"/"+t._s(e.row.totalCourseNum)+"\n ")]}}])}),t._v(" "),l("el-table-column",{attrs:{align:"center",prop:"subCoursePrice",label:"剩余金额"}})],1),t._v(" "),l("pagination",{attrs:{sync:"",saveKey:"courseCreditialsDialog",total:t.rules.total,page:t.rules.page,limit:t.rules.limit,"page-sizes":t.rules.page_size},on:{"update:total":function(e){return t.$set(t.rules,"total",e)},"update:page":function(e){return t.$set(t.rules,"page",e)},"update:limit":function(e){return t.$set(t.rules,"limit",e)},pagination:t.getList}})],1)},m=[],d={name:"detail",props:["userId"],components:{pagination:n["a"]},data:function(){return{tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},searchForm:{search:null,hasSubCourse:null}}},mounted:function(){this.getList()},methods:{getList:function(){var t=Object(r["a"])(Object(o["a"])().mark((function t(){var e;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,p(Object(i["a"])({page:this.rules.page,rows:this.rules.limit,userId:this.userId},this.searchForm));case 3:e=t.sent,this.tableList=e.data.rows,this.rules.total=e.data.total,t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](0);case 10:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(){return t.apply(this,arguments)}return e}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.rules=Object(i["a"])(Object(i["a"])({},this.rules),{},{page:1}),this.$refs.searchForm.resetFields(),this.search()}}},h=d,b=l("2877"),f=Object(b["a"])(h,v,m,!1,null,"4b008238",null),_=f.exports,g={name:"credentials",components:{pagination:n["a"],detail:_},data:function(){return{searchForm:{search:null,organId:null,hasSubCourse:null,returnFee:null},tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},detailVisible:!1,selectUserId:null}},mounted:function(){this.$store.dispatch("setBranchs"),this.getList()},methods:{getList:function(){var t=Object(r["a"])(Object(o["a"])().mark((function t(){var e;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,u(Object(i["a"])({page:this.rules.page,rows:this.rules.limit},this.searchForm));case 3:e=t.sent,this.tableList=e.data.rows,this.rules.total=e.data.total,t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](0);case 10:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(){return t.apply(this,arguments)}return e}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.rules=Object(i["a"])(Object(i["a"])({},this.rules),{},{page:1}),this.$refs.searchForm.resetFields(),this.search()},gotoDetail:function(t){this.selectUserId=t.userId,this.detailVisible=!0}}},y=g,C=Object(b["a"])(y,a,s,!1,null,null,null);e["default"]=C.exports}}]);