提交
This commit is contained in:
@@ -15,10 +15,20 @@
|
||||
<!-- {{item.content}} -->
|
||||
</view>
|
||||
<view class="leve3">
|
||||
<view class="score" v-if="item.scoreSuccess >= 1">
|
||||
<view class="score" v-if="item.scoreSuccess >= 3">
|
||||
分数:{{item.score}}
|
||||
</view>
|
||||
<view class="score noscore" v-else>未评分</view>
|
||||
<!-- <view class="score noscore" v-else>未评分</view> -->
|
||||
|
||||
<view class="score noscore" v-else-if=" classState == '1' || classState == '3' ">
|
||||
<text v-show="item.scoreInfos < 3 && item.haveGiveScore">等待其他评分员评分</text>
|
||||
<text v-show="item.scoreInfos < 3 && !item.haveGiveScore && roleCode.includes('4')">请您评分</text>
|
||||
<text v-show="item.scoreInfos < 3 && ( roleCode.includes('1') || roleCode.includes('1') || roleCode.includes('主任') || roleCode.includes('副主任'))">已开始评分</text>
|
||||
</view>
|
||||
|
||||
<view class="score noscore" v-else-if="classState == '1' || classState == '3'">未开始评分</view>
|
||||
|
||||
|
||||
<view class="date">
|
||||
{{item.createTime}}
|
||||
</view>
|
||||
@@ -58,7 +68,7 @@
|
||||
/ {{curReplay.createUser.tel}}
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="score" v-show="curReplay.scoreSuccess >= 1">
|
||||
<view class="score" v-show="curReplay.scoreSuccess >= 3">
|
||||
分数:{{curReplay.score}}
|
||||
</view>
|
||||
<view class="score noscore" v-show="curReplay.scoreSuccess == 0">
|
||||
@@ -66,7 +76,7 @@
|
||||
</view>
|
||||
<!-- -->
|
||||
<template
|
||||
v-if="(roleCode.includes('4') || roleCode.includes('5')) && curReplay.scoreSuccess < 1 && (classState == '1' || classState == '3')">
|
||||
v-if="(roleCode.includes('4') || roleCode.includes('5')) && curReplay.scoreSuccess < 3 && (classState == '1' || classState == '3')">
|
||||
<view class="" style=" padding: 10rpx 10rpx; margin-top: 20rpx;">
|
||||
<view class="scoreBox flex_box">
|
||||
<text>分数</text>
|
||||
@@ -88,7 +98,9 @@
|
||||
|
||||
<script>
|
||||
import $http from '@/config/requestConfig.js';
|
||||
// const taskLIst1 = require('@/data/taskList.json')
|
||||
import {
|
||||
mapState
|
||||
} from "vuex";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -154,6 +166,9 @@
|
||||
},
|
||||
// onBackPress() {
|
||||
// },
|
||||
computed: {
|
||||
...mapState(["userInfo"]),
|
||||
},
|
||||
methods: {
|
||||
moveHandle() {
|
||||
return false;
|
||||
@@ -244,15 +259,24 @@
|
||||
// },1000)
|
||||
},
|
||||
clickTask(item) {
|
||||
// this.noScroll()
|
||||
// console.log('item',item);
|
||||
console.log('item',item);
|
||||
this.curReplay = item
|
||||
this.form = {
|
||||
...item
|
||||
}
|
||||
if (this.form.scoreSuccess == 0) {
|
||||
if (this.form.scoreSuccess == 0 || item.scoreInfo=='') {
|
||||
this.form.score = undefined
|
||||
}
|
||||
|
||||
if(item.scoreInfo != ''){
|
||||
for (let k in item.scoreInfo){
|
||||
if(k == this.userInfo.id){
|
||||
this.form.score = item.scoreInfo[k]
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (item.img != '') {
|
||||
var _list = item.img.split(',')
|
||||
_list.forEach(item => {
|
||||
@@ -293,9 +317,25 @@
|
||||
if (res.code == 0) {
|
||||
if (res.page.records.length > 0) {
|
||||
console.log('数据获取成功', res.page.records);
|
||||
var lis = res.page.records
|
||||
this.taskList = this.taskList.concat(lis)
|
||||
// this.taskList = taskLIst1.page.records // 测试数据
|
||||
var list = res.page.records
|
||||
list.forEach(item => {
|
||||
item.scoreInfos = 0
|
||||
item.haveGiveScore = false
|
||||
|
||||
if(item.scoreInfo != ""){
|
||||
var i = 0
|
||||
for(var kk in JSON.parse(item.scoreInfo)){
|
||||
if(kk == this.userInfo.id){
|
||||
item.haveGiveScore = true
|
||||
}
|
||||
i++
|
||||
}
|
||||
item.scoreInfos = i
|
||||
}
|
||||
|
||||
})
|
||||
this.taskList = this.taskList.concat(list)
|
||||
|
||||
if (res.page.pages > this.pPage) {
|
||||
this.status = 0;
|
||||
} else {
|
||||
@@ -305,7 +345,6 @@
|
||||
this.status = 3; // 暂无数据
|
||||
}
|
||||
this.loadFlag = false;
|
||||
console.log('res', res);
|
||||
uni.hideLoading()
|
||||
}
|
||||
}).catch(e => {
|
||||
|
||||
Reference in New Issue
Block a user