zhouna 4 éve
szülő
commit
2429e7a8fb
1 módosított fájl, 6 hozzáadás és 0 törlés
  1. 6 0
      src/components/knowledgeExtra/AddDiagBase.vue

+ 6 - 0
src/components/knowledgeExtra/AddDiagBase.vue

@@ -25,6 +25,7 @@
                                        :isLast="form.klDiagnoseTypeVO.length===1"
                                        @setRules="setRules"
                                        @addDiag="addDiag"
+                                       @copyDiag="copyDiag"
                                        @delDiag="delDiag"></DiagBaseType>
                     </el-form-item>
                     <el-button class="disclButn" size="small" type="primary" @click="confirm">保存</el-button>
@@ -246,6 +247,11 @@
                 this.form.klDiagnoseTypeVO.push(temp);
                 this.setRules();
             },
+            copyDiag(i){
+                let temp = JSON.parse(JSON.stringify(this.form.klDiagnoseTypeVO[i]));
+                this.form.klDiagnoseTypeVO.splice(i,0,temp);
+                this.setRules();
+            },
             delDiag(i){
                 this.form.klDiagnoseTypeVO.splice(i,1);
             },