闫增涛
2024-07-01 d0940596d5f35ef96a5818ee315f86454c3d0ab1
src/views/examination/components/list.vue
@@ -339,7 +339,7 @@
  // if (props.collectList) presentId.value = props.collectList[0]
})
// 数组转为字符串方法
const arrayToString = (data) => {
const arrayToString = (data:any) => {
  // 检查是否为数组
  if (Array.isArray(data)) {
    // 使用 join 方法将数组转换为字符串,默认使用逗号分隔
@@ -349,7 +349,7 @@
    return data.replace(/<[^>]*>/g, '')
  }
}
const isHaveAnswer = (data) => {
const isHaveAnswer = (data:any) => {
  if (typeof data == 'string') {
    data = data
      .replace(/<[^>]*>/g, '')
@@ -370,7 +370,7 @@
  }
}
// 收藏按钮
const handleCollect = (num,number) => {
const handleCollect = (num:number,number:number) => {
  emits('setCollect',num,number)
}
// 单选框输入
@@ -380,6 +380,9 @@
</script>
<style lang="less" scoped>
.catalogName {
  margin-top: 40px;
}
.collect-png {
  cursor: pointer;
  width: 24px;
@@ -444,6 +447,7 @@
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  .titleContent {
    width: 95%;
    display: flex;