WXL
2024-07-26 b14bdee1aaf639dd14440b42c6a0ce2e12549ee7
src/views/patient/patient/index.vue
@@ -12,6 +12,7 @@
          v-model="queryParams.allhosp"
          @tab-click="handleClick"
        >
          <el-tab-pane label="患者列表" name="0"></el-tab-pane>
          <el-tab-pane label="住院患者" name="1"></el-tab-pane>
          <el-tab-pane label="门诊患者" name="2"></el-tab-pane>
          <el-tab-pane label="体检患者" name="3"></el-tab-pane>
@@ -215,8 +216,8 @@
                fixed
                label="序号"
                align="center"
                key="patid"
                prop="patid"
                key="id"
                prop="id"
              />
              <el-table-column
                fixed
@@ -319,7 +320,7 @@
                    @click="
                      $router.push({
                        path: '/patient/patient/profile/',
                        query: { id: scope.row.patid },
                        query: { id: scope.row.id },
                      })
                    "
                    v-hasPermi="['system:user:edit']"
@@ -791,7 +792,7 @@
      // 查询参数
      queryParams: {
        pageNum: 1,
        allhosp: "1",
        allhosp: "0",
        pageSize: 10,
        idcardno: undefined,
        name: undefined,
@@ -932,7 +933,7 @@
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map((item) => item.patid);
      this.ids = selection.map((item) => item.id);
      this.single = selection.length != 1;
      this.multiple = !selection.length;
    },
@@ -946,7 +947,7 @@
    /** 修改按钮操作 */
    handleUpdate(row) {
      console.log(row);
      const userIds = row.patid || this.ids;
      const userIds = row.id || this.ids;
      particularpatient(userIds).then((response) => {
        console.log(response);
        this.form = response.data;