index.tsx 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688
  1. import ColCropper from '@/components/col-cropper'
  2. import ColUpload from '@/components/col-upload'
  3. import request from '@/helpers/request'
  4. import { verifyNumberIntegerAndFloat } from '@/helpers/toolsValidate'
  5. import { getCodeBaseUrl } from '@/helpers/utils'
  6. import {
  7. ElButton,
  8. ElForm,
  9. ElFormItem,
  10. ElInput,
  11. ElOption,
  12. ElOptionGroup,
  13. ElRadioButton,
  14. ElRadioGroup,
  15. ElSelect,
  16. ElDialog,
  17. ElMessage
  18. } from 'element-plus'
  19. import { defineComponent } from 'vue'
  20. import styles from './index.module.less'
  21. export type BackgroundMp3 = {
  22. url?: string
  23. track?: string
  24. }
  25. export const validator = (rule, value, callback) => {
  26. console.log(value)
  27. if (value == '') {
  28. callback(new Error('请输入收费价格'))
  29. } else if (Number(value) <= 0) {
  30. callback(new Error('收费金额必须大于0'))
  31. } else {
  32. callback()
  33. }
  34. }
  35. export default defineComponent({
  36. name: 'music-operation',
  37. data() {
  38. const query = this.$route.query
  39. return {
  40. type: query.type || 'create',
  41. subjectList: [],
  42. tagList: [],
  43. submitLoading: false,
  44. reason: '',
  45. form: {
  46. titleImg: '',
  47. accompanimentType: 'HOMEMODE',
  48. audioType: 'MP3',
  49. xmlFileUrl: '',
  50. hasBeat: 0,
  51. mp3Url: '',
  52. bgmp3Url: '',
  53. midiUrl: '',
  54. musicSheetName: '',
  55. composer: '',
  56. musicSubject: null as any,
  57. tags: [] as string[],
  58. notation: 0,
  59. canEvaluate: 1,
  60. showFingering: 1,
  61. chargeType: 0,
  62. musicPrice: '',
  63. backgroundMp3s: [
  64. {
  65. url: '',
  66. track: ''
  67. }
  68. ] as BackgroundMp3[]
  69. },
  70. radioList: [], // 选中的人数
  71. tagStatus: false,
  72. music_sheet_service_fee: 0
  73. }
  74. },
  75. async mounted() {
  76. document.title = this.type === 'create' ? '新建曲谱' : '编辑曲谱'
  77. try {
  78. await request
  79. .get('/api-website/sysConfig/queryByParamName', {
  80. params: {
  81. paramName: 'music_sheet_service_fee'
  82. }
  83. })
  84. .then(res => (this.music_sheet_service_fee = res.data.paramValue))
  85. await request.get('/api-website/open/subject/subjectSelect').then(res => {
  86. this.subjectList = res.data || []
  87. })
  88. await request.get('/api-website/open/MusicTag/tree').then(res => {
  89. this.tagList = res.data || []
  90. })
  91. if (this.$route.query.id) {
  92. this.setDetail(this.$route.query.id as string)
  93. }
  94. } catch {}
  95. },
  96. methods: {
  97. async setDetail(id: string) {
  98. try {
  99. const res = await request.get(
  100. '/api-website/open/music/sheet/detail/' + id
  101. )
  102. this.form.chargeType = res.data.chargeType === 'FREE' ? 0 : 2
  103. this.form.showFingering = res.data.showFingering
  104. this.form.notation = res.data.notation
  105. this.form.canEvaluate = res.data.canEvaluate
  106. if (this.form.chargeType) {
  107. this.form.musicPrice = res.data.musicPrice
  108. }
  109. this.form.composer = res.data.composer
  110. this.form.musicSheetName = res.data.musicSheetName
  111. this.form.audioType = res.data.audioType
  112. this.form.musicSubject = Number(res.data.musicSubject)
  113. const musicTag = res.data.musicTag.split(',')
  114. this.form.tags = musicTag.map((item: any) => {
  115. return Number(item)
  116. })
  117. this.radioList = this.form.tags as any
  118. this.form.xmlFileUrl = res.data.xmlFileUrl
  119. this.form.accompanimentType = res.data.accompanimentType
  120. this.form.titleImg = res.data.titleImg
  121. // this.form.audioType = res.data.mp3Type
  122. if (this.form.audioType === 'MP3') {
  123. this.form.hasBeat = res.data.hasBeat || 0
  124. this.form.mp3Url = res.data.metronomeUrl || res.data.url
  125. } else {
  126. this.form.midiUrl = res.data.midiUrl
  127. }
  128. this.form.backgroundMp3s = (res.data.background || []).map(
  129. (item: any, index: any) => {
  130. if (index === 0) {
  131. this.form.bgmp3Url = item.metronomeUrl || item.audioFileUrl
  132. }
  133. return {
  134. url: this.form.hasBeat ? item.metronomeUrl : item.audioFileUrl,
  135. track: item.track
  136. }
  137. }
  138. )
  139. this.reason = res.data.reason
  140. console.log(this.form.bgmp3Url)
  141. } catch (error) {
  142. console.log(error)
  143. }
  144. },
  145. createSubmitData() {
  146. const { form } = this
  147. const beatType = form.hasBeat ? 'MP3_METRONOME' : 'MP3'
  148. const mp3Type = form.audioType === 'MP3' ? beatType : 'MIDI'
  149. return {
  150. audioType: form.audioType,
  151. sourceType: 'TEACHER',
  152. mp3Type,
  153. accompanimentType: form.accompanimentType,
  154. titleImg: form.titleImg,
  155. hasBeat: form.hasBeat,
  156. url: form.hasBeat ? '' : form.mp3Url,
  157. metronomeUrl: form.hasBeat ? form.mp3Url : '',
  158. showFingering: Number(form.showFingering),
  159. notation: Number(form.notation),
  160. musicTag: form.tags.join(','),
  161. musicSubject: form.musicSubject || undefined,
  162. musicSheetName: form.musicSheetName,
  163. midiUrl: form.midiUrl,
  164. xmlFileUrl: form.xmlFileUrl,
  165. canEvaluate: Number(form.canEvaluate),
  166. chargeType: form.chargeType === 0 ? 'FREE' : 'CHARGE',
  167. composer: form.composer,
  168. musicPrice: form.musicPrice,
  169. background: form.backgroundMp3s.map(item => ({
  170. audioFileUrl: form.hasBeat ? '' : form.bgmp3Url,
  171. track: item.track,
  172. metronomeUrl: form.hasBeat ? form.bgmp3Url : ''
  173. }))
  174. }
  175. },
  176. onFormatter(e: any) {
  177. e.target.value = verifyNumberIntegerAndFloat(e.target.value)
  178. },
  179. onSubmit() {
  180. ;(this as any).$refs.form.validate(async (valid: any) => {
  181. if (valid) {
  182. this.submitLoading = true
  183. console.log(this.createSubmitData(), 'createSubmitData')
  184. try {
  185. if (this.$route.query.id) {
  186. await request.post('/api-website/music/sheet/update', {
  187. data: {
  188. ...this.createSubmitData(),
  189. id: this.$route.query.id
  190. }
  191. })
  192. } else {
  193. await request.post('/api-website/music/sheet/create', {
  194. data: this.createSubmitData()
  195. })
  196. }
  197. this.submitLoading = false
  198. ElMessage.success('上传成功')
  199. sessionStorage.setItem('musicActiveName', 'DOING')
  200. this.$router.back()
  201. } catch (error) {
  202. this.submitLoading = false
  203. }
  204. } else {
  205. this.$nextTick(() => {
  206. const isError = document.getElementsByClassName('is-error')
  207. isError[0].scrollIntoView({
  208. block: 'center',
  209. behavior: 'smooth'
  210. })
  211. })
  212. return false
  213. }
  214. })
  215. },
  216. onDetail(type: string) {
  217. let url = `${getCodeBaseUrl('/teacher')}/#/registerProtocol`
  218. if (type === 'question') {
  219. url = `${getCodeBaseUrl('/teacher')}/muic-standard/question.html`
  220. } else if (type === 'music') {
  221. url = `${getCodeBaseUrl('/teacher')}/muic-standard/index.html`
  222. }
  223. window.open(url)
  224. }
  225. },
  226. render() {
  227. return (
  228. <div class={styles.form}>
  229. <div class="text-2xl font-semibold text-black leading-none px-6 py-5 ">
  230. {this.type === 'create' ? '新建曲谱' : '编辑曲谱'}
  231. </div>
  232. <ElForm
  233. size="large"
  234. labelPosition="left"
  235. labelWidth={'150px'}
  236. model={this.form}
  237. ref="form"
  238. class="px-7 py-5"
  239. >
  240. <div class={styles.tips}>
  241. <div class={styles.tipsTitle}>注意事项:</div>
  242. <div class={styles.tipsContent}>
  243. 1、必须是上传人自己参与制作的作品。
  244. <br />
  245. 2、歌曲及歌曲信息中请勿涉及政治、宗教、广告、涉毒、犯罪、色情、低俗、暴力、血腥、消极等违规内容,违反者直接删除内容。多次违反将封号。
  246. <br />
  247. 3、点击查看{' '}
  248. <span onClick={() => this.onDetail('protocol')}>
  249. 《用户注册协议》
  250. </span>
  251. ,如果您上传了文件,即认为您完全同意并遵守该协议的内容;
  252. </div>
  253. </div>
  254. <ElFormItem
  255. label="上传XML"
  256. prop="xmlFileUrl"
  257. rules={[{ required: true, message: '请选择MusicXML文件' }]}
  258. >
  259. <ColUpload
  260. v-model:modelValue={this.form.xmlFileUrl}
  261. bucket={'cloud-coach'}
  262. accept={'application/xml'}
  263. uploadType={'file'}
  264. extraTips="文件最大不能超过5MB"
  265. />
  266. </ElFormItem>
  267. <div class={styles.tips}>
  268. <div class={styles.tipsTitle}>曲谱审核标准:</div>
  269. <div class={styles.tipsContent}>
  270. 1、文件大小不要超过5MB,不符合版面规范的乐谱,审核未通过的不予上架,详情参考
  271. <span onClick={() => this.onDetail('music')}>
  272. 《曲谱排版规范》
  273. </span>
  274. ; 1、必须是上传人自己参与制作的作品。
  275. <br />
  276. 2、XML与MIDI文件内容必须一致,推荐使用Sibelius打谱软件。导出设置:导出XML-未压缩(*.xml)/导出MIDI:音色-其他回放设备General
  277. MIDI、MIDI、MIDI文件类型-类型0、不要勾选“将弱拍小节导出为具有休止符的完整小节”。点击查看
  278. <span onClick={() => this.onDetail('question')}>
  279. 《常见问题》
  280. </span>
  281. </div>
  282. </div>
  283. <ElFormItem
  284. label="播放类型"
  285. prop="audioType"
  286. rules={[{ required: true, message: '请选择播放类型' }]}
  287. >
  288. <ElRadioGroup v-model={this.form.audioType}>
  289. <ElRadioButton label={'MIDI'} class="mr-3 w-24">
  290. MIDI
  291. </ElRadioButton>
  292. <ElRadioButton label={'MP3'} class="w-24">
  293. MP3
  294. </ElRadioButton>
  295. </ElRadioGroup>
  296. </ElFormItem>
  297. {this.form.audioType === 'MP3' ? (
  298. <>
  299. <ElFormItem
  300. label="是否带节拍器"
  301. prop="hasBeat"
  302. rules={[{ required: true, message: '请选择是否带节拍器' }]}
  303. >
  304. <ElRadioGroup v-model={this.form.hasBeat}>
  305. <ElRadioButton label={0} class="mr-3 w-24">
  306. </ElRadioButton>
  307. <ElRadioButton label={1} class="w-24">
  308. </ElRadioButton>
  309. </ElRadioGroup>
  310. </ElFormItem>
  311. <ElFormItem
  312. label="伴奏类型"
  313. prop="accompanimentType"
  314. rules={[{ required: true, message: '请选择伴奏类型' }]}
  315. >
  316. <ElRadioGroup v-model={this.form.accompanimentType}>
  317. <ElRadioButton label={'HOMEMODE'} class="mr-3 w-24">
  318. 自制伴奏
  319. </ElRadioButton>
  320. <ElRadioButton label={'COMMON'} class="w-24">
  321. 普通伴奏
  322. </ElRadioButton>
  323. </ElRadioGroup>
  324. </ElFormItem>
  325. <ElFormItem label="伴奏文件" prop="mp3Url">
  326. <ColUpload
  327. v-model:modelValue={this.form.mp3Url}
  328. bucket={'cloud-coach'}
  329. accept={'.mp3'}
  330. uploadType={'file'}
  331. size={8}
  332. extraTips="文件最大不能超过8MB"
  333. />
  334. </ElFormItem>
  335. </>
  336. ) : (
  337. <>
  338. <ElFormItem
  339. label="伴奏类型"
  340. prop="accompanimentType"
  341. rules={[{ required: true, message: '请选择伴奏类型' }]}
  342. >
  343. <ElRadioGroup v-model={this.form.accompanimentType}>
  344. <ElRadioButton label={'HOMEMODE'} class="mr-3 w-24">
  345. 自制伴奏
  346. </ElRadioButton>
  347. <ElRadioButton label={'COMMON'} class="w-24">
  348. 普通伴奏
  349. </ElRadioButton>
  350. </ElRadioGroup>
  351. </ElFormItem>
  352. <ElFormItem
  353. label="MIDI文件"
  354. prop="midiUrl"
  355. rules={[{ required: true, message: '请选择MIDI文件' }]}
  356. >
  357. <ColUpload
  358. v-model:modelValue={this.form.midiUrl}
  359. bucket={'cloud-coach'}
  360. accept={'.midi'}
  361. uploadType={'file'}
  362. size={8}
  363. extraTips="文件最大不能超过8MB"
  364. />
  365. </ElFormItem>
  366. </>
  367. )}
  368. <div class={styles.tips}>
  369. <div class={styles.tipsContent}>
  370. 1、推荐上传自制伴奏,伴奏和谱面必须对齐。自制伴奏可以设置更高的收费标准。
  371. <br />
  372. 2、普通伴奏如果涉及到版权纠纷,根据
  373. <span onClick={() => this.onDetail('protocol')}>
  374. 《用户注册协议》
  375. </span>
  376. 平台有权进行下架处理。
  377. </div>
  378. </div>
  379. {this.form.audioType === 'MP3' && (
  380. <ElFormItem
  381. label="原音文件"
  382. prop="bgmp3Url"
  383. rules={[{ required: true, message: '请选择原音文件' }]}
  384. >
  385. <ColUpload
  386. v-model:modelValue={this.form.bgmp3Url}
  387. bucket={'cloud-coach'}
  388. accept={'.mp3'}
  389. uploadType={'file'}
  390. extraTips="文件最大不能超过8MB"
  391. />
  392. </ElFormItem>
  393. )}
  394. <ElFormItem
  395. label="曲目名称"
  396. prop="musicSheetName"
  397. rules={[{ required: true, message: '请输入曲目名称' }]}
  398. >
  399. <ElInput
  400. v-model={this.form.musicSheetName}
  401. placeholder="请选择曲目名称"
  402. />
  403. </ElFormItem>
  404. <div class={styles.tips}>
  405. <div class={styles.tipsContent}>
  406. 1、同一首曲目不可重复上传,如有不同版本统一用“()”补充。举例:人生的旋转木马(长笛二重奏版)。
  407. <br />
  408. 2、曲目名后可添加曲目信息备注,包含但不限于曲目类型等。曲目名《xxxx》,举例:人生的旋转木马《哈尔的移动城堡》(长笛二重奏版)
  409. <br />
  410. 3、其他信息不要写在曲目名里,如歌手、上传人员昵称等。
  411. </div>
  412. </div>
  413. <ElFormItem
  414. label="曲谱封面"
  415. prop="titleImg"
  416. rules={[
  417. {
  418. required: true,
  419. message: '请上传曲谱封面'
  420. }
  421. ]}
  422. >
  423. <ColCropper
  424. modelValue={this.form.titleImg}
  425. bucket={'cloud-coach'}
  426. cropUploadSuccess={(data: any) => {
  427. this.form.titleImg = data
  428. }}
  429. domSize={{ height: '150px' }}
  430. options={{
  431. title: '曲谱封面',
  432. enlarge: 2,
  433. autoCropWidth: 300,
  434. autoCropHeight: 300
  435. }}
  436. />
  437. </ElFormItem>
  438. <ElFormItem
  439. label="艺术家"
  440. prop="composer"
  441. rules={[{ required: true, message: '请输入艺术家' }]}
  442. >
  443. <ElInput v-model={this.form.composer} placeholder="请输入艺术家" />
  444. </ElFormItem>
  445. <ElFormItem
  446. label="曲目声部"
  447. prop="musicSubject"
  448. rules={[
  449. { required: true, message: '请选择曲目声部', trigger: 'change' }
  450. ]}
  451. >
  452. <ElSelect
  453. filterable
  454. v-model={this.form.musicSubject}
  455. placeholder="请选择曲目声部"
  456. class="w-full"
  457. >
  458. {this.subjectList.map((group: any) => (
  459. <ElOptionGroup key={group.id} label={group.name}>
  460. {group.subjects &&
  461. group.subjects.map((item: any) => (
  462. <ElOption
  463. key={item.id}
  464. value={item.id}
  465. label={item.name}
  466. />
  467. ))}
  468. </ElOptionGroup>
  469. ))}
  470. </ElSelect>
  471. </ElFormItem>
  472. <div class={styles.tips}>
  473. <div class={styles.tipsContent}>
  474. XML文件中,选择的曲目声部需要在总谱的置顶位置。
  475. </div>
  476. </div>
  477. <ElFormItem
  478. label="曲目标签"
  479. prop="tags"
  480. rules={[{ required: true, message: '请选择曲目标签' }]}
  481. >
  482. <div class="w-full relative">
  483. <div
  484. class=" w-full block h-[42px] absolute top-0 left-0 z-10"
  485. onClick={() => {
  486. console.log(111)
  487. this.tagStatus = true
  488. }}
  489. ></div>
  490. <ElSelect
  491. multiple
  492. v-model={this.form.tags}
  493. placeholder="请选择曲目标签"
  494. class="w-full"
  495. >
  496. {this.tagList.map((group: any) => (
  497. <ElOptionGroup key={group.id} label={group.name}>
  498. {group.children &&
  499. group.children.map((item: any) => (
  500. <ElOption
  501. key={item.id}
  502. value={item.id}
  503. label={item.name}
  504. />
  505. ))}
  506. </ElOptionGroup>
  507. ))}
  508. </ElSelect>
  509. </div>
  510. </ElFormItem>
  511. <ElFormItem
  512. label="支持简谱"
  513. prop="notation"
  514. rules={[{ required: true, message: '请选择是否支持简谱' }]}
  515. >
  516. <ElRadioGroup v-model={this.form.notation}>
  517. <ElRadioButton label={0} class="mr-3 w-24">
  518. </ElRadioButton>
  519. <ElRadioButton label={1} class="w-24">
  520. </ElRadioButton>
  521. </ElRadioGroup>
  522. </ElFormItem>
  523. <ElFormItem
  524. label="是否评测"
  525. prop="canEvaluate"
  526. rules={[{ required: true, message: '请选择是否评测' }]}
  527. >
  528. <ElRadioGroup v-model={this.form.canEvaluate}>
  529. <ElRadioButton label={0} class="mr-3 w-24">
  530. </ElRadioButton>
  531. <ElRadioButton label={1} class="w-24">
  532. </ElRadioButton>
  533. </ElRadioGroup>
  534. </ElFormItem>
  535. <ElFormItem
  536. label="指法展示"
  537. prop="showFingering"
  538. rules={[{ required: true, message: '请选择指法展示' }]}
  539. >
  540. <ElRadioGroup v-model={this.form.showFingering}>
  541. <ElRadioButton label={0} class="mr-3 w-24">
  542. </ElRadioButton>
  543. <ElRadioButton label={1} class="w-24">
  544. </ElRadioButton>
  545. </ElRadioGroup>
  546. </ElFormItem>
  547. <ElFormItem
  548. label="是否收费"
  549. prop="chargeType"
  550. rules={[{ required: true, message: '请选择是否收费' }]}
  551. >
  552. <ElRadioGroup v-model={this.form.chargeType}>
  553. <ElRadioButton label={0} class="mr-3 w-24">
  554. </ElRadioButton>
  555. <ElRadioButton label={2} class="w-24">
  556. </ElRadioButton>
  557. </ElRadioGroup>
  558. </ElFormItem>
  559. {this.form.chargeType === 2 && (
  560. <>
  561. <ElFormItem
  562. label="收费价格"
  563. prop="musicPrice"
  564. rules={[{ required: true, validator }]}
  565. >
  566. <ElInput
  567. v-model={this.form.musicPrice}
  568. placeholder="请输入收费价格"
  569. // @ts-ignore
  570. maxlength={5}
  571. onKeyup={this.onFormatter}
  572. v-slots={{
  573. suffix: () => <span class="text-base text-[#999]">元</span>
  574. }}
  575. />
  576. </ElFormItem>
  577. <ElFormItem>
  578. <div class={styles.rule}>
  579. <p>扣除手续费后该曲目预计收入为:</p>
  580. <p>
  581. 每人:
  582. <span>
  583. {((parseFloat(this.form.musicPrice || '0') || 0) *
  584. (100 - this.music_sheet_service_fee)) /
  585. 100}
  586. </span>
  587. 元/人
  588. </p>
  589. <p>您的乐谱收入将在学员购买后结算到您的账户中</p>
  590. </div>
  591. </ElFormItem>
  592. </>
  593. )}
  594. </ElForm>
  595. <div class="text-center pt-6 pb-7">
  596. <ElButton
  597. class="!w-44 !h-[48px]"
  598. round
  599. onClick={() => {
  600. this.$router.back()
  601. }}
  602. >
  603. 取消
  604. </ElButton>
  605. <ElButton
  606. type="primary"
  607. class="!w-44 !h-[48px]"
  608. round
  609. onClick={this.onSubmit}
  610. loading={this.submitLoading}
  611. >
  612. 提交审核
  613. </ElButton>
  614. </div>
  615. <ElDialog
  616. modelValue={this.tagStatus}
  617. onUpdate:modelValue={val => (this.tagStatus = val)}
  618. width="35%"
  619. title="全部标签"
  620. >
  621. {this.tagList.map((item: any, index: number) => (
  622. <div class={[styles.tags, 'py-2']}>
  623. <div class="text-sm pb-2">{item.name}</div>
  624. {item.children.map((child: any) => (
  625. <ElRadioGroup v-model={this.radioList[index]} class="pb-2">
  626. <ElRadioButton label={child.id} class="mr-3">
  627. {child.name}
  628. </ElRadioButton>
  629. </ElRadioGroup>
  630. ))}
  631. </div>
  632. ))}
  633. <div class="text-center pt-2">
  634. <ElButton
  635. class="!w-36 !h-[48px]"
  636. round
  637. size="large"
  638. onClick={() => {
  639. this.radioList = []
  640. }}
  641. >
  642. 重置
  643. </ElButton>
  644. <ElButton
  645. class="!w-36 !h-[48px]"
  646. round
  647. size="large"
  648. type="primary"
  649. onClick={() => {
  650. this.form.tags = this.radioList
  651. this.tagStatus = false
  652. ;(this as any).$refs.form.clearValidate('tags')
  653. }}
  654. >
  655. 确认
  656. </ElButton>
  657. </div>
  658. </ElDialog>
  659. </div>
  660. )
  661. }
  662. })