WXL
2024-07-04 1e78fbfb63e192c5284b19bba161ea12e80a7d92
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"
@@ -950,6 +947,7 @@
      };
      listtag(tagqueryParams).then((response) => {
        this.options = response.rows;
        console.log(this.options, "标签");
      });
    },
    remoteMethod(value) {
@@ -975,9 +973,7 @@
    showInput() {
      this.inputVisible = true;
      // this.$nextTick((_) => {
      //   this.$refs.saveTagInput.$refs.input.focus();
      // });
      console.log("展示");
    },
    handleInputConfirm() {
@@ -1006,6 +1002,7 @@
          console.log(this.dynamicTags);
        });
      }
      console.log("关了");
      this.inputVisible = false;
      this.inputValue = "";
    },