From f2e3affd102f6cd98448ef70c12ee3ca81afc659 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期四, 04 七月 2024 17:57:01 +0800 Subject: [PATCH] Merge branch 'master' into dev --- src/views/class-management/ClassStaff.vue | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/views/class-management/ClassStaff.vue b/src/views/class-management/ClassStaff.vue index 2e20b1b..88caf31 100644 --- a/src/views/class-management/ClassStaff.vue +++ b/src/views/class-management/ClassStaff.vue @@ -59,9 +59,8 @@ width="300px" > <template slot-scope="scope"> - <el-button @click="handlerEditStudent(scope.row)" type="warning">缂栬緫</el-button> - <el-button @click="remove(scope.row.id)" type="danger">鍒犻櫎</el-button> - <el-button type="primary">鍒嗛厤瑙掕壊</el-button> + <el-button @click="handlerEditStudent(scope.row)" type="warning" size="small">缂栬緫</el-button> + <el-button @click="remove(scope.row.id)" type="danger" size="small">鍒犻櫎</el-button> </template> </el-table-column> </el-table> @@ -84,8 +83,8 @@ </el-form-item> <el-form-item label="鎬у埆" prop="sex"> <el-select v-model="studentForm.sex"> - <el-option label="鐢�" value="N"></el-option> - <el-option label="濂�" value="V"></el-option> + <el-option label="鐢�" :value="1"></el-option> + <el-option label="濂�" :value="2"></el-option> </el-select> </el-form-item> <el-form-item label="鐢佃瘽" prop="phone"> @@ -142,7 +141,7 @@ return { studentForm: { realName: '', - sex: '', + sex: 1, phone: '', age: null, account: '', @@ -206,7 +205,7 @@ submitStudentForm () { this.$refs['studentForm'].validate((valid) => { if (valid) { - this.studentForm.classes = this.classes.id + this.studentForm.classesId = this.classes.id if (this.studentForm.id) { edit(this.studentForm).then(res => { this.addOpen = false -- Gitblit v1.8.0