1234 |
- ;(function(){function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}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="._form_1x538_1,._tags_1x538_2{--el-border-radius-small: 10px !important;--el-component-size-large: 48px}._form_1x538_1 .el-input,._tags_1x538_2 .el-input,._form_1x538_1 .el-select--large,._tags_1x538_2 .el-select--large,._form_1x538_1 .el-form-item--large .el-form-item__label,._tags_1x538_2 .el-form-item--large .el-form-item__label{height:48px;line-height:48px}._form_1x538_1 .el-form-item__label,._tags_1x538_2 .el-form-item__label{font-size:16px;color:rgba(0,0,0,.85)}._form_1x538_1 .el-radio-button__inner,._tags_1x538_2 .el-radio-button__inner{border:var(--el-border);border-radius:var(--el-border-radius-base)!important;width:100%;padding:16px 19px!important}._form_1x538_1 .el-radio-button__original-radio:checked+.el-radio-button__inner,._tags_1x538_2 .el-radio-button__original-radio:checked+.el-radio-button__inner{background-color:#e9fff8;color:var(--el-color-primary);box-shadow:none}._form_1x538_1 .el-dialog__body,._tags_1x538_2 .el-dialog__body{padding-top:0}._form_1x538_1 .el-select .el-select__tags .el-tag,._tags_1x538_2 .el-select .el-select__tags .el-tag{background-color:#dffff8;border:1px solid #4bb39e;color:#4bb39e!important;border-radius:10px;margin:0 6px 0 0;height:30px}._form_1x538_1 .el-tag .el-icon,._tags_1x538_2 .el-tag .el-icon{color:#4bb39e;background-color:transparent}._tips_1x538_51{font-size:12px;color:#e0945a;line-height:18px;padding:15px 11px;background:#fff3eb;border-radius:10px;margin:0 0 22px}._tips_1x538_51 ._tipsTitle_1x538_60{font-size:14px;font-weight:600;color:#e0945a;line-height:20px;padding-bottom:6px}._tips_1x538_51 span{color:#5aa9e0;cursor:pointer}._rule_1x538_71{font-size:14px;line-height:27px;color:#999;margin:0 14px}._rule_1x538_71>p>span{color:#ff4e19;font-weight:700}\n";document.head.appendChild(__vite_style__);System.register(['./index-legacy.e85d6089.js','./index-legacy.e27cf5ae.js','./index-legacy.902a9e5a.js','./toolsValidate-legacy.b90c63da.js','./vendor-legacy.b19481d4.js'],function(exports){'use strict';var ColCropper,ColUpload,request,getCodeBaseUrl,verifyNumberIntegerAndFloat,defineComponent,ElMessage,createVNode,ElForm,createTextVNode,ElFormItem,ElRadioGroup,ElRadioButton,Fragment,ElInput,ElSelect,ElOptionGroup,ElOption,ElButton,ElDialog,isVNode;return{setters:[function(module){ColCropper=module.C;},function(module){ColUpload=module.C;},function(module){request=module.r;getCodeBaseUrl=module.B;},function(module){verifyNumberIntegerAndFloat=module.v;},function(module){defineComponent=module.d;ElMessage=module.E;createVNode=module.c;ElForm=module.y;createTextVNode=module.a;ElFormItem=module.z;ElRadioGroup=module.aa;ElRadioButton=module.ab;Fragment=module.F;ElInput=module.w;ElSelect=module.a1;ElOptionGroup=module.a7;ElOption=module.a2;ElButton=module.k;ElDialog=module.K;isVNode=module.a8;}],execute:function execute(){var form="_form_1x538_1";var tags="_tags_1x538_2";var tips="_tips_1x538_51";var tipsTitle="_tipsTitle_1x538_60";var rule="_rule_1x538_71";var styles={form:form,tags:tags,tips:tips,tipsTitle:tipsTitle,rule:rule};function _isSlot(s){return typeof s==='function'||Object.prototype.toString.call(s)==='[object Object]'&&!isVNode(s);}var validator=exports('validator',function(rule,value,callback){console.log(value);if(value==''){callback(new Error('请输入收费价格'));}else if(Number(value)<=0){callback(new Error('收费金额必须大于0'));}else{callback();}});var index=exports('default',defineComponent({name:'music-operation',data:function data(){var query=this.$route.query;return{type:query.type||'create',subjectList:[],tagList:[],submitLoading:false,reason:'',form:{titleImg:'',accompanimentType:'HOMEMODE',audioType:'MP3',xmlFileUrl:'',hasBeat:0,mp3Url:'',bgmp3Url:'',midiUrl:'',musicSheetName:'',composer:'',musicSubject:null,tags:[],notation:0,canEvaluate:1,showFingering:1,chargeType:0,musicPrice:'',backgroundMp3s:[{url:'',track:''}]},radioList:[],// 选中的人数
- tagStatus:false,music_sheet_service_fee:0};},mounted:function mounted(){var _this=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:document.title=_this.type==='create'?'新建曲谱':'编辑曲谱';_context.prev=1;_context.next=4;return request.get('/api-website/sysConfig/queryByParamName',{params:{paramName:'music_sheet_service_fee'}}).then(function(res){return _this.music_sheet_service_fee=res.data.paramValue;});case 4:_context.next=6;return request.get('/api-website/open/subject/subjectSelect').then(function(res){_this.subjectList=res.data||[];});case 6:_context.next=8;return request.get('/api-website/open/MusicTag/tree').then(function(res){_this.tagList=res.data||[];});case 8:if(_this.$route.query.id){_this.setDetail(_this.$route.query.id);}_context.next=13;break;case 11:_context.prev=11;_context.t0=_context["catch"](1);case 13:case"end":return _context.stop();}}},_callee,null,[[1,11]]);}))();},methods:{setDetail:function setDetail(id){var _this2=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee2(){var res,musicTag,filterMusicTag;return regeneratorRuntime.wrap(function _callee2$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:_context2.prev=0;_context2.next=3;return request.get('/api-website/open/music/sheet/detail/'+id);case 3:res=_context2.sent;_this2.form.chargeType=res.data.chargeType==='FREE'?0:2;_this2.form.showFingering=res.data.showFingering;_this2.form.notation=res.data.notation;_this2.form.canEvaluate=res.data.canEvaluate;if(_this2.form.chargeType){_this2.form.musicPrice=res.data.musicPrice;}_this2.form.composer=res.data.composer;_this2.form.musicSheetName=res.data.musicSheetName;_this2.form.audioType=res.data.audioType;_this2.form.musicSubject=Number(res.data.musicSubject);musicTag=res.data.musicTag.split(',');filterMusicTag=musicTag.filter(function(el){return el!='';});_this2.form.tags=filterMusicTag.map(function(item){return Number(item);});_this2.radioList=musicTag.map(function(item){return Number(item);});_this2.form.xmlFileUrl=res.data.xmlFileUrl;_this2.form.accompanimentType=res.data.accompanimentType;_this2.form.titleImg=res.data.titleImg;// this.form.audioType = res.data.mp3Type
- if(_this2.form.audioType==='MP3'){_this2.form.hasBeat=res.data.hasBeat||0;_this2.form.mp3Url=res.data.metronomeUrl||res.data.url;}else{_this2.form.midiUrl=res.data.midiUrl;}_this2.form.backgroundMp3s=(res.data.background||[]).map(function(item,index){if(index===0){_this2.form.bgmp3Url=item.metronomeUrl||item.audioFileUrl;}return{url:_this2.form.hasBeat?item.metronomeUrl:item.audioFileUrl,track:item.track};});_this2.reason=res.data.reason;// console.log(this.form.bgmp3Url)
- _context2.next=28;break;case 25:_context2.prev=25;_context2.t0=_context2["catch"](0);console.log(_context2.t0);case 28:case"end":return _context2.stop();}}},_callee2,null,[[0,25]]);}))();},createSubmitData:function createSubmitData(){var form=this.form;var beatType=form.hasBeat?'MP3_METRONOME':'MP3';var mp3Type=form.audioType==='MP3'?beatType:'MIDI';return{audioType:form.audioType,sourceType:'TEACHER',mp3Type:mp3Type,accompanimentType:form.accompanimentType,titleImg:form.titleImg,hasBeat:Number(form.hasBeat),url:form.hasBeat?'':form.mp3Url,metronomeUrl:form.hasBeat?form.mp3Url:'',showFingering:Number(form.showFingering),notation:Number(form.notation),musicTag:form.tags.join(','),musicSubject:form.musicSubject||undefined,musicSheetName:form.musicSheetName,midiUrl:form.midiUrl,xmlFileUrl:form.xmlFileUrl,canEvaluate:Number(form.canEvaluate),chargeType:form.chargeType===0?'FREE':'CHARGE',composer:form.composer,musicPrice:form.chargeType===0?0:form.musicPrice,background:form.backgroundMp3s.map(function(item){return{audioFileUrl:form.hasBeat?'':form.bgmp3Url,track:item.track,metronomeUrl:form.hasBeat?form.bgmp3Url:''};})};},onFormatter:function onFormatter(e){e.target.value=verifyNumberIntegerAndFloat(e.target.value);},onSubmit:function onSubmit(){var _this3=this;this.$refs.form.validate(/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee3(valid){return regeneratorRuntime.wrap(function _callee3$(_context3){while(1){switch(_context3.prev=_context3.next){case 0:if(!valid){_context3.next=22;break;}_this3.submitLoading=true;console.log(_this3.createSubmitData(),'createSubmitData');_context3.prev=3;if(!_this3.$route.query.id){_context3.next=9;break;}_context3.next=7;return request.post('/api-website/music/sheet/update',{data:_objectSpread(_objectSpread({},_this3.createSubmitData()),{},{id:_this3.$route.query.id})});case 7:_context3.next=11;break;case 9:_context3.next=11;return request.post('/api-website/music/sheet/create',{data:_this3.createSubmitData()});case 11:_this3.submitLoading=false;ElMessage.success('上传成功');sessionStorage.setItem('musicActiveName','DOING');_this3.$router.back();_context3.next=20;break;case 17:_context3.prev=17;_context3.t0=_context3["catch"](3);_this3.submitLoading=false;case 20:_context3.next=24;break;case 22:_this3.$nextTick(function(){var isError=document.getElementsByClassName('is-error');isError[0].scrollIntoView({block:'center',behavior:'smooth'});});return _context3.abrupt("return",false);case 24:case"end":return _context3.stop();}}},_callee3,null,[[3,17]]);}));return function(_x){return _ref.apply(this,arguments);};}());},onDetail:function onDetail(type){var url="".concat(getCodeBaseUrl('/teacher'),"/#/registerProtocol");if(type==='question'){url="".concat(getCodeBaseUrl('/teacher'),"/muic-standard/question.html");}else if(type==='music'){url="".concat(getCodeBaseUrl('/teacher'),"/muic-standard/index.html");}window.open(url);}},render:function render(){var _this4=this;var _slot,_slot2;return createVNode("div",{"class":styles.form},[createVNode("div",{"class":"text-2xl font-semibold text-black leading-none px-6 py-5 "},[this.type==='create'?'新建曲谱':'编辑曲谱']),createVNode(ElForm,{"size":"large","labelPosition":"left","labelWidth":'150px',"model":this.form,"ref":"form","class":"px-7 py-5"},{default:function _default(){return[createVNode("div",{"class":styles.tips},[createVNode("div",{"class":styles.tipsTitle},[createTextVNode("\u6CE8\u610F\u4E8B\u9879\uFF1A")]),createVNode("div",{"class":styles.tipsContent},[createTextVNode("1\u3001\u5FC5\u987B\u662F\u4E0A\u4F20\u4EBA\u81EA\u5DF1\u53C2\u4E0E\u5236\u4F5C\u7684\u4F5C\u54C1\u3002"),createVNode("br",null,null),createTextVNode("2\u3001\u6B4C\u66F2\u53CA\u6B4C\u66F2\u4FE1\u606F\u4E2D\u8BF7\u52FF\u6D89\u53CA\u653F\u6CBB\u3001\u5B97\u6559\u3001\u5E7F\u544A\u3001\u6D89\u6BD2\u3001\u72AF\u7F6A\u3001\u8272\u60C5\u3001\u4F4E\u4FD7\u3001\u66B4\u529B\u3001\u8840\u8165\u3001\u6D88\u6781\u7B49\u8FDD\u89C4\u5185\u5BB9\uFF0C\u8FDD\u53CD\u8005\u76F4\u63A5\u5220\u9664\u5185\u5BB9\u3002\u591A\u6B21\u8FDD\u53CD\u5C06\u5C01\u53F7\u3002"),createVNode("br",null,null),createTextVNode("3\u3001\u70B9\u51FB\u67E5\u770B"),' ',createVNode("span",{"onClick":function onClick(){return _this4.onDetail('protocol');}},[createTextVNode("\u300A\u7528\u6237\u6CE8\u518C\u534F\u8BAE\u300B")]),createTextVNode("\uFF0C\u5982\u679C\u60A8\u4E0A\u4F20\u4E86\u6587\u4EF6\uFF0C\u5373\u8BA4\u4E3A\u60A8\u5B8C\u5168\u540C\u610F\u5E76\u9075\u5B88\u8BE5\u534F\u8BAE\u7684\u5185\u5BB9\uFF1B")])]),createVNode(ElFormItem,{"label":"上传XML","prop":"xmlFileUrl","rules":[{required:true,message:'请选择MusicXML文件'}]},{default:function _default(){return[createVNode(ColUpload,{"modelValue":_this4.form.xmlFileUrl,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.form.xmlFileUrl=$event;},"bucket":'cloud-coach',"accept":'application/xml',"uploadType":'file',"extraTips":"文件最大不能超过5MB"},null)];}}),createVNode("div",{"class":styles.tips},[createVNode("div",{"class":styles.tipsTitle},[createTextVNode("\u66F2\u8C31\u5BA1\u6838\u6807\u51C6\uFF1A")]),createVNode("div",{"class":styles.tipsContent},[createTextVNode("1\u3001\u6587\u4EF6\u5927\u5C0F\u4E0D\u8981\u8D85\u8FC75MB\uFF0C\u4E0D\u7B26\u5408\u7248\u9762\u89C4\u8303\u7684\u4E50\u8C31\uFF0C\u5BA1\u6838\u672A\u901A\u8FC7\u7684\u4E0D\u4E88\u4E0A\u67B6\uFF0C\u8BE6\u60C5\u53C2\u8003"),createVNode("span",{"onClick":function onClick(){return _this4.onDetail('music');}},[createTextVNode("\u300A\u66F2\u8C31\u6392\u7248\u89C4\u8303\u300B")]),createTextVNode("\uFF1B 1\u3001\u5FC5\u987B\u662F\u4E0A\u4F20\u4EBA\u81EA\u5DF1\u53C2\u4E0E\u5236\u4F5C\u7684\u4F5C\u54C1\u3002"),createVNode("br",null,null),createTextVNode("2\u3001XML\u4E0EMIDI\u6587\u4EF6\u5185\u5BB9\u5FC5\u987B\u4E00\u81F4\uFF0C\u63A8\u8350\u4F7F\u7528Sibelius\u6253\u8C31\u8F6F\u4EF6\u3002\u5BFC\u51FA\u8BBE\u7F6E\uFF1A\u5BFC\u51FAXML-\u672A\u538B\u7F29\uFF08*.xml\uFF09/\u5BFC\u51FAMIDI\uFF1A\u97F3\u8272-\u5176\u4ED6\u56DE\u653E\u8BBE\u5907General MIDI\u3001MIDI\u3001MIDI\u6587\u4EF6\u7C7B\u578B-\u7C7B\u578B0\u3001\u4E0D\u8981\u52FE\u9009\u201C\u5C06\u5F31\u62CD\u5C0F\u8282\u5BFC\u51FA\u4E3A\u5177\u6709\u4F11\u6B62\u7B26\u7684\u5B8C\u6574\u5C0F\u8282\u201D\u3002\u70B9\u51FB\u67E5\u770B"),createVNode("span",{"onClick":function onClick(){return _this4.onDetail('question');}},[createTextVNode("\u300A\u5E38\u89C1\u95EE\u9898\u300B")])])]),createVNode(ElFormItem,{"label":"播放类型","prop":"audioType","rules":[{required:true,message:'请选择播放类型'}]},{default:function _default(){return[createVNode(ElRadioGroup,{"modelValue":_this4.form.audioType,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.form.audioType=$event;}},{default:function _default(){return[createVNode(ElRadioButton,{"label":'MIDI',"class":"mr-3 w-24"},{default:function _default(){return[createTextVNode("MIDI")];}}),createVNode(ElRadioButton,{"label":'MP3',"class":"w-24"},{default:function _default(){return[createTextVNode("MP3")];}})];}})];}}),_this4.form.audioType==='MP3'?createVNode(Fragment,null,[createVNode(ElFormItem,{"label":"是否带节拍器","prop":"hasBeat","rules":[{required:true,message:'请选择是否带节拍器'}]},{default:function _default(){return[createVNode(ElRadioGroup,{"modelValue":_this4.form.hasBeat,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.form.hasBeat=$event;}},{default:function _default(){return[createVNode(ElRadioButton,{"label":0,"class":"mr-3 w-24"},{default:function _default(){return[createTextVNode("\u5426")];}}),createVNode(ElRadioButton,{"label":1,"class":"w-24"},{default:function _default(){return[createTextVNode("\u662F")];}})];}})];}}),createVNode(ElFormItem,{"label":"伴奏类型","prop":"accompanimentType","rules":[{required:true,message:'请选择伴奏类型'}]},{default:function _default(){return[createVNode(ElRadioGroup,{"modelValue":_this4.form.accompanimentType,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.form.accompanimentType=$event;}},{default:function _default(){return[createVNode(ElRadioButton,{"label":'HOMEMODE',"class":"mr-3 w-24"},{default:function _default(){return[createTextVNode("\u81EA\u5236\u4F34\u594F")];}}),createVNode(ElRadioButton,{"label":'COMMON',"class":"w-24"},{default:function _default(){return[createTextVNode("\u666E\u901A\u4F34\u594F")];}})];}})];}}),createVNode(ElFormItem,{"label":"伴奏文件","prop":"mp3Url"},{default:function _default(){return[createVNode(ColUpload,{"modelValue":_this4.form.mp3Url,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.form.mp3Url=$event;},"bucket":'cloud-coach',"accept":'.mp3',"uploadType":'file',"size":8,"extraTips":"文件最大不能超过8MB"},null)];}})]):createVNode(Fragment,null,[createVNode(ElFormItem,{"label":"伴奏类型","prop":"accompanimentType","rules":[{required:true,message:'请选择伴奏类型'}]},{default:function _default(){return[createVNode(ElRadioGroup,{"modelValue":_this4.form.accompanimentType,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.form.accompanimentType=$event;}},{default:function _default(){return[createVNode(ElRadioButton,{"label":'HOMEMODE',"class":"mr-3 w-24"},{default:function _default(){return[createTextVNode("\u81EA\u5236\u4F34\u594F")];}}),createVNode(ElRadioButton,{"label":'COMMON',"class":"w-24"},{default:function _default(){return[createTextVNode("\u666E\u901A\u4F34\u594F")];}})];}})];}}),createVNode(ElFormItem,{"label":"MIDI文件","prop":"midiUrl","rules":[{required:true,message:'请选择MIDI文件'}]},{default:function _default(){return[createVNode(ColUpload,{"modelValue":_this4.form.midiUrl,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.form.midiUrl=$event;},"bucket":'cloud-coach',"accept":'.midi,.mid',"uploadType":'file',"size":8,"extraTips":"文件最大不能超过8MB"},null)];}})]),createVNode("div",{"class":styles.tips},[createVNode("div",{"class":styles.tipsContent},[createTextVNode("1\u3001\u63A8\u8350\u4E0A\u4F20\u81EA\u5236\u4F34\u594F\uFF0C\u4F34\u594F\u548C\u8C31\u9762\u5FC5\u987B\u5BF9\u9F50\u3002\u81EA\u5236\u4F34\u594F\u53EF\u4EE5\u8BBE\u7F6E\u66F4\u9AD8\u7684\u6536\u8D39\u6807\u51C6\u3002"),createVNode("br",null,null),createTextVNode("2\u3001\u666E\u901A\u4F34\u594F\u5982\u679C\u6D89\u53CA\u5230\u7248\u6743\u7EA0\u7EB7\uFF0C\u6839\u636E"),createVNode("span",{"onClick":function onClick(){return _this4.onDetail('protocol');}},[createTextVNode("\u300A\u7528\u6237\u6CE8\u518C\u534F\u8BAE\u300B")]),createTextVNode("\u5E73\u53F0\u6709\u6743\u8FDB\u884C\u4E0B\u67B6\u5904\u7406\u3002")])]),_this4.form.audioType==='MP3'&&createVNode(ElFormItem,{"label":"原音文件","prop":"bgmp3Url","rules":[{required:true,message:'请选择原音文件'}]},{default:function _default(){return[createVNode(ColUpload,{"modelValue":_this4.form.bgmp3Url,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.form.bgmp3Url=$event;},"bucket":'cloud-coach',"accept":'.mp3',"uploadType":'file',"extraTips":"文件最大不能超过8MB"},null)];}}),createVNode(ElFormItem,{"label":"曲目名称","prop":"musicSheetName","rules":[{required:true,message:'请输入曲目名称'}]},{default:function _default(){return[createVNode(ElInput,{"modelValue":_this4.form.musicSheetName,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.form.musicSheetName=$event;},"placeholder":"请选择曲目名称"},null)];}}),createVNode("div",{"class":styles.tips},[createVNode("div",{"class":styles.tipsContent},[createTextVNode("1\u3001\u540C\u4E00\u9996\u66F2\u76EE\u4E0D\u53EF\u91CD\u590D\u4E0A\u4F20\uFF0C\u5982\u6709\u4E0D\u540C\u7248\u672C\u7EDF\u4E00\u7528\u201C\uFF08\uFF09\u201D\u8865\u5145\u3002\u4E3E\u4F8B\uFF1A\u4EBA\u751F\u7684\u65CB\u8F6C\u6728\u9A6C\uFF08\u957F\u7B1B\u4E8C\u91CD\u594F\u7248\uFF09\u3002"),createVNode("br",null,null),createTextVNode("2\u3001\u66F2\u76EE\u540D\u540E\u53EF\u6DFB\u52A0\u66F2\u76EE\u4FE1\u606F\u5907\u6CE8\uFF0C\u5305\u542B\u4F46\u4E0D\u9650\u4E8E\u66F2\u76EE\u7C7B\u578B\u7B49\u3002\u66F2\u76EE\u540D\u300Axxxx\u300B\uFF0C\u4E3E\u4F8B\uFF1A\u4EBA\u751F\u7684\u65CB\u8F6C\u6728\u9A6C\u300A\u54C8\u5C14\u7684\u79FB\u52A8\u57CE\u5821\u300B\uFF08\u957F\u7B1B\u4E8C\u91CD\u594F\u7248\uFF09"),createVNode("br",null,null),createTextVNode("3\u3001\u5176\u4ED6\u4FE1\u606F\u4E0D\u8981\u5199\u5728\u66F2\u76EE\u540D\u91CC\uFF0C\u5982\u6B4C\u624B\u3001\u4E0A\u4F20\u4EBA\u5458\u6635\u79F0\u7B49\u3002")])]),createVNode(ElFormItem,{"label":"曲谱封面","prop":"titleImg","rules":[{required:true,message:'请上传曲谱封面'}]},{default:function _default(){return[createVNode(ColCropper,{"modelValue":_this4.form.titleImg,"bucket":'cloud-coach',"cropUploadSuccess":function cropUploadSuccess(data){_this4.form.titleImg=data;},"domSize":{height:'150px'},"options":{title:'曲谱封面',enlarge:2,autoCropWidth:300,autoCropHeight:300}},null)];}}),createVNode(ElFormItem,{"label":"艺术家","prop":"composer","rules":[{required:true,message:'请输入艺术家'}]},{default:function _default(){return[createVNode(ElInput,{"modelValue":_this4.form.composer,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.form.composer=$event;},"placeholder":"请输入艺术家"},null)];}}),createVNode(ElFormItem,{"label":"曲目声部","prop":"musicSubject","rules":[{required:true,message:'请选择曲目声部',trigger:'change'}]},{default:function _default(){return[createVNode(ElSelect,{"filterable":true,"modelValue":_this4.form.musicSubject,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.form.musicSubject=$event;},"placeholder":"请选择曲目声部","class":"w-full"},_isSlot(_slot=_this4.subjectList.map(function(group){return createVNode(ElOptionGroup,{"key":group.id,"label":group.name},{default:function _default(){return[group.subjects&&group.subjects.map(function(item){return createVNode(ElOption,{"key":item.id,"value":item.id,"label":item.name},null);})];}});}))?_slot:{default:function _default(){return[_slot];}})];}}),createVNode("div",{"class":styles.tips},[createVNode("div",{"class":styles.tipsContent},[createTextVNode("XML\u6587\u4EF6\u4E2D\uFF0C\u9009\u62E9\u7684\u66F2\u76EE\u58F0\u90E8\u9700\u8981\u5728\u603B\u8C31\u7684\u7F6E\u9876\u4F4D\u7F6E\u3002")])]),createVNode(ElFormItem,{"label":"曲目标签","prop":"tags","rules":[{required:true,message:'请选择曲目标签'}]},{default:function _default(){return[createVNode("div",{"class":"w-full relative"},[createVNode("div",{"class":" w-full block h-[42px] absolute top-0 left-0 z-10","onClick":function onClick(){console.log(111);_this4.tagStatus=true;}},null),createVNode(ElSelect,{"multiple":true,"modelValue":_this4.form.tags,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.form.tags=$event;},"placeholder":"请选择曲目标签","class":"w-full"},_isSlot(_slot2=_this4.tagList.map(function(group){return createVNode(ElOptionGroup,{"key":group.id,"label":group.name},{default:function _default(){return[group.children&&group.children.map(function(item){return createVNode(ElOption,{"key":item.id,"value":item.id,"label":item.name},null);})];}});}))?_slot2:{default:function _default(){return[_slot2];}})])];}}),createVNode(ElFormItem,{"label":"支持简谱","prop":"notation","rules":[{required:true,message:'请选择是否支持简谱'}]},{default:function _default(){return[createVNode(ElRadioGroup,{"modelValue":_this4.form.notation,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.form.notation=$event;}},{default:function _default(){return[createVNode(ElRadioButton,{"label":0,"class":"mr-3 w-24"},{default:function _default(){return[createTextVNode("\u5426")];}}),createVNode(ElRadioButton,{"label":1,"class":"w-24"},{default:function _default(){return[createTextVNode("\u662F")];}})];}})];}}),createVNode(ElFormItem,{"label":"是否评测","prop":"canEvaluate","rules":[{required:true,message:'请选择是否评测'}]},{default:function _default(){return[createVNode(ElRadioGroup,{"modelValue":_this4.form.canEvaluate,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.form.canEvaluate=$event;}},{default:function _default(){return[createVNode(ElRadioButton,{"label":0,"class":"mr-3 w-24"},{default:function _default(){return[createTextVNode("\u5426")];}}),createVNode(ElRadioButton,{"label":1,"class":"w-24"},{default:function _default(){return[createTextVNode("\u662F")];}})];}})];}}),createVNode(ElFormItem,{"label":"指法展示","prop":"showFingering","rules":[{required:true,message:'请选择指法展示'}]},{default:function _default(){return[createVNode(ElRadioGroup,{"modelValue":_this4.form.showFingering,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.form.showFingering=$event;}},{default:function _default(){return[createVNode(ElRadioButton,{"label":0,"class":"mr-3 w-24"},{default:function _default(){return[createTextVNode("\u5426")];}}),createVNode(ElRadioButton,{"label":1,"class":"w-24"},{default:function _default(){return[createTextVNode("\u662F")];}})];}})];}}),createVNode(ElFormItem,{"label":"是否收费","prop":"chargeType","rules":[{required:true,message:'请选择是否收费'}]},{default:function _default(){return[createVNode(ElRadioGroup,{"modelValue":_this4.form.chargeType,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.form.chargeType=$event;}},{default:function _default(){return[createVNode(ElRadioButton,{"label":0,"class":"mr-3 w-24"},{default:function _default(){return[createTextVNode("\u5426")];}}),createVNode(ElRadioButton,{"label":2,"class":"w-24"},{default:function _default(){return[createTextVNode("\u662F")];}})];}})];}}),_this4.form.chargeType===2&&createVNode(Fragment,null,[createVNode(ElFormItem,{"label":"收费价格","prop":"musicPrice","rules":[{required:true,validator:validator}]},{default:function _default(){return[createVNode(ElInput,{"modelValue":_this4.form.musicPrice,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.form.musicPrice=$event;},"placeholder":"请输入收费价格","maxlength":5,"onKeyup":_this4.onFormatter},{suffix:function suffix(){return createVNode("span",{"class":"text-base text-[#999]"},[createTextVNode("\u5143")]);}})];}}),createVNode(ElFormItem,null,{default:function _default(){return[createVNode("div",{"class":styles.rule},[createVNode("p",null,[createTextVNode("\u6263\u9664\u624B\u7EED\u8D39\u540E\u8BE5\u66F2\u76EE\u9884\u8BA1\u6536\u5165\u4E3A\uFF1A")]),createVNode("p",null,[createTextVNode("\u6BCF\u4EBA\uFF1A"),createVNode("span",null,[(parseFloat(_this4.form.musicPrice||'0')||0)*(100-_this4.music_sheet_service_fee)/100]),createTextVNode("\u5143/\u4EBA")]),createVNode("p",null,[createTextVNode("\u60A8\u7684\u4E50\u8C31\u6536\u5165\u5C06\u5728\u5B66\u5458\u8D2D\u4E70\u540E\u7ED3\u7B97\u5230\u60A8\u7684\u8D26\u6237\u4E2D")])])];}})])];}}),createVNode("div",{"class":"text-center pt-6 pb-7"},[createVNode(ElButton,{"class":"!w-44 !h-[48px]","round":true,"onClick":function onClick(){_this4.$router.back();}},{default:function _default(){return[createTextVNode("\u53D6\u6D88")];}}),createVNode(ElButton,{"type":"primary","class":"!w-44 !h-[48px]","round":true,"onClick":this.onSubmit,"loading":this.submitLoading},{default:function _default(){return[createTextVNode("\u63D0\u4EA4\u5BA1\u6838")];}})]),createVNode(ElDialog,{"modelValue":this.tagStatus,"onUpdate:modelValue":function onUpdateModelValue(val){return _this4.tagStatus=val;},"width":"35%","title":"全部标签"},{default:function _default(){return[_this4.tagList.map(function(item,index){return createVNode("div",{"class":[styles.tags,'py-2']},[createVNode("div",{"class":"text-sm pb-2"},[item.name]),item.children.map(function(child){return createVNode(ElRadioGroup,{"modelValue":_this4.radioList[index],"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.radioList[index]=$event;},"class":"pb-2"},{default:function _default(){return[createVNode(ElRadioButton,{"label":child.id,"class":"mr-3"},{default:function _default(){return[child.name];}})];}});})]);}),createVNode("div",{"class":"text-center pt-2"},[createVNode(ElButton,{"class":"!w-36 !h-[48px]","round":true,"size":"large","onClick":function onClick(){_this4.radioList=[];}},{default:function _default(){return[createTextVNode("\u91CD\u7F6E")];}}),createVNode(ElButton,{"class":"!w-36 !h-[48px]","round":true,"size":"large","type":"primary","onClick":function onClick(){_this4.form.tags=_this4.radioList.filter(function(el){return el!='';});_this4.tagStatus=false;_this4.$refs.form.clearValidate('tags');}},{default:function _default(){return[createTextVNode("\u786E\u8BA4")];}})])];}})]);}}));}};});})();
|