|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
<template> |
|
|
|
|
<div> |
|
|
|
|
<div ref="main" class="main"> |
|
|
|
|
<el-form :disabled="isDetail"> |
|
|
|
|
<el-card shadow="hover" class="m-b-20"> |
|
|
|
|
<div class="flex-between"> |
|
|
|
@ -92,6 +92,7 @@ |
|
|
|
|
header-align="center" |
|
|
|
|
@selection-change="handleSelectionProjectJudgment" |
|
|
|
|
row-key="judgmentId" |
|
|
|
|
v-loading="listLoading" |
|
|
|
|
> |
|
|
|
|
<el-table-column type="selection" width="55" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="sort" label="序号" width="80" align="center"> |
|
|
|
@ -226,6 +227,7 @@ export default { |
|
|
|
|
searchTimer: null, |
|
|
|
|
isToPoint: false, // 判断是否是跳转到判分点系统 |
|
|
|
|
visibleLoading:false,// 加载弹框 |
|
|
|
|
listLoading:false,// 列表加载 |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
@ -245,17 +247,16 @@ export default { |
|
|
|
|
// util.warningMsg(res.message); |
|
|
|
|
util.errorMsg("分配的数值已超过100"); |
|
|
|
|
} |
|
|
|
|
console.log('chuli') |
|
|
|
|
return score; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
|
projectJudgmentData: { |
|
|
|
|
handler(newValue) { |
|
|
|
|
console.log("newValue:", newValue); |
|
|
|
|
}, |
|
|
|
|
deep: true |
|
|
|
|
}, |
|
|
|
|
// projectJudgmentData: { |
|
|
|
|
// handler(newValue) { |
|
|
|
|
// console.log("newValue:", newValue); |
|
|
|
|
// }, |
|
|
|
|
// deep: true |
|
|
|
|
// }, |
|
|
|
|
judgementpointsquery(n) { |
|
|
|
|
clearTimeout(this.searchTimer); |
|
|
|
|
this.searchTimer = setTimeout(() => { |
|
|
|
@ -264,7 +265,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
console.log(this.projectManage.systemId, "this.projectManage.systemId", this.lastSystemId); |
|
|
|
|
// console.log(this.projectManage.systemId, "this.projectManage.systemId", this.lastSystemId); |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
if (this.$route.query.projectId) { |
|
|
|
@ -666,8 +667,10 @@ export default { |
|
|
|
|
_this.$set(e,'name',e.name+"?") |
|
|
|
|
_this.$set(e,'name',e.name.slice(0,e.name.length-1)) // 不更新的解决方案 |
|
|
|
|
}) |
|
|
|
|
// console.log('处理',_this.projectJudgmentData) |
|
|
|
|
// 调修改接口,更新列表 |
|
|
|
|
if(_this.projectId){// 如果是编辑项目,则调编辑接口 |
|
|
|
|
console.log('调接口') |
|
|
|
|
_this.updateProjectJudgment() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -735,12 +738,21 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 重新调接口,专门赋值列表 |
|
|
|
|
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 => { |
|
|
|
|
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.map((e,i)=>{ |
|
|
|
|
e.sort = i+1 |
|
|
|
|
}) |
|
|
|
|
this.listLoading = false |
|
|
|
|
}).catch(()=>{ |
|
|
|
|
this.listLoading = false |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -756,4 +768,8 @@ export default { |
|
|
|
|
padding: 0; |
|
|
|
|
border-bottom: 0; |
|
|
|
|
} |
|
|
|
|
.main{ |
|
|
|
|
overflow: auto; |
|
|
|
|
height: calc(100vh - 152px ); |
|
|
|
|
} |
|
|
|
|
</style> |