班级等修复

master
yujialong 4 years ago
parent f12c8ffbf3
commit ff8accf631
  1. 2
      src/components/common/Sidebar.vue
  2. 1
      src/components/page/AddAssessment.vue
  3. 1
      src/components/page/AddMatch.vue
  4. 5
      src/components/page/Dashboard.vue

@ -106,7 +106,7 @@ export default {
], ],
menus: [], menus: [],
actives: { actives: {
dashboard: ['classinfo'], dashboard: ['classinfo','classExperimentAss'],
assessment: ['addAssessment'], assessment: ['addAssessment'],
achievement: ['experiment','experimentVir','experimentTeach','experimentAss','addexperiment','showExperiment'], achievement: ['experiment','experimentVir','experimentTeach','experimentAss','addexperiment','showExperiment'],
project: ['addproject','program','programOptions'], project: ['addproject','program','programOptions'],

@ -220,6 +220,7 @@ export default {
data.pageNo = this.pageNo data.pageNo = this.pageNo
data.pageSize = this.pageSize data.pageSize = this.pageSize
data.projectName = '' data.projectName = ''
data.projectPermissions = 2
this.$get(this.api.queryAllManagements,data).then(res => { this.$get(this.api.queryAllManagements,data).then(res => {
this.projectData = res.pageInfo.list this.projectData = res.pageInfo.list
this.totals = res.pageInfo.total this.totals = res.pageInfo.total

@ -215,6 +215,7 @@ export default {
data.pageNo = this.pageNo data.pageNo = this.pageNo
data.pageSize = this.pageSize data.pageSize = this.pageSize
data.projectName = '' data.projectName = ''
data.projectPermissions = 1
this.$get(this.api.queryAllManagements,data).then(res => { this.$get(this.api.queryAllManagements,data).then(res => {
this.projectData = res.pageInfo.list this.projectData = res.pageInfo.list
this.totals = res.pageInfo.total this.totals = res.pageInfo.total

@ -91,7 +91,7 @@
</el-row> </el-row>
</el-card> </el-card>
<!-- 添加编辑班级 --> <!-- 添加编辑班级 -->
<el-dialog :title="classId ? '编辑班级' : '添加班级'" :visible.sync="classVisible" class="classDialog" width="30%" center> <el-dialog :title="classId ? '编辑班级' : '添加班级'" :visible.sync="classVisible" class="classDialog" width="30%" center @close="closeDia">
<el-form :model="classForm" :rules="classRules" ref="classForm" label-width="120px"> <el-form :model="classForm" :rules="classRules" ref="classForm" label-width="120px">
<el-form-item label="教学班级名称" prop="className"> <el-form-item label="教学班级名称" prop="className">
<el-input placeholder="请输入教学班级名称" v-model="classForm.className" autocomplete="off"></el-input> <el-input placeholder="请输入教学班级名称" v-model="classForm.className" autocomplete="off"></el-input>
@ -328,6 +328,9 @@ export default {
} }
}) })
}, },
closeDia(){
this.$refs.classForm.clearValidate()
},
toEdit(item){ toEdit(item){
this.$router.push({ this.$router.push({
path: '/classinfo', path: '/classinfo',

Loading…
Cancel
Save