xiaozhen 6 лет назад
Родитель
Сommit
8adbc25913

+ 11 - 0
components/sign/education.vue

@@ -162,6 +162,17 @@ export default {
       });
       if (res.status === 1) {
         this.$message.success("保存成功!");
+        this.init = {
+          diploma_photo: "",
+          diploma_url: "",
+          start_time: "",
+          end_time: "",
+          date: [],
+          university: "",
+          major: "",
+          education_background: "",
+          description: ""
+        };
         this.getData();
         return true;
       } else {

+ 10 - 0
components/sign/experience.vue

@@ -121,6 +121,16 @@ export default {
       });
       if (res.status === 1) {
         this.$message.success("保存成功!");
+        this.init = {
+          work_certify_img: "",
+          start_time: "",
+          date: [],
+          end_time: "",
+          company: "",
+          title: "",
+          is_main: 0,
+          description: ""
+        };
         this.getData();
       }
     },

+ 5 - 0
components/sign/skills.vue

@@ -120,6 +120,11 @@ export default {
       const res = await this.$axios.$post("/api/user_skills/save", data);
       if (res.status === 1) {
         this.$message.success("保存成功!");
+        this.init={
+          skill_name: "",
+          skill_level: "",
+          skill_id: ""
+        };
         this.editingItem = [];
         this.originSkills.splice(idx, 1, item);
       } else {

+ 8 - 8
components/sign/works.vue

@@ -94,15 +94,15 @@ export default {
       const res = await this.$axios.$post(`/api/user_works/save`, queryParams);
       if (res.status === 1) {
         this.$message.success("保存成功!");
-        this.init= {
+        this.init = {
           name: "",
-            industry_id: "",
-            function_ops: "",
-            duty: "",
-            description: "",
-            url: "",
-            image_list: []
-        },
+          industry_id: "",
+          function_ops: "",
+          duty: "",
+          description: "",
+          url: "",
+          image_list: []
+        };
         this.editingItem = [];
         this.getData();
       }