From b66dc32f331b455ed1135235bbce14fc84a2f6fe Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期三, 26 六月 2024 16:56:20 +0800 Subject: [PATCH] 阅卷前端样式 --- src/views/train/index.vue | 34 ++++++++++++++++++++++++++++++---- 1 files changed, 30 insertions(+), 4 deletions(-) diff --git a/src/views/train/index.vue b/src/views/train/index.vue index 6e982e3..9a574a4 100644 --- a/src/views/train/index.vue +++ b/src/views/train/index.vue @@ -26,7 +26,7 @@ <div class="card-main flex-1 my-5 relative"> <div class="main-content absolute top-0 bottom-0 left-0 right-0"> - <DataList :tableData="tableData" @handleUpdate="handleUpdate" @remove = "remove"></DataList> + <DataList :tableData="tableData" @handleUpdate="handleUpdate" @remove = "remove" @start = "start"></DataList> <div id="meet" ref="meet"></div> </div> </div> @@ -39,10 +39,10 @@ <!-- 娣诲姞浼氳瀵硅瘽妗� --> <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body> <el-form label-width="80px" ref="form" :model="form" :rules="rules" > - <el-form-item label="鎴块棿鍚嶏細" prop="meetName" > + <el-form-item label="鎴块棿鍚�" prop="meetName" > <el-input v-model="form.meetName" placeholder="璇疯緭鍏ユ埧闂村悕" style="width: 300px"></el-input> </el-form-item> - <el-form-item label="鐝骇锛�" > + <el-form-item label="鐝骇" > <el-select v-model="form.classesId" placeholder="鐝骇" @@ -62,6 +62,11 @@ end-placeholder="缁撴潫鏃ユ湡"> </el-date-picker> </el-form-item> + <el-form-item label="鐘舵��" > + <el-radio v-model="form.status" :label="0">寰呭紑濮�</el-radio> + <el-radio v-model="form.status" :label="1">杩涜涓�</el-radio> + <el-radio v-model="form.status" :label="2">宸茬粨鏉�</el-radio> + </el-form-item> </el-form> <div slot="footer" class="dialog-footer"> <el-button type="primary" @click="submitForm">纭� 瀹�</el-button> @@ -80,7 +85,6 @@ import Pagination from '@/components/Pagination' import { getMeets,addMeet,editMeet,deleteMeetById } from '@/api/meet' import { myClasses } from '@/api/classes' - export default { components: { DataList,Pagination}, @@ -132,6 +136,28 @@ } }) }, + start (item) { + // 淇敼鎴块棿鐘舵�佷负杩涜涓� + item.status = 1 + editMeet(item).then(re => { + if (re.data.code === 1) { + this.getList() + let routeUrl = this.$router.resolve({ + path: "/meet", + query: { + domain: 'ycl.easyblog.vip:8443/' + item.id, + roomName: item.meetName, + userInfoStr: JSON.stringify({ + displayName: item.teacherName + }) + } + }) + window.open(routeUrl.href, '_blank') + } else { + this.$message.error(re.data.message) + } + }) + }, handleUpdate (item) { this.form = { ...item, -- Gitblit v1.8.0