Merge branch 'main' of https://gitea.hmily.club/pdkj/store-manage-app
commit
4f5d873a2a
|
|
@ -22,7 +22,7 @@
|
||||||
<template #title>
|
<template #title>
|
||||||
<view class="space-y-6rpx">
|
<view class="space-y-6rpx">
|
||||||
<view class="flex items-center space-x-14rpx">
|
<view class="flex items-center space-x-14rpx">
|
||||||
<view> {{ item.check_name }}</view>
|
<view> {{ item.check_user ? item.check_user.name : item.check_name }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
v-if="item.checked_at"
|
v-if="item.checked_at"
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
v-for="(op, i) in item.options"
|
v-for="(op, i) in item.options"
|
||||||
:key="i"
|
:key="i"
|
||||||
:label="op.text"
|
:label="op.text"
|
||||||
:name="op.text"
|
:name="i"
|
||||||
>
|
>
|
||||||
</uv-checkbox>
|
</uv-checkbox>
|
||||||
</uv-checkbox-group>
|
</uv-checkbox-group>
|
||||||
|
|
@ -61,7 +61,7 @@
|
||||||
v-for="(op, i) in item.options"
|
v-for="(op, i) in item.options"
|
||||||
:key="i"
|
:key="i"
|
||||||
:label="op.text"
|
:label="op.text"
|
||||||
:name="op.text"
|
:name="i"
|
||||||
>
|
>
|
||||||
</uv-radio>
|
</uv-radio>
|
||||||
</uv-radio-group>
|
</uv-radio-group>
|
||||||
|
|
@ -101,7 +101,7 @@ const list = computed(() => {
|
||||||
const content = info.value?.content ?? []
|
const content = info.value?.content ?? []
|
||||||
content.forEach((item) => {
|
content.forEach((item) => {
|
||||||
if (item.score == 1) {
|
if (item.score == 1) {
|
||||||
item.answer = item.user_answer[0] ?? ''
|
item.answer = item.user_answer?.[0] ?? ''
|
||||||
} else {
|
} else {
|
||||||
item.answer = item.user_answer ?? []
|
item.answer = item.user_answer ?? []
|
||||||
}
|
}
|
||||||
|
|
@ -148,7 +148,7 @@ const onSubmit = async () => {
|
||||||
await http.post(`/train/examinations/${id.value}/answer`, {
|
await http.post(`/train/examinations/${id.value}/answer`, {
|
||||||
answers: answer.value,
|
answers: answer.value,
|
||||||
})
|
})
|
||||||
uni.$emit('examination:onRefresh')
|
// uni.$emit('examination:onRefresh')
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
} finally {
|
} finally {
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,7 @@
|
||||||
>发布日期:
|
>发布日期:
|
||||||
{{ timeFormat(item.examination.published_at) }}</view
|
{{ timeFormat(item.examination.published_at) }}</view
|
||||||
>
|
>
|
||||||
<view class="">{{
|
<view :class="{'text-dark': item.mark != null}">{{ item.mark != null ? item.mark + '分' : '未完成' }}</view>
|
||||||
item.mark != null ? item.mark : '未完成'
|
|
||||||
}}</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue