| | |
| | | > |
| | | <el-row :gutter="8"> |
| | | <el-col :span="5"> |
| | | <el-form-item label="患者姓名" prop="name"> |
| | | <el-form-item label="捐献者姓名" prop="name"> |
| | | <el-input |
| | | v-model="queryParams.name" |
| | | placeholder="请输入姓名" |
| | |
| | | |
| | | <!-- 操作按钮 --> |
| | | <el-row :gutter="10" class="mb8"> |
| | | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | |
| | | prop="caseNo" |
| | | width="200" |
| | | /> |
| | | <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" prop="sex" width="100"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | |
| | | align="center" |
| | | prop="treatmenthospitalname" |
| | | /> |
| | | <el-table-column label="GSC评分" align="center" prop="gcsScore" /> |
| | | <el-table-column label="GCS评分" align="center" prop="gcsScore" /> |
| | | <el-table-column label="血型" align="center" prop="bloodtype" width="100"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | |
| | | }, |
| | | /** 打开编辑弹窗 */ |
| | | handleOpenEdit(row) { |
| | | this.currentEditData = { ...row }; |
| | | console.log(this.currentEditData, "this.currentEditData"); |
| | | this.editModalVisible = true; |
| | | // 确保在打开弹框前重置currentEditData |
| | | this.currentEditData = {}; |
| | | |
| | | // 使用$nextTick确保DOM更新完成 |
| | | this.$nextTick(() => { |
| | | this.currentEditData = { ...row }; |
| | | this.editModalVisible = true; |
| | | }); |
| | | }, |
| | | |
| | | /** 处理编辑成功 */ |
| | |
| | | /** 处理编辑弹窗关闭 */ |
| | | handleEditClosed() { |
| | | this.currentEditData = {}; |
| | | this.editModalVisible = false; |
| | | }, |
| | | |
| | | handleModalVisibleChange(newVisible) { |