lkk
2024-12-17 6bf0b65995f54e9ee85b9d6823b77fb355b2a47c
src/views/doctor/examination/index.vue
@@ -321,9 +321,7 @@
    </div>
    <el-drawer title="我是标题" :visible.sync="drawer" :with-header="false">
      <div
        style="text-align: center; background-color: #aad8df; margin-top: 10px"
      >
      <div style="text-align: center; background-color: #aad8df">
        {{ name || "" }}
      </div>
      <div class="a">
@@ -331,6 +329,7 @@
          <el-table
            :data="jieguoList"
            border
            :row-style="changRed"
            style="width: 100%"
            :header-cell-style="{ background: '#AAD8DF' }"
          >
@@ -347,25 +346,24 @@
          <div class="check-result-container">
            <div class="check-item">
              <div class="check-title">检查所见:</div>
              <div class="check-description">
              <div
                class="check-description"
                :style="{ color: isRed ? 'red' : '' }"
              >
                {{ jieguoList[0].pro_result }}
              </div>
            </div>
            <div class="check-item">
              <div class="check-title">检查结论:</div>
              <div class="check-description">
              <div
                class="check-description"
                :style="{ color: isRed ? 'red' : '' }"
              >
                {{ jieguoList[0].yxzd || "暂无结论" }}
              </div>
            </div>
          </div>
          <!-- <div style="padding: 0 10px; margin-bottom: 10px; margin-top: 10px">
            <div style="font-weight: bold">检查所见:</div>
            <div>{{ jieguoList[0].pro_result }}</div>
            <div style="font-weight: bold; margin-top: 10px">检查结论:</div>
            <div>{{ jieguoList[0].yxzd || "暂无结论" }}</div>
          </div> -->
        </div>
      </div>
    </el-drawer>
@@ -491,10 +489,13 @@
    });
  },
  methods: {
    red() {
      return {
        color: "red",
      };
    changRed({ row }) {
      if (row.ycbz != "" && row.ycbz != null && row.ycbz === "1") {
        // 变颜色的条件
        return {
          color: "red", // 这个return的就是样式 可以是color 也可以是backgroundColor
        };
      }
    },
    getdate() {
      getConfigKey("tj_confirm").then((res) => {
@@ -791,6 +792,7 @@
    handleRowClick(row, column, event) {
      console.log(row, 2323);
      this.name = row.proName;
      console.log(this.name, 99999);
    },
    queryResultone(row) {
      // 打开抽屉
@@ -798,7 +800,21 @@
      const proId = row.proId;
      resultList(tjNum, proId).then((res) => {
        this.jieguoList = res.data;
        console.log(this.jieguoList, 998877);
        this.jyjc = this.jieguoList[0].jyjc;
        const ycbz = this.jieguoList[0].ycbz;
        /* if (ycbz === "" || ycbz === null) {
          return;
        } */
        // 设置是否需要改变颜色
        if (ycbz === "1") {
          this.isRed = true; // 设置标识,改变字体颜色
          console.log(this.isRed, 444);
        } else {
          this.isRed = false; // 恢复默认颜色
        }
        if (res.data.length > 0) {
          this.drawer = true;
@@ -877,6 +893,9 @@
  display: flex;
  justify-content: center;
}
.red-text {
  color: red !important;
}
.pag1 {
  width: 30%;