123 |
- ;(function(){function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}var __vite_style__=document.createElement('style');__vite_style__.innerHTML="._select_wxmew_1{padding:0 .32rem;height:.64rem}._tag-list_wxmew_5{margin-top:.32rem}._tag-list_wxmew_5 .van-tag{margin-right:.16rem;margin-bottom:.16rem}._radio-group_wxmew_12,._checkbox-group_wxmew_13{display:flex;margin-top:.37333rem}._radio-group_wxmew_12 ._radio_wxmew_12:first-child .van-radio__label,._checkbox-group_wxmew_13 ._radio_wxmew_12:first-child .van-radio__label,._radio-group_wxmew_12 ._checkbox_wxmew_13:first-child .van-checked__label,._checkbox-group_wxmew_13 ._checkbox_wxmew_13:first-child .van-checked__label{margin-left:0}._radio_wxmew_12 .van-radio__icon{display:none}._radio_wxmew_12 .van-tag--large{width:2.50667rem;height:.8rem;font-size:.42667rem;text-align:center;display:flex;align-items:center;justify-content:center}._radio_wxmew_12 .van-tag{box-sizing:border-box}._radio_wxmew_12 .van-tag--default{color:var(--van-tag-text-default-color)}._radio_wxmew_12 .van-tag--primary{background-color:var(--tag-bg-color)}._checkbox-group_wxmew_13{padding-bottom:.32rem}._checkbox_wxmew_13 .van-checkbox__icon{display:none}._checkbox_wxmew_13 .van-tag--large{width:2.50667rem;height:.8rem;font-size:.42667rem;text-align:center;display:flex;align-items:center;justify-content:center}._checkbox_wxmew_13 .van-tag{box-sizing:border-box}._checkbox_wxmew_13 .van-tag--default{color:var(--van-tag-text-default-color)}._checkbox_wxmew_13 .van-tag--primary{background-color:var(--tag-bg-color)}\n";document.head.appendChild(__vite_style__);System.register(['./index-legacy.2ac8f935.js','./index-legacy.d1db26fb.js','./index-legacy.b963a490.js','./main-legacy.6caa03ad.js','./vendor-legacy.1495e6b6.js','./index-legacy.f25f109a7.js','./index-legacy.f25f109a5.js','./index-legacy.f25f109a2.js','./index-legacy.f25f109a3.js','./index-legacy.f25f109a10.js','./index-legacy.637f3556.js','./index-legacy.f25f109a4.js','./index-legacy.611dc667.js'],function(exports){'use strict';var ColFieldGroup,ColField,SubjectModel,ColPopup,request,defineComponent,createVNode,Form,CheckboxGroup,Checkbox,Tag,isVNode,Button,createTextVNode,Field,RadioGroup,Radio,Sticky,ActionSheet;return{setters:[function(module){ColFieldGroup=module.C;ColField=module.a;},function(module){SubjectModel=module.S;},function(module){ColPopup=module.C;},function(module){request=module.r;},function(module){defineComponent=module.d;createVNode=module.b;Form=module.Q;CheckboxGroup=module.v;Checkbox=module.u;Tag=module.t;isVNode=module.V;Button=module.B;createTextVNode=module.f;Field=module.l;RadioGroup=module.w;Radio=module.x;Sticky=module.S;ActionSheet=module.a2;},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function execute(){var select="_select_wxmew_1";var radio="_radio_wxmew_12";var checkbox="_checkbox_wxmew_13";var styles={select:select,"tag-list":"_tag-list_wxmew_5","radio-group":"_radio-group_wxmew_12","checkbox-group":"_checkbox-group_wxmew_13",radio:radio,checkbox:checkbox};function _isSlot(s){return typeof s==='function'||Object.prototype.toString.call(s)==='[object Object]'&&!isVNode(s);}var practiceSetting=exports('default',defineComponent({name:'PracticeSetting',data:function data(){return{subjectList:[],chargeType:0,chargeTypeArr:{1:'是',0:'否'},classTimeStatus:false,subjectStatus:false,form:{subjectId:[]}};},computed:{choiceSubject:function choiceSubject(){var _this=this;// 选择的科目
- var tempArr=[];this.subjectList.forEach(function(sub){if(_this.form.subjectId.includes(sub.id)){tempArr.push(sub);}});return tempArr;}},mounted:function mounted(){var _this2=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){var teacher;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:_context.prev=0;_context.next=3;return request.post('/api-teacher/teacher/querySubject');case 3:teacher=_context.sent;_this2.subjectList=teacher.data||[];_context.next=9;break;case 7:_context.prev=7;_context.t0=_context["catch"](0);case 9:case"end":return _context.stop();}}},_callee,null,[[0,7]]);}))();},methods:{onSubjectOpen:function onSubjectOpen(){},onSelect:function onSelect(){},onChoice:function onChoice(item){// teacherState.teacherCert.subjectId = item.join(',') || ''
- console.log(item);this.form.subjectId=item;this.subjectStatus=false;}},render:function render(){var _this3=this;var _slot,_slot2;return createVNode(Form,{"style":{paddingTop:'15px'}},{default:function _default(){return[createVNode(ColFieldGroup,null,{default:function _default(){return[createVNode(ColField,{"title":"可教授乐器","required":true,"border":false},{default:function _default(){return[_this3.choiceSubject&&_this3.choiceSubject.length>0&&createVNode(CheckboxGroup,{"modelValue":_this3.form.subjectId,"class":styles['checkbox-group'],"disabled":true},_isSlot(_slot=_this3.choiceSubject.map(function(item){return createVNode(Checkbox,{"class":styles.checkbox},{default:function _default(){return[createVNode(Tag,{"plain":true,"type":'primary',"round":true,"closeable":true,"size":"medium","onClose":function onClose(){console.log(1111);}},{default:function _default(){return[item.name];}})];}});}))?_slot:{default:function _default(){return[_slot];}})];},right:function right(){return createVNode(Button,{"class":styles.select,"round":true,"type":"primary","size":"small","onClick":function onClick(){return _this3.subjectStatus=true;}},{default:function _default(){return[createTextVNode("\u9009\u62E9")];}});}})];}}),createVNode(ColFieldGroup,null,{default:function _default(){return[createVNode(ColField,{"title":"单课时时长","required":true},{default:function _default(){return[createVNode(Field,{"name":"singleMins","readonly":true,"isLink":true,"onClick":function onClick(){_this3.classTimeStatus=true;},"rules":[{required:true,message:'请选择单课时时长'}],"placeholder":"请选择单课时时长"},{button:function button(){return createVNode("span",null,[createTextVNode("\u5206\u949F")]);}})];}})];}}),createVNode(ColFieldGroup,null,{default:function _default(){return[createVNode(ColField,{"title":"单课时时长","required":true},{default:function _default(){return[createVNode(Field,{"name":"singleMins","readonly":true,"isLink":true,"rules":[{required:true,message:'请选择单课时时长'}],"placeholder":"请选择单课时时长"},null)];}})];}}),createVNode(ColFieldGroup,null,{default:function _default(){return[createVNode(ColField,{"title":"可陪练时间段","required":true},{default:function _default(){return[createVNode(Field,{"name":"singleMins","readonly":true,"isLink":true,"rules":[{required:true,message:'请选择可陪练时间段'}],"placeholder":"未设置"},null)];}})];}}),createVNode(ColFieldGroup,null,{default:function _default(){return[createVNode(ColField,{"required":true,"title":"是否跳过节假日","border":false},{default:function _default(){return[createVNode(RadioGroup,{"class":styles['radio-group'],"modelValue":_this3.chargeType,"onUpdate:modelValue":function onUpdateModelValue(val){return _this3.chargeType=val;}},_isSlot(_slot2=Object.keys(_this3.chargeTypeArr).map(function(item){var isActive=Number(item)===_this3.chargeType;var type=isActive?'primary':'default';return createVNode(Radio,{"class":styles.radio,"name":item},{default:function _default(){return[createVNode(Tag,{"size":"large","plain":isActive,"type":type},{default:function _default(){return[_this3.chargeTypeArr[item]];}})];}});}))?_slot2:{default:function _default(){return[_slot2];}})];}})];}}),createVNode(Sticky,{"offsetBottom":0,"position":"bottom"},{default:function _default(){return[createVNode("div",{"class":'btnGroup'},[createVNode(Button,{"block":true,"round":true,"type":"primary","native-type":"submit"},{default:function _default(){return[createTextVNode("\u63D0\u4EA4")];}})])];}}),createVNode(ColPopup,{"modelValue":_this3.subjectStatus,"onUpdate:modelValue":function onUpdateModelValue($event){return _this3.subjectStatus=$event;}},{default:function _default(){return[createVNode(SubjectModel,{"max":5,"single":true,"subjectList":_this3.subjectList,"choiceSubjectIds":_this3.form.subjectId,"onChoice":_this3.onChoice},null)];}}),createVNode(ActionSheet,{"show":_this3.classTimeStatus,"onUpdate:show":function onUpdateShow($event){return _this3.classTimeStatus=$event;},"cancelText":"取消","closeOnClickAction":true,"onSelect":_this3.onSelect},null)];}});}}));}};});})();
|