| | |
| | | :table-loading="questionBankLoading" |
| | | :data="questionBankData" |
| | | ref="questionBankCrud" |
| | | @sort-change="sortChange" |
| | | :permission="permissionList" |
| | | :page.sync="questionBankPage" |
| | | @on-load="questionBankOnLoad" |
| | |
| | | // title: '成绩', |
| | | align: "center", |
| | | height: "auto", |
| | | sort:"", |
| | | sortName:"", |
| | | calcHeight: 80, |
| | | tip: false, |
| | | searchShow: true, |
| | |
| | | label: "考试中", |
| | | value: 3, |
| | | }, |
| | | { |
| | | label: "缺考", |
| | | value: 4, |
| | | }, |
| | | ], |
| | | width: 90, |
| | | // 表单新增时是否禁止 |
| | |
| | | label: "理论成绩", |
| | | prop: "theoryGrade", |
| | | slot: true, |
| | | sortable: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | |
| | | label: "实操成绩", |
| | | prop: "learnGrade", |
| | | slot: true, |
| | | sortable: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | |
| | | label: "总成绩", |
| | | prop: "allGrade", |
| | | slot: true, |
| | | sortable: true, |
| | | // 表单新增时是否禁止 |
| | | addDisabled: false, |
| | | // 表单新增时是否可见 |
| | |
| | | slot: true, |
| | | search: true, |
| | | searchSpan: 4, |
| | | width: 110, |
| | | // width: 110, |
| | | width: 68, |
| | | dicData: [ |
| | | { |
| | |
| | | query: obj, |
| | | }); |
| | | }, |
| | | //排序 |
| | | sortChange(value) { |
| | | if(value.order=="ascending"){ |
| | | this.sort = "asc"; |
| | | } |
| | | if(value.order=="descending"){ |
| | | this.sort = "desc"; |
| | | } |
| | | this.sortName = value.prop; |
| | | //字段匹配 |
| | | if(value.prop=="theoryGrade"){ |
| | | this.sortName = "theory_grade"; |
| | | } |
| | | if(value.prop=="learnGrade"){ |
| | | this.sortName = "learn_grade"; |
| | | } |
| | | if(value.prop=="allGrade"){ |
| | | this.sortName = "all_grade"; |
| | | } |
| | | this.questionBankOnLoad(this.questionBankPage); |
| | | }, |
| | | questionBankOnLoad(page, params = {}) { |
| | | //判断角色,如果是保安公司管理员或保安,只能查看当前公司的考试成绩 |
| | | var that = this; |
| | |
| | | } |
| | | that.questionBankLoading = false; |
| | | params["examType"] = 2; |
| | | if(this.sort){ |
| | | params["sort"] = this.sort; |
| | | } |
| | | if(this.sortName){ |
| | | params["sortName"] = this.sortName; |
| | | } |
| | | getList( |
| | | page.currentPage, |
| | | page.pageSize, |