|
@@ -69,7 +69,7 @@
|
|
|
<script lang="ts" setup name="signPage">
|
|
|
import {onMounted, ref} from "vue";
|
|
|
import {validatePhone} from "@/utils/validate";
|
|
|
-import { getSignInfo, signEvent } from '@/api/event';
|
|
|
+import { getYzyUserInfo, signEvent } from '@/api/event';
|
|
|
import { useRoute, useRouter } from 'vue-router';
|
|
|
|
|
|
const route = useRoute();
|
|
@@ -142,6 +142,26 @@ onMounted(() => {
|
|
|
phone: user.phone
|
|
|
}
|
|
|
}
|
|
|
+ else {
|
|
|
+ const uuid_str = route.query.uuid as string;
|
|
|
+ if (uuid_str && uuid_str != "" ) {
|
|
|
+ getYzyUserInfo({uuid: uuid_str}).then((res)=> {
|
|
|
+ const user = res.data;
|
|
|
+ console.log('user', user);
|
|
|
+ type.value = user.sign_time == '' ? '1' : '2';
|
|
|
+
|
|
|
+ form.value = {
|
|
|
+ user_id: user.user_id,
|
|
|
+ nick_name: user.nick_name,
|
|
|
+ dept_id: user.dept_id,
|
|
|
+ dept_name: user.dept_name,
|
|
|
+ duties: user.duties,
|
|
|
+ sign_time: user.sign_time,
|
|
|
+ phone: user.phone
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
})
|
|
|
</script>
|
|
|
|