Sfoglia il codice sorgente

新增排序数据显示

wyling 3 anni fa
parent
commit
08f80c3051

+ 3 - 1
src/views/shortVideo/index.vue

@@ -152,7 +152,7 @@
         </el-row>
       </el-form>
       <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitForm" :disabled="!form.coverFileId">确 定</el-button>
+        <el-button type="primary" @click="submitForm" :disabled="!form.coverFileId && !form.coverFileUrl">确 定</el-button>
         <el-button @click="cancel">取 消</el-button>
       </div>
     </el-dialog>
@@ -339,6 +339,7 @@ export default {
             const data = {
               id: this.form.id,
               title: this.form.title,
+              sort: this.form.sort,
               videoDescribe: this.form.videoDescribe,
               videoFileId: this.form.vodVideoFileId,
               coverFileId: this.form.coverFileId
@@ -351,6 +352,7 @@ export default {
           } else {
             const data = {
               id: this.form.id,
+              sort: this.form.sort,
               title: this.form.title,
               videoDescribe: this.form.videoDescribe,
               videoFileId: this.form.vodVideoFileId,

+ 2 - 0
src/views/teachingVideo/info/index.vue

@@ -415,6 +415,7 @@ export default {
           teachingVideoTypeId: this.form.teachingVideoTypeId,
           id: this.form.id,
           title: this.form.title,
+          sort: this.form.sort,
           videoDescribe: this.form.videoDescribe,
           videoFileId: this.form.vodVideoFileId,
           coverFileId: this.form.coverFileId
@@ -429,6 +430,7 @@ export default {
           teachingVideoTypeId: this.teachingVideoTypeId,
           id: this.form.id,
           title: this.form.title,
+          sort: this.form.sort,
           videoDescribe: this.form.videoDescribe,
           videoFileId: this.form.vodVideoFileId,
           coverFileId: this.form.coverFileId