Browse Source

fix: 修改脑力测评+选项 展示问题

develop
song 4 years ago
parent
commit
c0ccb4e628
  1. 3
      CHANGELOG.md
  2. 2
      rest/燕园.http
  3. 2
      src/pagesYanyuan/assess/components/Test/answerPage.vue
  4. 35
      src/pagesYanyuan/assess/components/Test/components/TestMain.vue

3
CHANGELOG.md

@ -1,4 +1,4 @@
# 0.1.0 (2021-12-08)
# 0.1.0 (2021-12-09)
### 🌟 新功能
范围|描述|commitId
@ -153,6 +153,7 @@
- | 修改接口路径 | [df6acf2](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/df6acf2)
- | 修改时间轴bug | [fe08608](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/fe08608)
- | 修改样式 | [f0ddc90](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/f0ddc90)
- | 修改添加基本信息 压缩代码 | [ce20ff7](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/ce20ff7)
- | 修改角色栏组件 | [a54c601](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/a54c601)
- | 切换到默认项目角色没有激活状态的bug | [438d448](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/438d448)
- | 切换日历时查询小红点 | [7091789](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/7091789)

2
rest/燕园.http

@ -369,5 +369,5 @@ title
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="param"; filename="D:\项目\山大一院-燕园\过程\导入\燕园Zarit导入v1.0.xlsx"
< D:\项目\山大一院-燕园\过程\导入\燕园Zarit导入v1.0.xlsx
< E:\ccsens\yanyuan\燕园脑力测评导入v1.1.xlsx
------WebKitFormBoundary7MA4YWxkTrZu0gW--

2
src/pagesYanyuan/assess/components/Test/answerPage.vue

@ -4,7 +4,7 @@
<!-- title -->
<view v-if="item.position === 0" class="flex flex-col">
<view v-for="(con, conIndex) in item.contents" :key="conIndex">
<text v-if="questionInfo.num && turnPages">{{ questionInfo.num }}.</text>{{ con.content }}
<text v-if="questionInfo.num && turnPages && conIndex === 0">{{ questionInfo.num }}.</text>{{ con.content }}
</view>
<u-line class="my-2" color="#c8c7cc" />
</view>

35
src/pagesYanyuan/assess/components/Test/components/TestMain.vue

@ -1,17 +1,19 @@
<template>
<view class="grid gap-2">
<view v-for="(option, optionIndex) in options" :key="optionIndex" :class="[`row-span-${option.row}`]" class="mb-2">
<u-radio-group v-model="value">
<u-radio
@change="radioChange"
v-for="(item, index) in option.contents"
:key="index"
:name="item.id"
:class="[`col-span-${item.col}`]"
<view>
<view class="mb-2">
<u-radio-group v-model="value" class="w-full">
<view
v-for="(option, optionIndex) in options"
:key="optionIndex"
class="grid gap-2 w-full"
:class="[`grid-cols-${option.contents.length}`]"
>
<text v-if="item.showType === 0">{{ item.content }}</text>
<image style="width: 200px" :src="item.content" mode="widthFix" v-else />
</u-radio>
<u-radio @change="radioChange" v-for="(item, index) in option.contents" :key="index" :name="item.id" class="my-1">
<!-- :class="[`col-span-${item.col}`]" -->
<text v-if="item.showType === 0">{{ item.content }}</text>
<image :style="{ width: options[0].contents.length === 1 ? '200px' : '100px' }" :src="item.content" mode="widthFix" v-else />
</u-radio>
</view>
</u-radio-group>
</view>
</view>
@ -28,7 +30,13 @@ export default {
},
data() {
return {};
return {
lists: [
{ id: 1, content: '张三', col: 1, showType: 0 },
{ id: 2, content: '李四', col: 1, showType: 0 },
{ id: 3, content: '王五', col: 1, showType: 0 },
],
};
},
computed: {
@ -52,6 +60,7 @@ export default {
// radioradio-group
radioChange(e) {
console.log('e: ', e);
this.setOptionId(e);
},
},

Loading…
Cancel
Save