master V1.0.0
yujialong 4 years ago
parent 9c0ee6eb4a
commit 1660f87faf
  1. 6
      src/components/breadcrumb/index.vue
  2. 7
      src/layouts/navbar/index.vue
  3. 6
      src/mixins/examDo/index.js
  4. 4
      src/pages/achievement/assessment/index.vue
  5. 4
      src/pages/achievement/practice/index.vue
  6. 5
      src/pages/index/list/index.vue
  7. 4
      src/pages/practice/do/index.vue
  8. 1
      src/pages/practice/list/myPractice.vue
  9. 2
      src/pages/wrongBook/do/index.vue
  10. 11
      src/styles/common.scss

@ -3,7 +3,7 @@
<span class="cur">当前位置</span> <span class="cur">当前位置</span>
<el-breadcrumb separator="/"> <el-breadcrumb separator="/">
<el-breadcrumb-item :to="{ path: '/' }">超竞学生端</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: '/' }">超竞学生端</el-breadcrumb-item>
<el-breadcrumb-item v-for="(item,index) in pages" :key="index" :to="{ path: index == pages.length - 1 ? curRoute : route }">{{item}}</el-breadcrumb-item> <el-breadcrumb-item v-for="(item,index) in pages" :key="index" :to="{ path: index == pages.length - 1 ? curRoute : path }">{{item}}</el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
</div> </div>
</template> </template>
@ -14,12 +14,12 @@ export default {
data() { data() {
return { return {
pages: this.data.split('/'), pages: this.data.split('/'),
curRoute: this.$route.path curRoute: this.$route.path,
path: this.route ? this.route : 'list'
}; };
}, },
methods: { methods: {
update(data){ update(data){
console.log(2222,data)
this.pages = data.split('/') this.pages = data.split('/')
} }
} }

@ -94,7 +94,10 @@ export default {
], ],
menus: [], menus: [],
actives: { actives: {
index: ['index-add'], practice: ['practice-do','practice-randomDo'],
exam: ['exam-do'],
achievement: ['achievement-practice','achievement-assessment'],
wrongBook: ['wrongBook-do'],
} }
}; };
}, },
@ -102,7 +105,7 @@ export default {
onRoutes() { onRoutes() {
let actives = this.actives let actives = this.actives
for(let i in this.actives){ for(let i in this.actives){
if(actives[i].includes(this.$route.name)) return `/${i}` if(actives[i].includes(this.$route.name)) return `/${i}/list`
} }
return this.$route.path return this.$route.path
}, },

@ -64,14 +64,12 @@ export default {
}) })
}, },
handleExceed(files, fileList) { handleExceed(files, fileList) {
this.$message.warning( util.warningMsg(`当前限制选择 1 个文件,如需更换,请删除上一个文件再重新选择!` )
`当前限制选择 1 个文件,如需更换,请删除上一个文件再重新选择!`
)
}, },
beforeUpload(file,item){ beforeUpload(file,item){
let ext = util.getFileExt(file.name) let ext = util.getFileExt(file.name)
if(util.isDoc(ext) && (file.size / 1024 / 1024) > this.maxSize){ if(util.isDoc(ext) && (file.size / 1024 / 1024) > this.maxSize){
this.$message.error(`请上传${this.maxSize}M以内的文件`) util.errorMsg(`请上传${this.maxSize}M以内的文件`)
return false return false
} }
item.uploading = true item.uploading = true

@ -31,7 +31,7 @@
<div class="wrap"> <div class="wrap">
<div class="item" v-for="(item,index) in curType" :key="index"> <div class="item" v-for="(item,index) in curType" :key="index">
<div class="type" :class="{wrong: item.question_score == 0,yet: item.question_score == null}"> <div class="type" :class="{wrong: item.question_score <= 0,yet: item.question_score == null}">
<span>序号{{index+1}}</span> <span>序号{{index+1}}</span>
<span v-if="item.question_score != null">得分{{item.question_score}}</span> <span v-if="item.question_score != null">得分{{item.question_score}}</span>
</div> </div>
@ -40,7 +40,7 @@
<p class="key">题干</p> <p class="key">题干</p>
<p class="val" v-html="item.question_stem"></p> <p class="val" v-html="item.question_stem"></p>
</div> </div>
<div class="meta"> <div class="meta" v-if="item.typeName != '简答题' && item.typeName != '填空题'">
<p class="key">选项</p> <p class="key">选项</p>
<div class="val"> <div class="val">
<p v-for="(option,i) in item.options" :key="i">{{i}}.{{item.options[i]}}</p> <p v-for="(option,i) in item.options" :key="i">{{i}}.{{item.options[i]}}</p>

@ -27,7 +27,7 @@
<div class="wrap"> <div class="wrap">
<div class="item" v-for="(item,index) in curType" :key="index"> <div class="item" v-for="(item,index) in curType" :key="index">
<div class="type" :class="{wrong: item.questionScore == 0,yet: !item.isCorrecting}"> <div class="type" :class="{wrong: item.questionScore <= 0,yet: !item.isCorrecting}">
<span>序号{{index+1}}</span> <span>序号{{index+1}}</span>
<span v-if="item.isCorrecting">得分{{item.questionScore}}</span> <span v-if="item.isCorrecting">得分{{item.questionScore}}</span>
</div> </div>
@ -36,7 +36,7 @@
<p class="key">题干</p> <p class="key">题干</p>
<p class="val" v-html="item.questionStem"></p> <p class="val" v-html="item.questionStem"></p>
</div> </div>
<div class="meta"> <div class="meta" v-if="item.typeName != '简答题' && item.typeName != '填空题'">
<p class="key">选项</p> <p class="key">选项</p>
<div class="val"> <div class="val">
<p v-for="(option,i) in item.options" :key="i">{{i}}.{{item.options[i]}}</p> <p v-for="(option,i) in item.options" :key="i">{{i}}.{{item.options[i]}}</p>

@ -27,7 +27,8 @@
<el-table-column prop="endTime" label="考试结束时间" align="center"></el-table-column> <el-table-column prop="endTime" label="考试结束时间" align="center"></el-table-column>
<el-table-column label="操作" width="200"> <el-table-column label="操作" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="toExam(scope.row)" v-if="scope.row.assessmentState == 2" :disabled="scope.row.studentState == 2">进入考试</el-button> <el-button type="text" @click="toExam(scope.row)" v-if="scope.row.assessmentState == 2 && scope.row.studentState != 2">进入考试</el-button>
<el-button type="text" @click="toExam(scope.row)" disabled v-if="scope.row.studentState == 2">已经交卷</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -91,7 +92,7 @@
</div> </div>
<div class="page" style="width: calc(50% - 12px)"> <div class="page" style="width: calc(50% - 12px)">
<div class="tabs"> <div class="tabs">
<a class="item active">我的成绩</a> <a class="item active">考试成绩</a>
</div> </div>
<div class="page-content"> <div class="page-content">
<template v-if="assesmentNameList.length"> <template v-if="assesmentNameList.length">

@ -277,7 +277,7 @@ export default {
if(n.uploading) uploading = true if(n.uploading) uploading = true
}) })
}) })
if(uploading) return this.$message.warning('视频正在上传,请稍候再试') if(uploading) return util.warningMsg('视频正在上传,请稍候再试')
if(this.submiting) return false if(this.submiting) return false
this.submiting = true this.submiting = true
let data1 = [] let data1 = []
@ -317,7 +317,7 @@ export default {
.then(res => { .then(res => {
this.submiting = false this.submiting = false
this.isSubmit = true this.isSubmit = true
this.$message.success(this.isDone ? '练习已结束,已经自动为您提交练习!' : '提交成功') util.successMsg(this.isDone ? '练习已结束,已经自动为您提交练习!' : '提交成功')
this.$router.push('list') this.$router.push('list')
}).catch(err => { }).catch(err => {
this.submiting = false this.submiting = false

@ -114,6 +114,7 @@ export default {
practice(row){ practice(row){
if(row.isHava){ if(row.isHava){
this.$confirm('是否要继续上次未完成的练习?',{ this.$confirm('是否要继续上次未完成的练习?',{
type: 'warning',
title: '提示', title: '提示',
confirmButtonText: '是', confirmButtonText: '是',
cancelButtonText: '否', cancelButtonText: '否',

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<breadcrumb :data="'我的练习/练习'"></breadcrumb> <breadcrumb :data="'错题练习/错题练习'"></breadcrumb>
<div class="box"> <div class="box">
<div class="page left"> <div class="page left">
<div> <div>

@ -284,8 +284,15 @@
color: #ffa900; color: #ffa900;
} }
} }
.el-button--primary,.el-button--primary:hover, .el-button--primary:focus{ .el-button--primary{
background: #CC221C; color: #606266;
background: #fff;
border-color: #DCDFE6;
&:hover{
color: $--color-primary;
border-color: #efbdbb;
background-color: #fae9e8;
}
} }
} }

Loading…
Cancel
Save