Riku
2025-06-15 31980b06d50d530feb2c0f1db9daf24bd3b8797a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<template>
  <div>
    <el-text tag="b" type="warning" size="small">{{ index }}. </el-text>
    <el-text type="warning" size="small">{{ title }}</el-text>
  </div>
  <!-- <div>
    <el-text>{{ proStatus.name }}</el-text>
  </div> -->
  <template v-for="(pic, t) in pics" :key="t">
    <template v-if="pic.path.length > 0">
      <div>
        <el-text size="small" type="info">{{ pic.title }}</el-text>
      </div>
      <el-space>
        <el-image
          v-for="(p, i) in pic.path"
          class="image"
          :key="i"
          :src="p"
          :preview-src-list="pic.path"
          :initial-index="i"
          fit="cover"
          lazy
        />
      </el-space>
    </template>
  </template>
</template>
<script setup>
import { computed } from 'vue'
 
import ProCheckProxy from '@/utils/ProCheckProxy'
 
const props = defineProps({
  problem: {
    type: Object,
    default: () => {
      return {}
    }
  },
  index: {
    type: Number,
    default: 1
  }
})
 
// 问题名称
const title = computed(() => {
  return props.problem.problemname
})
 
// 问题图片
const pics = computed(() => {
  return ProCheckProxy.proPics(props.problem)
})
 
// 问题状态
const proStatus = computed(() => {
  return ProCheckProxy.proStatusMap(props.problem.extension3)
})
</script>
<style scoped>
.image {
  width: 60px;
  height: 60px;
  border-radius: 2px;
}
</style>