|
|
|
@ -106,13 +106,13 @@ |
|
|
|
|
<el-table-column prop="projectName" label="项目名称" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="auth" label="项目权限" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ permissionsKeys[scope.row.projectPermissions] }} |
|
|
|
|
{{ permissionsKeys[scope.row.permissions] }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<!-- <el-table-column prop="createUser" label="创建人" align="center"></el-table-column> --> |
|
|
|
|
<el-table-column prop="founder" label="创建人" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ founderKeys[scope.row.cid] }} |
|
|
|
|
{{ scope.row.createUser }} |
|
|
|
|
</template> |
|
|
|
|
</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) |
|
|
|
|
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.getschoolCourse(); |
|
|
|
|
this.recoveryData(); |
|
|
|
|
this.getschoolCourse(); |
|
|
|
|
}, |
|
|
|
|
beforeDestroy() { |
|
|
|
|
if (!this.isToProject) this.setAss({}); |
|
|
|
@ -377,21 +377,37 @@ export default { |
|
|
|
|
this.$get(this.api.schoolCourse).then(res => { |
|
|
|
|
this.curriculumList = res.data; |
|
|
|
|
if (this.curriculumList.length) { |
|
|
|
|
console.log(this.form.curriculumId) |
|
|
|
|
if (this.form.curriculumId){ |
|
|
|
|
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(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}).catch(err => { |
|
|
|
|
console.log(err); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
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; |
|
|
|
|
if (status === 200 && data) { |
|
|
|
|
let list = data; |
|
|
|
|
if (status === 200 && data.records) { |
|
|
|
|
let list = data.records; |
|
|
|
|
let result = []; |
|
|
|
|
list.map(n => { |
|
|
|
|
n.enable || result.push(n); |
|
|
|
@ -470,6 +486,7 @@ export default { |
|
|
|
|
this.$get(`${this.api.getDetailById}?id=${this.form.id}`).then(res => { |
|
|
|
|
this.form = res.data; |
|
|
|
|
this.formatDuration(); |
|
|
|
|
this.getschoolCourse(); |
|
|
|
|
}).catch(err => { |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|