mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 03:16:44 +08:00
列表
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user