实验记录导出,模板名字修改等

dev_2022-05-11
yujialong 3 years ago
parent ca17b3eb1d
commit 7b33819db6
  1. 6
      src/api/index.js
  2. 40
      src/pages/achievement/teach/index.vue
  3. 2
      src/pages/match/manage/matchSignup.vue
  4. 2
      src/pages/project/list/index.vue
  5. 4
      src/setting.js

@ -39,7 +39,7 @@ export default {
saveOrg: `${host}occupationlab/architecture/save`, // 新增组织架构 saveOrg: `${host}occupationlab/architecture/save`, // 新增组织架构
updateOrg: `${host}occupationlab/architecture/update`, // 编辑组织架构 updateOrg: `${host}occupationlab/architecture/update`, // 编辑组织架构
deleteOrg: `${host}occupationlab/architecture/delete`, // 删除组织架构 deleteOrg: `${host}occupationlab/architecture/delete`, // 删除组织架构
studentTemplate: `http://39.108.250.202/template/职站学生导入模板.xlsx`, // 职站学生导入模板 studentTemplate: `http://39.108.250.202/template/学生导入模板.xlsx`, // 学生导入模板
// 测评管理 // 测评管理
questionsList: `${host}occupationlab/questions/list`, // 题库列表查询 questionsList: `${host}occupationlab/questions/list`, // 题库列表查询
@ -48,7 +48,7 @@ export default {
questionsDetail: `${host}occupationlab/questions/detail`, // 查看当前题库信息 questionsDetail: `${host}occupationlab/questions/detail`, // 查看当前题库信息
questionsDelete: `${host}occupationlab/questions/delete`, // 根据主键删除 questionsDelete: `${host}occupationlab/questions/delete`, // 根据主键删除
questionsIsDisable: `${host}occupationlab/questions/isDisable`, // 是否禁用试题 questionsIsDisable: `${host}occupationlab/questions/isDisable`, // 是否禁用试题
questionsTemplate: `http://39.108.250.202/template/职站试题导入模板.xlsx`, //excel模板文件下载 questionsTemplate: `http://39.108.250.202/template/试题导入模板.xlsx`, //excel模板文件下载
questionsImport: `${host}occupationlab/questions/importQuestion`, // 批量导入题库 questionsImport: `${host}occupationlab/questions/importQuestion`, // 批量导入题库
questionsExportFailure: `${host}occupationlab/questions/exportFailure`, // 批量导入题库失败数据导出 questionsExportFailure: `${host}occupationlab/questions/exportFailure`, // 批量导入题库失败数据导出
questionsInfo: `${host}occupationlab/questions/info`, // 测评规则信息的展示 questionsInfo: `${host}occupationlab/questions/info`, // 测评规则信息的展示
@ -198,7 +198,7 @@ export default {
modifyStaff: `${host}occupationlab/staff/modifyStaff`, //编辑员工 modifyStaff: `${host}occupationlab/staff/modifyStaff`, //编辑员工
delStaff: `${host}occupationlab/staff/delStaff`, //删除员工 delStaff: `${host}occupationlab/staff/delStaff`, //删除员工
staffList: `${host}occupationlab/staff/staffList`, //员工列表 staffList: `${host}occupationlab/staff/staffList`, //员工列表
staffTemplate: `http://39.108.250.202/template/职站员工用户导入模板.xlsx`, //职站员工用户导入模板 staffTemplate: `http://39.108.250.202/template/员工用户导入模板.xlsx`, //员工用户导入模板
exportFailureStaff: `${host}occupationlab/staff/exportFailure`, //批量导入员工失败数据导出 exportFailureStaff: `${host}occupationlab/staff/exportFailure`, //批量导入员工失败数据导出
importStaff: `${host}occupationlab/staff/importStaff`, //批量导入员工 importStaff: `${host}occupationlab/staff/importStaff`, //批量导入员工
// 角色管理 // 角色管理

@ -49,18 +49,18 @@
{{ scope.$index + (page - 1) * pageSize + 1 }} {{ scope.$index + (page - 1) * pageSize + 1 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="schoolName" label="学校" width="150" align="center"> <el-table-column prop="schoolName" label="学校" min-width="150" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="experimentalName" label="考核名称" align="center"> <el-table-column v-if="permissions" prop="experimentalName" label="考核名称" min-width="250" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ experimentalName }} {{ experimentalName }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="userName" label="学生姓名" width="100" align="center"></el-table-column> <el-table-column prop="userName" label="学生姓名" min-width="100" align="center"></el-table-column>
<el-table-column prop="workNumber" label="学号" width="100" align="center"></el-table-column> <el-table-column prop="workNumber" label="学号" min-width="100" align="center"></el-table-column>
<el-table-column prop="score" label="分数" width="90" align="center"></el-table-column> <el-table-column prop="score" label="分数" width="90" align="center"></el-table-column>
<el-table-column label="耗时" width="90" align="center"></el-table-column> <el-table-column prop="timeSum" label="耗时" width="90" align="center"></el-table-column>
<el-table-column prop="submitTime" label="提交时间" width="150" align="center"> <el-table-column prop="submitTime" label="提交时间" min-width="150" align="center">
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="160"> <el-table-column label="操作" align="center" width="160">
<template slot-scope="scope"> <template slot-scope="scope">
@ -163,29 +163,25 @@ export default {
show(row) { show(row) {
this.$router.push(`show?reportId=${row.reportId}`) this.$router.push(`show?reportId=${row.reportId}`)
}, },
exportData() { // () // ()
exportData() {
//
let url = this.permissions
? `${this.api.exportAssessmentInfo}?assessmentId=${this.id}&classId=${this.classId}`
: `${this.api.exportPracticeInfo}?projectId=${this.id}`
// id
if (this.multipleSelection.length) { if (this.multipleSelection.length) {
let ids = this.multipleSelection.map(item => { const ids = this.multipleSelection.map(e => e.reportId)
return item.reportId; url += `&ids=${ids.toString()}`
}); }
axios.get(`${this.api.exportAssessmentInfo}?assessmentId=${this.assessmentId}&classId=${this.classId}&ids=${ids.toString()}`,{ axios.get(url, {
headers: {
token: this.token
},
responseType: 'blob'
}).then((res) => {
util.downloadFileDirect(`学生考核成绩.xls`,new Blob([res.data]))
}).catch(res => {})
} else {
axios.get(`${this.api.exportAssessmentInfo}?assessmentId=${this.assessmentId}&classId=${this.classId}&ids=`,{
headers: { headers: {
token: this.token token: this.token
}, },
responseType: 'blob' responseType: 'blob'
}).then((res) => { }).then((res) => {
util.downloadFileDirect(`学生考核成绩.xls`,new Blob([res.data])) util.downloadFileDirect(`学生${this.permissions ? '考核' : '练习'}成绩.xls`,new Blob([res.data]))
}).catch(res => {}) }).catch(res => {})
}
}, },
handleDelete(row) { // handleDelete(row) { //
this.$confirm("确定要删除吗?", "提示", { this.$confirm("确定要删除吗?", "提示", {

@ -135,7 +135,7 @@ export default {
} }
}, },
exportAll() { exportAll() {
location.href = `${this.api.excelExport}?${this.id}`; location.href = `${this.api.excelExport}?contestId=${this.id}`;
}, },
exportBatch() { exportBatch() {
if (this.multipleSelection.length != "") { if (this.multipleSelection.length != "") {

@ -84,7 +84,7 @@
{{ stateKeys[scope.row.state] }} {{ stateKeys[scope.row.state] }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="250"> <el-table-column label="操作" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="edit(scope.row,'0',queryData.founder)">查看</el-button> <el-button type="text" @click="edit(scope.row,'0',queryData.founder)">查看</el-button>
<el-button v-if="scope.row.founder && (roleName.includes('超级') || roleName === scope.row.roleName || (roleName === '管理员' && !scope.row.roleName.includes('超级')))" type="text" @click="edit(scope.row,'1',queryData.founder)">编辑</el-button> <el-button v-if="scope.row.founder && (roleName.includes('超级') || roleName === scope.row.roleName || (roleName === '管理员' && !scope.row.roleName.includes('超级')))" type="text" @click="edit(scope.row,'1',queryData.founder)">编辑</el-button>

@ -40,8 +40,8 @@ if (isHh) {
jumpPath = "http://192.168.31.125:8087/"; jumpPath = "http://192.168.31.125:8087/";
bankPath = `http://192.168.31.125:8093` bankPath = `http://192.168.31.125:8093`
// host = "http://www.occupationlab.com:9000/";//线上 // host = "http://www.occupationlab.com:9000/";//线上
host = "http://39.108.250.202:9000/"; // 中台测试服 // host = "http://39.108.250.202:9000/"; // 中台测试服
// host = "http://192.168.31.151:9000/"; // 榕 host = "http://192.168.31.151:9000/"; // 榕
// host = 'http://192.168.31.137:9000/'; // 赓 // host = 'http://192.168.31.137:9000/'; // 赓
title = "职站服务端管理系统"; title = "职站服务端管理系统";
} else { } else {

Loading…
Cancel
Save