| | |
| | | width="80" |
| | | fixed="left" |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="血型" |
| | | align="center" |
| | | prop="bloodtype" |
| | | width="80" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | | :options="dict.type.sys_BloodType" |
| | | :value="scope.row.bloodtype" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="疾病诊断" |
| | | align="center" |
| | | prop="diagnosisname" |
| | | min-width="200" |
| | | width="200" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | label="捐献类型" |
| | | align="center" |
| | | prop="donationcategory" |
| | | width="180" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | | :options="dict.type.sys_DonationCategory" |
| | | :value="scope.row.donationcategory" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- 状态信息 --> |
| | | <el-table-column |
| | | label="判定状态" |
| | |
| | | <el-table-column |
| | | label="操作" |
| | | align="center" |
| | | width="200" |
| | | min-width="180" |
| | | fixed="right" |
| | | class-name="small-padding fixed-width" |
| | | > |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-view" |
| | | @click="handleView(scope.row)" |
| | | >详情</el-button |
| | | > |
| | | <el-dropdown |
| | | size="mini" |
| | | @command="command => handleUpdateDropdown(scope.row, command)" |
| | | @click.stop="handleView(scope.row)" |
| | | >查看</el-button |
| | | > |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | class="el-button--text" |
| | | @click.stop="handleUpdate(scope.row)" |
| | | >编辑</el-button |
| | | > |
| | | 修改<i class="el-icon-arrow-down el-icon--right"></i> |
| | | </el-button> |
| | | <el-dropdown-menu slot="dropdown"> |
| | | <el-dropdown-item command="brainDeath">脑死亡</el-dropdown-item> |
| | | <el-dropdown-item command="heartDeath">心死亡</el-dropdown-item> |
| | | </el-dropdown-menu> |
| | | </el-dropdown> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | export default { |
| | | name: "DeathJudgmentList", |
| | | components: { Pagination }, |
| | | dicts: ["sys_user_sex", "decide_type"], |
| | | dicts: ["sys_user_sex", "decide_type", "sys_BloodType", "sys_DonationCategory"], |
| | | data() { |
| | | return { |
| | | // 遮罩层 |
| | |
| | | query: { |
| | | id: row.id, |
| | | infoid: row.infoid, |
| | | type: this.getDeathType(row) // 传递死亡类型 |
| | | type: this.getDeathType(row), // 传递死亡类型 |
| | | mode: "view" |
| | | } |
| | | }); |
| | | }, |
| | |
| | | }); |
| | | }, |
| | | |
| | | // 修改按钮操作(下拉菜单) |
| | | handleUpdateDropdown(row, command) { |
| | | const id = row.id; |
| | | const infoid = row.infoid; |
| | | |
| | | if (command === "brainDeath") { |
| | | // 修改脑死亡判定 |
| | | // 编辑 |
| | | handleUpdate(row) { |
| | | this.$router.push({ |
| | | path: "/case/DecideInfo", |
| | | query: { |
| | | id: id, |
| | | infoid: infoid, |
| | | type: "brain", |
| | | isEdit: true |
| | | id: row.id, |
| | | infoid: row.infoid, |
| | | type: this.getDeathType(row), |
| | | isEdit: true, |
| | | mode: "edit" |
| | | } |
| | | }); |
| | | } else if (command === "heartDeath") { |
| | | // 修改心死亡判定 |
| | | this.$router.push({ |
| | | path: "/case/DecideInfo", |
| | | query: { |
| | | id: id, |
| | | infoid: infoid, |
| | | type: "heart", |
| | | isEdit: true |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | // 导出按钮操作 |