| | |
| | | <template #title> |
| | | <view> |
| | | <text class="font-medium"> |
| | | 周琼玟 |
| | | <text class="text-[#0D867F] text-xs">·生产操作工</text> |
| | | {{ user.nickName }} |
| | | <text class="text-[#0D867F] text-xs">·{{ user.roleName }}</text> |
| | | </text> |
| | | </view> |
| | | <view> |
| | | <text class="font-medium text-[#3D3D3D] text-sm">工号: sc1989201</text> |
| | | <text class="font-medium text-[#3D3D3D] text-sm">工号: {{ user.userName }}</text> |
| | | </view> |
| | | </template> |
| | | <view class="mt-2"> |
| | |
| | | </view> |
| | | </wd-cell> |
| | | </template> |
| | | <script setup lang="ts"></script> |
| | | <script setup lang="ts"> |
| | | import { useUserStore } from "@/store/modules/user"; |
| | | import { nextTick } from "vue"; |
| | | const userStore = useUserStore(); |
| | | const userInfo: any = computed(() => userStore.userInfo); |
| | | const user = reactive({ |
| | | nickName: "", |
| | | userName: "", |
| | | roleName: "", |
| | | }); |
| | | |
| | | onLoad(() => { |
| | | nextTick(); |
| | | user.nickName = userInfo.value.user?.nickName; |
| | | user.userName = userInfo.value.user?.userName; |
| | | user.roleName = userInfo.value.user?.roles[0].roleName; |
| | | }); |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .calling_card { |
| | | background: #fff; |