Browse Source

fix: 1.任务 角色切换显示加载中... 2.题目图片大小等比例修改

develop
song 4 years ago
parent
commit
22f8cc8cdd
  1. 3
      CHANGELOG.md
  2. 1
      src/pagesProject/project/components/Evaluated/EvaluatedXLJH.vue
  3. 1
      src/pagesProject/project/components/Roles/Roles.vue
  4. 16
      src/pagesYanyuan/assess/components/Test/components/TestMain.vue
  5. 5
      src/pagesYanyuan/assess/components/Test/components/TitlePosition.vue

3
CHANGELOG.md

@ -1,4 +1,4 @@
# 0.1.0 (2021-11-26)
# 0.1.0 (2021-11-29)
### 🌟 新功能
范围|描述|commitId
@ -176,6 +176,7 @@
- | 监听时间基本点 | [033fca0](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/033fca0)
- | 角色显示状态修改 | [7d3b906](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/7d3b906)
- | 角色栏修改 | [19228d6](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/19228d6)
- | 解决error | [b1975e5](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/b1975e5)
- | 解决error | [2acacaa](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/2acacaa)
- | 解决error | [1d67797](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/1d67797)
- | 解决时间轴报错 | [da1eece](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/da1eece)

1
src/pagesProject/project/components/Evaluated/EvaluatedXLJH.vue

@ -112,6 +112,7 @@ export default {
async getTrainDetail(type) {
try {
if (type) return;
this.$t.ui.showLoading();
const params = { recordId: this.task.id };
const data = await this.$u.api.getTrainDetail(params);
return data;

1
src/pagesProject/project/components/Roles/Roles.vue

@ -160,6 +160,7 @@ export default {
// projectroleId
changeRole(id, index, type) {
try {
this.$t.ui.showLoading();
if (type === 'Setting') {
//
this.$emit('changeIsSetting', true);

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

@ -10,7 +10,7 @@
:class="[`col-span-${item.col}`]"
>
<text v-if="item.showType === 0">{{ item.content }}</text>
<img class="w-full" :src="item.content" v-else />
<image style="width: 260px" :src="item.content" mode="widthFix" v-else />
</u-radio>
</u-radio-group>
</view>
@ -28,21 +28,23 @@ export default {
},
data() {
return { value: '' };
return {};
},
mounted() {
this.$nextTick(() => {
computed: {
value() {
let result = '';
for (let i = 0; i < this.options.length; i++) {
const option = this.options[i];
const item = option.contents.find(item => item.chooseStatus === 1);
if (item) {
this.value = item.id;
this.setOptionId(this.value);
result = item.id;
this.setOptionId(result);
break;
}
}
});
return result;
},
},
methods: {

5
src/pagesYanyuan/assess/components/Test/components/TitlePosition.vue

@ -10,9 +10,8 @@
<view class="grid" :class="item.contents.length > 4 ? 'grid-cols-3' : item.contents.length > 1 ? 'grid-cols-2' : ''">
<view v-for="(con, conIndex1) in item.contents" :key="conIndex1">
<view v-if="con.showType === 1">
<!-- style="height: 10rem" -->
<img class="w-full" :src="con.content" />
<view v-if="con.showType === 1" class="w-full h-full flex items-center">
<image class="w-full" :src="con.content" mode="widthFix" />
</view>
</view>
</view>

Loading…
Cancel
Save