From 4c9fdc87987140e8b2c3f0dfc2f6608cdb6be774 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 21 十月 2026 17:39:24 +0800
Subject: [PATCH] 青岛维护
---
src/views/business/decide/index.vue | 102 +++++++++++++++++++++++++-------------------------
1 files changed, 51 insertions(+), 51 deletions(-)
diff --git a/src/views/business/decide/index.vue b/src/views/business/decide/index.vue
index 48a0536..1568703 100644
--- a/src/views/business/decide/index.vue
+++ b/src/views/business/decide/index.vue
@@ -142,14 +142,39 @@
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="鍒ゅ畾鐘舵��"
@@ -281,10 +306,10 @@
</template>
</el-table-column>
- <el-table-column
+ <el-table-column
label="鎿嶄綔"
align="center"
- width="200"
+ min-width="180"
fixed="right"
class-name="small-padding fixed-width"
>
@@ -293,26 +318,16 @@
size="mini"
type="text"
icon="el-icon-view"
- @click="handleView(scope.row)"
- >璇︽儏</el-button
+ @click.stop="handleView(scope.row)"
+ >鏌ョ湅</el-button
>
- <el-dropdown
+ <el-button
size="mini"
- @command="command => handleUpdateDropdown(scope.row, command)"
+ type="text"
+ icon="el-icon-edit"
+ @click.stop="handleUpdate(scope.row)"
+ >缂栬緫</el-button
>
- <el-button
- size="mini"
- type="text"
- icon="el-icon-edit"
- class="el-button--text"
- >
- 淇敼<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>
@@ -340,7 +355,7 @@
export default {
name: "DeathJudgmentList",
components: { Pagination },
- dicts: ["sys_user_sex", "decide_type"],
+ dicts: ["sys_user_sex", "decide_type", "sys_BloodType", "sys_DonationCategory"],
data() {
return {
// 閬僵灞�
@@ -565,7 +580,8 @@
query: {
id: row.id,
infoid: row.infoid,
- type: this.getDeathType(row) // 浼犻�掓浜$被鍨�
+ type: this.getDeathType(row), // 浼犻�掓浜$被鍨�
+ mode: "view"
}
});
},
@@ -596,34 +612,18 @@
});
},
- // 淇敼鎸夐挳鎿嶄綔锛堜笅鎷夎彍鍗曪級
- handleUpdateDropdown(row, command) {
- const id = row.id;
- const infoid = row.infoid;
-
- if (command === "brainDeath") {
- // 淇敼鑴戞浜″垽瀹�
- this.$router.push({
- path: "/case/DecideInfo",
- query: {
- id: id,
- infoid: infoid,
- type: "brain",
- isEdit: true
- }
- });
- } else if (command === "heartDeath") {
- // 淇敼蹇冩浜″垽瀹�
- this.$router.push({
- path: "/case/DecideInfo",
- query: {
- id: id,
- infoid: infoid,
- type: "heart",
- isEdit: true
- }
- });
- }
+ // 缂栬緫
+ handleUpdate(row) {
+ this.$router.push({
+ path: "/case/DecideInfo",
+ query: {
+ id: row.id,
+ infoid: row.infoid,
+ type: this.getDeathType(row),
+ isEdit: true,
+ mode: "edit"
+ }
+ });
},
// 瀵煎嚭鎸夐挳鎿嶄綔
--
Gitblit v1.9.3