Your Name 2 роки тому
батько
коміт
8de7840103
2 змінених файлів з 8 додано та 2 видалено
  1. 8 1
      src/components/DiagCalc.vue
  2. 0 1
      src/components/PatIndex.vue

+ 8 - 1
src/components/DiagCalc.vue

@@ -265,7 +265,8 @@
         zssjt0Flag:false,
         cxsjt1Flag:false,
         cxsjt2Flag:false,
-        cxsjt3Flag:false
+        cxsjt3Flag:false,
+        edit:this.$route.query.edit
       }
     },
     methods: {
@@ -339,6 +340,9 @@
         let params = this.form
         params.patient_id = this.patient_id
         let that = this
+        if(this.edit){
+          delete params["id"]
+        }
         this.$api.regPatientCase(params).then(res => {
           if (!res.data.code) {
             this.$router.push({
@@ -507,6 +511,9 @@
         let params = this.form
         params.patient_id = this.patient_id
         let that = this
+        if(this.edit){
+          delete params["id"]
+        }
         this.$api.regPatientCase(params).then(res => {
           if (!res.data.code) {
             that.form = res.data.data;

+ 0 - 1
src/components/PatIndex.vue

@@ -166,7 +166,6 @@
               if (!res.data.code) {
                 this.latestCase = res.data.data
                 this.ratioHeight = 216 / 100 * this.latestCase.FVIII
-                this.latestCase.FVIII = 10
               }
             })
           }