reward-detail-legacy.86773bc2.js 4.9 KB

1
  1. !function(){function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return e(t,n)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}System.register(["./index-legacy.48c8d62c.js","./index.module-legacy.a86392a8.js","./index-legacy.b00f6427.js","./index-legacy.8cf5f94f.js","./index-legacy.f3037807.js","./index-legacy.087e0425.js","./index-legacy.8429fc95.js","./index-legacy.384d768f.js","./index-legacy.ac553194.js","./index-legacy.ef66d7bb.js","./use-tab-status-legacy.6949b1de.js","./index-legacy.71047e87.js","./index-legacy.a2ac81dd.js"],(function(e){"use strict";var n,a,r,i,u,l,c,s,o,d,f,m,v,p,g,y,b,j,h,I;return{setters:[function(t){n=t.d,a=t.aV,r=t.R,i=t.r,u=t.$,l=t.m,c=t.f,s=t.y,o=t.c,d=t.q,f=t.ai,m=t.P},function(t){v=t.s},function(t){p=t.O},function(t){g=t.O},function(t){y=t.O},function(t){b=t.C},function(t){j=t.G,h=t.a},function(t){I=t.P},function(){},function(){},function(){},function(){},function(){}],execute:function(){e("default",n({name:"subsidy-reward-detail",setup:function(){var e=a(),n=r(!1);r(!1);var x=i({subjectId:"",subjects:[],manageSalary:{},rows:[]}),S=function(){l.post("".concat(c.platformApi,"/schoolWeekSalaryRecord/detailInfo/trainingTitle"),{data:{id:e.query.id,userId:c.user.data.id,subjectId:x.subjectId}}).then((function(t){x.manageSalary=(null==t?void 0:t.data)||{}})),l.post("".concat(c.platformApi,"/schoolWeekSalaryRecord/detailInfo/trainingPage"),{data:{id:e.query.id,userId:c.user.data.id,subjectId:x.subjectId}}).then((function(t){var e;x.rows=(null==t||null===(e=t.data)||void 0===e?void 0:e.rows)||[]})).finally((function(){n.value=!1}))};u((function(){l.post("".concat(c.platformApi,"/subjectBasicConfig/page"),{data:{page:1,rows:9999}}).then((function(t){var e;Array.isArray(null==t||null===(e=t.data)||void 0===e?void 0:e.rows)&&(x.subjects=t.data.rows)})),S()}));var w=s((function(){var e=x.subjects.map((function(t){return{text:t.subjectName,value:t.subjectId}}));return[{text:"全部声部"}].concat(t(e))})),A=r("全部声部"),T=r(!1);return function(){return o("div",null,[o(g,{onGetHeight:function(t){document.documentElement.style.setProperty("--header-height",t+"px")}},{default:function(){return[o(y,null,null)]}}),o(p,{modelValue:n.value,"onUpdate:modelValue":function(t){return n.value=t},onRefresh:S,style:"min-height: calc(100vh - var(--header-height))"},{default:function(){return[o("div",{class:[v.wrap]},[o("div",{class:v.item},[o(b,{center:!0},{title:function(){return o("div",{class:v.itemTitle},[o("div",{class:v.titleLine},null),o("span",null,[d("练习奖励")])])}}),o(j,{class:v.grid,columnNum:3,border:!1},{default:function(){return[o(h,null,{default:function(){return[o("div",{class:v.gridItem},[o("div",{class:v.gridItemTop},[o("span",{class:v.topNum},[x.manageSalary.standardSalary||0]),d("元/人")]),o("div",null,[d("补助标准")])])]}}),o(h,null,{default:function(){return[o("div",{class:v.gridItem},[o("div",{class:v.gridItemTop},[o("span",{class:v.topNum},[x.manageSalary.targetNum||0]),d("人")]),o("div",null,[d("练习达标人数")])])]}}),o(h,null,{default:function(){return[o("div",{class:v.gridItem},[o("div",{class:v.gridItemTop},[o("span",{class:v.topNum},[x.manageSalary.actualSalary||0]),d("元")]),o("div",null,[d("实际奖励")])])]}})]}})]),o("div",{class:"searchGroup-single",style:"padding-top: 0 !important;"},[o("div",{class:["searchItem",T.value?"searchItem-active":""],onClick:function(){return T.value=!0}},[o("span",null,[A.value])])]),x.rows.length?o("div",{class:v.item},[x.rows.map((function(t){return o(b,{center:!0},{icon:function(){return o("img",{class:v.itemPicture,src:t.avatar},null)},title:function(){return o("div",{class:v.itemTitle},[o("span",null,[t.nickname])])},label:function(){return o("span",{class:v.itemTag},[t.subjectNames])},value:function(){return o("div",{class:v.gridItem},[o("div",{class:v.gridItemTop},[o("span",{class:v.topNum},[t.practiceTimes]),d("分钟")]),o("div",{class:v.valeLabel},[d("练习时长")])])}})}))]):o(f,{tips:"暂无学生练习"},null)])]}}),o(m,{show:T.value,"onUpdate:show":function(t){return T.value=t},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[o(I,{columns:w.value,onCancel:function(){return T.value=!1},onConfirm:function(t){A.value=t.selectedOptions[0].text||"全部声部",x.subjectId=t.selectedOptions[0].value||"",T.value=!1,S()}},null)]}})])}}}))}}}))}();