添加作业功能

This commit is contained in:
yangjun 2024-05-07 17:14:14 +08:00
parent bfe20c4cb7
commit 0e385479a2
3 changed files with 24 additions and 44 deletions

View File

@ -5,9 +5,9 @@ import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
{
title: '作业名称',
title: '学生姓名',
align: "center",
dataIndex: 'mainId'
dataIndex: 'studentName'
},
{
title: '作业附件',
@ -20,26 +20,26 @@ export const columns: BasicColumn[] = [
align: "center",
dataIndex: 'wwxsl'
},
{
title: '内网相似律',
align: "center",
dataIndex: 'nwxsl'
},
{
title: 'aigc相似律',
align: "center",
dataIndex: 'aigcxsl'
},
{
title: '外网是否通过',
align: "center",
dataIndex: 'wwsftg'
},
{
title: '内网相似律',
align: "center",
dataIndex: 'nwxsl'
},
{
title: '内网是否通过',
align: "center",
dataIndex: 'nwsftg'
},
{
title: 'aigc相似律',
align: "center",
dataIndex: 'aigcxsl'
},
{
title: 'aigc是否通过',
align: "center",

View File

@ -1,7 +1,7 @@
<template>
<div>
<!--查询区域-->
<div class="jeecg-basic-table-form-container">
<!-- <div class="jeecg-basic-table-form-container">
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
<a-row :gutter="24">
<a-col :lg="8">
@ -12,42 +12,22 @@
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
<a-col :lg="6">
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">刷新</a-button>
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
<!--<a @click="toggleSearchStatus = !toggleSearchStatus" style="margin-left: 8px">
{{ toggleSearchStatus ? '收起' : '展开' }}
<Icon :icon="toggleSearchStatus ? 'ant-design:up-outlined' : 'ant-design:down-outlined'" />
</a>-->
</a-col>
</span>
</a-col>
</a-row>
</a-form>
</div>
</div> -->
<!--引用表格-->
<BasicTable @register="registerTable" :rowSelection="rowSelection">
<BasicTable @register="registerTable">
<!--插槽:table标题-->
<template #tableTitle>
<a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
<j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
<a-dropdown v-if="selectedRowKeys.length > 0">
<template #overlay>
<a-menu>
<a-menu-item key="1" @click="batchHandleDelete">
<Icon icon="ant-design:delete-outlined"></Icon>
删除
</a-menu-item>
</a-menu>
</template>
<a-button>批量操作
<Icon icon="mdi:chevron-down"></Icon>
</a-button>
</a-dropdown>
</template>
<!--操作栏-->
<template #action="{ record }">
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)"/>
<TableAction :actions="getTableAction(record)" />
</template>
<!--字段回显插槽-->
<template #htmlSlot="{text}">
@ -160,7 +140,7 @@
* 成功回调
*/
function handleSuccess() {
(selectedRowKeys.value = []) && reload();
reload();
}
/**
@ -169,8 +149,8 @@
function getTableAction(record) {
return [
{
label: '编辑',
onClick: handleEdit.bind(null, record),
label: '详情',
onClick: handleDetail.bind(null, record),
},
];
}
@ -206,15 +186,15 @@
function searchReset() {
queryParam.value = {};
selectedRowKeys.value = [];
queryParam.mainId = mainId;
queryParam.value.mainId = mainId;
//
reload();
}
function init(record){
queryParam.value.mainId = record.id;
mainId = record.id;
searchQuery();
mainId.value = record.id;
reload();
}

View File

@ -9,7 +9,7 @@
import ZyInfoStudentList from './ZyInfoStudentList.vue'
const title = ref<string>('');
const width = ref<number>(800);
const width = ref<string>('80%');
const visible = ref<boolean>(false);
const disableSubmit = ref<boolean>(false);
const registerForm = ref();