From c2a1c68a2a398e6d0f2f5854c65127efbff306b1 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期一, 28 十月 2024 11:36:38 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/class-management/Class.vue | 75 +++++++++++++++++++++++-------------- 1 files changed, 47 insertions(+), 28 deletions(-) diff --git a/src/views/class-management/Class.vue b/src/views/class-management/Class.vue index 5dffd29..d567a34 100644 --- a/src/views/class-management/Class.vue +++ b/src/views/class-management/Class.vue @@ -37,7 +37,7 @@ > <el-table-column align="center" - label="鐝骇" + label="鐝骇鍚嶇О" prop="className" width="180px" ></el-table-column> @@ -60,9 +60,9 @@ <!-- ></el-table-column>--> <el-table-column align="center" - width="100px" + width="300px" label="鏁欏笀" - prop="createUserName" + prop="teacherNamesStr" ></el-table-column> <!-- <el-table-column--> <!-- align="center"--> @@ -91,10 +91,10 @@ <el-button v-show="scope.row.status !== '瑙f暎'" size="small" @click="handlerEdit(scope.row)" type="primary">淇敼 </el-button> - <el-button v-show="scope.row.status !== '瑙f暎'" size="small" type="warning">鐝骇楠岃瘉</el-button> - <el-button v-show="scope.row.status !== '瑙f暎'" size="small" @click="handlerOpenNotify(scope.row)" - type="info">閫氱煡 - </el-button> +<!-- <el-button v-show="scope.row.status !== '瑙f暎'" size="small" type="warning">鐝骇楠岃瘉</el-button>--> +<!-- <el-button v-show="scope.row.status !== '瑙f暎'" size="small" @click="handlerOpenNotify(scope.row)"--> +<!-- type="info">閫氱煡--> +<!-- </el-button>--> <el-button v-show="scope.row.status !== '瑙f暎'" @click="studentManager(scope.row.id,scope.row.className)" size="small" type="success">鎴愬憳绠$悊 </el-button> @@ -123,25 +123,25 @@ <pagination v-show="total>0" :total="total" :page.sync="searchForm.currentPage" :limit.sync="searchForm.pageSize" @pagination="page"/> - <el-dialog - title="鐝骇閫氱煡" - :visible.sync="notifyOpen" - width="600px" - :before-close="handleNotifyClose" - :close-on-click-modal="false"> - <el-form :model="notifyForm" :rules="notifyRules" ref="notifyForm" label-width="100px" class="demo-ruleForm"> - <el-form-item label="閫氱煡鐝骇锛�" prop="className"> - <span>{{ notifyForm.className }}</span> - </el-form-item> - <el-form-item label="閫氱煡鍐呭锛�" prop="notifyContent"> - <el-input type="textarea" v-model="notifyForm.notifyContent" size="small"></el-input> - </el-form-item> - </el-form> - <span slot="footer" class="dialog-footer"> - <el-button @click="handleNotifyClose">鍙� 娑�</el-button> - <el-button type="primary" @click="submitNotifyForm">纭� 瀹�</el-button> - </span> - </el-dialog> +<!-- <el-dialog--> +<!-- title="鐝骇閫氱煡"--> +<!-- :visible.sync="notifyOpen"--> +<!-- width="600px"--> +<!-- :before-close="handleNotifyClose"--> +<!-- :close-on-click-modal="false">--> +<!-- <el-form :model="notifyForm" :rules="notifyRules" ref="notifyForm" label-width="100px" class="demo-ruleForm">--> +<!-- <el-form-item label="閫氱煡鐝骇锛�" prop="className">--> +<!-- <span>{{ notifyForm.className }}</span>--> +<!-- </el-form-item>--> +<!-- <el-form-item label="閫氱煡鍐呭锛�" prop="notifyContent">--> +<!-- <el-input type="textarea" v-model="notifyForm.notifyContent" size="small"></el-input>--> +<!-- </el-form-item>--> +<!-- </el-form>--> +<!-- <span slot="footer" class="dialog-footer">--> +<!-- <el-button @click="handleNotifyClose">鍙� 娑�</el-button>--> +<!-- <el-button type="primary" @click="submitNotifyForm">纭� 瀹�</el-button>--> +<!-- </span>--> +<!-- </el-dialog>--> <el-dialog :title="title" @@ -152,6 +152,16 @@ <el-form :model="form" :rules="rules" ref="form" label-width="100px" class="demo-ruleForm"> <el-form-item label="鐝骇鍚嶇О" prop="className"> <el-input v-model="form.className" size="small"></el-input> + </el-form-item> + <el-form-item label="鑰佸笀閰嶇疆" prop="teacherList"> + <el-select v-model="form.teacherList" multiple clearable size="small" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in teacherList" + :key="item.id" + :label="item.realName" + :value="item.id"> + </el-option> + </el-select> </el-form-item> <el-form-item label="鐝骇鏃堕棿" required> <el-col :span="11"> @@ -191,7 +201,7 @@ </template> <script> -import { addClasses, editClasses, getClassess, dissolution, recover } from '@/api/classes' +import { addClasses, editClasses, getClassess, dissolution, recover, getTeacherList } from '@/api/classes' import { addClassesNotify } from '@/api/classesNotify' import Pagination from '@/components/Pagination' @@ -199,6 +209,7 @@ components: { Pagination }, data () { return { + teacherList: [], notifyOpen: false, notifyForm: { className: '', @@ -220,6 +231,7 @@ form: { id: null, className: '', + teacherList: [], status: '', verifyStatus: '', startTime: null, @@ -248,6 +260,11 @@ } }, methods: { + getTeacherList () { + getTeacherList().then(res => { + this.teacherList = res.data.data + }) + }, handlerOpenNotify (row) { this.notifyOpen = true this.notifyForm.className = row.className @@ -286,6 +303,7 @@ this.form = { id: null, className: '', + teacherList: [], status: '', verifyStatus: '', startTime: null, @@ -362,7 +380,8 @@ }, created () { this.page() - }, + this.getTeacherList() + } } </script> -- Gitblit v1.8.0