AdminItemState.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <div class="d-flex flex-row align-items-center gap-3">
  3. <div class="d-flex flex-column">
  4. <a-badge v-if="item.progress === -1" status="error" text="已退回" />
  5. <a-badge v-else-if="item.progress === 0" status="processing" text="待初审" />
  6. <a-badge v-else-if="item.progress === 1" status="processing" text="初审通过待专家审核" />
  7. <a-badge v-else-if="item.progress === 2" status="warning" text="专家审核通过" />
  8. <a-badge v-else-if="item.progress === 3" status="success" text="审核通过" />
  9. <span v-if="item.logintime" class="text-secondary">传承人上次登录:{{ item.logintime }}</span>
  10. <span v-if="item.updatedAt" class="text-secondary">上次更新时间:{{ item.updatedAt }}</span>
  11. <span v-if="item.collectTotal" class="text-secondary">采集版本总数:{{ item.collectTotal }}</span>
  12. </div>
  13. <a-tag v-if="!item.hasSubmit" color="#ff4d4f">未提交</a-tag>
  14. <a-tag v-else color="#409e11">已提交</a-tag>
  15. </div>
  16. </template>
  17. <script setup lang="ts">
  18. import { ref } from 'vue';
  19. import type { GetContentListItem } from '@/api/CommonContent';
  20. import { useAuthStore } from '@/stores/auth';
  21. const authStore = useAuthStore();
  22. const props = defineProps({
  23. item: {
  24. type: Object as () => GetContentListItem,
  25. required: true,
  26. },
  27. })
  28. </script>