|
|
@ -106,13 +106,13 @@ |
|
|
|
<el-table-column prop="projectName" label="项目名称" align="center"></el-table-column> |
|
|
|
<el-table-column prop="projectName" label="项目名称" align="center"></el-table-column> |
|
|
|
<el-table-column prop="auth" label="项目权限" align="center"> |
|
|
|
<el-table-column prop="auth" label="项目权限" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ permissionsKeys[scope.row.projectPermissions] }} |
|
|
|
{{ permissionsKeys[scope.row.permissions] }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<!-- <el-table-column prop="createUser" label="创建人" align="center"></el-table-column> --> |
|
|
|
<!-- <el-table-column prop="createUser" label="创建人" align="center"></el-table-column> --> |
|
|
|
<el-table-column prop="founder" label="创建人" align="center"> |
|
|
|
<el-table-column prop="founder" label="创建人" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ founderKeys[scope.row.cid] }} |
|
|
|
{{ scope.row.createUser }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="createTime" label="创建时间" align="center"></el-table-column> |
|
|
|
<el-table-column prop="createTime" label="创建时间" align="center"></el-table-column> |
|
|
@ -266,8 +266,8 @@ export default { |
|
|
|
// console.log(22,this.assFields) |
|
|
|
// console.log(22,this.assFields) |
|
|
|
this.date = [util.formatDate("yyyy-MM-dd hh:mm:ss", new Date(new Date().getTime() + 300000)), util.formatDate("yyyy-MM-dd hh:mm:ss", new Date(new Date().getTime() + 300000))]; |
|
|
|
this.date = [util.formatDate("yyyy-MM-dd hh:mm:ss", new Date(new Date().getTime() + 300000)), util.formatDate("yyyy-MM-dd hh:mm:ss", new Date(new Date().getTime() + 300000))]; |
|
|
|
this.form.id && this.getData(); |
|
|
|
this.form.id && this.getData(); |
|
|
|
this.getschoolCourse(); |
|
|
|
|
|
|
|
this.recoveryData(); |
|
|
|
this.recoveryData(); |
|
|
|
|
|
|
|
this.getschoolCourse(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
beforeDestroy() { |
|
|
|
beforeDestroy() { |
|
|
|
if (!this.isToProject) this.setAss({}); |
|
|
|
if (!this.isToProject) this.setAss({}); |
|
|
@ -377,21 +377,37 @@ export default { |
|
|
|
this.$get(this.api.schoolCourse).then(res => { |
|
|
|
this.$get(this.api.schoolCourse).then(res => { |
|
|
|
this.curriculumList = res.data; |
|
|
|
this.curriculumList = res.data; |
|
|
|
if (this.curriculumList.length) { |
|
|
|
if (this.curriculumList.length) { |
|
|
|
this.form.curriculumId = this.curriculumList[0].cid; |
|
|
|
console.log(this.form.curriculumId) |
|
|
|
for(let i=0;i<this.curriculumList.length; i++) { |
|
|
|
if (this.form.curriculumId){ |
|
|
|
this.cidList.push(this.curriculumList[i].cid) |
|
|
|
for(let i=0;i<this.curriculumList.length; i++) { |
|
|
|
|
|
|
|
if(this.curriculumList[i].cid == this.form.curriculumId){ |
|
|
|
|
|
|
|
this.getProjectData(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
this.form.curriculumId = this.curriculumList[0].cid; |
|
|
|
|
|
|
|
for(let i=0;i<this.curriculumList.length; i++) { |
|
|
|
|
|
|
|
this.cidList.push(this.curriculumList[i].cid) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.getProjectData(); |
|
|
|
} |
|
|
|
} |
|
|
|
this.getProjectData(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}).catch(err => { |
|
|
|
}).catch(err => { |
|
|
|
console.log(err); |
|
|
|
console.log(err); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
getProjectData() { |
|
|
|
getProjectData() { |
|
|
|
this.$get(`${this.api.projectListByCourseId}?cid=${this.form.curriculumId}&permissions=1&projectName=${this.keyword}`).then(res => { |
|
|
|
let data={ |
|
|
|
|
|
|
|
pageNum:this.page, |
|
|
|
|
|
|
|
pageSize:this.pageSize, |
|
|
|
|
|
|
|
cid:this.form.curriculumId, |
|
|
|
|
|
|
|
projectName:this.keyword |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.$post(this.api.projectListByCourseId,data).then(res => { |
|
|
|
|
|
|
|
console.log(res) |
|
|
|
let { status, data } = res; |
|
|
|
let { status, data } = res; |
|
|
|
if (status === 200 && data) { |
|
|
|
if (status === 200 && data.records) { |
|
|
|
let list = data; |
|
|
|
let list = data.records; |
|
|
|
let result = []; |
|
|
|
let result = []; |
|
|
|
list.map(n => { |
|
|
|
list.map(n => { |
|
|
|
n.enable || result.push(n); |
|
|
|
n.enable || result.push(n); |
|
|
@ -470,6 +486,7 @@ export default { |
|
|
|
this.$get(`${this.api.getDetailById}?id=${this.form.id}`).then(res => { |
|
|
|
this.$get(`${this.api.getDetailById}?id=${this.form.id}`).then(res => { |
|
|
|
this.form = res.data; |
|
|
|
this.form = res.data; |
|
|
|
this.formatDuration(); |
|
|
|
this.formatDuration(); |
|
|
|
|
|
|
|
this.getschoolCourse(); |
|
|
|
}).catch(err => { |
|
|
|
}).catch(err => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|