Commit 9d83c27e091286d1c36dfa33c6b07b44b0a6473f
1 parent
2e2d6036
debug rules
Showing
1 changed file
with
7 additions
and
9 deletions
Too many changes to show.
To preserve performance only 1 of 4 files are displayed.
dist/audio.html
| ... | ... | @@ -11,11 +11,10 @@ |
| 11 | 11 | <link rel="shortcut icon" href="/cms.ico" /> |
| 12 | 12 | <link rel="bookmark" href="/cms.ico" /> |
| 13 | 13 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-plus@1.1.0-beta.12/theme-chalk/index.css"> |
| 14 | - <!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-ui@2.15.5/lib/theme-chalk/index.css"> --> | |
| 15 | 14 | </head> |
| 16 | 15 | |
| 17 | 16 | <body id="body" style="margin: 0; padding: 0"> |
| 18 | - <div id="audio" class="page-container"> | |
| 17 | + <div id="audioPage" class="page-container"> | |
| 19 | 18 | <el-card> |
| 20 | 19 | <template #header> |
| 21 | 20 | <div class="card-header"> |
| ... | ... | @@ -25,7 +24,7 @@ |
| 25 | 24 | </div> |
| 26 | 25 | </template> |
| 27 | 26 | <div> |
| 28 | - <el-form ref="form" :model="form" label-width="120px" :rules="rules" style="display: flex; flex-wrap: wrap;" > | |
| 27 | + <el-form ref="songs" :model="form" label-width="120px" :rules="rules" style="display: flex; flex-wrap: wrap;" > | |
| 29 | 28 | <el-form-item label="类型" style="width: 100%" prop="channelId"> |
| 30 | 29 | <el-radio-group v-model="form.channelId" @change="handleChange"> |
| 31 | 30 | <el-radio :label="1278">热歌榜</el-radio> |
| ... | ... | @@ -64,7 +63,7 @@ |
| 64 | 63 | <el-form-item label="音频" style="width: 100%" prop="audioFile"> |
| 65 | 64 | <el-upload class="upload-demo" :action="uploadUrl" :auto-upload="false" :file-list="fileList" accept=".mp3" |
| 66 | 65 | @change="getMp3" :on-exceed="exceed" :before-remove="handleRemove" :disabled="btnDisabled" :show-file-list="false"> |
| 67 | - <el-button size="small" type="primary" :disabled="btnDisabled">点击上传</el-button> | |
| 66 | + <el-button size="small" type="primary" :disabled="btnDisabled">选择文件</el-button> | |
| 68 | 67 | <span style="color: red; margin-left: 10px;">{{msgText}}</span> |
| 69 | 68 | </el-upload> |
| 70 | 69 | </el-form-item> |
| ... | ... | @@ -76,17 +75,16 @@ |
| 76 | 75 | <el-form-item style="width: 50%; text-align: right;"> |
| 77 | 76 | <el-button @click="reset" v-if="form.channelId == 1279">取消</el-button> |
| 78 | 77 | <el-button @click="reset" v-else :disabled="!form.audioId">取消</el-button> |
| 79 | - <el-button type="danger" @click="submit" v-if="form.channelId == 1279">确定上传</el-button> | |
| 80 | - <el-button type="danger" @click="submit" v-else :disabled="!form.audioId">确定上传</el-button> | |
| 81 | - </el-form-item> | |
| 78 | + | |
| 79 | + <el-button type="danger" @click="submitForm" v-if="form.channelId == 1279">确定上传</el-button> | |
| 80 | + <el-button type="danger" @click="submitForm" v-else :disabled="!form.audioId">确定上传</el-button> | |
| 81 | + </el-form-item> | |
| 82 | 82 | </el-form> |
| 83 | 83 | </div> |
| 84 | 84 | </el-card> |
| 85 | 85 | </div> |
| 86 | 86 | <script src="https://cdn.jsdelivr.net/npm/vue@3.2.11/dist/vue.global.js"></script> |
| 87 | - <!-- <script src="https://cdn.jsdelivr.net/npm/vue@2.5.2/dist/vue.min.js"></script> --> | |
| 88 | 87 | <script src="https://cdn.jsdelivr.net/npm/element-plus"></script> |
| 89 | - <!-- <script src="https://cdn.jsdelivr.net/npm/element-ui@2.15.5/lib/index.js"></script> --> | |
| 90 | 88 | <script src="https://cdn.jsdelivr.net/npm/axios@0.17.1/dist/axios.min.js"></script> |
| 91 | 89 | <script src="https://cdn.jsdelivr.net/npm/qiniu-js@2.5.5/dist/qiniu.min.js"></script> |
| 92 | 90 | <script src="/bundle.js"></script></body> | ... | ... |