reward-detail-legacy.4f92ed7c.js 4.9 KB

1
  1. !function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return t(e,n)}(e)||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 t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}System.register(["./index-legacy.90c82f08.js","./index.module-legacy.05b54fee.js","./index-legacy.02f13b7a.js","./index-legacy.84457c4c.js","./index-legacy.f3e5e283.js","./index-legacy.e4343e46.js","./index-legacy.c8871c95.js","./Picker-legacy.aeff9f1a.js","./index-legacy.fe10c814.js","./use-tab-status-legacy.bafe466c.js","./index-legacy.64e3b474.js","./index-legacy.f9492e3a.js"],(function(t){"use strict";var n,a,r,u,i,l,c,s,o,d,f,m,v,p,g,y,b,h,j,I;return{setters:[function(e){n=e.d,a=e.ah,r=e.R,u=e.r,i=e.$,l=e.m,c=e.g,s=e.y,o=e.c,d=e.aj,f=e.q,m=e.ak,v=e.P},function(e){p=e.s},function(e){g=e.O},function(e){y=e.O},function(e){b=e.C},function(e){h=e.G,j=e.a},function(e){I=e.P},function(){},function(){},function(){},function(){},function(){}],execute:function(){t("default",n({name:"subsidy-reward-detail",setup:function(){var t=a(),n=r(!1);r(!1);var S=u({subjectId:"",subjects:[],manageSalary:{},rows:[]}),w=function(){l.post("".concat(c.platformApi,"/schoolWeekSalaryRecord/detailInfo/trainingTitle"),{data:{id:t.query.id,userId:c.user.data.id,subjectId:S.subjectId}}).then((function(e){S.manageSalary=(null==e?void 0:e.data)||{}})),l.post("".concat(c.platformApi,"/schoolWeekSalaryRecord/detailInfo/trainingPage"),{data:{id:t.query.id,userId:c.user.data.id,subjectId:S.subjectId}}).then((function(e){var t;S.rows=(null==e||null===(t=e.data)||void 0===t?void 0:t.rows)||[]})).finally((function(){n.value=!1}))};i((function(){l.post("".concat(c.platformApi,"/subjectBasicConfig/page"),{data:{page:1,rows:9999,enableFlag:!0}}).then((function(e){var t;Array.isArray(null==e||null===(t=e.data)||void 0===t?void 0:t.rows)&&(S.subjects=e.data.rows)})),w()}));var x=s((function(){var t=S.subjects.map((function(e){return{text:e.subjectName,value:e.subjectId}}));return[{text:"全部声部"}].concat(e(t))})),A=r("全部声部"),T=r(!1);return function(){return o("div",null,[o(y,{onGetHeight:function(e){document.documentElement.style.setProperty("--header-height",e+"px")}},{default:function(){return[o(d,null,null)]}}),o(g,{modelValue:n.value,"onUpdate:modelValue":function(e){return n.value=e},onRefresh:w,style:"min-height: calc(100vh - var(--header-height))"},{default:function(){return[o("div",{class:[p.wrap]},[o("div",{class:p.item},[o(b,{center:!0},{title:function(){return o("div",{class:p.itemTitle},[o("div",{class:p.titleLine},null),o("span",null,[f("练习奖励")])])}}),o(h,{class:p.grid,columnNum:3,border:!1},{default:function(){return[o(j,null,{default:function(){return[o("div",{class:p.gridItem},[o("div",{class:p.gridItemTop},[o("span",{class:p.topNum},[S.manageSalary.standardSalary||0]),f("元/人")]),o("div",null,[f("补助标准")])])]}}),o(j,null,{default:function(){return[o("div",{class:p.gridItem},[o("div",{class:p.gridItemTop},[o("span",{class:p.topNum},[S.manageSalary.targetNum||0]),f("人")]),o("div",null,[f("练习达标人数")])])]}}),o(j,null,{default:function(){return[o("div",{class:p.gridItem},[o("div",{class:p.gridItemTop},[o("span",{class:p.topNum},[S.manageSalary.actualSalary||0]),f("元")]),o("div",null,[f("实际奖励")])])]}})]}})]),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])])]),S.rows.length?o("div",{class:p.item},[S.rows.map((function(e){return o(b,{center:!0},{icon:function(){return o("img",{class:p.itemPicture,src:e.avatar},null)},title:function(){return o("div",{class:p.itemTitle},[o("span",null,[e.nickname])])},label:function(){return o("span",{class:p.itemTag},[e.subjectNames])},value:function(){return o("div",{class:p.gridItem},[o("div",{class:p.gridItemTop},[o("span",{class:p.topNum},[e.practiceTimes]),f("分钟")]),o("div",{class:p.valeLabel},[f("练习时长")])])}})}))]):o(m,{tips:"暂无学员练习"},null)])]}}),o(v,{show:T.value,"onUpdate:show":function(e){return T.value=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[o(I,{columns:x.value,onCancel:function(){return T.value=!1},onConfirm:function(e){A.value=e.selectedOptions[0].text||"全部声部",S.subjectId=e.selectedOptions[0].value||"",T.value=!1,w()}},null)]}})])}}}))}}}))}();