暂存
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<!-- 还没提交提示 -->
|
||||
<view class="noanser" v-show="!thisTask.reply && classState == '1'">
|
||||
<view class="noanser" v-show="!thisTask.reply && classState == '1' && roleCode.includes('0')">
|
||||
<view class="">
|
||||
<text>还没有提交你的答案呢,现在开始作答吧!</text>
|
||||
</view>
|
||||
@@ -184,7 +184,8 @@
|
||||
|
||||
},
|
||||
listDisplay: '1', // 提交记录展示类型 0 全部 1 自己的
|
||||
classState:undefined
|
||||
classState:undefined,
|
||||
roleCode:[]
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
@@ -228,6 +229,32 @@
|
||||
...mapState(["userInfo"]),
|
||||
},
|
||||
methods: {
|
||||
// 获取用户身份
|
||||
getUserRole(){
|
||||
$http.request({
|
||||
url: "common/class/getUserRole",
|
||||
method: "POST",
|
||||
data: {
|
||||
"classId": this.thisTask.classId
|
||||
},
|
||||
header: { //默认 无 说明:请求头
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
uni.hideLoading()
|
||||
console.log('res获取身份信息',res);
|
||||
this.roleCode = res.result
|
||||
}).catch(e => {
|
||||
uni.hideLoading()
|
||||
this.roleCode = []
|
||||
uni.showToast({
|
||||
title: '获取身份信息失败',
|
||||
icon: 'error'
|
||||
})
|
||||
});
|
||||
|
||||
},
|
||||
// 获取医案任务详情
|
||||
getTaskInfo(){
|
||||
$http.request({
|
||||
@@ -255,6 +282,7 @@
|
||||
})
|
||||
}
|
||||
console.log('this.fileList11',this.fileList11);
|
||||
this.getUserRole()
|
||||
}
|
||||
}).catch(e => {
|
||||
console.log(e, '数据报错')
|
||||
|
||||
Reference in New Issue
Block a user