WXL
2024-07-26 b14bdee1aaf639dd14440b42c6a0ce2e12549ee7
src/views/patient/patient/profile/index.vue
@@ -145,7 +145,7 @@
            <el-col :span="24"
              ><div class="xinz-inf">
                <el-tag
                  :key="tag.tagid"
                  :key="tag.tagname"
                  type="success"
                  v-for="tag in dynamicTags"
                  closable
@@ -155,16 +155,13 @@
                  {{ tag.tagname }}
                </el-tag>
                <el-select
                  v-model="inputValue"
                  v-if="inputVisible"
                  v-model="inputValue"
                  @change="handleInputConfirm"
                  :remote-method="remoteMethod"
                  remote
                  filterable
                  allow-create
                  default-first-option
                  placeholder="请选择/查询"
                  :loading="loading"
                >
                  <el-option
                    v-for="item in options"
@@ -763,6 +760,9 @@
    };
  },
  created() {
    this.id = this.$route.query.id;
    this.getuserinfo();
    this.gettabList();
    this.$nextTick(function () {
      this.echartdom = document.getElementById("xyeCharts");
      this.xtechartdom = document.getElementById("xteCharts");
@@ -778,9 +778,6 @@
      this.xueyangechartsInit();
      this.twechartsInit();
    });
    this.id = this.$route.query.id;
    this.getuserinfo();
    this.gettabList();
  },
  methods: {
@@ -808,10 +805,13 @@
        this.userform = response.rows[0];
        // this.dynamicTags = response.rows[0].tagList;
        this.dynamicTags = response.rows[0].tagList.map(this.processElement);
        console.log(this.dynamicTags);
      });
      // 病史信息
      getmedicalhistory({ pid: this.id }).then((res) => {
        this.form = res.rows[0];
        if (res.code == 200 && res.rows[0]) {
          this.form = res.rows[0];
        }
      });
      // 联系信息
      this.getcontactlist();
@@ -827,7 +827,7 @@
          this.$modal.msgError("基础信息修改失败");
        }
      });
      // 病史是
      // 病史
      this.medicalhistory();
    },
    // 病史
@@ -950,6 +950,7 @@
      };
      listtag(tagqueryParams).then((response) => {
        this.options = response.rows;
        console.log(this.options, "标签");
      });
    },
    remoteMethod(value) {
@@ -975,9 +976,7 @@
    showInput() {
      this.inputVisible = true;
      // this.$nextTick((_) => {
      //   this.$refs.saveTagInput.$refs.input.focus();
      // });
      console.log("展示");
    },
    handleInputConfirm() {
@@ -1006,6 +1005,7 @@
          console.log(this.dynamicTags);
        });
      }
      console.log("关了");
      this.inputVisible = false;
      this.inputValue = "";
    },