54 lines
1.3 KiB
Vue
Raw Normal View History

2025-10-16 11:20:50 +08:00
<template>
2025-10-22 17:36:25 +08:00
<div class="reex_box">
<!-- 结果复查 -->
2025-10-24 15:23:13 +08:00
<el-table ref="tableRef" :data="tableData" style="width: 100%" highlight-current-row border height="82vh"
show-overflow-tooltip>
<el-table-column prop="xmdh" label="检验项目" align="center" width="120" />
<el-table-column prop="csjg" label="复查前结果" align="center" width="150" />
<el-table-column label="操作" width="150">
<template #default>
<el-button type="primary" link size="small"> 删除 </el-button>
<el-button type="primary" link size="small">交换</el-button>
</template>
</el-table-column>
</el-table>
2025-10-16 11:20:50 +08:00
</div>
</template>
<script setup lang="ts">
2025-10-22 17:36:25 +08:00
import { ref, watch, toRefs, onMounted, computed } from 'vue'
import { redoResult } from "@/api/liswork/work/LisWork";
2025-10-16 11:20:50 +08:00
2025-10-22 17:36:25 +08:00
const props = defineProps({
// 主键
queryParams: {
type: Object,
default: {}
},
})
// 解构 props
const { queryParams } = toRefs(props);
2025-10-24 15:23:13 +08:00
const tableData = ref([]);
2025-10-22 17:36:25 +08:00
const getReexamination = () => {
redoResult(queryParams.value).then((res: any) => {
if (res.code == 0) {
2025-10-24 15:23:13 +08:00
tableData.value = res.data || [];
2025-10-22 17:36:25 +08:00
}
})
};
watch(() => queryParams.value, () => {
getReexamination();
}, { immediate: true })
2025-10-16 11:20:50 +08:00
</script>
2025-10-22 17:36:25 +08:00
<style scoped lang="scss">
.reex_box {
height: 82vh;
overflow-y: auto;
}
</style>