add comment

master
yujialong 3 years ago
parent 9ce7a018b3
commit a7fa9b2aa7
  1. 4
      src/pages/account/login/index.vue
  2. 4
      src/pages/achievement/list/examResults.vue
  3. 4
      src/pages/achievement/list/practiceResults.vue
  4. 3
      src/pages/achievement/list/wrongBook.vue
  5. 2
      src/pages/achievement/statistics/index.vue
  6. 2
      src/pages/assessment/monitor/index.vue
  7. 4
      src/pages/assessment/show/index.vue
  8. 4
      src/pages/practice/scoreQuery/index.vue
  9. 1
      src/pages/setting/person/index.vue
  10. 2
      src/pages/student/list/index.vue
  11. 2
      src/pages/system/list/index.vue
  12. 7
      src/pages/system/list/role.vue
  13. 15
      src/pages/testPaper/add/index.vue
  14. 4
      src/pages/testPaper/review/index.vue
  15. 6
      src/setting.js

@ -29,8 +29,8 @@ export default {
data: function() {
return {
loginForm: {
username: 'manage',
password: '111aaa',
username: '',
password: '',
},
loginRules: {
username: [{ required: true, message: '请输入用户名', trigger: 'blur' }],

@ -187,7 +187,5 @@ export default {
</script>
<style lang="scss" scoped>
/deep/.no-mb.el-form-item{
margin-bottom: 0;
}
</style>

@ -221,7 +221,5 @@ export default {
</script>
<style lang="scss" scoped>
/deep/.no-mb.el-form-item{
margin-bottom: 0;
}
</style>

@ -263,9 +263,6 @@ export default {
</script>
<style lang="scss" scoped>
/deep/.no-mb.el-form-item{
margin-bottom: 0;
}
.ques{
.key{
font-weight: bold;

@ -174,6 +174,7 @@ export default {
n.classId == this.classId && list.push(n)
})
let len = list.length - 1
//
for(let i = 0; i < len; i++){
for(let j = 0; j < len; j++){
if(list[j].rank && list[j].rank > list[j + 1].rank){
@ -192,6 +193,7 @@ export default {
})
.catch(err => {})
},
//
handlePage(){
let list = this.listDataAll
this.listData = list.slice((this.page - 1) * this.pageSize,this.page * this.pageSize)

@ -159,7 +159,7 @@ export default {
},
mounted() {
this.getData()
this.addLeaveEvent()
this.addLeaveEvent()//
},
methods: {
getData() {

@ -13,9 +13,7 @@
</div>
<ul class="tab">
<!-- <template v-for="(item,index) in tabs"> -->
<li v-for="(item,index) in tabs" :key="index" :class="{active: active == item.id}" @click="tabChange(item.id)">{{item.name}}</li>
<!-- </template> -->
<li v-for="(item,index) in tabs" :key="index" :class="{active: active == item.id}" @click="tabChange(item.id)">{{item.name}}</li>
</ul>
<div class="wrap">

@ -209,7 +209,5 @@ export default {
</script>
<style lang="scss" scoped>
/deep/.no-mb.el-form-item{
margin-bottom: 0;
}
</style>

@ -179,7 +179,6 @@
<script>
import { mapState,mapActions } from 'vuex'
import _ from 'lodash';
import bus from '@/libs/bus'
import util from '@/libs/util'
export default {
data() {

@ -61,6 +61,6 @@ export default {
};
</script>
<style lang="scss" scopted>
<style lang="scss" scoped>
</style>

@ -69,6 +69,6 @@ export default {
};
</script>
<style lang="scss" scopted>
<style lang="scss" scoped>
</style>

@ -277,13 +277,6 @@ export default {
</script>
<style lang="scss" scoped>
.no-mb /deep/.el-form-item{
margin-bottom: 0;
}
/deep/.el-row{
padding: 0 !important;
margin-bottom: 0;
}
.per-wrap{
max-height: 400px;
overflow: auto;

@ -643,6 +643,7 @@ export default {
let briefCount = selected.filter(n => n.name == '简答题').length
if(this.id && this.isFirstSubmitMana){
//
this.singleCount = Number(this.singleCount) + singleCount
this.multipleCount = Number(this.multipleCount) + multipleCount
this.fillBlankCount = Number(this.fillBlankCount) + fillBlankCount
@ -751,6 +752,7 @@ export default {
let invalid = false
let everyUnchecked = true
let everyIsZero = true
// 00
for(let i in this.countCheck){
if(this.countCheck[i]){
everyUnchecked = false
@ -758,12 +760,6 @@ export default {
if(this[`countNumberInput${index}`]){
everyIsZero = false
invalid = true
// if(this[`countNumberInput${index}`] < this.pointRules[index-1]){
// invalid = true
// }else if(this[`countNumberInput${index}`] > this.pointRules[index-1]){
// util.errorMsg('')
// return false
// }
}
}else{
invalid = true
@ -777,8 +773,8 @@ export default {
let index = i.replace('countCheck','')
if(this.countCheck[i]) totalCount += this[`countNumberInput${index}`]
}
let remainder = 100 % totalCount
let avgPoint = 100 / totalCount
let remainder = 100 % totalCount //
let avgPoint = 100 / totalCount //
if(remainder) avgPoint = (100 - remainder) / totalCount
this.singleCount = ''
this.multipleCount = ''
@ -831,10 +827,11 @@ export default {
return false
}
}
if(remainder){
if(remainder){// 100
let remainScore = 0
let remainPlusAvg = remainder + avgPoint
let invalid = false
//
if(this.typeValid(5)){
remainScore = this.briefCount * avgPoint + remainder
if(remainScore % this.briefCount){

@ -155,7 +155,5 @@ export default {
</script>
<style lang="scss" scoped>
/deep/.no-mb.el-form-item{
margin-bottom: 0;
}
</style>

@ -15,8 +15,8 @@ const Setting = {
// 页面切换时,是否显示模拟的进度条
showProgressBar: true,
// 接口请求地址
// apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : 'http://8.134.8.197:9000',
apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : 'http://8.134.8.197:9000',
// apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : 'http://112.74.110.92:9000',
apiBaseURL: env === 'development' ? 'http://112.74.110.92:9000' : 'http://112.74.110.92:9000',
// 接口请求返回错误时,弹窗的持续时间,单位:秒
modalDuration: 3,
// 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice
@ -58,7 +58,7 @@ const Setting = {
sameRouteForceUpdate: false,
// 文件上传
upload: {
apiURL: 'http://8.134.8.197:8001',
apiURL: 'http://112.74.110.92:8001',
maxSize: 30,
},
// 是否使用动态路由

Loading…
Cancel
Save