浏览代码

修改视频素材人员修改

朱鑫波 4 年之前
父节点
当前提交
98e49b3a28
共有 1 个文件被更改,包括 7 次插入5 次删除
  1. 7 5
      src/views/modules/material/videoMaterial.vue

+ 7 - 5
src/views/modules/material/videoMaterial.vue

@@ -2498,12 +2498,14 @@ export default {
       getAction('/ctop/materialInfo/getDetail', {
         materialId: item.id,
       }).then((res) => {
-        this.formPerson.setFieldsValue({
-          clipId: res.ascription.clipId,
-          planId: res.ascription.planId,
-          shotId: res.ascription.shotId,
-        })
         this.code = item.code
+        if (res.ascription) {
+          this.formPerson.setFieldsValue({
+            clipId: res.ascription.clipId,
+            planId: res.ascription.planId,
+            shotId: res.ascription.shotId,
+          })
+        }
       })
     },
     edit(item, status, editStatus) {