WXL
2024-07-04 1e78fbfb63e192c5284b19bba161ea12e80a7d92
测试完成
已修改4个文件
49 ■■■■■ 文件已修改
src/api/patient/homepage.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/patient/PatientChart.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/patient/outpatient.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/patient/profile/index.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/patient/homepage.js
@@ -33,6 +33,7 @@
    data: data
  })
};
// 患者详情
export function particularpatient(userId) {
  return request({
src/views/patient/patient/PatientChart.vue
@@ -906,24 +906,19 @@
    //修改/新增患者
    submitForm() {
      if (this.amendtag) {
        console.log(22);
        this.form.isoperation = 2;
      } else {
        this.form.isoperation = 1;
      }
        alterpatient(this.form)
          .then((response) => {
            console.log(response);
          })
          .then(() => {
            this.getList();
            this.$modal.msgSuccess("修改成功");
          this.$modal.msgSuccess("保存成功");
          });
      } else {
        addpatient(this.form)
          .then((response) => {
            console.log(response);
          })
          .then(() => {
            this.getList();
            this.$modal.msgSuccess("添加成功");
          });
      }
      this.reset();
      // this.idds = "";
      this.Labelchange = false;
src/views/patient/patient/outpatient.vue
@@ -631,7 +631,6 @@
      queryParams: {
        pageNum: 1,
        pageSize: 10,
      },
      // 表单校验
      rules: {
@@ -796,24 +795,19 @@
    //修改/新增患者
    submitForm() {
      if (this.amendtag) {
        console.log(22);
        this.form.isoperation = 2;
      } else {
        this.form.isoperation = 1;
      }
        alterpatient(this.form)
          .then((response) => {
            console.log(response);
          })
          .then(() => {
            this.getList();
            this.$modal.msgSuccess("修改成功");
          this.$modal.msgSuccess("保存成功");
          });
      } else {
        addpatient(this.form)
          .then((response) => {
            console.log(response);
          })
          .then(() => {
            this.getList();
            this.$modal.msgSuccess("添加成功");
          });
      }
      this.reset();
      // this.idds = "";
      this.Labelchange = false;
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 = "";
    },