|
|
@ -102,7 +102,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-button :disabled="isDetail" type="primary" icon="el-icon-plus" round |
|
|
|
<el-button :disabled="isDetail" type="primary" icon="el-icon-plus" round |
|
|
|
@click="handleQueryJudgment" style="margin-bottom: 10px">判分点 |
|
|
|
@click="handleAddJudgment" style="margin-bottom: 10px">判分点 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
<el-button :disabled="isDetail" type="primary" icon="el-icon-delete" round |
|
|
|
<el-button :disabled="isDetail" type="primary" icon="el-icon-delete" round |
|
|
|
@click="batchDeleteProjectJudgment" style="margin-bottom: 10px">批量删除 |
|
|
|
@click="batchDeleteProjectJudgment" style="margin-bottom: 10px">批量删除 |
|
|
@ -116,6 +116,7 @@ |
|
|
|
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"> |
|
|
@ -178,7 +179,7 @@ |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
|
<!--选择判分点对话框--> |
|
|
|
<!--选择判分点对话框--> |
|
|
|
<el-dialog title="添加判分点" :visible.sync="dialogVisible" width="40%" :close-on-click-modal="false"> |
|
|
|
<el-dialog title="添加判分点" :visible.sync="dialogVisible" width="40%" :close-on-click-modal="false" @close="closeJudgment"> |
|
|
|
<div class="text-right mgb10"> |
|
|
|
<div class="text-right mgb10"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-input placeholder="请输入需要查找的判分点" prefix-icon="el-icon-search" v-model.trim="judgementpointsquery" clearable></el-input> |
|
|
|
<el-input placeholder="请输入需要查找的判分点" prefix-icon="el-icon-search" v-model.trim="judgementpointsquery" clearable></el-input> |
|
|
@ -210,8 +211,8 @@ |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button> |
|
|
|
<el-button @click="closeJudgment">取 消</el-button> |
|
|
|
<el-button type="primary" @click="addJudgment">确 定</el-button> |
|
|
|
<el-button type="primary" @click="saveJudgment">确 定</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -260,7 +261,8 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
searchTimer: null, |
|
|
|
searchTimer: null, |
|
|
|
isToPoint: false, // 判断是否是跳转到判分点系统 |
|
|
|
isToPoint: false, // 判断是否是跳转到判分点系统 |
|
|
|
visibleLoading: false// 加载判分点数据 |
|
|
|
visibleLoading: false, // 加载判分点数据 |
|
|
|
|
|
|
|
listLoading:false,// 列表加载 |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
@ -286,12 +288,12 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
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(() => { |
|
|
@ -300,7 +302,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
created() { |
|
|
|
console.log(this.projectManage.systemId, "this.projectManage.systemId", this.lastSystemId); |
|
|
|
// console.log(this.projectManage.systemId, "this.projectManage.systemId", this.lastSystemId); |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
if (this.$route.query.projectId) { |
|
|
|
if (this.$route.query.projectId) { |
|
|
@ -539,9 +541,12 @@ export default { |
|
|
|
this.$message.warning("请选择判分点"); |
|
|
|
this.$message.warning("请选择判分点"); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
handleAddJudgment() { // 处理添加判分点 |
|
|
|
|
|
|
|
this.dialogVisible = true; |
|
|
|
|
|
|
|
this.handleQueryJudgment(); |
|
|
|
|
|
|
|
}, |
|
|
|
handleQueryJudgment() { // 查询判分点数据 |
|
|
|
handleQueryJudgment() { // 查询判分点数据 |
|
|
|
let { systemId } = this.projectManage; |
|
|
|
let { systemId } = this.projectManage; |
|
|
|
this.dialogVisible = true; |
|
|
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.judgementTable.clearSelection(); |
|
|
|
this.$refs.judgementTable.clearSelection(); |
|
|
|
}); |
|
|
|
}); |
|
|
@ -600,8 +605,13 @@ export default { |
|
|
|
handleSelectionJudgment(val) { // 处理多选判分点 |
|
|
|
handleSelectionJudgment(val) { // 处理多选判分点 |
|
|
|
this.selectedJudgment = val; |
|
|
|
this.selectedJudgment = val; |
|
|
|
}, |
|
|
|
}, |
|
|
|
addJudgment() { // 确认选择判分点 |
|
|
|
closeJudgment() { // 关闭判分点对话框 |
|
|
|
|
|
|
|
this.judgementpointsquery = ""; |
|
|
|
|
|
|
|
this.dialogVisible = false; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
saveJudgment() { // 确认选择判分点 |
|
|
|
if (this.selectedJudgment.length) { |
|
|
|
if (this.selectedJudgment.length) { |
|
|
|
|
|
|
|
this.judgementpointsquery = ""; |
|
|
|
this.dialogVisible = false; |
|
|
|
this.dialogVisible = false; |
|
|
|
if (this.projectId) { // 编辑的时候,新增调接口 |
|
|
|
if (this.projectId) { // 编辑的时候,新增调接口 |
|
|
|
this.addProjectJudgment(); |
|
|
|
this.addProjectJudgment(); |
|
|
@ -710,13 +720,22 @@ 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; |
|
|
|
this.projectJudgmentData = projectJudgmentVos; |
|
|
|
projectJudgmentVos.map((e,i)=>{ |
|
|
|
this.projectJudgmentData.map((e, i) => { |
|
|
|
this.$set(e,'sort',i+1)// 不更新 |
|
|
|
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.listLoading = false |
|
|
|
|
|
|
|
}).catch(()=>{ |
|
|
|
|
|
|
|
this.listLoading = false |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleCacheData() { // 处理缓存数据 |
|
|
|
handleCacheData() { // 处理缓存数据 |
|
|
|
this.isToPoint = true; |
|
|
|
this.isToPoint = true; |
|
|
|