소스 검색

新增排序数据显示

wyling 3 년 전
부모
커밋
08f80c3051
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/views/shortVideo/index.vue
  2. 2 0
      src/views/teachingVideo/info/index.vue

+ 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