考核加参数

dev_2022-03-03
yujialong 3 years ago
parent 18dc0ba045
commit 6f83c68f43
  1. 10
      src/components/TestPanel.vue
  2. 2
      src/config/index.js

@ -64,7 +64,7 @@
<el-card shadow="hover"> <el-card shadow="hover">
<el-table :data="taskList" :stripe="true" height="405"> <el-table :data="taskList" :stripe="true" height="405">
<el-table-column type="index"></el-table-column> <el-table-column type="index"></el-table-column>
<el-table-column prop="name" label="判分标准" align="center"></el-table-column> <el-table-column prop="name" label="判分" align="center"></el-table-column>
<el-table-column label="完成结果" align="center"> <el-table-column label="完成结果" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="isSubmit"> <template v-if="isSubmit">
@ -208,11 +208,17 @@ export default {
const projectId = this.projectId const projectId = this.projectId
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.$get(this.api.getProjectDetail, { this.$get(this.api.getProjectDetail, {
projectId projectId,
stuAssessent: 1
}).then(res => { }).then(res => {
const points = res.projectJudgmentVos const points = res.projectJudgmentVos
const project = res.projectManage const project = res.projectManage
const curReq = [] const curReq = []
if (!points.length) {
this.$message.error('该项目没有判分点,请换个项目重试')
this.projectId = this.projectList[0].projectId
this.getProDetail()
}
points.map((e, i) => { points.map((e, i) => {
e.code = '' // code e.code = '' // code
e.codeId = '' // codeIdcodeId e.codeId = '' // codeIdcodeId

@ -4,7 +4,7 @@ const isHh = location.host.includes('10.196.131.73') //是否是河海版本
const isBeta = process.env.NODE_ENV === 'development' || location.host.includes('39.108.250.202') //是否是职站测试 const isBeta = process.env.NODE_ENV === 'development' || location.host.includes('39.108.250.202') //是否是职站测试
let host = location.origin + ':9000/' let host = location.origin + ':9000/'
if (process.env.NODE_ENV === 'development') host = "http://192.168.31.151:9000/" if (process.env.NODE_ENV === 'development') host = 'http://192.168.31.151:9000'
/** /**
* python8个系统的id和名称 * python8个系统的id和名称
* id即systemId从cookie里取 * id即systemId从cookie里取

Loading…
Cancel
Save