修改
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
<div class="conten">截止时间:{{item.dueDate}}</div>
|
||||
</div>
|
||||
<div class="flooter">
|
||||
<div v-if="item.gradeUser" @click="jumps('/packageB/train/mockExam/viewGrades')">查看成绩</div>
|
||||
<div v-if="item.gradeUser" @click="jumps(item)">查看成绩</div>
|
||||
<div @click="handleDetail(item)">详情</div>
|
||||
<div @click="collects(item,1)" v-if="item.isCollect==0">
|
||||
<image :src="urls+'wsc.png'" mode="" style="width: 32rpx;height: 30rpx;"></image>
|
||||
@@ -263,8 +263,8 @@ function handleDetail(row){
|
||||
}
|
||||
});
|
||||
}
|
||||
function jumps(url){
|
||||
navTo(url);
|
||||
function jumps(row){
|
||||
navTo('/packageB/train/mockExam/viewGrades?examPaperId='+row.examPaperId);
|
||||
}
|
||||
function clones(){
|
||||
dialogVisible.value=false
|
||||
|
||||
9
packageB/train/mockExam/paperDetails.vue
Normal file
9
packageB/train/mockExam/paperDetails.vue
Normal file
@@ -0,0 +1,9 @@
|
||||
<template>
|
||||
<div>111</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@@ -2,20 +2,69 @@
|
||||
<div class="app-box">
|
||||
<div class="con-box">
|
||||
<div class="tabCon">
|
||||
<div class="tabLeft">
|
||||
<div><span>考试名称:</span>456546456</div>
|
||||
<div><span>考试时间:</span>456546456</div>
|
||||
<div><span>考试成绩:</span>456546456</div>
|
||||
</div>
|
||||
<div class="tabRight">查看</div>
|
||||
<div class="tabLeft"></div>
|
||||
<div class="tabRight">查看</div>
|
||||
<template v-for="(item,index) in gradeData">
|
||||
<div class="tabLeft">
|
||||
<div><span>考试名称:</span>{{item.name}}</div>
|
||||
<div><span>考试时间:</span>{{item.createTime}}</div>
|
||||
<div><span>考试成绩:</span>{{item.score}}分</div>
|
||||
</div>
|
||||
<div class="tabRight" @click="detail()">查看</div>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script setup>
|
||||
import { reactive, inject, watch, ref, onMounted,onBeforeUnmount,computed } from 'vue';
|
||||
import { onLoad, onShow } from '@dcloudio/uni-app';
|
||||
const { $api,urls , navTo,navBack , vacanciesTo, formatTotal, config } = inject('globalFunction');
|
||||
import useUserStore from '@/stores/useUserStore';
|
||||
import useDictStore from '@/stores/useDictStore';
|
||||
const userInfo = ref({});
|
||||
const rows = ref({});
|
||||
const Authorization = ref('');
|
||||
const gradeData = ref([]);
|
||||
onLoad((options) => {
|
||||
rows.value=options
|
||||
Authorization.value=uni.getStorageSync('Padmin-Token')||''
|
||||
getHeart();
|
||||
});
|
||||
function getHeart() {
|
||||
const raw =Authorization.value;
|
||||
const token = typeof raw === "string" ? raw.trim() : "";
|
||||
const headers = token ? { 'Authorization': raw.startsWith("Bearer ") ? raw : `Bearer ${token}` }: {}
|
||||
$api.myRequest("/dashboard/auth/heart", {}, "POST", 10100, headers).then((resData) => {
|
||||
if (resData.code == 200) {
|
||||
getUserInfo();
|
||||
} else {
|
||||
navTo('/packageB/login')
|
||||
}
|
||||
});
|
||||
};
|
||||
function getUserInfo(){
|
||||
let header={
|
||||
'Authorization':Authorization.value
|
||||
}
|
||||
$api.myRequest('/system/user/login/user/info', {},'get',10100,header).then((resData) => {
|
||||
userInfo.value = resData.info || {};
|
||||
// userId.value=resData.info.userId
|
||||
queryData()
|
||||
});
|
||||
};
|
||||
function queryData(){
|
||||
$api.myRequest('/train/public/trainExamDash/getExamByIdTable', {
|
||||
userId:userInfo.value.userId,
|
||||
examPaperId:rows.value.examPaperId,
|
||||
}).then((resData) => {
|
||||
if(resData&&resData.code==200){
|
||||
gradeData.value=resData.rows
|
||||
}
|
||||
});
|
||||
}
|
||||
function detail(){
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
@@ -40,17 +89,21 @@
|
||||
flex-wrap: wrap;
|
||||
.tabLeft{
|
||||
width: 80%;
|
||||
height: 140rpx;
|
||||
height: 150rpx;
|
||||
border-bottom: 1px solid #ccc;
|
||||
border-right: 1px solid #ccc;
|
||||
box-sizing: border-box;
|
||||
view{
|
||||
line-height: 45rpx
|
||||
color: #2175F3;
|
||||
label{
|
||||
color: #666;
|
||||
}
|
||||
}
|
||||
}
|
||||
.tabRight{
|
||||
width: 20%;
|
||||
height: 140rpx;
|
||||
height: 150rpx;
|
||||
border-bottom: 1px solid #ccc;
|
||||
border-right: 1px solid #ccc;
|
||||
box-sizing: border-box;
|
||||
|
||||
@@ -312,6 +312,12 @@
|
||||
"navigationBarTitleText": "查看成绩"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "train/mockExam/paperDetails",
|
||||
"style": {
|
||||
"navigationBarTitleText": "考试详情"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "priority/helpFilter",
|
||||
"style": {
|
||||
|
||||
Reference in New Issue
Block a user