diff --git a/src/components/BasicForm/components/BasicDateTimes.vue b/src/components/BasicForm/components/BasicDateTimes.vue
index 8dcaab0..ad8ad73 100644
--- a/src/components/BasicForm/components/BasicDateTimes.vue
+++ b/src/components/BasicForm/components/BasicDateTimes.vue
@@ -37,10 +37,10 @@ const newValue = computed({
const attrs: any = useAttrs()
function change(e: string) {
+ newValue.value = e
if (attrs.componentProps.change && isFunction(attrs.componentProps.change)) {
attrs.componentProps.change(e)
}
- newValue.value = e
}
diff --git a/src/components/BasicForm/components/BasicTree.vue b/src/components/BasicForm/components/BasicTree.vue
new file mode 100644
index 0000000..a7ebf80
--- /dev/null
+++ b/src/components/BasicForm/components/BasicTree.vue
@@ -0,0 +1,141 @@
+
+
+
+
+ {{ pickerValue.join(',') }}
+
+ {{
+ attrs.componentProps.placeholder
+ }}
+
+ 请选择{{ attrs.label }}
+
+ 无
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/view/hr/teacherProfile/index.vue b/src/pages/view/hr/teacherProfile/index.vue
index 34fcffb..854da8b 100644
--- a/src/pages/view/hr/teacherProfile/index.vue
+++ b/src/pages/view/hr/teacherProfile/index.vue
@@ -39,6 +39,7 @@ const calculateYearDiff = (startDate: string) => {
if (!startDate) return "";
const start = dayjs(startDate);
const now = dayjs();
+ console.log(now.diff(start, "year"));
return now.diff(start, "year");
};