|
|
@@ -19,7 +19,7 @@ let tableData = ref<any>({});
|
|
|
async function getRecordDetail() {
|
|
|
try {
|
|
|
const res: any = await getConditioningRecordDetailMethod(props.data);
|
|
|
- if(res && res.length > 0){
|
|
|
+ if(res){
|
|
|
tableData.value = res;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
@@ -36,6 +36,7 @@ watch(tableData, (newValue, oldValue) => {
|
|
|
});
|
|
|
onMounted(async () => {
|
|
|
await getRecordDetail();
|
|
|
+ console.log('tableDat111111',props.data);
|
|
|
});
|
|
|
|
|
|
// 转方案
|
|
|
@@ -102,7 +103,6 @@ const progressTextMap: Record<string, string> = {
|
|
|
};
|
|
|
|
|
|
const progressText = computed(() => {
|
|
|
- console.log(tableData.value,"tableData.value");
|
|
|
return progressTextMap[tableData.value?.progress] || '';
|
|
|
});
|
|
|
|