|
|
@ -106,13 +106,13 @@ |
|
|
|
@selection-change="handleSelectionPractice"> |
|
|
|
@selection-change="handleSelectionPractice"> |
|
|
|
<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 type="index" width="100" label="序号" align="center"></el-table-column> |
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"></el-table-column> |
|
|
|
<el-table-column prop="projectName" label="项目名称" align="center"></el-table-column> |
|
|
|
<el-table-column prop="projectName" label="项目名称" align="center"> |
|
|
|
<el-table-column prop="remark" label="备注名称" align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="applicationName" label="系统名称" align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.applicationName || systemAll.find(e => e.systemId == scope.row.systemId).systemName }} |
|
|
|
{{ scope.row.projectName || scope.row.paperName }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="remark" label="备注名称" align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="systemName" label="系统名称" align="center"></el-table-column> |
|
|
|
<el-table-column label="排序" align="center" width="100"> |
|
|
|
<el-table-column label="排序" align="center" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input v-model.trim="scope.row.sort" |
|
|
|
<el-input v-model.trim="scope.row.sort" |
|
|
@ -156,13 +156,13 @@ |
|
|
|
@selection-change="handleSelectionAssessment"> |
|
|
|
@selection-change="handleSelectionAssessment"> |
|
|
|
<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 type="index" width="100" label="序号" align="center"></el-table-column> |
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"></el-table-column> |
|
|
|
<el-table-column prop="projectName" label="项目名称" align="center"></el-table-column> |
|
|
|
<el-table-column prop="projectName" label="项目名称" align="center"> |
|
|
|
<el-table-column prop="remark" label="备注名称" align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="applicationName" label="系统名称" align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.applicationName || systemAll.find(e => e.systemId == scope.row.systemId).systemName }} |
|
|
|
{{ scope.row.projectName || scope.row.paperName }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="remark" label="备注名称" align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="systemName" label="系统名称" align="center"></el-table-column> |
|
|
|
<el-table-column label="排序" align="center" width="100"> |
|
|
|
<el-table-column label="排序" align="center" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input v-model.trim="scope.row.sort" |
|
|
|
<el-input v-model.trim="scope.row.sort" |
|
|
@ -205,12 +205,12 @@ |
|
|
|
@selection-change="handleSelectionMatch"> |
|
|
|
@selection-change="handleSelectionMatch"> |
|
|
|
<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 type="index" width="100" label="序号" align="center"></el-table-column> |
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"></el-table-column> |
|
|
|
<el-table-column prop="projectName" label="项目名称" align="center"></el-table-column> |
|
|
|
<el-table-column prop="projectName" label="项目名称" align="center"> |
|
|
|
<el-table-column prop="applicationName" label="系统名称" align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.applicationName || systemAll.find(e => e.systemId == scope.row.systemId).systemName }} |
|
|
|
{{ scope.row.projectName || scope.row.paperName }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="systemName" label="系统名称" align="center"></el-table-column> |
|
|
|
<el-table-column label="排序" align="center" width="100"> |
|
|
|
<el-table-column label="排序" align="center" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input v-model.trim="scope.row.sort" |
|
|
|
<el-input v-model.trim="scope.row.sort" |
|
|
@ -272,7 +272,7 @@ |
|
|
|
@change="val => checkAllChange(val, projects[0].systemId)"></el-checkbox> |
|
|
|
@change="val => checkAllChange(val, projects[0].systemId)"></el-checkbox> |
|
|
|
<li v-for="(item, i) in projects" :key="i" :title="item.projectName"> |
|
|
|
<li v-for="(item, i) in projects" :key="i" :title="item.projectName"> |
|
|
|
<el-checkbox v-model="item.check" |
|
|
|
<el-checkbox v-model="item.check" |
|
|
|
:label="item.remark ? item.remark + '(' + item.projectName + ')' : item.projectName" |
|
|
|
:label="item.remark ? item.remark + '(' + item.projectName + ')' : (item.projectName || item.paperName)" |
|
|
|
@change="val => projectChange(val, item)"></el-checkbox> |
|
|
|
@change="val => projectChange(val, item)"></el-checkbox> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
@ -287,18 +287,18 @@ |
|
|
|
v-model.trim="checkedKeyword" clearable></el-input> |
|
|
|
v-model.trim="checkedKeyword" clearable></el-input> |
|
|
|
<el-table :data="checkeds" class="table" stripe header-align="center" max-height="470"> |
|
|
|
<el-table :data="checkeds" class="table" stripe header-align="center" max-height="470"> |
|
|
|
<el-table-column type="index" width="55" label="序号" align="center"></el-table-column> |
|
|
|
<el-table-column type="index" width="55" label="序号" align="center"></el-table-column> |
|
|
|
<el-table-column prop="applicationName" label="系统名称" align="center"> |
|
|
|
<el-table-column prop="systemName" label="系统名称" align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="projectName" width="80" label="系统类型" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.applicationName || systemAll.find(e => e.systemId == scope.row.systemId).systemName }} |
|
|
|
{{ scope.row.type === 1 ? '流程类' : scope.row.type === 3 ? '理论' : '编程类' }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="projectName" width="80" label="系统类型" align="center"> |
|
|
|
<el-table-column prop="remark" label="备注名称" align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="projectName" label="项目名称" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.type ? '流程类' : '编程类' }} |
|
|
|
{{ scope.row.projectName || scope.row.paperName }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="remark" label="备注名称" align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="projectName" label="项目名称" align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="操作" align="center" width="55"> |
|
|
|
<el-table-column label="操作" align="center" width="55"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<i :class="['el-icon-delete rm', { disabled: scope.row.disabled }]" |
|
|
|
<i :class="['el-icon-delete rm', { disabled: scope.row.disabled }]" |
|
|
@ -671,8 +671,8 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 项目选择回调 |
|
|
|
// 项目选择回调 |
|
|
|
projectChange (val, item) { |
|
|
|
projectChange (val, item) { |
|
|
|
const { systemId } = item |
|
|
|
const { systemId, paperId } = item |
|
|
|
const i = this.checkeds.findIndex(e => e.projectId == item.projectId && e.systemId == systemId) |
|
|
|
const i = this.checkeds.findIndex(e => (e.projectId == item.projectId && e.systemId == systemId) || e.paperId == paperId) |
|
|
|
// 选中,则push,否则移除 |
|
|
|
// 选中,则push,否则移除 |
|
|
|
if (val) { |
|
|
|
if (val) { |
|
|
|
this.checkeds.push(item) |
|
|
|
this.checkeds.push(item) |
|
|
@ -822,7 +822,8 @@ export default { |
|
|
|
form.systemIdByPractice = this.practiceData.map(i => { |
|
|
|
form.systemIdByPractice = this.practiceData.map(i => { |
|
|
|
let obj = { |
|
|
|
let obj = { |
|
|
|
isShow: i.isShow, |
|
|
|
isShow: i.isShow, |
|
|
|
projectId: i.projectId, |
|
|
|
projectId: i.projectId || '', |
|
|
|
|
|
|
|
paperId: i.paperId || '', |
|
|
|
sort: Number(i.sort), |
|
|
|
sort: Number(i.sort), |
|
|
|
systemId: i.systemId |
|
|
|
systemId: i.systemId |
|
|
|
}; |
|
|
|
}; |
|
|
@ -838,6 +839,7 @@ export default { |
|
|
|
let obj = { |
|
|
|
let obj = { |
|
|
|
isShow: i.isShow, |
|
|
|
isShow: i.isShow, |
|
|
|
projectId: i.projectId, |
|
|
|
projectId: i.projectId, |
|
|
|
|
|
|
|
paperId: i.paperId || '', |
|
|
|
sort: Number(i.sort), |
|
|
|
sort: Number(i.sort), |
|
|
|
systemId: i.systemId |
|
|
|
systemId: i.systemId |
|
|
|
}; |
|
|
|
}; |
|
|
@ -850,6 +852,7 @@ export default { |
|
|
|
let obj = { |
|
|
|
let obj = { |
|
|
|
isShow: i.isShow, |
|
|
|
isShow: i.isShow, |
|
|
|
projectId: i.projectId, |
|
|
|
projectId: i.projectId, |
|
|
|
|
|
|
|
paperId: i.paperId || '', |
|
|
|
sort: Number(i.sort), |
|
|
|
sort: Number(i.sort), |
|
|
|
systemId: i.systemId |
|
|
|
systemId: i.systemId |
|
|
|
}; |
|
|
|
}; |
|
|
@ -864,6 +867,7 @@ export default { |
|
|
|
spinner: 'el-icon-loading', |
|
|
|
spinner: 'el-icon-loading', |
|
|
|
background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
debugger |
|
|
|
if (form.cid) { |
|
|
|
if (form.cid) { |
|
|
|
this.$post(this.api.modifyCourse, form).then((res) => { |
|
|
|
this.$post(this.api.modifyCourse, form).then((res) => { |
|
|
|
this.$message.success("编辑成功"); |
|
|
|
this.$message.success("编辑成功"); |
|
|
|