|
|
@ -1,5 +1,5 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div ref="main" class="main"> |
|
|
|
<div> |
|
|
|
<el-form :disabled="isDetail"> |
|
|
|
<el-form :disabled="isDetail"> |
|
|
|
<el-card shadow="hover" class="m-b-20"> |
|
|
|
<el-card shadow="hover" class="m-b-20"> |
|
|
|
<div class="flex-between"> |
|
|
|
<div class="flex-between"> |
|
|
@ -30,7 +30,7 @@ |
|
|
|
<el-select :disabled="isDetail" v-model="projectManage.systemId" placeholder="请选择" @change="systemChange"> |
|
|
|
<el-select :disabled="isDetail" v-model="projectManage.systemId" placeholder="请选择" @change="systemChange"> |
|
|
|
<el-option |
|
|
|
<el-option |
|
|
|
v-for="item in systemList" |
|
|
|
v-for="item in systemList" |
|
|
|
:key="item.value" |
|
|
|
:key="item.id" |
|
|
|
:label="item.label" |
|
|
|
:label="item.label" |
|
|
|
:value="item.id" |
|
|
|
:value="item.id" |
|
|
|
></el-option> |
|
|
|
></el-option> |
|
|
@ -92,7 +92,6 @@ |
|
|
|
header-align="center" |
|
|
|
header-align="center" |
|
|
|
@selection-change="handleSelectionProjectJudgment" |
|
|
|
@selection-change="handleSelectionProjectJudgment" |
|
|
|
row-key="judgmentId" |
|
|
|
row-key="judgmentId" |
|
|
|
v-loading="listLoading" |
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
<el-table-column type="selection" width="55" align="center"></el-table-column> |
|
|
|
<el-table-column type="selection" width="55" align="center"></el-table-column> |
|
|
|
<el-table-column prop="sort" label="序号" width="80" align="center"> |
|
|
|
<el-table-column prop="sort" label="序号" width="80" align="center"> |
|
|
@ -191,10 +190,8 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
host: Setting.apiBaseURL, |
|
|
|
|
|
|
|
isHh: Setting.isHh, |
|
|
|
|
|
|
|
projectId: this.$route.query.projectId, |
|
|
|
projectId: this.$route.query.projectId, |
|
|
|
systemList: Setting.systemList, |
|
|
|
systemList: [], |
|
|
|
token: btoa(util.local.get(Setting.tokenKey)), |
|
|
|
token: btoa(util.local.get(Setting.tokenKey)), |
|
|
|
isDetail: Boolean(this.$route.query.show), |
|
|
|
isDetail: Boolean(this.$route.query.show), |
|
|
|
|
|
|
|
|
|
|
@ -227,7 +224,6 @@ export default { |
|
|
|
searchTimer: null, |
|
|
|
searchTimer: null, |
|
|
|
isToPoint: false, // 判断是否是跳转到判分点系统 |
|
|
|
isToPoint: false, // 判断是否是跳转到判分点系统 |
|
|
|
visibleLoading:false,// 加载弹框 |
|
|
|
visibleLoading:false,// 加载弹框 |
|
|
|
listLoading:false,// 列表加载 |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
@ -247,16 +243,17 @@ export default { |
|
|
|
// util.warningMsg(res.message); |
|
|
|
// util.warningMsg(res.message); |
|
|
|
util.errorMsg("分配的数值已超过100"); |
|
|
|
util.errorMsg("分配的数值已超过100"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
console.log('chuli') |
|
|
|
return score; |
|
|
|
return score; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
watch: { |
|
|
|
// projectJudgmentData: { |
|
|
|
projectJudgmentData: { |
|
|
|
// handler(newValue) { |
|
|
|
handler(newValue) { |
|
|
|
// console.log("newValue:", newValue); |
|
|
|
console.log("newValue:", newValue); |
|
|
|
// }, |
|
|
|
}, |
|
|
|
// deep: true |
|
|
|
deep: true |
|
|
|
// }, |
|
|
|
}, |
|
|
|
judgementpointsquery(n) { |
|
|
|
judgementpointsquery(n) { |
|
|
|
clearTimeout(this.searchTimer); |
|
|
|
clearTimeout(this.searchTimer); |
|
|
|
this.searchTimer = setTimeout(() => { |
|
|
|
this.searchTimer = setTimeout(() => { |
|
|
@ -265,7 +262,8 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
created() { |
|
|
|
// console.log(this.projectManage.systemId, "this.projectManage.systemId", this.lastSystemId); |
|
|
|
this.getSystemData(); |
|
|
|
|
|
|
|
console.log(this.projectManage.systemId, "this.projectManage.systemId", this.lastSystemId); |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
if (this.$route.query.projectId) { |
|
|
|
if (this.$route.query.projectId) { |
|
|
@ -301,6 +299,11 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
getSystemData() { |
|
|
|
|
|
|
|
this.$get(this.api.getSystemIdBySchool).then(res => { |
|
|
|
|
|
|
|
this.systemList = res.data; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
getInfoData() { // 获取详情数据 |
|
|
|
getInfoData() { // 获取详情数据 |
|
|
|
this.$get(`${this.api.getProjectDetail}?projectId=${this.projectId}`).then(res => { |
|
|
|
this.$get(`${this.api.getProjectDetail}?projectId=${this.projectId}`).then(res => { |
|
|
|
if (res.status === 200) { |
|
|
|
if (res.status === 200) { |
|
|
@ -609,42 +612,42 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
toJudgePoint(type, row) { // 进入判分点系统 |
|
|
|
toJudgePoint(type, row) { // 进入判分点系统 |
|
|
|
this.handleCacheData(); |
|
|
|
this.handleCacheData(); |
|
|
|
// let host = this.host; |
|
|
|
let jumpPath = Setting.jumpPath; |
|
|
|
let host = "http://192.168.31.154:8087/"; // 本地 |
|
|
|
// let jumpPath = "http://192.168.31.154:8087/"; // 本地 |
|
|
|
let { systemId } = this.projectManage; |
|
|
|
let { systemId } = this.projectManage; |
|
|
|
let href = ""; |
|
|
|
let href = ""; |
|
|
|
if (type === "view") { |
|
|
|
if (type === "view") { |
|
|
|
// 查看 |
|
|
|
// 查看 |
|
|
|
if (systemId == 2) { |
|
|
|
if (systemId == 2) { |
|
|
|
href = `${host}jdTrials/#/programOption?id=${row.judgmentPointsId}`; |
|
|
|
console.log(systemId); |
|
|
|
} else if (systemId == 3) { |
|
|
|
} else if (systemId == 3) { |
|
|
|
href = `${host}jdTrials/#/programOptions?id=${row.judgmentPointsId}`; |
|
|
|
console.log(systemId); |
|
|
|
} else if (systemId == 11) { |
|
|
|
} else if (systemId == 11) { |
|
|
|
// 交易类判分点(银行综合系统) |
|
|
|
// 交易类判分点(银行综合系统) |
|
|
|
href = `${host}jdTrials/#/Transaction?isView=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
href = `${jumpPath}#/Transaction?isView=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// 编程类判分点(python子系统) |
|
|
|
// 编程类判分点(python子系统) |
|
|
|
href = `${host}jdTrials/#/program?isView=true&systemId=${systemId}&bcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
href = `${jumpPath}#/program?isView=true&systemId=${systemId}&bcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (type === "edit") { |
|
|
|
} else if (type === "edit") { |
|
|
|
// 自定义(老师端隐藏此功能) |
|
|
|
// 自定义(老师端隐藏此功能) |
|
|
|
if (systemId == 2) { |
|
|
|
if (systemId == 2) { |
|
|
|
href = `${host}jdTrials/#/programOption?id=${row.judgmentPointsId}`; |
|
|
|
console.log(systemId); |
|
|
|
} else if (systemId == 3) { |
|
|
|
} else if (systemId == 3) { |
|
|
|
href = `${host}jdTrials/#/programOptions?id=${row.judgmentPointsId}`; |
|
|
|
console.log(systemId); |
|
|
|
} else if (systemId == 11) { |
|
|
|
} else if (systemId == 11) { |
|
|
|
// 交易类判分点(银行综合系统) |
|
|
|
// 交易类判分点(银行综合系统) |
|
|
|
href = `${host}jdTrials/#/Transaction?isEdit=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
href = `${jumpPath}#/Transaction?isEdit=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// 编程类判分点(python子系统) |
|
|
|
// 编程类判分点(python子系统) |
|
|
|
href = `${host}jdTrials/#/program?isEdit=true&systemId=${systemId}&bcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
href = `${jumpPath}#/program?isEdit=true&systemId=${systemId}&bcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (type === "home") { |
|
|
|
} else if (type === "home") { |
|
|
|
if (systemId == 2 || systemId == 3) { |
|
|
|
if (systemId == 2 || systemId == 3) { |
|
|
|
href = `${host}jdTrials/#/list`; |
|
|
|
console.log(systemId); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// 进入判分点系统首页(老师端隐藏此功能) |
|
|
|
// 进入判分点系统首页(老师端隐藏此功能) |
|
|
|
href = `${host}#/?systemId=${systemId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
href = `${jumpPath}#/?systemId=${systemId}&token=${this.token}&referrer=${btoa(location.href)}`; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
location.href = href; |
|
|
|
location.href = href; |
|
|
@ -667,10 +670,8 @@ export default { |
|
|
|
_this.$set(e,'name',e.name+"?") |
|
|
|
_this.$set(e,'name',e.name+"?") |
|
|
|
_this.$set(e,'name',e.name.slice(0,e.name.length-1)) // 不更新的解决方案 |
|
|
|
_this.$set(e,'name',e.name.slice(0,e.name.length-1)) // 不更新的解决方案 |
|
|
|
}) |
|
|
|
}) |
|
|
|
// console.log('处理',_this.projectJudgmentData) |
|
|
|
|
|
|
|
// 调修改接口,更新列表 |
|
|
|
// 调修改接口,更新列表 |
|
|
|
if(_this.projectId){// 如果是编辑项目,则调编辑接口 |
|
|
|
if(_this.projectId){// 如果是编辑项目,则调编辑接口 |
|
|
|
console.log('调接口') |
|
|
|
|
|
|
|
_this.updateProjectJudgment() |
|
|
|
_this.updateProjectJudgment() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -738,21 +739,12 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 重新调接口,专门赋值列表 |
|
|
|
// 重新调接口,专门赋值列表 |
|
|
|
listAgain(){ |
|
|
|
listAgain(){ |
|
|
|
this.listLoading = true |
|
|
|
|
|
|
|
let scrollTop = this.$refs.main.scrollTop |
|
|
|
|
|
|
|
this.projectJudgmentData = [] |
|
|
|
|
|
|
|
this.$refs.main.scrollTop = scrollTop |
|
|
|
|
|
|
|
this.$get(`${this.api.getProjectDetail}?projectId=${this.projectId}`).then(res => { |
|
|
|
this.$get(`${this.api.getProjectDetail}?projectId=${this.projectId}`).then(res => { |
|
|
|
let { projectManage, projectJudgmentVos } = res; |
|
|
|
let { projectManage, projectJudgmentVos } = res; |
|
|
|
projectJudgmentVos.map((e,i)=>{ |
|
|
|
|
|
|
|
this.$set(e,'sort',i+1)// 不更新 |
|
|
|
|
|
|
|
this.$set(e,'name',e.name+"?") |
|
|
|
|
|
|
|
this.$set(e,'name',e.name.slice(0,e.name.length-1)) // 不更新的解决方案 |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.projectJudgmentData = projectJudgmentVos; |
|
|
|
this.projectJudgmentData = projectJudgmentVos; |
|
|
|
this.listLoading = false |
|
|
|
this.projectJudgmentData.map((e,i)=>{ |
|
|
|
}).catch(()=>{ |
|
|
|
e.sort = i+1 |
|
|
|
this.listLoading = false |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -768,8 +760,4 @@ export default { |
|
|
|
padding: 0; |
|
|
|
padding: 0; |
|
|
|
border-bottom: 0; |
|
|
|
border-bottom: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
.main{ |
|
|
|
|
|
|
|
overflow: auto; |
|
|
|
|
|
|
|
height: calc(100vh - 152px ); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
</style> |
|
|
|
</style> |