修改听课身份和统计

This commit is contained in:
bai 2023-06-01 00:56:35 +08:00
parent ec63c5e045
commit b98154d9d7
2 changed files with 45 additions and 13 deletions

View File

@ -6,23 +6,23 @@
<a-row :gutter="24">
<a-col :lg="8">
<a-form-item label="学年学期">
<a-input placeholder="请输入学年学期" v-model:value="queryParam.xnxq"></a-input>
<JInput placeholder="请输入学年学期" v-model:value="queryParam.xnxq"></JInput>
</a-form-item>
</a-col>
<a-col :lg="8">
<a-form-item label="教师工号">
<a-input placeholder="请输入教师工号" v-model:value="queryParam.jgh"></a-input>
<JInput placeholder="请输入教师工号" v-model:value="queryParam.jgh"></JInput>
</a-form-item>
</a-col>
<!--<template v-if="toggleSearchStatus">-->
<a-col :lg="8">
<a-form-item label="教师姓名">
<a-input placeholder="请输入教师姓名" v-model:value="queryParam.jsxm"></a-input>
<JInput placeholder="请输入教师姓名" v-model:value="queryParam.jsxm"></JInput>
</a-form-item>
</a-col>
<a-col :lg="8">
<a-form-item label="听课身份">
<a-input placeholder="请输入听课身份" v-model:value="queryParam.tksf"></a-input>
<JInput placeholder="请输入听课身份" v-model:value="queryParam.tksf"></JInput>
</a-form-item>
</a-col>
<!--</template>-->
@ -92,6 +92,7 @@
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './KcTkcstj.api';
import { downloadFile } from '/@/utils/common/renderUtils';
import KcTkcstjModal from './components/KcTkcstjModal.vue'
import JInput from '/@/components/Form/src/jeecg/components/JInput.vue';
const queryParam = ref<any>({});
const toggleSearchStatus = ref<boolean>(false);
@ -105,6 +106,7 @@
canResize:false,
useSearchForm: false,
actionColumn: {
ifShow: false,
width: 120,
fixed: 'right',
},
@ -139,7 +141,7 @@
registerModal.value.disableSubmit = false;
registerModal.value.add();
}
/**
* 编辑事件
*/
@ -147,7 +149,7 @@
registerModal.value.disableSubmit = false;
registerModal.value.edit(record);
}
/**
* 详情
*/
@ -155,28 +157,28 @@
registerModal.value.disableSubmit = true;
registerModal.value.edit(record);
}
/**
* 删除事件
*/
async function handleDelete(record) {
await deleteOne({ id: record.id }, handleSuccess);
}
/**
* 批量删除事件
*/
async function batchHandleDelete() {
await batchDelete({ ids: selectedRowKeys.value }, handleSuccess);
}
/**
* 成功回调
*/
function handleSuccess() {
(selectedRowKeys.value = []) && reload();
}
/**
* 操作栏
*/
@ -188,7 +190,7 @@
},
];
}
/**
* 下拉操作栏
*/
@ -213,7 +215,7 @@
function searchQuery() {
reload();
}
/**
* 重置
*/
@ -223,7 +225,7 @@
//
reload();
}

View File

@ -4,6 +4,34 @@
<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">
<a-form-item label="工号">
<JInput placeholder="请输入工号" v-model:value="queryParam.gh"></JInput>
</a-form-item>
</a-col>
<a-col :lg="8">
<a-form-item label="姓名">
<JInput placeholder="请输入姓名" v-model:value="queryParam.xm"></JInput>
</a-form-item>
</a-col>
<a-col :lg="8">
<a-form-item label="职务名称">
<JInput placeholder="请输入职务名称" v-model:value="queryParam.zwmc"></JInput>
</a-form-item>
</a-col>
<!--<template v-if="toggleSearchStatus">-->
<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: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>
@ -58,6 +86,7 @@
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './KcTksfrzb.api';
import { downloadFile } from '/@/utils/common/renderUtils';
import KcTksfrzbModal from './components/KcTksfrzbModal.vue'
import JInput from '/@/components/Form/src/jeecg/components/JInput.vue';
const queryParam = ref<any>({});
const toggleSearchStatus = ref<boolean>(false);
@ -71,6 +100,7 @@
canResize:false,
useSearchForm: false,
actionColumn: {
ifShow: false,
width: 120,
fixed: 'right',
},