Ver código fonte

面包屑文字修改

wyq 4 anos atrás
pai
commit
efbbabf0c1

+ 3 - 1
src/components/knowledgeExtra/AddZskRegisteredDrug.vue

@@ -86,6 +86,7 @@ export default {
   data() {
     return {
       formInline: {
+        id:'',
         drugCode: '', //药品代码
         name: '', //注册名称
         enName: '', //英文名称
@@ -109,12 +110,13 @@ export default {
     };
   },
   created() {
-    console.log(this.$route.params);
     let type = this.$route.params.type;
     if (type == 2) {
+      this.title = '注册药品维护-修改注册药品'
       api.getByParam({ id: this.$route.params.id }).then(res => {
         if (res.data.code == 0) {
           const data = res.data.data;
+          this.formInline.id = data.id;
           this.formInline.drugCode = data.drugCode;
           this.formInline.name = data.name;
           this.formInline.enName = data.enName;