提交 81039761 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 617011b9
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
return this.list return this.list
} }
return this.list.filter(item => { return this.list.filter(item => {
return item.course_name.includes(this.searchValue) return item.course_name.includes(this.searchValue.trim())
}) })
} }
}, },
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<el-input v-model="ruleForm.student_info.college" disabled></el-input> <el-input v-model="ruleForm.student_info.college" disabled></el-input>
</el-form-item> </el-form-item>
<el-form-item label="学院名称" prop="school"> <el-form-item label="学院名称" prop="school">
<el-input v-model="ruleForm.student_info.school" disabled></el-input> <el-input v-model="ruleForm.student_info.school_name" disabled></el-input>
</el-form-item> </el-form-item>
<el-form-item label="专业名称" prop="major"> <el-form-item label="专业名称" prop="major">
<el-input v-model="ruleForm.student_info.major" disabled></el-input> <el-input v-model="ruleForm.student_info.major" disabled></el-input>
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
<el-form-item label="身份证号码" prop="id_number"> <el-form-item label="身份证号码" prop="id_number">
<el-input v-model="ruleForm.student_info.id_number" disabled></el-input> <el-input v-model="ruleForm.student_info.id_number" disabled></el-input>
</el-form-item> </el-form-item>
<el-form-item label="身份" prop="role"> <!-- <el-form-item label="身份" prop="role">
<el-input v-model="ruleForm.student_info.role" disabled></el-input> <el-input v-model="ruleForm.student_info.role" disabled></el-input>
</el-form-item> </el-form-item> -->
<el-form-item label="登录帐号" prop="mobile"> <el-form-item label="登录帐号" prop="mobile">
<el-input v-model="ruleForm.mobile" disabled></el-input> <el-input v-model="ruleForm.mobile" disabled></el-input>
</el-form-item> </el-form-item>
......
...@@ -297,12 +297,12 @@ export default { ...@@ -297,12 +297,12 @@ export default {
}, },
// 加载部分试题 // 加载部分试题
supplyRequest(n) { supplyRequest(n) {
const loading = this.$loading({ // const loading = this.$loading({
lock: true, // lock: true,
text: 'Loading', // text: 'Loading',
spinner: 'el-icon-loading', // spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)' // background: 'rgba(0, 0, 0, 0.7)'
}) // })
this.getTopic(parseInt((n ? this.questionParams.questionIndex + 2 : this.questionParams.questionIndex - 2) / 20) + 1, data => { this.getTopic(parseInt((n ? this.questionParams.questionIndex + 2 : this.questionParams.questionIndex - 2) / 20) + 1, data => {
if (this.container.length >= 40) { if (this.container.length >= 40) {
n ? this.container.splice(0, 20) : this.container.splice(20, 20) n ? this.container.splice(0, 20) : this.container.splice(20, 20)
...@@ -312,7 +312,7 @@ export default { ...@@ -312,7 +312,7 @@ export default {
} }
this.questionData.list = this.container this.questionData.list = this.container
this.changeData() this.changeData()
loading.close() // loading.close()
}) })
}, },
addCont(data, n) { addCont(data, n) {
......
...@@ -14,18 +14,10 @@ export default { ...@@ -14,18 +14,10 @@ export default {
data() { data() {
return { return {
list: [ list: [
{ // {
title: '给组件绑定的事件为什么无法触发?', // title: '给组件绑定的事件为什么无法触发?',
content: '在 Vue 2.0 中,为自定义组件绑定原生事件必须使用 .native 修饰符' // content: '在 Vue 2.0 中,为自定义组件绑定原生事件必须使用 .native 修饰符'
}, // }
{
title: '给组件绑定的事件为什么无法触发?',
content: '在 Vue 2.0 中,为自定义组件绑定原生事件必须使用 .native 修饰符'
},
{
title: '给组件绑定的事件为什么无法触发?',
content: '在 Vue 2.0 中,为自定义组件绑定原生事件必须使用 .native 修饰符'
}
] ]
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论