|
@@ -99,6 +99,7 @@ export default defineComponent({
|
|
// exquisiteFlag: 0,
|
|
// exquisiteFlag: 0,
|
|
backgroundMp3s: [] as BackgroundMp3[],
|
|
backgroundMp3s: [] as BackgroundMp3[],
|
|
// checked: false,
|
|
// checked: false,
|
|
|
|
+ auditStatus: '' as any,
|
|
messageTipStatus: false,
|
|
messageTipStatus: false,
|
|
messageTipTitle: '上传须知',
|
|
messageTipTitle: '上传须知',
|
|
messageTipType: 'upload' as 'upload' | 'error' | 'origin',
|
|
messageTipType: 'upload' as 'upload' | 'error' | 'origin',
|
|
@@ -112,6 +113,11 @@ export default defineComponent({
|
|
this.mergeXmlData(this.formated)
|
|
this.mergeXmlData(this.formated)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ auditDisabled(): boolean {
|
|
|
|
+ return this.auditStatus === 'DOING'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
async mounted() {
|
|
async mounted() {
|
|
const isCatchTip = localStorage.getItem('isCatchTip')
|
|
const isCatchTip = localStorage.getItem('isCatchTip')
|
|
if (!isCatchTip) {
|
|
if (!isCatchTip) {
|
|
@@ -168,7 +174,7 @@ export default defineComponent({
|
|
)
|
|
)
|
|
|
|
|
|
this.musicSheetAuthRecordId = data.musicSheetAuthRecordId // 审核编号
|
|
this.musicSheetAuthRecordId = data.musicSheetAuthRecordId // 审核编号
|
|
-
|
|
|
|
|
|
+ this.auditStatus = data.auditStatus
|
|
console.log(this.musicSheetAuthRecordId)
|
|
console.log(this.musicSheetAuthRecordId)
|
|
this.playMode = data.audioType || 'MP3'
|
|
this.playMode = data.audioType || 'MP3'
|
|
this.xmlFileUrl = data.xmlFileUrl
|
|
this.xmlFileUrl = data.xmlFileUrl
|
|
@@ -482,6 +488,7 @@ export default defineComponent({
|
|
class={styles.form}
|
|
class={styles.form}
|
|
onSubmit={this.onSubmit}
|
|
onSubmit={this.onSubmit}
|
|
onFailed={this.onFailed}
|
|
onFailed={this.onFailed}
|
|
|
|
+ disabled={this.auditDisabled}
|
|
>
|
|
>
|
|
<ColHeader
|
|
<ColHeader
|
|
title=" "
|
|
title=" "
|
|
@@ -518,6 +525,7 @@ export default defineComponent({
|
|
class={styles['radio-group']}
|
|
class={styles['radio-group']}
|
|
modelValue={this.playMode}
|
|
modelValue={this.playMode}
|
|
onUpdate:modelValue={val => (this.playMode = val)}
|
|
onUpdate:modelValue={val => (this.playMode = val)}
|
|
|
|
+ disabled={this.auditDisabled}
|
|
>
|
|
>
|
|
{Object.keys(teachershowAudiType).map((item: string) => {
|
|
{Object.keys(teachershowAudiType).map((item: string) => {
|
|
const isActive = item === this.playMode
|
|
const isActive = item === this.playMode
|
|
@@ -558,6 +566,7 @@ export default defineComponent({
|
|
icon={UploadIcon}
|
|
icon={UploadIcon}
|
|
class={styles.upbtn}
|
|
class={styles.upbtn}
|
|
loading={this.mp3Loading}
|
|
loading={this.mp3Loading}
|
|
|
|
+ disabled={this.auditDisabled}
|
|
onClick={() => {
|
|
onClick={() => {
|
|
if (this.mp3Url) return
|
|
if (this.mp3Url) return
|
|
this.naiveMp3File()
|
|
this.naiveMp3File()
|
|
@@ -568,7 +577,7 @@ export default defineComponent({
|
|
: '上传伴奏文件'}
|
|
: '上传伴奏文件'}
|
|
</Button>
|
|
</Button>
|
|
|
|
|
|
- {this.mp3Url && (
|
|
|
|
|
|
+ {this.mp3Url && !this.auditDisabled && (
|
|
<i
|
|
<i
|
|
class={styles.iconDelete}
|
|
class={styles.iconDelete}
|
|
onClick={() => {
|
|
onClick={() => {
|
|
@@ -582,6 +591,7 @@ export default defineComponent({
|
|
<Upload
|
|
<Upload
|
|
onUpdate:modelValue={val => (this.mp3Url = val)}
|
|
onUpdate:modelValue={val => (this.mp3Url = val)}
|
|
accept=".mp3"
|
|
accept=".mp3"
|
|
|
|
+ disabled={this.auditDisabled}
|
|
/>
|
|
/>
|
|
<div style={{ marginLeft: '8px' }}>
|
|
<div style={{ marginLeft: '8px' }}>
|
|
{this.fileName(this.mp3Url)}
|
|
{this.fileName(this.mp3Url)}
|
|
@@ -615,6 +625,7 @@ export default defineComponent({
|
|
icon={UploadIcon}
|
|
icon={UploadIcon}
|
|
class={styles.upbtn}
|
|
class={styles.upbtn}
|
|
loading={this.mp3Loading}
|
|
loading={this.mp3Loading}
|
|
|
|
+ disabled={this.auditDisabled}
|
|
onClick={() => {
|
|
onClick={() => {
|
|
if (this.midiFileUrl) return
|
|
if (this.midiFileUrl) return
|
|
this.naiveMidFile()
|
|
this.naiveMidFile()
|
|
@@ -625,7 +636,7 @@ export default defineComponent({
|
|
: '上传MIDI文件'}
|
|
: '上传MIDI文件'}
|
|
</Button>
|
|
</Button>
|
|
|
|
|
|
- {this.midiFileUrl && (
|
|
|
|
|
|
+ {this.midiFileUrl && !this.auditDisabled && (
|
|
<i
|
|
<i
|
|
class={styles.iconDelete}
|
|
class={styles.iconDelete}
|
|
onClick={() => {
|
|
onClick={() => {
|
|
@@ -640,6 +651,7 @@ export default defineComponent({
|
|
onUpdate:modelValue={val => (this.midiFileUrl = val)}
|
|
onUpdate:modelValue={val => (this.midiFileUrl = val)}
|
|
accept=".mid"
|
|
accept=".mid"
|
|
formatFile={this.readerFile}
|
|
formatFile={this.readerFile}
|
|
|
|
+ disabled={this.auditDisabled}
|
|
/>
|
|
/>
|
|
<div style={{ marginLeft: '8px' }}>
|
|
<div style={{ marginLeft: '8px' }}>
|
|
{this.fileName(this.midiFileUrl)}
|
|
{this.fileName(this.midiFileUrl)}
|
|
@@ -672,6 +684,7 @@ export default defineComponent({
|
|
icon={UploadIcon}
|
|
icon={UploadIcon}
|
|
class={styles.upbtn}
|
|
class={styles.upbtn}
|
|
loading={this.xmlFileLoading}
|
|
loading={this.xmlFileLoading}
|
|
|
|
+ disabled={this.auditDisabled}
|
|
onClick={() => {
|
|
onClick={() => {
|
|
if (this.xmlFileUrl) return
|
|
if (this.xmlFileUrl) return
|
|
this.naiveXMLFile()
|
|
this.naiveXMLFile()
|
|
@@ -682,7 +695,7 @@ export default defineComponent({
|
|
: '上传XML文件'}
|
|
: '上传XML文件'}
|
|
</Button>
|
|
</Button>
|
|
|
|
|
|
- {this.xmlFileUrl && (
|
|
|
|
|
|
+ {this.xmlFileUrl && !this.auditDisabled && (
|
|
<i
|
|
<i
|
|
class={styles.iconDelete}
|
|
class={styles.iconDelete}
|
|
onClick={() => {
|
|
onClick={() => {
|
|
@@ -698,6 +711,7 @@ export default defineComponent({
|
|
onUpdate:modelValue={val => (this.xmlFileUrl = val)}
|
|
onUpdate:modelValue={val => (this.xmlFileUrl = val)}
|
|
accept=".xml,."
|
|
accept=".xml,."
|
|
formatFile={this.readerFile}
|
|
formatFile={this.readerFile}
|
|
|
|
+ disabled={this.auditDisabled}
|
|
/>
|
|
/>
|
|
<div style={{ marginLeft: '8px' }}>
|
|
<div style={{ marginLeft: '8px' }}>
|
|
{this.fileName(this.xmlFileUrl)}
|
|
{this.fileName(this.xmlFileUrl)}
|
|
@@ -754,6 +768,7 @@ export default defineComponent({
|
|
icon={UploadIcon}
|
|
icon={UploadIcon}
|
|
class={styles.upbtn}
|
|
class={styles.upbtn}
|
|
loading={mp3.loading}
|
|
loading={mp3.loading}
|
|
|
|
+ disabled={this.auditDisabled}
|
|
onClick={() => {
|
|
onClick={() => {
|
|
if (mp3.url) return
|
|
if (mp3.url) return
|
|
this.naiveBGMp3File(index)
|
|
this.naiveBGMp3File(index)
|
|
@@ -762,7 +777,7 @@ export default defineComponent({
|
|
{mp3.url ? this.fileName(mp3.url) : '上传原声文件'}
|
|
{mp3.url ? this.fileName(mp3.url) : '上传原声文件'}
|
|
</Button>
|
|
</Button>
|
|
|
|
|
|
- {mp3.url && (
|
|
|
|
|
|
+ {mp3.url && !this.auditDisabled && (
|
|
<i
|
|
<i
|
|
class={styles.iconDelete}
|
|
class={styles.iconDelete}
|
|
onClick={() => {
|
|
onClick={() => {
|
|
@@ -776,6 +791,7 @@ export default defineComponent({
|
|
<Upload
|
|
<Upload
|
|
onUpdate:modelValue={val => (mp3.url = val)}
|
|
onUpdate:modelValue={val => (mp3.url = val)}
|
|
accept=".mp3"
|
|
accept=".mp3"
|
|
|
|
+ disabled={this.auditDisabled}
|
|
/>
|
|
/>
|
|
<div style={{ marginLeft: '8px' }}>
|
|
<div style={{ marginLeft: '8px' }}>
|
|
{this.fileName(mp3.url)}
|
|
{this.fileName(mp3.url)}
|
|
@@ -847,6 +863,7 @@ export default defineComponent({
|
|
cropper
|
|
cropper
|
|
bucket="cloud-coach"
|
|
bucket="cloud-coach"
|
|
tips="上传封面"
|
|
tips="上传封面"
|
|
|
|
+ disabled={this.auditDisabled}
|
|
options={{
|
|
options={{
|
|
autoCropWidth: 600,
|
|
autoCropWidth: 600,
|
|
autoCropHeight: 600
|
|
autoCropHeight: 600
|
|
@@ -893,7 +910,9 @@ export default defineComponent({
|
|
class={this.tags.length > 0 ? styles.tagMore : ''}
|
|
class={this.tags.length > 0 ? styles.tagMore : ''}
|
|
rules={[{ required: true, message: '请选择曲目标签' }]}
|
|
rules={[{ required: true, message: '请选择曲目标签' }]}
|
|
errorMessageAlign="right"
|
|
errorMessageAlign="right"
|
|
|
|
+ disabled={this.auditDisabled}
|
|
onClick={() => {
|
|
onClick={() => {
|
|
|
|
+ if (this.auditDisabled) return
|
|
this.tagVisibility = true
|
|
this.tagVisibility = true
|
|
}}
|
|
}}
|
|
></Field>
|
|
></Field>
|
|
@@ -907,7 +926,7 @@ export default defineComponent({
|
|
type="primary"
|
|
type="primary"
|
|
size="large"
|
|
size="large"
|
|
class={styles.tags}
|
|
class={styles.tags}
|
|
- closeable
|
|
|
|
|
|
+ closeable={!this.auditDisabled}
|
|
onClose={() => {
|
|
onClose={() => {
|
|
this.tags.splice(index, 1)
|
|
this.tags.splice(index, 1)
|
|
}}
|
|
}}
|
|
@@ -935,6 +954,7 @@ export default defineComponent({
|
|
onUpdate:modelValue={val => {
|
|
onUpdate:modelValue={val => {
|
|
this.paymentType = val
|
|
this.paymentType = val
|
|
}}
|
|
}}
|
|
|
|
+ disabled={this.auditDisabled}
|
|
>
|
|
>
|
|
{Object.keys(teacherPaymentType).map((item: string) => {
|
|
{Object.keys(teacherPaymentType).map((item: string) => {
|
|
const isActive = item === String(this.paymentType)
|
|
const isActive = item === String(this.paymentType)
|
|
@@ -1012,7 +1032,7 @@ export default defineComponent({
|
|
block
|
|
block
|
|
round
|
|
round
|
|
native-type="submit"
|
|
native-type="submit"
|
|
- disabled={this.submitLoading}
|
|
|
|
|
|
+ disabled={this.submitLoading || this.auditDisabled}
|
|
>
|
|
>
|
|
<img src={btnBg} />
|
|
<img src={btnBg} />
|
|
</Button>
|
|
</Button>
|