WXL
3 天以前 4c9fdc87987140e8b2c3f0dfc2f6608cdb6be774
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="判定状态"
@@ -284,7 +309,7 @@
        <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
            >
            <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>
@@ -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") {
        // 修改脑死亡判定
    // 编辑
    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
          }
        });
      }
    },
    // 导出按钮操作