|
@@ -2,7 +2,7 @@
|
|
|
* @Author: zhanghaifeng
|
|
|
* @Date: 2024-11-27 15:44:12
|
|
|
* @LastEditors: zhanghaifeng
|
|
|
- * @LastEditTime: 2025-06-24 17:11:05
|
|
|
+ * @LastEditTime: 2025-07-01 17:34:10
|
|
|
* @Description:
|
|
|
* @FilePath: /hospital-project/src/components/personList/index.vue
|
|
|
-->
|
|
@@ -58,7 +58,8 @@ const showList = ref();
|
|
|
const watchData = ref();
|
|
|
const props = defineProps({
|
|
|
paramsIndex: {
|
|
|
- type: Object
|
|
|
+ type: Object,
|
|
|
+ default: () => ({})
|
|
|
},
|
|
|
detailData: {
|
|
|
type: Array,
|
|
@@ -68,10 +69,12 @@ const props = defineProps({
|
|
|
watch(props, newVal => {
|
|
|
showList.value = newVal.detailData[0]?.dimensionList[0];
|
|
|
tableData.value = newVal.detailData[0]?.dimensionList[0]?.quotaList;
|
|
|
+ console.log(newVal, tableData.value, "11111111");
|
|
|
});
|
|
|
const init = (data?: any, id?: any) => {
|
|
|
if (data) {
|
|
|
tableData.value = [];
|
|
|
+ console.log(tableData.value, "22222222");
|
|
|
watchData.value = data;
|
|
|
setTimeout(() => {
|
|
|
nextTick(() => {
|
|
@@ -82,19 +85,22 @@ const init = (data?: any, id?: any) => {
|
|
|
tableData.value = it.quotaList;
|
|
|
}
|
|
|
});
|
|
|
+ console.log(tableData.value, "33333333");
|
|
|
} else {
|
|
|
showList.value = data[0]?.dimensionList[0];
|
|
|
tableData.value = data[0]?.dimensionList[0].quotaList;
|
|
|
+ console.log(tableData.value, "44444444");
|
|
|
}
|
|
|
});
|
|
|
}, 0);
|
|
|
}
|
|
|
};
|
|
|
watch(
|
|
|
- watchData.value,
|
|
|
+ () => watchData.value,
|
|
|
newVal => {
|
|
|
showList.value = newVal[0]?.dimensionList[0];
|
|
|
tableData.value = newVal[0]?.dimensionList[0].quotaList;
|
|
|
+ console.log(tableData.value, "55555555");
|
|
|
},
|
|
|
{ deep: true }
|
|
|
);
|