WXL
9 小时以前 8c6f8c4fcb8bf60efe9f0b9a98f87d8dfad9f25f
捐献历史数据同步问题
已修改2个文件
已删除1个文件
23 ■■■■ 文件已修改
dist (2).zip 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/donationdetails/index.vue 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
dist (2).zip
Binary files differ
src/views/project/donationdetails/index.vue
@@ -1878,6 +1878,9 @@
                  border
                  :key="tableKey"
                  :data="procureddata"
                  lazy
                  :load="loadRowData"
                  :row-key="row => row.organno"
                >
                  <el-table-column
                    label="器官名称"
@@ -3054,7 +3057,7 @@
        }
        this.customOrganSort();
      },
      deep: true // 深度监听,因为数组内容可能变化
      // deep: true // 深度监听,因为数组内容可能变化
    },
    allocateddata: {
      handler(newVal) {
@@ -3063,11 +3066,16 @@
        }
        this.allocateddataSort();
      },
      deep: true // 深度监听,因为数组内容可能变化
      // deep: true // 深度监听,因为数组内容可能变化
    }
  },
  methods: {
    loadRowData(row, treeNode, resolve) {
    // 只有当行展开或需要时才完整渲染内部组件
    this.$set(row, 'loaded', true)
    resolve()
  },
    // 获取主表及附属数据
    Getbasicinformation() {
      // 左侧流程数据
@@ -3155,7 +3163,7 @@
          if (response.code == 200 && response.rows[0]) {
            this.affirmform = response.rows[0];
            if (this.affirmform.organdecision) {
              this.organdecision = this.affirmform.organdecision.split(",");
              this.organdecision = this.affirmform.organdecision.split(",").flatMap(item => item === "双肾脏" ? ["左肾", "右肾"] : item);;
            }
            if (this.affirmform.kinship) {
              this.kinship = this.affirmform.kinship.split(",");
@@ -3334,6 +3342,8 @@
      this.$refs["form"].validate(valid => {
        console.log("提交的数据们:", this.form);
        if (valid) {
          console.log(112);
          this.form.birthday = this.$moment(this.form.birthday).format(
            "YYYY-MM-DD HH:mm:ss"
          );
@@ -3420,6 +3430,9 @@
              }
            });
          }
        }else{
                this.$modal.msgError("前部步骤表单信息有缺漏请排查后重新保存");
        }
      });
    },
@@ -3666,6 +3679,7 @@
      // 1. 加锁,阻止监听器执行
      this.isSorting = true;
      this.loading = true;
      // 自定义排序函数
      this.procureddata.sort((a, b) => {
        const indexA = this.organOrder.indexOf(a.organname);
@@ -3692,6 +3706,7 @@
      this.procureddata = [...this.procureddata];
      this.$nextTick(() => {
        this.isSorting = false;
      this.loading = false;
      });
    },
    allocateddataSort() {
vue.config.js
@@ -35,7 +35,7 @@
      [process.env.VUE_APP_BASE_API]: {
        target:`http://localhost:8080`,
        // target:`http://192.168.100.10:8080`,
        // target:`http://192.168.1.4:8086`,
        // target:`http://192.168.100.137:8080`,
        // target: `https://slb.hospitalstar.com:9093`,
        changeOrigin: true,
        pathRewrite: {