Tang vor 3 Jahren
Ursprung
Commit
0179d30dea

+ 1 - 1
src/views/education/examManagement/applicationData/bulkImportPlan/newRegister.vue

@@ -292,7 +292,7 @@ export default {
         },
         {
           label: "证书编号",
-          prop: "userName",
+          prop: "certificateCode",
         },
         {
           label: "出错原因",

+ 20 - 14
src/views/resource/handoutManagement/handoutList/edit/index.vue

@@ -149,7 +149,7 @@
 
 <script>
 export default {
-  name:"HandoutListEdit",
+  name: "HandoutListEdit",
   data() {
     return {
       blob: "", //pdf本地路径
@@ -210,19 +210,22 @@ export default {
   },
   methods: {
     search() {
-      this.$api.obtainCourseHandouts(this.$route.query.id).then((res) => {
-        this.bfImg = res.data.handoutsUrl;
-        this.listData = res.data;
-        if (res.data.courseHandoutsBusinessVo) {
-          var arrays = [];
-          res.data.courseHandoutsBusinessVo.map((item) => {
-            arrays.push(item.businessId + "-" + item.subjectId);
-          });
-          this.sujectApis = arrays;
-        }
-      }).finally(()=>{
-        this.$modal.closeLoading();
-      })
+      this.$api
+        .obtainCourseHandouts(this.$route.query.id)
+        .then((res) => {
+          this.bfImg = res.data.handoutsUrl;
+          this.listData = res.data;
+          if (res.data.courseHandoutsBusinessVo) {
+            var arrays = [];
+            res.data.courseHandoutsBusinessVo.map((item) => {
+              arrays.push(item.businessId + "-" + item.subjectId);
+            });
+            this.sujectApis = arrays;
+          }
+        })
+        .finally(() => {
+          this.$modal.closeLoading();
+        });
     },
     clearImgs() {
       this.listData.handoutsUrl = undefined;
@@ -389,6 +392,9 @@ export default {
           dataInfos.handoutsUrl = "";
           dataInfos.urlName = "";
         }
+      } else {
+        dataInfos.handoutsUrl = this.bfImg;
+        dataInfos.urlName = this.listData.urlName
       }
       this.$api.editCourseHandouts(dataInfos).then((res) => {
         this.$message.success("修改成功");