liyong
2025-04-23 80958ace2e96fb6a8daed6a58e2dff2d51ff8616
src/components/worker-calling-card/index.vue
@@ -3,12 +3,12 @@
    <template #title>
      <view>
        <text class="font-medium">
          周琼玟
          <text class="text-[#0D867F] text-xs">·生产操作工</text>
          {{ userInfo?.nickName }}
          <text class="text-[#0D867F] text-xs">·{{ userInfo?.roles[0].roleName }}</text>
        </text>
      </view>
      <view>
        <text class="font-medium text-[#3D3D3D] text-sm">工号: sc1989201</text>
        <text class="font-medium text-[#3D3D3D] text-sm">工号: {{ userInfo?.userName }}</text>
      </view>
    </template>
    <view class="mt-2">
@@ -16,7 +16,11 @@
    </view>
  </wd-cell>
</template>
<script setup lang="ts"></script>
<script setup lang="ts">
import { useUserStore } from "@/store/modules/user";
const userStore = useUserStore();
const userInfo = computed(() => userStore.userInfo);
</script>
<style lang="scss" scoped>
.calling_card {
  background: #fff;