|
|
@ -80,7 +80,7 @@ |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="模式" align="center"> |
|
|
|
<el-table-column label="模式" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{patternList.find(n => n.value === scope.row.pattern).label}} |
|
|
|
{{(scope.row.pattern == 1 || scope.row.pattern == 0) ? patternList.find(n => n.value === scope.row.pattern).label : ''}} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="creationTime" label="创建时间" align="center"> |
|
|
|
<el-table-column prop="creationTime" label="创建时间" align="center"> |
|
|
@ -94,7 +94,7 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="text" v-auth @click="edit(scope.row)" v-if="roleId == 1 || (roleId == 13 && scope.row.founder != '超级管理员') || (roleId == 14 && scope.row.founder == '老师')">编辑</el-button> |
|
|
|
<el-button type="text" v-auth @click="edit(scope.row)" v-if="roleId == 1 || (roleId == 13 && scope.row.founder != '超级管理员') || (roleId == 14 && scope.row.founder == '老师')">编辑</el-button> |
|
|
|
<el-button type="text" v-auth @click="delData(scope.row)" v-if="roleId == 1 || (roleId == 13 && scope.row.founder != '超级管理员') || (roleId == 14 && scope.row.founder == '老师')">删除</el-button> |
|
|
|
<el-button type="text" v-auth @click="delData(scope.row)" v-if="roleId == 1 || (roleId == 13 && scope.row.founder != '超级管理员') || (roleId == 14 && scope.row.founder == '老师')">删除</el-button> |
|
|
|
<!-- <el-button type="text" @click="copyData(scope.row)">复制</el-button> --> |
|
|
|
<el-button type="text" @click="copyData(scope.row)">复制</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
@ -318,7 +318,8 @@ export default { |
|
|
|
systemId: row.systemId, |
|
|
|
systemId: row.systemId, |
|
|
|
userId: row.userId, |
|
|
|
userId: row.userId, |
|
|
|
knowledgePoints: row.knowledgePoints, |
|
|
|
knowledgePoints: row.knowledgePoints, |
|
|
|
experimentIntroduction: row.experimentIntroduction |
|
|
|
experimentIntroduction: row.experimentIntroduction, |
|
|
|
|
|
|
|
pattern: row.pattern |
|
|
|
} |
|
|
|
} |
|
|
|
this.currentRow.founder = row.founder |
|
|
|
this.currentRow.founder = row.founder |
|
|
|
this.projectName = row.projectName |
|
|
|
this.projectName = row.projectName |
|
|
@ -345,6 +346,7 @@ export default { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
copySubmit(){ |
|
|
|
copySubmit(){ |
|
|
|
|
|
|
|
// return console.log(11,this.projectNameRepeat) |
|
|
|
if(!this.projectName.length) return this.$message.warning('请填写项目名称') |
|
|
|
if(!this.projectName.length) return this.$message.warning('请填写项目名称') |
|
|
|
if(this.projectNameRepeat) return this.$message.warning('该项目名称已存在') |
|
|
|
if(this.projectNameRepeat) return this.$message.warning('该项目名称已存在') |
|
|
|
let data = this.currentRow |
|
|
|
let data = this.currentRow |
|
|
|