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 范围|描述|commitId
@ -153,6 +153,7 @@
- | 修改接口路径 | [df6acf2](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/df6acf2) - | 修改接口路径 | [df6acf2](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/df6acf2)
- | 修改时间轴bug | [fe08608](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/fe08608) - | 修改时间轴bug | [fe08608](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/fe08608)
- | 修改样式 | [f0ddc90](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/f0ddc90) - | 修改样式 | [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) - | 修改角色栏组件 | [a54c601](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/a54c601)
- | 切换到默认项目角色没有激活状态的bug | [438d448](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/438d448) - | 切换到默认项目角色没有激活状态的bug | [438d448](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/438d448)
- | 切换日历时查询小红点 | [7091789](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/7091789) - | 切换日历时查询小红点 | [7091789](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/7091789)

2
rest/燕园.http

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

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

@ -4,7 +4,7 @@
<!-- title --> <!-- title -->
<view v-if="item.position === 0" class="flex flex-col"> <view v-if="item.position === 0" class="flex flex-col">
<view v-for="(con, conIndex) in item.contents" :key="conIndex"> <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> </view>
<u-line class="my-2" color="#c8c7cc" /> <u-line class="my-2" color="#c8c7cc" />
</view> </view>

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

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

Loading…
Cancel
Save