|
|
@ -235,7 +235,8 @@ |
|
|
|
<div v-if="item.systemInfo" class="children"> |
|
|
|
<div v-if="item.systemInfo" class="children"> |
|
|
|
<div v-for="(system, j) in item.systemInfo" :key="j" :title="system.label" class="line"> |
|
|
|
<div v-for="(system, j) in item.systemInfo" :key="j" :title="system.label" class="line"> |
|
|
|
<el-checkbox v-model="system.check" @change="val => systemChange(val, system, item)"></el-checkbox> |
|
|
|
<el-checkbox v-model="system.check" @change="val => systemChange(val, system, item)"></el-checkbox> |
|
|
|
<div :class="['name', { active: curSystem == system.systemId }]" @click="getProject(item, system)"> |
|
|
|
<div :class="['name', { active: curCourse == item.cid && curSystem == system.systemId }]" |
|
|
|
|
|
|
|
@click="getProject(item, system)"> |
|
|
|
<span>{{ system.systemName }}</span> |
|
|
|
<span>{{ system.systemName }}</span> |
|
|
|
<i class="el-icon-arrow-right"></i> |
|
|
|
<i class="el-icon-arrow-right"></i> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -386,6 +387,7 @@ export default { |
|
|
|
systemChecked: [], |
|
|
|
systemChecked: [], |
|
|
|
curCourse: '', |
|
|
|
curCourse: '', |
|
|
|
curSystem: '', |
|
|
|
curSystem: '', |
|
|
|
|
|
|
|
curSystemIds: '', |
|
|
|
projects: [], |
|
|
|
projects: [], |
|
|
|
projectKeyword: '', |
|
|
|
projectKeyword: '', |
|
|
|
checkedKeyword: '', |
|
|
|
checkedKeyword: '', |
|
|
@ -583,16 +585,20 @@ export default { |
|
|
|
async getProject (item, system) { |
|
|
|
async getProject (item, system) { |
|
|
|
const checked = this.checkeds |
|
|
|
const checked = this.checkeds |
|
|
|
if (system) { |
|
|
|
if (system) { |
|
|
|
|
|
|
|
this.curCourse = item.cid |
|
|
|
this.curSystem = +system.systemId |
|
|
|
this.curSystem = +system.systemId |
|
|
|
|
|
|
|
this.curSystemIds = '' |
|
|
|
} else if (item) { |
|
|
|
} else if (item) { |
|
|
|
this.curCourse = item.cid |
|
|
|
this.curCourse = item.cid |
|
|
|
|
|
|
|
this.curSystem = '' |
|
|
|
|
|
|
|
this.curSystemIds = item.systemInfo ? item.systemInfo.map(e => e.systemId).join() : '' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const res = await this.$post(this.api.configureCourseProjectBySchool, { |
|
|
|
const res = await this.$post(this.api.configureCourseProjectBySchool, { |
|
|
|
projectName: this.projectKeyword, |
|
|
|
projectName: this.projectKeyword, |
|
|
|
permissions: this.permissions, |
|
|
|
permissions: this.permissions, |
|
|
|
cid: item.cid, |
|
|
|
cid: this.curCourse, |
|
|
|
systemId: system ? system.systemId : item.systemInfo.map(e => e.systemId).join(), |
|
|
|
systemId: this.curSystem || this.curSystemIds, |
|
|
|
}) |
|
|
|
}) |
|
|
|
const list = res.projectManages |
|
|
|
const list = res.projectManages |
|
|
|
list.map(e => { |
|
|
|
list.map(e => { |
|
|
@ -723,11 +729,11 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleBatchDelete (type) { // 批量移除 |
|
|
|
handleBatchDelete (type) { // 批量移除 |
|
|
|
if (type == 1 && !this.multipleAssessment.length) { |
|
|
|
if (type == 1 && !this.multipleAssessment.length) { |
|
|
|
this.$message.warning("请勾选考核项目!"); |
|
|
|
this.$message.warning("请勾选考核项目!") |
|
|
|
return; |
|
|
|
return |
|
|
|
} else if (!type && !this.multiplePractice.length) { |
|
|
|
} else if (!type && !this.multiplePractice.length) { |
|
|
|
this.$message.warning("请勾选练习项目!"); |
|
|
|
this.$message.warning("请勾选练习项目!") |
|
|
|
return; |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
this.$confirm("此操作将批量移除项目, 是否继续?", "提示", { |
|
|
|
this.$confirm("此操作将批量移除项目, 是否继续?", "提示", { |
|
|
|
type: "warning" |
|
|
|
type: "warning" |
|
|
@ -737,7 +743,7 @@ export default { |
|
|
|
let tempArr = []; |
|
|
|
let tempArr = []; |
|
|
|
for (let i = 0; i < this.assessmentData.length; i++) { |
|
|
|
for (let i = 0; i < this.assessmentData.length; i++) { |
|
|
|
if (!ids.includes(this.assessmentData[i].projectId)) { |
|
|
|
if (!ids.includes(this.assessmentData[i].projectId)) { |
|
|
|
tempArr.push(this.assessmentData[i]); |
|
|
|
tempArr.push(this.assessmentData[i]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
this.assessmentData = tempArr; |
|
|
|
this.assessmentData = tempArr; |
|
|
@ -746,28 +752,28 @@ export default { |
|
|
|
let tempArr = []; |
|
|
|
let tempArr = []; |
|
|
|
for (let i = 0; i < this.practiceData.length; i++) { |
|
|
|
for (let i = 0; i < this.practiceData.length; i++) { |
|
|
|
if (!ids.includes(this.practiceData[i].projectId)) { |
|
|
|
if (!ids.includes(this.practiceData[i].projectId)) { |
|
|
|
tempArr.push(this.practiceData[i]); |
|
|
|
tempArr.push(this.practiceData[i]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
this.practiceData = tempArr; |
|
|
|
this.practiceData = tempArr; |
|
|
|
} |
|
|
|
} |
|
|
|
this.$message.success("批量移除成功"); |
|
|
|
this.$message.success("批量移除成功") |
|
|
|
}).catch(() => { |
|
|
|
}).catch(() => { |
|
|
|
this.$message.info("已取消批量移除"); |
|
|
|
this.$message.info("已取消批量移除") |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleDelete (index, data) { // 移除 |
|
|
|
handleDelete (index, data) { // 移除 |
|
|
|
this.$confirm("此操作将移除该项目, 是否继续?", "提示", { |
|
|
|
this.$confirm("此操作将移除该项目, 是否继续?", "提示", { |
|
|
|
type: "warning" |
|
|
|
type: "warning" |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
data.splice(index, 1); |
|
|
|
data.splice(index, 1) |
|
|
|
this.$message.success("移除成功"); |
|
|
|
this.$message.success("移除成功") |
|
|
|
}).catch(() => { |
|
|
|
}).catch(() => { |
|
|
|
this.$message.info("已取消移除"); |
|
|
|
this.$message.info("已取消移除") |
|
|
|
}); |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
practiceSortChange (row, index) { // 处理排序 |
|
|
|
practiceSortChange (row, index) { // 处理排序 |
|
|
|
this.practiceData.splice(index, 1, row); |
|
|
|
this.practiceData.splice(index, 1, row) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 上一步 |
|
|
|
// 上一步 |
|
|
|