Tang 3 жил өмнө
parent
commit
7a6a80b036

+ 31 - 0
src/views/resource/videoManagement/chapter/add/index.vue

@@ -249,6 +249,14 @@
                   ? "回放"
                   : "未知"
               }}</span>
+              <span v-else-if="item.scope === 'convert'">{{
+                $methodsTools.secondToDate(scope.row[item.prop], false)
+              }}</span>
+              <span v-else-if="item.scope === 'liveAndUrl'">{{
+                scope.row[item.prop] == 2
+                  ? scope.row[item.prop2]
+                  : scope.row[item.prop1]
+              }}</span>
               <span v-else-if="item.scope === 'Status'">
                 {{
                   scope.row[item.prop] === 1
@@ -364,6 +372,14 @@
                   ? "回放"
                   : ""
               }}</span>
+              <span v-else-if="item.scope === 'convert'">{{
+                $methodsTools.secondToDate(scope.row[item.prop], false)
+              }}</span>
+              <span v-else-if="item.scope === 'liveAndUrl'">{{
+                scope.row[item.prop] == 2
+                  ? scope.row[item.prop2]
+                  : scope.row[item.prop1]
+              }}</span>
               <span v-else-if="item.scope === 'Status'">
                 {{
                   scope.row[item.prop] === 1
@@ -540,6 +556,21 @@ export default {
         { label: "标题前缀", prop: "prefixName", width: "180" },
         { label: "节标题", prop: "name", width: "310" },
         { label: "节类型", prop: "sectionType", scope: "types" },
+        {
+          label: "URL地址/直播地址",
+          prop: "sectionType",
+          prop1: "recordingUrl",
+          prop2: "liveUrl",
+          width: "310",
+          hidden: true,
+          scope: "liveAndUrl",
+        },
+        {
+          label: "节时长",
+          prop: "durationTime",
+          hidden: true,
+          scope: "convert",
+        },
         {
           label: "发布状态",
           prop: "publishStatus",

+ 33 - 2
src/views/resource/videoManagement/chapter/edit/index.vue

@@ -221,6 +221,14 @@
                   ? "回放"
                   : "未知"
               }}</span>
+              <span v-else-if="item.scope === 'convert'">{{
+                $methodsTools.secondToDate(scope.row[item.prop], false)
+              }}</span>
+              <span v-else-if="item.scope === 'liveAndUrl'">{{
+                scope.row[item.prop] == 2
+                  ? scope.row[item.prop2]
+                  : scope.row[item.prop1]
+              }}</span>
               <span v-else-if="item.scope === 'Status'">
                 {{
                   scope.row[item.prop] === 1
@@ -336,6 +344,14 @@
                   ? "回放"
                   : ""
               }}</span>
+              <span v-else-if="item.scope === 'convert'">{{
+                $methodsTools.secondToDate(scope.row[item.prop], false)
+              }}</span>
+              <span v-else-if="item.scope === 'liveAndUrl'">{{
+                scope.row[item.prop] == 2
+                  ? scope.row[item.prop2]
+                  : scope.row[item.prop1]
+              }}</span>
               <span v-else-if="item.scope === 'Status'">
                 {{
                   scope.row[item.prop] === 1
@@ -511,6 +527,21 @@ export default {
         { label: "标题前缀", prop: "prefixName", width: "180" },
         { label: "节标题", prop: "name", width: "310" },
         { label: "节类型", prop: "sectionType", scope: "types" },
+        {
+          label: "URL地址/直播地址",
+          prop: "sectionType",
+          prop1: "recordingUrl",
+          prop2: "liveUrl",
+          width: "310",
+          hidden: true,
+          scope: "liveAndUrl",
+        },
+        {
+          label: "节时长",
+          prop: "durationTime",
+          hidden: true,
+          scope: "convert",
+        },
         {
           label: "发布状态",
           prop: "publishStatus",
@@ -1002,8 +1033,8 @@ export default {
       this.$refs[formName].validate((valid) => {
         if (valid) {
           if (!this.newSujectApis.length) {
-            this.$message.error("请选择适用业务层级")
-            return
+            this.$message.error("请选择适用业务层级");
+            return;
           }
           // if (
           //   this.listData.coverUrl === "" ||