WXL
9 天以前 ade06cfe7a782f9272fa5d4820c589f7b8608935
src/views/business/allocation/index.vue
@@ -121,12 +121,7 @@
          prop="donorno"
          width="120"
        />
        <el-table-column
          label="姓名"
          align="center"
          prop="name"
          width="100"
        />
        <el-table-column label="姓名" align="center" prop="name" width="100" />
        <el-table-column
          label="住院号"
          align="center"
@@ -263,7 +258,7 @@
</template>
<script>
import { allocationList,  } from "@/api/businessApi";
import { allocationList } from "@/api/businessApi";
import Pagination from "@/components/Pagination";
export default {
@@ -315,9 +310,14 @@
      delete params.allocationTimeRange;
      // 如果有时间范围参数
      if (this.queryParams.allocationTimeRange && this.queryParams.allocationTimeRange.length === 2) {
        params.allocationTimeStart = this.queryParams.allocationTimeRange[0] + ' 00:00:00';
        params.allocationTimeEnd = this.queryParams.allocationTimeRange[1] + ' 23:59:59';
      if (
        this.queryParams.allocationTimeRange &&
        this.queryParams.allocationTimeRange.length === 2
      ) {
        params.allocationTimeStart =
          this.queryParams.allocationTimeRange[0] + " 00:00:00";
        params.allocationTimeEnd =
          this.queryParams.allocationTimeRange[1] + " 23:59:59";
      }
      allocationList(params)
@@ -357,7 +357,7 @@
    handleView(row) {
      this.$router.push({
        path: "/case/allocationInfo",
        query: { id: row.infoid }
        query: { id: row.id, infoid: row.infoid }
      });
    },
    // 新增按钮操作
@@ -366,15 +366,15 @@
    },
    // 修改按钮操作
    handleUpdate(row) {
      const id = row.infoid || this.ids[0];
      this.$router.push({
        path: "/case/allocationInfo",
        query: { id: id }
        query: { id: row.id, infoid: row.infoid }
      });
    },
    // 删除按钮操作
    handleDelete(row) {
      const selectedRow = row || (this.selectedRows.length === 1 ? this.selectedRows[0] : null);
      const selectedRow =
        row || (this.selectedRows.length === 1 ? this.selectedRows[0] : null);
      if (!selectedRow) {
        this.$message.warning("请选择一条记录");
        return;