This commit is contained in:
zhangsir
2024-05-22 16:23:42 +08:00
parent ae6c3253cd
commit eb1949d205

View File

@@ -54,6 +54,7 @@ const rowClick = (record) => {
}
}
const InitReview = () => {
teacherCurrent1.value = 1
InitiateReviewShow.value = true;
formState.reviewname = ''
formState.time = ''
@@ -116,7 +117,6 @@ const startReviewSave = async () => {
message.info('编辑成功');
InitiateReviewShow.value = false
reviewIds.value = null
rwname.value = null
}
@@ -142,6 +142,7 @@ const rwname = ref(null)
const rwtime = ref(null)
const reviewIds = ref(null)
const editReviewSave = async (name, time, id) => {
teacherCurrent1.value = 1
reviewIds.value = id
teacherNames.value = []
teacherid.value = []
@@ -302,7 +303,7 @@ const teacherTotal = ref(null)
const tabledata = ref(null)
//教师分页
const onChange3 = (pageNo) => {
teacherTotal.value = pageNo
teacherCurrent1.value = pageNo
addTeacherList()
}
//结束评审
@@ -641,7 +642,9 @@ const columns = [
title: '课程名称',
dataIndex: 'courseName',
key: 'courseName',
align: 'left'
align: 'left',
ellipsis: true,
width: 400,
},
{
title: '初稿状态',
@@ -677,6 +680,8 @@ const columns = [
{
title: '操作',
key: 'action',
fixed: 'right',
width: 200,
},
];
const twiceolumns = [
@@ -788,6 +793,7 @@ const closeTeacher = (item,i) => {
teacherid.value.splice(i,1)
}
const teacherRowSelection = computed(() =>({
preserveSelectedRowKeys: true,
selectedRowKeys: teacherid.value,
onChange: async (selectedRowKeys, selectedRows) => {
console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
@@ -1008,7 +1014,7 @@ const vwtext = ref(null)
<!-- 表格 -->
<div style="display: flex; flex-direction: column;margin-left: 15px">
<div class="table">
<a-table :row-selection="rowSelection" row-key="id" :columns="columns" :data-source="data" :scroll="{ x: 1000 }" :pagination="false">
<a-table :row-selection="rowSelection" row-key="id" :columns="columns" :data-source="data" :scroll="{ x: 1500 }" :pagination="false">
<template #headerCell="{ column }">
<template v-if="column.key === 'name'">
<span>
@@ -1342,7 +1348,7 @@ const vwtext = ref(null)
<div style="display: flex; flex-direction: column;width: 160px;margin-left: 24px;margin-top: 20px;">
<div style="font-size: 16px; font-weight: 900;">已选</div>
<div style="width: 16opx; height: 1px;background-color: #b9e6fb;margin: 11px 0;"></div>
<div >
<div class="teacher-list">
<div v-for="(item,i) in teacherNames" :key="i">
<div class="chose">
{{item.teacherName}}
@@ -1652,6 +1658,10 @@ const vwtext = ref(null)
// margin-left: 24px;
}
}
.teacher-list{
max-height: 800px;
overflow-y: auto;
}
.chose {
width: 64px;
height: 24px;