| | |
| | | /* |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-07-18 19:44:47 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-10-25 15:10:09 |
| | | * menu-name 成绩管理 |
| | | */ |
| | | <template> |
| | |
| | | {{ row.allGrade == -1 ? "" : row.allGrade }} |
| | | </template> |
| | | <template slot-scope="{ row }" slot="qualified"> |
| | | {{ row.qualified == -1 ? "" : row.qualified==0?"合格":row.qualified==1?"不合格":'' }} |
| | | {{ |
| | | row.qualified == -1 |
| | | ? "" |
| | | : row.qualified == 0 |
| | | ? "合格" |
| | | : row.qualified == 1 |
| | | ? "不合格" |
| | | : "" |
| | | }} |
| | | </template> |
| | | |
| | | <!-- 自定义按钮 --> |
| | |
| | | icon="el-icon-collection" |
| | | class="start-kaoshi" |
| | | v-if="permission.performance_print" |
| | | :disabled="row.qualified==1" |
| | | :disabled="row.qualified == 1" |
| | | @click="securityPrint(row)" |
| | | >保安证打印 |
| | | </el-button> |
| | |
| | | title="实操成绩导入" |
| | | append-to-body |
| | | :visible.sync="excelBox" |
| | | |
| | | width="555px" |
| | | > |
| | | <avue-form |
| | |
| | | }, |
| | | ], |
| | | // overHidden: true, |
| | | width:230, |
| | | width: 230, |
| | | }, |
| | | { |
| | | label: "用户名", |
| | |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | width:160 |
| | | width: 160, |
| | | }, |
| | | { |
| | | label: "所属公司", |
| | |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | width:250, |
| | | width: 250, |
| | | }, |
| | | { |
| | | label: "考试开始时间", |
| | |
| | | }, |
| | | }; |
| | | }, |
| | | computed:{ |
| | | computed: { |
| | | ...mapGetters(["userInfo", "permission"]), |
| | | permissionList() { |
| | | return { |
| | |
| | | var roleIds = this.userInfo.role_id.split(","); |
| | | roleIds.forEach((roleId) => { |
| | | getRoleDetail(roleId).then((res) => { |
| | | var roleAlias = res.data.data.roleAlias; |
| | | if ( |
| | | roleAlias == "保安公司管理员" || |
| | | roleAlias == "保安" || |
| | | roleAlias == "未持证保安" |
| | | ) { |
| | | //如果是保安公司管理员 |
| | | params["deptId"] = that.userInfo.dept_id; |
| | | } |
| | | var roleAlias = res.data.data.roleAlias; |
| | | if ( |
| | | roleAlias == "保安公司管理员" || |
| | | roleAlias == "保安" || |
| | | roleAlias == "未持证保安" |
| | | ) { |
| | | //如果是保安公司管理员 |
| | | params["deptId"] = that.userInfo.dept_id; |
| | | } |
| | | that.questionBankLoading = false; |
| | | params["examType"] = 1; |
| | | getList( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | Object.assign(params, this.query) |
| | | ).then((res) => { |
| | | const data = res.data.data; |
| | | that.questionBankPage.total = data.total; |
| | | that.questionBankData = data.records; |
| | | that.questionBankLoading = false; |
| | | params["examType"] = 1; |
| | | getList( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | Object.assign(params, this.query) |
| | | ).then((res) => { |
| | | const data = res.data.data; |
| | | that.questionBankPage.total = data.total; |
| | | that.questionBankData = data.records; |
| | | that.questionBankLoading = false; |
| | | that.questionBankSelectionClear(); |
| | | }); |
| | | }) |
| | | that.questionBankSelectionClear(); |
| | | }); |
| | | }); |
| | | }); |
| | | |
| | | }, |
| | | questionBankSelectionClear() { |
| | | this.questionBankSelectionList = []; |