| | |
| | | border |
| | | :key="tableKey" |
| | | :data="procureddata" |
| | | lazy |
| | | :load="loadRowData" |
| | | :row-key="row => row.organno" |
| | | > |
| | | <el-table-column |
| | | label="器官名称" |
| | |
| | | } |
| | | this.customOrganSort(); |
| | | }, |
| | | deep: true // 深度监听,因为数组内容可能变化 |
| | | // deep: true // 深度监听,因为数组内容可能变化 |
| | | }, |
| | | allocateddata: { |
| | | handler(newVal) { |
| | |
| | | } |
| | | this.allocateddataSort(); |
| | | }, |
| | | deep: true // 深度监听,因为数组内容可能变化 |
| | | // deep: true // 深度监听,因为数组内容可能变化 |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | loadRowData(row, treeNode, resolve) { |
| | | // 只有当行展开或需要时才完整渲染内部组件 |
| | | this.$set(row, 'loaded', true) |
| | | resolve() |
| | | }, |
| | | // 获取主表及附属数据 |
| | | Getbasicinformation() { |
| | | // 左侧流程数据 |
| | |
| | | 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(","); |
| | |
| | | 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" |
| | | ); |
| | |
| | | } |
| | | }); |
| | | } |
| | | }else{ |
| | | this.$modal.msgError("前部步骤表单信息有缺漏请排查后重新保存"); |
| | | |
| | | } |
| | | }); |
| | | }, |
| | |
| | | |
| | | // 1. 加锁,阻止监听器执行 |
| | | this.isSorting = true; |
| | | this.loading = true; |
| | | // 自定义排序函数 |
| | | this.procureddata.sort((a, b) => { |
| | | const indexA = this.organOrder.indexOf(a.organname); |
| | |
| | | this.procureddata = [...this.procureddata]; |
| | | this.$nextTick(() => { |
| | | this.isSorting = false; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | allocateddataSort() { |