| | |
| | | </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"> |
| | |
| | | <el-table |
| | | :data="jieguoList" |
| | | border |
| | | :row-style="changRed" |
| | | style="width: 100%" |
| | | :header-cell-style="{ background: '#AAD8DF' }" |
| | | > |
| | |
| | | <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> |
| | |
| | | }); |
| | | }, |
| | | 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) => { |
| | |
| | | handleRowClick(row, column, event) { |
| | | console.log(row, 2323); |
| | | this.name = row.proName; |
| | | console.log(this.name, 99999); |
| | | }, |
| | | queryResultone(row) { |
| | | // 打开抽屉 |
| | |
| | | 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; |
| | |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | | .red-text { |
| | | color: red !important; |
| | | } |
| | | |
| | | .pag1 { |
| | | width: 30%; |