|
@@ -2,9 +2,9 @@
|
|
<div style="height: 100%;">
|
|
<div style="height: 100%;">
|
|
<van-pull-refresh class="inspect-object-question-wrapper" v-model="loading" @refresh="getData()">
|
|
<van-pull-refresh class="inspect-object-question-wrapper" v-model="loading" @refresh="getData()">
|
|
<!-- 使用 v-for 指令遍历 list 数组 -->
|
|
<!-- 使用 v-for 指令遍历 list 数组 -->
|
|
- <card01 v-for="item in list" :key="item.id" :title="item.ojbNm + ''" icon="notes"
|
|
|
|
- :description="renderData(item, objectConfig.description)"
|
|
|
|
- @click="jumpPage(`/inspect/${item.plnaId}/object/${item.id}/question/`)" />
|
|
|
|
|
|
+ <card01 v-for="item in list" :key="item.id" :title="item.pblmNm + ''" icon="notes"
|
|
|
|
+ :description="renderData(item, item.pblmDesc)"
|
|
|
|
+ @click="jumpPage(`/problem/${item.id}`)" />
|
|
</van-pull-refresh>
|
|
</van-pull-refresh>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -32,7 +32,8 @@ function getData() {
|
|
// 调用 getTacQuestionList 接口获取数据
|
|
// 调用 getTacQuestionList 接口获取数据
|
|
getTacQuestionList().then(res => {
|
|
getTacQuestionList().then(res => {
|
|
// 将接口返回的数据赋值给 list
|
|
// 将接口返回的数据赋值给 list
|
|
- list.value = res.data;
|
|
|
|
|
|
+ list.value = res.data.list;
|
|
|
|
+ console.log(list.value);
|
|
// 设置 loading 为 false,表示数据加载完成
|
|
// 设置 loading 为 false,表示数据加载完成
|
|
loading.value = false;
|
|
loading.value = false;
|
|
})
|
|
})
|