修改bug及添加白名单功能

This commit is contained in:
yangjun 2024-03-26 18:32:17 +08:00
parent d676dae056
commit 749ca47584
36 changed files with 3566 additions and 178 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,72 @@
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";
const { createConfirm } = useMessage();
enum Api {
list = '/kcJieciPipei/kcJieciPipei/list',
save='/kcJieciPipei/kcJieciPipei/add',
edit='/kcJieciPipei/kcJieciPipei/edit',
deleteOne = '/kcJieciPipei/kcJieciPipei/delete',
deleteBatch = '/kcJieciPipei/kcJieciPipei/deleteBatch',
importExcel = '/kcJieciPipei/kcJieciPipei/importExcel',
exportXls = '/kcJieciPipei/kcJieciPipei/exportXls',
}
/**
* api
* @param params
*/
export const getExportUrl = Api.exportXls;
/**
* api
*/
export const getImportUrl = Api.importExcel;
/**
*
* @param params
*/
export const list = (params) => defHttp.get({ url: Api.list, params });
/**
*
* @param params
* @param handleSuccess
*/
export const deleteOne = (params,handleSuccess) => {
return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => {
handleSuccess();
});
}
/**
*
* @param params
* @param handleSuccess
*/
export const batchDelete = (params, handleSuccess) => {
createConfirm({
iconType: 'warning',
title: '确认删除',
content: '是否删除选中数据',
okText: '确认',
cancelText: '取消',
onOk: () => {
return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => {
handleSuccess();
});
}
});
}
/**
*
* @param params
* @param isUpdate
*/
export const saveOrUpdate = (params, isUpdate) => {
let url = isUpdate ? Api.edit : Api.save;
return defHttp.post({ url: url, params }, { isTransformResponse: false });
}

View File

@ -0,0 +1,54 @@
import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
{
title: '异常数据',
align: "center",
dataIndex: 'expCol'
},
{
title: '正确数据',
align: "center",
dataIndex: 'norCol'
},
];
//查询数据
export const searchFormSchema: FormSchema[] = [
{
label: "异常数据",
field: 'expCol',
component: 'Input',
colProps: {span: 6},
},
{
label: "正确数据",
field: 'norCol',
component: 'Input',
colProps: {span: 6},
},
];
//表单数据
export const formSchema: FormSchema[] = [
{
label: '异常数据',
field: 'expCol',
component: 'Input',
},
{
label: '正确数据',
field: 'norCol',
component: 'Input',
},
// TODO 主键隐藏字段目前写死为ID
{
label: '',
field: 'id',
component: 'Input',
show: false,
},
];

View File

@ -0,0 +1,237 @@
<template>
<div>
<!--查询区域-->
<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="异常数据">
<a-input placeholder="请输入异常数据" v-model:value="queryParam.expCol"></a-input>
</a-form-item>
</a-col>
<a-col :lg="8">
<a-form-item label="正确数据">
<a-input placeholder="请输入正确数据" v-model:value="queryParam.norCol"></a-input>
</a-form-item>
</a-col>
<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>
<!--引用表格-->
<BasicTable @register="registerTable" :rowSelection="rowSelection">
<!--插槽: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)"/>
</template>
<!--字段回显插槽-->
<template #htmlSlot="{text}">
<div v-html="text"></div>
</template>
<!--省市区字段回显插槽-->
<!--<template #pcaSlot="{text}">
{{ getAreaTextByCode(text) }}
</template>-->
<template #fileSlot="{text}">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
<a-button v-else :ghost="true" type="primary" preIcon="ant-design:download-outlined" size="small" @click="downloadFile(text)">下载</a-button>
</template>
</BasicTable>
<!-- 表单区域 -->
<KcJieciPipeiModal ref="registerModal" @success="handleSuccess"></KcJieciPipeiModal>
</div>
</template>
<script lang="ts" name="kcJieciPipei-kcJieciPipei" setup>
import { ref, reactive } from 'vue';
import { BasicTable, useTable, TableAction } from '/@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { columns } from './KcJieciPipei.data';
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './KcJieciPipei.api';
import { downloadFile } from '/@/utils/common/renderUtils';
import KcJieciPipeiModal from './components/KcJieciPipeiModal.vue'
const queryParam = ref<any>({});
const toggleSearchStatus = ref<boolean>(false);
const registerModal = ref();
//table
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
tableProps: {
title: '节次匹配数据',
api: list,
columns,
canResize:false,
useSearchForm: false,
actionColumn: {
width: 120,
fixed: 'right',
},
beforeFetch: (params) => {
params.column = '',params.order = '';//
return Object.assign(params, queryParam.value);
},
},
exportConfig: {
name: "节次匹配数据",
url: getExportUrl,
},
importConfig: {
url: getImportUrl,
success: handleSuccess
},
});
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] = tableContext;
const labelCol = reactive({
xs: { span: 24 },
sm: { span: 7 },
});
const wrapperCol = reactive({
xs: { span: 24 },
sm: { span: 16 },
});
/**
* 新增事件
*/
function handleAdd() {
registerModal.value.disableSubmit = false;
registerModal.value.add();
}
/**
* 编辑事件
*/
function handleEdit(record: Recordable) {
registerModal.value.disableSubmit = false;
registerModal.value.edit(record);
}
/**
* 详情
*/
function handleDetail(record: Recordable) {
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();
}
/**
* 操作栏
*/
function getTableAction(record) {
return [
{
label: '编辑',
onClick: handleEdit.bind(null, record),
},
];
}
/**
* 下拉操作栏
*/
function getDropDownAction(record) {
return [
{
label: '详情',
onClick: handleDetail.bind(null, record),
}, {
label: '删除',
popConfirm: {
title: '是否确认删除',
confirm: handleDelete.bind(null, record),
}
}
]
}
/**
* 查询
*/
function searchQuery() {
reload();
}
/**
* 重置
*/
function searchReset() {
queryParam.value = {};
selectedRowKeys.value = [];
//
reload();
}
</script>
<style lang="less" scoped>
.jeecg-basic-table-form-container {
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;
white-space: nowrap;
}
.query-group-cust{
width: calc(50% - 15px);
min-width: 100px !important;
}
.query-group-split-cust{
width: 30px;
display: inline-block;
text-align: center
}
}
</style>

View File

@ -0,0 +1,133 @@
<template>
<a-spin :spinning="confirmLoading">
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-row>
<a-col :span="24">
<a-form-item label="异常数据" v-bind="validateInfos.expCol">
<a-input v-model:value="formData.expCol" placeholder="请输入异常数据" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="正确数据" v-bind="validateInfos.norCol">
<a-input v-model:value="formData.norCol" placeholder="请输入正确数据" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
</a-row>
</a-form>
</a-spin>
</template>
<script lang="ts" setup>
import { ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted } from 'vue';
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from '/@/hooks/web/useMessage';
import { getValueType } from '/@/utils';
import { saveOrUpdate } from '../KcJieciPipei.api';
import { Form } from 'ant-design-vue';
const props = defineProps({
formDisabled: { type: Boolean, default: false },
formData: { type: Object, default: ()=>{} },
formBpm: { type: Boolean, default: true }
});
const formRef = ref();
const useForm = Form.useForm;
const emit = defineEmits(['register', 'ok']);
const formData = reactive<Record<string, any>>({
id: '',
expCol: '',
norCol: '',
});
const { createMessage } = useMessage();
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
const wrapperCol = ref<any>({ xs: { span: 24 }, sm: { span: 16 } });
const confirmLoading = ref<boolean>(false);
//
const validatorRules = {
};
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: true });
//
const disabled = computed(()=>{
if(props.formBpm === true){
if(props.formData.disabled === false){
return false;
}else{
return true;
}
}
return props.formDisabled;
});
/**
* 新增
*/
function add() {
edit({});
}
/**
* 编辑
*/
function edit(record) {
nextTick(() => {
resetFields();
//
Object.assign(formData, record);
});
}
/**
* 提交数据
*/
async function submitForm() {
//
await validate();
confirmLoading.value = true;
const isUpdate = ref<boolean>(false);
//
let model = formData;
if (model.id) {
isUpdate.value = true;
}
//
for (let data in model) {
//
if (model[data] instanceof Array) {
let valueType = getValueType(formRef.value.getProps, data);
//
if (valueType === 'string') {
model[data] = model[data].join(',');
}
}
}
await saveOrUpdate(model, isUpdate.value)
.then((res) => {
if (res.success) {
createMessage.success(res.message);
emit('ok');
} else {
createMessage.warning(res.message);
}
})
.finally(() => {
confirmLoading.value = false;
});
}
defineExpose({
add,
edit,
submitForm,
});
</script>
<style lang="less" scoped>
.antd-modal-form {
min-height: 500px !important;
overflow-y: auto;
padding: 24px 24px 24px 24px;
}
</style>

View File

@ -0,0 +1,75 @@
<template>
<a-modal :title="title" :width="width" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
<KcJieciPipeiForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></KcJieciPipeiForm>
</a-modal>
</template>
<script lang="ts" setup>
import { ref, nextTick, defineExpose } from 'vue';
import KcJieciPipeiForm from './KcJieciPipeiForm.vue'
const title = ref<string>('');
const width = ref<number>(800);
const visible = ref<boolean>(false);
const disableSubmit = ref<boolean>(false);
const registerForm = ref();
const emit = defineEmits(['register', 'success']);
/**
* 新增
*/
function add() {
title.value = '新增';
visible.value = true;
nextTick(() => {
registerForm.value.add();
});
}
/**
* 编辑
* @param record
*/
function edit(record) {
title.value = disableSubmit.value ? '详情' : '编辑';
visible.value = true;
nextTick(() => {
registerForm.value.edit(record);
});
}
/**
* 确定按钮点击事件
*/
function handleOk() {
registerForm.value.submitForm();
}
/**
* form保存回调事件
*/
function submitCallback() {
handleCancel();
emit('success');
}
/**
* 取消按钮回调事件
*/
function handleCancel() {
visible.value = false;
}
defineExpose({
add,
edit,
disableSubmit,
});
</script>
<style>
/**隐藏样式-modal确定按钮 */
.jee-hidden {
display: none !important;
}
</style>

View File

@ -0,0 +1,72 @@
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";
const { createConfirm } = useMessage();
enum Api {
list = '/kcKechengExclude/kcKechengExclude/list',
save='/kcKechengExclude/kcKechengExclude/add',
edit='/kcKechengExclude/kcKechengExclude/edit',
deleteOne = '/kcKechengExclude/kcKechengExclude/delete',
deleteBatch = '/kcKechengExclude/kcKechengExclude/deleteBatch',
importExcel = '/kcKechengExclude/kcKechengExclude/importExcel',
exportXls = '/kcKechengExclude/kcKechengExclude/exportXls',
}
/**
* api
* @param params
*/
export const getExportUrl = Api.exportXls;
/**
* api
*/
export const getImportUrl = Api.importExcel;
/**
*
* @param params
*/
export const list = (params) => defHttp.get({ url: Api.list, params });
/**
*
* @param params
* @param handleSuccess
*/
export const deleteOne = (params,handleSuccess) => {
return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => {
handleSuccess();
});
}
/**
*
* @param params
* @param handleSuccess
*/
export const batchDelete = (params, handleSuccess) => {
createConfirm({
iconType: 'warning',
title: '确认删除',
content: '是否删除选中数据',
okText: '确认',
cancelText: '取消',
onOk: () => {
return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => {
handleSuccess();
});
}
});
}
/**
*
* @param params
* @param isUpdate
*/
export const saveOrUpdate = (params, isUpdate) => {
let url = isUpdate ? Api.edit : Api.save;
return defHttp.post({ url: url, params }, { isTransformResponse: false });
}

View File

@ -0,0 +1,184 @@
import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
{
title: '课程名称',
align: "center",
dataIndex: 'kcmc'
},
{
title: '教工号',
align: "center",
dataIndex: 'jgh'
},
{
title: '授课教师',
align: "center",
dataIndex: 'skjs'
},
{
title: '开课单位',
align: "center",
dataIndex: 'kkdw'
},
{
title: '课程性质',
align: "center",
dataIndex: 'kcxz'
},
{
title: '上课地点',
align: "center",
dataIndex: 'skdd'
},
{
title: '授课时间',
align: "center",
dataIndex: 'sksj'
},
{
title: '授课周次',
align: "center",
dataIndex: 'jkzc'
},
{
title: '学年学期【orcl】',
align: "center",
dataIndex: 'xnxq'
},
{
title: '课程大类',
align: "center",
dataIndex: 'kcdl'
},
{
title: '是否前台展示',
align: "center",
dataIndex: 'sfqtzs'
},
{
title: '学年学期【系统自用】',
align: "center",
dataIndex: 'xqxn'
},
];
//查询数据
export const searchFormSchema: FormSchema[] = [
{
label: "课程名称",
field: 'kcmc',
component: 'Input',
colProps: {span: 6},
},
{
label: "教工号",
field: 'jgh',
component: 'Input',
colProps: {span: 6},
},
{
label: "授课教师",
field: 'skjs',
component: 'Input',
colProps: {span: 6},
},
{
label: "开课单位",
field: 'kkdw',
component: 'Input',
colProps: {span: 6},
},
{
label: "授课时间",
field: 'sksj',
component: 'Input',
colProps: {span: 6},
},
{
label: "是否前台展示",
field: 'sfqtzs',
component: 'Input',
colProps: {span: 6},
},
{
label: "学年学期【系统自用】",
field: 'xqxn',
component: 'Input',
colProps: {span: 6},
},
];
//表单数据
export const formSchema: FormSchema[] = [
{
label: '课程名称',
field: 'kcmc',
component: 'Input',
},
{
label: '教工号',
field: 'jgh',
component: 'Input',
},
{
label: '授课教师',
field: 'skjs',
component: 'Input',
},
{
label: '开课单位',
field: 'kkdw',
component: 'Input',
},
{
label: '课程性质',
field: 'kcxz',
component: 'Input',
},
{
label: '上课地点',
field: 'skdd',
component: 'Input',
},
{
label: '授课时间',
field: 'sksj',
component: 'Input',
},
{
label: '授课周次',
field: 'jkzc',
component: 'Input',
},
{
label: '学年学期【orcl】',
field: 'xnxq',
component: 'Input',
},
{
label: '课程大类',
field: 'kcdl',
component: 'Input',
},
{
label: '是否前台展示',
field: 'sfqtzs',
component: 'Input',
},
{
label: '学年学期【系统自用】',
field: 'xqxn',
component: 'Input',
},
// TODO 主键隐藏字段目前写死为ID
{
label: '',
field: 'id',
component: 'Input',
show: false,
},
];

View File

@ -0,0 +1,268 @@
<template>
<div>
<!--查询区域-->
<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="课程名称">
<a-input placeholder="请输入课程名称" v-model:value="queryParam.kcmc"></a-input>
</a-form-item>
</a-col>
<a-col :lg="8">
<a-form-item label="教工号">
<a-input placeholder="请输入教工号" v-model:value="queryParam.jgh"></a-input>
</a-form-item>
</a-col>
<!--<template v-if="toggleSearchStatus">-->
<a-col :lg="8">
<a-form-item label="授课教师">
<a-input placeholder="请输入授课教师" v-model:value="queryParam.skjs"></a-input>
</a-form-item>
</a-col>
<a-col :lg="8">
<a-form-item label="开课单位">
<a-input placeholder="请输入开课单位" v-model:value="queryParam.kkdw"></a-input>
</a-form-item>
</a-col>
<a-col :lg="8">
<a-form-item label="授课时间">
<a-input placeholder="请输入授课时间" v-model:value="queryParam.sksj"></a-input>
</a-form-item>
</a-col>
<a-col :lg="8">
<a-form-item label="是否前台展示">
<a-input placeholder="请输入是否前台展示" v-model:value="queryParam.sfqtzs"></a-input>
</a-form-item>
</a-col>
<a-col :lg="8">
<a-form-item label="学年学期【系统自用】">
<a-input placeholder="请输入学年学期【系统自用】" v-model:value="queryParam.xqxn"></a-input>
</a-form-item>
</a-col>
<!--</template>-->
<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>
<!--引用表格-->
<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)" />
</template>
<!--字段回显插槽-->
<template #htmlSlot="{text}">
<div v-html="text"></div>
</template>
<!--省市区字段回显插槽-->
<!--<template #pcaSlot="{text}">
{{ getAreaTextByCode(text) }}
</template>-->
<template #fileSlot="{text}">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
<a-button v-else :ghost="true" type="primary" preIcon="ant-design:download-outlined" size="small" @click="downloadFile(text)">下载</a-button>
</template>
</BasicTable>
<!-- 表单区域 -->
<KcKechengExcludeModal ref="registerModal" @success="handleSuccess"></KcKechengExcludeModal>
</div>
</template>
<script lang="ts" name="kcKechengExclude-kcKechengExclude" setup>
import { ref, reactive } from 'vue';
import { BasicTable, useTable, TableAction } from '/@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { columns } from './KcKechengExclude.data';
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './KcKechengExclude.api';
import { downloadFile } from '/@/utils/common/renderUtils';
import KcKechengExcludeModal from './components/KcKechengExcludeModal.vue'
const queryParam = ref<any>({});
const toggleSearchStatus = ref<boolean>(false);
const registerModal = ref();
//table
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
tableProps: {
title: '课程刨除数据',
api: list,
columns,
canResize:false,
useSearchForm: false,
actionColumn: {
width: 120,
fixed: 'right',
},
beforeFetch: (params) => {
params.column = '',params.order = '';//
return Object.assign(params, queryParam.value);
},
},
exportConfig: {
name: "课程刨除数据",
url: getExportUrl,
},
importConfig: {
url: getImportUrl,
success: handleSuccess
},
});
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] = tableContext;
const labelCol = reactive({
xs: { span: 24 },
sm: { span: 7 },
});
const wrapperCol = reactive({
xs: { span: 24 },
sm: { span: 16 },
});
/**
* 新增事件
*/
function handleAdd() {
registerModal.value.disableSubmit = false;
registerModal.value.add();
}
/**
* 编辑事件
*/
function handleEdit(record: Recordable) {
registerModal.value.disableSubmit = false;
registerModal.value.edit(record);
}
/**
* 详情
*/
function handleDetail(record: Recordable) {
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();
}
/**
* 操作栏
*/
function getTableAction(record) {
return [
{
label: '编辑',
onClick: handleEdit.bind(null, record),
},
{
label: '详情',
onClick: handleDetail.bind(null, record),
},
];
}
/**
* 下拉操作栏
*/
function getDropDownAction(record) {
return [
{
label: '详情',
onClick: handleDetail.bind(null, record),
}, {
label: '删除',
popConfirm: {
title: '是否确认删除',
confirm: handleDelete.bind(null, record),
}
}
]
}
/**
* 查询
*/
function searchQuery() {
reload();
}
/**
* 重置
*/
function searchReset() {
queryParam.value = {};
selectedRowKeys.value = [];
//
reload();
}
</script>
<style lang="less" scoped>
.jeecg-basic-table-form-container {
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;
white-space: nowrap;
}
.query-group-cust{
width: calc(50% - 15px);
min-width: 100px !important;
}
.query-group-split-cust{
width: 30px;
display: inline-block;
text-align: center
}
}
</style>

View File

@ -0,0 +1,193 @@
<template>
<a-spin :spinning="confirmLoading">
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-row>
<a-col :span="12">
<a-form-item label="课程名称" v-bind="validateInfos.kcmc">
<a-input v-model:value="formData.kcmc" placeholder="请输入课程名称" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="教工号" v-bind="validateInfos.jgh">
<a-input v-model:value="formData.jgh" placeholder="请输入教工号" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="授课教师" v-bind="validateInfos.skjs">
<a-input v-model:value="formData.skjs" placeholder="请输入授课教师" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="开课单位" v-bind="validateInfos.kkdw">
<a-input v-model:value="formData.kkdw" placeholder="请输入开课单位" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="课程性质" v-bind="validateInfos.kcxz">
<a-input v-model:value="formData.kcxz" placeholder="请输入课程性质" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="上课地点" v-bind="validateInfos.skdd">
<a-input v-model:value="formData.skdd" placeholder="请输入上课地点" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="授课时间" v-bind="validateInfos.sksj">
<a-input v-model:value="formData.sksj" placeholder="请输入授课时间" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="授课周次" v-bind="validateInfos.jkzc">
<a-input v-model:value="formData.jkzc" placeholder="请输入授课周次" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="学年学期【orcl】" v-bind="validateInfos.xnxq">
<a-input v-model:value="formData.xnxq" placeholder="请输入学年学期【orcl】" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="课程大类" v-bind="validateInfos.kcdl">
<a-input v-model:value="formData.kcdl" placeholder="请输入课程大类" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="是否前台展示" v-bind="validateInfos.sfqtzs">
<a-input v-model:value="formData.sfqtzs" placeholder="请输入是否前台展示" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="学年学期【系统自用】" v-bind="validateInfos.xqxn">
<a-input v-model:value="formData.xqxn" placeholder="请输入学年学期【系统自用】" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
</a-row>
</a-form>
</a-spin>
</template>
<script lang="ts" setup>
import { ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted } from 'vue';
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from '/@/hooks/web/useMessage';
import { getValueType } from '/@/utils';
import { saveOrUpdate } from '../KcKechengExclude.api';
import { Form } from 'ant-design-vue';
const props = defineProps({
formDisabled: { type: Boolean, default: false },
formData: { type: Object, default: ()=>{} },
formBpm: { type: Boolean, default: true }
});
const formRef = ref();
const useForm = Form.useForm;
const emit = defineEmits(['register', 'ok']);
const formData = reactive<Record<string, any>>({
id: '',
kcmc: '',
jgh: '',
skjs: '',
kkdw: '',
kcxz: '',
skdd: '',
sksj: '',
jkzc: '',
xnxq: '',
kcdl: '',
sfqtzs: '',
xqxn: '',
});
const { createMessage } = useMessage();
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
const wrapperCol = ref<any>({ xs: { span: 24 }, sm: { span: 16 } });
const confirmLoading = ref<boolean>(false);
//
const validatorRules = {
};
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: true });
//
const disabled = computed(()=>{
if(props.formBpm === true){
if(props.formData.disabled === false){
return false;
}else{
return true;
}
}
return props.formDisabled;
});
/**
* 新增
*/
function add() {
edit({});
}
/**
* 编辑
*/
function edit(record) {
nextTick(() => {
resetFields();
//
Object.assign(formData, record);
});
}
/**
* 提交数据
*/
async function submitForm() {
//
await validate();
confirmLoading.value = true;
const isUpdate = ref<boolean>(false);
//
let model = formData;
if (model.id) {
isUpdate.value = true;
}
//
for (let data in model) {
//
if (model[data] instanceof Array) {
let valueType = getValueType(formRef.value.getProps, data);
//
if (valueType === 'string') {
model[data] = model[data].join(',');
}
}
}
await saveOrUpdate(model, isUpdate.value)
.then((res) => {
if (res.success) {
createMessage.success(res.message);
emit('ok');
} else {
createMessage.warning(res.message);
}
})
.finally(() => {
confirmLoading.value = false;
});
}
defineExpose({
add,
edit,
submitForm,
});
</script>
<style lang="less" scoped>
.antd-modal-form {
min-height: 500px !important;
overflow-y: auto;
padding: 24px 24px 24px 24px;
}
</style>

View File

@ -0,0 +1,75 @@
<template>
<a-modal :title="title" :width="width" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
<KcKechengExcludeForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></KcKechengExcludeForm>
</a-modal>
</template>
<script lang="ts" setup>
import { ref, nextTick, defineExpose } from 'vue';
import KcKechengExcludeForm from './KcKechengExcludeForm.vue'
const title = ref<string>('');
const width = ref<number>(800);
const visible = ref<boolean>(false);
const disableSubmit = ref<boolean>(false);
const registerForm = ref();
const emit = defineEmits(['register', 'success']);
/**
* 新增
*/
function add() {
title.value = '新增';
visible.value = true;
nextTick(() => {
registerForm.value.add();
});
}
/**
* 编辑
* @param record
*/
function edit(record) {
title.value = disableSubmit.value ? '详情' : '编辑';
visible.value = true;
nextTick(() => {
registerForm.value.edit(record);
});
}
/**
* 确定按钮点击事件
*/
function handleOk() {
registerForm.value.submitForm();
}
/**
* form保存回调事件
*/
function submitCallback() {
handleCancel();
emit('success');
}
/**
* 取消按钮回调事件
*/
function handleCancel() {
visible.value = false;
}
defineExpose({
add,
edit,
disableSubmit,
});
</script>
<style>
/**隐藏样式-modal确定按钮 */
.jee-hidden {
display: none !important;
}
</style>

View File

@ -47,6 +47,11 @@
<a-input v-model:value="formData.jrktTitle" placeholder="请输入今日课堂-说明文字" ></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="白名单-说明文字" v-bind="validateInfos.bmdTitle">
<a-input v-model:value="formData.bmdTitle" placeholder="请输入今日课堂-说明文字" ></a-input>
</a-form-item>
</a-col>
<a-col :span="24" style="text-align: center;">
<a-button type="primary" @click="submitForm">保存</a-button>
</a-col>
@ -93,6 +98,7 @@ const queryParam = ref<any>({});
flag7: '',
xsktTitle:'',
jrktTitle:'',
bmdTitle:'',
});
const { createMessage } = useMessage();
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 8 } });

View File

@ -20,6 +20,39 @@ export const columns: BasicColumn[] = [
align:"center",
dataIndex: 'ssxy'
},
{
title: '开始时间',
align:"center",
dataIndex: 'kssj'
},
{
title: '结束时间',
align:"center",
dataIndex: 'jssj'
},
{
title: '状态',
align:"center",
dataIndex: 'status',
customRender: ({ record }) => {
var kssj = record.kssj;
var jssj = record.jssj;
var text = "";
if(kssj && jssj){
var dateTime = new Date();
var kssjDate = new Date(kssj);
var jssjDate = new Date(jssj);
if(dateTime.getTime() > kssjDate.getTime() && dateTime.getTime() < jssjDate.getTime()){
text = "进行中";
}else if(dateTime.getTime() < kssjDate.getTime()){
text = "未开始";
}else if(dateTime.getTime() > jssjDate.getTime()){
text = "已完成";
}
}
return text;
},
},
{
title: '学年学期',
align:"center",
@ -106,10 +139,17 @@ export const kcTingkeBmdKcxxColumns: JVxeColumn[] = [
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '开课单位',
key: 'kkdw',
type: JVxeTypes.text,
placeholder: '请输入${title}',
defaultValue:'',
},
{
title: '学年学期',
key: 'xnxq',
type: JVxeTypes.text,
type: JVxeTypes.hidden,
placeholder: '请输入${title}',
defaultValue:'',
},

View File

@ -5,13 +5,13 @@
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
<a-row :gutter="24">
<a-col :lg="6">
<a-form-item label="授课教师">
<j-input placeholder="请输入授课教师" v-model:value="queryParam.xm"></j-input>
<a-form-item label="教师姓名">
<j-input placeholder="请输入教师姓名" v-model:value="queryParam.xm"></j-input>
</a-form-item>
</a-col>
<a-col :lg="6">
<a-form-item label="教师工号">
<j-input placeholder="请输入授课教师工号" v-model:value="queryParam.gh"></j-input>
<j-input placeholder="请输入教师工号" v-model:value="queryParam.gh"></j-input>
</a-form-item>
</a-col>
<a-col :lg="6">
@ -57,7 +57,7 @@
//table
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
tableProps: {
title: '选择听课教师',
title: '选择教师信息',
api: list,
columns,
canResize:false,

View File

@ -19,7 +19,7 @@
* 新增
*/
function add(titlePar) {
title.value = titlePar+'新增';
title.value = titlePar;
visible.value = true;
nextTick(() => {
registerForm222.value.add();

View File

@ -2,28 +2,38 @@
<a-spin :spinning="loading">
<a-form v-bind="formItemLayout">
<a-row>
<a-col :span="8">
<a-col :span="3" v-show="!disabled">
<a-button type="primary" @click="checkTeacher">选择教师</a-button>
</a-col>
<a-col :span="6">
<a-form-item label="教工号" v-bind="validateInfos.jgh">
<a-input v-model:value="formData.jgh" placeholder="请输入教工号" disabled></a-input>
</a-form-item>
</a-col>
<a-col :span="8">
<a-col :span="6">
<a-form-item label="教师姓名" v-bind="validateInfos.jsxm">
<a-input v-model:value="formData.jsxm" placeholder="请输入教师姓名" disabled></a-input>
</a-form-item>
</a-col>
<a-col :span="8">
<a-col :span="6">
<a-form-item label="所属学院" v-bind="validateInfos.ssxy">
<a-input v-model:value="formData.ssxy" placeholder="请输入所属学院" disabled></a-input>
</a-form-item>
</a-col>
<a-col :span="8">
<a-col :span="6" hidden>
<a-form-item label="学年学期" v-bind="validateInfos.xnxq">
<a-input v-model:value="formData.xnxq" placeholder="请输入学年学期" disabled></a-input>
</a-form-item>
</a-col>
<a-col :span="8" v-show="!disabled">
<a-button type="primary" @click="checkTeacher">选择教师</a-button>
<a-col :span="6" hidden>
<a-form-item label="开始时间" v-bind="validateInfos.kssj">
<a-input v-model:value="formData.kssj" placeholder="请输入开始时间" disabled></a-input>
</a-form-item>
</a-col>
<a-col :span="6" hidden>
<a-form-item label="结束时间" v-bind="validateInfos.jssj">
<a-input v-model:value="formData.jssj" placeholder="请输入结束时间" disabled></a-input>
</a-form-item>
</a-col>
</a-row>
</a-form>
@ -67,7 +77,7 @@
import { JVxeTable } from '/@/components/jeecg/JVxeTable';
import {kcTingkeBmdKcxxColumns} from '../KcTingkeBmd.data';
import { Form } from 'ant-design-vue';
import KcKetangbiaoCheckListModal from '/@/views/kc/ketang/KcKetangbiaoCheckListModal.vue';
import KcKetangbiaoCheckListModal from '/@/views/kc/ketang/KcKetangbiaoCheckBmdListModal.vue';
import CheckUserToolModal from '/@/views/kc/kcTingkeBmd/checkuser/CheckUserToolModal.vue';
import _ from 'lodash-es';
const useForm = Form.useForm;
@ -105,6 +115,8 @@
jsxm: '',
ssxy: '',
xnxq: '',
kssj: '',
jssj: '',
});
//
@ -114,8 +126,8 @@
const {resetFields, validate, validateInfos} = useForm(formData, validatorRules, {immediate: true});
const dbData = {};
const formItemLayout = {
labelCol: {xs: {span: 24}, sm: {span: 5}},
wrapperCol: {xs: {span: 24}, sm: {span: 16}},
labelCol: {xs: {span: 24}, sm: {span: 8}},
wrapperCol: {xs: {span: 24}, sm: {span: 13}},
};
function checkTeacher(){
@ -142,7 +154,11 @@
}
function ketangSuccess(par){
var list = par;
var list = par.list;
var kssj = par.kssj;
var jssj = par.jssj;
formData.kssj = kssj;
formData.jssj = jssj;
console.log(`🚀 ~ ketangSuccess ~ par`, par);
var oldList2 = kcTingkeBmdKcxxTable.dataSource;
for(var i=0;i<list.length;i++){

View File

@ -29,10 +29,9 @@
title.value = data?.isUpdate?'编辑':'新增'
formDisabled.value = !data?.showFooter;
if (unref(isUpdate)) {
console.log('data', data)
formComponent.value.edit(data.record)
formComponent.value.edit(data.record);
}else{
formComponent.value.add()
formComponent.value.add();
}
});

View File

@ -54,116 +54,131 @@ export const columns: BasicColumn[] = [
dataIndex: 'pjsj'
},
// {
// title: '教学理解',
// align: "center",
// dataIndex: 'jxlj'
// },
// {
// title: '教学态度',
// align: "center",
// dataIndex: 'jxtd'
// },
// {
// title: '教学过程',
// align: "center",
// dataIndex: 'jxgc'
// },
// {
// title: '教学效果',
// align: "center",
// dataIndex: 'jxxg'
// },
// {
// title: '教学特殊',
// align: "center",
// dataIndex: 'jxts'
// },
// {
// title: '总分',
// align: "center",
// dataIndex: 'zf'
// },
{
title: '教学理解',
title: '1.具有教育理想、敬业精神和教学追求,热爱学生、学科和教学工作。',
align: "center",
dataIndex: 'jxlj'
dataIndex: 'ans1_dictText'
},
{
title: '教学态度',
title: '2.掌握所教学科必需的专业与教学知识。具备所教学科的教学设计、实施、评价、反思和研究能力。',
align: "center",
dataIndex: 'jxtd'
dataIndex: 'ans2_dictText'
},
{
title: '教学过程',
title: '3.把握学生身心发展规律与特点,尊重学生主体性与差异性。',
align: "center",
dataIndex: 'jxgc'
dataIndex: 'ans3_dictText'
},
{
title: '教学效果',
title: '4.立德树人,为人师表,语言规范,情绪饱满,思想积极向上',
align: "center",
dataIndex: 'jxxg'
dataIndex: 'ans4_dictText'
},
{
title: '教学特殊',
title: '5.执行教学计划,遵守教学纪律,严谨从教',
align: "center",
dataIndex: 'jxts'
dataIndex: 'ans5_dictText'
},
{
title: '总分',
title: '6.系统规划和设计教学活动,合理确定教学目标和教学内容的重难点,选择合适的教学方法、教学媒体和教学形式',
align: "center",
dataIndex: 'zf'
dataIndex: 'ans6_dictText'
},
{
title: '7.清晰讲解课程内容,恰当解释知识中蕴含的本源性思想和学科方法,适时引导学生关注课程领域发展新动态。',
align: "center",
dataIndex: 'ans7_dictText'
},
{
title: '8.启发学生思考,鼓励学生发现、提出问题,恰当给予回应和引导。',
align: "center",
dataIndex: 'ans8_dictText'
},
{
title: '9.监控教学过程,富有教学机智,教学体现生成性。',
align: "center",
dataIndex: 'ans9_dictText'
},
{
title: '10.运用多元评价方式,了解学习状况,诊断学习问题,及时反馈',
align: "center",
dataIndex: 'ans10_dictText'
},
{
title: '11.学习认真积极,踊跃参与课堂活动,体会课程学习的挑战与乐趣,感悟课程的意义与价值。',
align: "center",
dataIndex: 'ans11_dictText'
},
{
title: '12.掌握所学课程的基本概念与原理,理解课程的知识结构与思想体系,了解所学知识的运用情境、策略和方法。',
align: "center",
dataIndex: 'ans12_dictText'
},
{
title: '13.遵循教学一般规律,具有鲜明的创新意识和个性风貌。',
align: "center",
dataIndex: 'ans13_dictText'
},
{
title: '14.尊重学科本质属性,凸显学科育人价值,注重培养学科核心素养。',
align: "center",
dataIndex: 'ans14_dictText'
},
{
title: '15.课堂教学蕴含理性美,具有教学魅力,体现教学艺术性。',
align: "center",
dataIndex: 'ans15_dictText'
},
{
title: '16.你对该课程的总体评价情况5分是满分您给打几分',
align: "center",
dataIndex: 'ans16_dictText'
},
{
title: '17.您认为该课堂值得肯定的方面',
align: "center",
dataIndex: 'ans17'
},
{
title: '18.您认为该课堂需要改进的方面',
align: "center",
dataIndex: 'ans18'
},
{
title: '19.其它建议',
align: "center",
dataIndex: 'ans19'
},
// {
// title: '1.具有教育理想、敬业精神和教学追求,热爱学生、学科和教学工作。',
// align: "center",
// dataIndex: 'ans1_dictText'
// },
// {
// title: '2.掌握所教学科必需的专业与教学知识。具备所教学科的教学设计、实施、评价、反思和研究能力。',
// align: "center",
// dataIndex: 'ans2_dictText'
// },
// {
// title: '3.把握学生身心发展规律与特点,尊重学生主体性与差异性。',
// align: "center",
// dataIndex: 'ans3_dictText'
// },
// {
// title: '4.立德树人,为人师表,语言规范,情绪饱满,思想积极向上',
// align: "center",
// dataIndex: 'ans4_dictText'
// },
// {
// title: '5.执行教学计划,遵守教学纪律,严谨从教',
// align: "center",
// dataIndex: 'ans5_dictText'
// },
// {
// title: '6.系统规划和设计教学活动,合理确定教学目标和教学内容的重难点,选择合适的教学方法、教学媒体和教学形式',
// align: "center",
// dataIndex: 'ans6_dictText'
// },
// {
// title: '7.清晰讲解课程内容,恰当解释知识中蕴含的本源性思想和学科方法,适时引导学生关注课程领域发展新动态。',
// align: "center",
// dataIndex: 'ans7_dictText'
// },
// {
// title: '8.启发学生思考,鼓励学生发现、提出问题,恰当给予回应和引导。',
// align: "center",
// dataIndex: 'ans8_dictText'
// },
// {
// title: '9.监控教学过程,富有教学机智,教学体现生成性。',
// align: "center",
// dataIndex: 'ans9_dictText'
// },
// {
// title: '10.运用多元评价方式,了解学习状况,诊断学习问题,及时反馈',
// align: "center",
// dataIndex: 'ans10_dictText'
// },
// {
// title: '11.学习认真积极,踊跃参与课堂活动,体会课程学习的挑战与乐趣,感悟课程的意义与价值。',
// align: "center",
// dataIndex: 'ans11_dictText'
// },
// {
// title: '12.掌握所学课程的基本概念与原理,理解课程的知识结构与思想体系,了解所学知识的运用情境、策略和方法。',
// align: "center",
// dataIndex: 'ans12_dictText'
// },
// {
// title: '13.遵循教学一般规律,具有鲜明的创新意识和个性风貌。',
// align: "center",
// dataIndex: 'ans13_dictText'
// },
// {
// title: '14.尊重学科本质属性,凸显学科育人价值,注重培养学科核心素养。',
// align: "center",
// dataIndex: 'ans14_dictText'
// },
// {
// title: '15.课堂教学蕴含理性美,具有教学魅力,体现教学艺术性。',
// align: "center",
// dataIndex: 'ans15_dictText'
// },
// {
// title: '16.你对该课程的总体评价情况5分是满分您给打几分',
// align: "center",
// dataIndex: 'ans16_dictText'
// },
];
//查询数据

View File

@ -2,23 +2,27 @@
<a-spin :spinning="confirmLoading">
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol" :model="formData" :rules="validatorRules">
<a-row>
<!-- <a-col :span="24">
<a-button type="primary" @click="handleJyktsj">匹配课堂数据</a-button>
</a-col> -->
<a-col :span="8">
<a-form-item label="评课教师姓名" v-bind="validateInfos.pkjsxm">
<a-input v-model:value="formData.pkjsxm" placeholder="请输入授课教师" @change="handleHqjsbh" :disabled="disabled"></a-input>
</a-form-item>
<a-col :span="4" style="height: 80px;line-height: 80px;text-align: center;">
<a-button type="primary" @click="checkTeacher" style="font-size:20px;height: 50px;">匹配教师数据</a-button>
</a-col>
<a-col :span="8">
<a-form-item label="工号" v-bind="validateInfos.pkjsbh">
<a-input v-model:value="formData.pkjsbh" placeholder="请输入工号" disabled="true"></a-input>
</a-form-item>
</a-col>
<a-col :span="8">
<a-form-item label="评价时间" v-bind="validateInfos.pjsj">
<a-date-picker placeholder="请选择评价时间" v-model:value="formData.pjsj" value-format="YYYY-MM-DD" style="width: 100%" :disabled="disabled"/>
</a-form-item>
<a-col :span="20">
<a-row>
<a-col :span="8" style="margin-top: 20px;">
<a-form-item label="评课教师姓名" v-bind="validateInfos.pkjsxm">
<a-input v-model:value="formData.pkjsxm" placeholder="请输入授课教师" disabled></a-input>
</a-form-item>
</a-col>
<a-col :span="8" style="margin-top: 20px;">
<a-form-item label="工号" v-bind="validateInfos.pkjsbh">
<a-input v-model:value="formData.pkjsbh" placeholder="请输入工号" disabled="true"></a-input>
</a-form-item>
</a-col>
<a-col :span="8" style="margin-top: 20px;">
<a-form-item label="评价时间" v-bind="validateInfos.pjsj">
<a-date-picker placeholder="请选择评价时间" v-model:value="formData.pjsj" value-format="YYYY-MM-DD" style="width: 100%" :disabled="disabled"/>
</a-form-item>
</a-col>
</a-row>
</a-col>
<a-col :span="4" style="height: 80px;line-height: 80px;text-align: center;">
<a-button type="primary" @click="handleJyktsj" style="font-size:20px;height: 50px;">匹配课堂数据</a-button>
@ -153,6 +157,7 @@
</a-row>
</a-form>
<KcKetangbiaoListModal ref="KcKetangbiaoListModalPage" @success="handleSuccess"></KcKetangbiaoListModal>
<CheckUserToolModal ref="CheckUserToolModalRef" @success="userSuccess"/>
</a-spin>
</template>
@ -165,8 +170,10 @@
import { saveOrUpdate } from '../KcZzThpjb.api';
import { Form } from 'ant-design-vue';
import KcKetangbiaoListModal from '/@/views/kc/ketang/KcKetangbiaoListModal.vue'
import CheckUserToolModal from '/@/views/kc/kcTingkeBmd/checkuser/CheckUserToolModal.vue';
const KcKetangbiaoListModalPage = ref();
const CheckUserToolModalRef = ref();
const props = defineProps({
formDisabled: { type: Boolean, default: false },
formData: { type: Object, default: ()=>{} },
@ -206,8 +213,8 @@
ans19: '',
});
const { createMessage } = useMessage();
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
const wrapperCol = ref<any>({ xs: { span: 24 }, sm: { span: 16 } });
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 8 } });
const wrapperCol = ref<any>({ xs: { span: 24 }, sm: { span: 13 } });
const labelCol2 = ref<any>({ xs: { span: 24 }, sm: { span: 12 } });
const wrapperCol2 = ref<any>({ xs: { span: 24 }, sm: { span: 12 } });
const labelCol3 = ref<any>({ xs: { span: 24 }, sm: { span: 6 } });
@ -239,6 +246,16 @@
return props.formDisabled;
});
//
function checkTeacher(){
CheckUserToolModalRef.value.add("选择教师")
}
//
function userSuccess(par){
console.log(`🚀 ~ userSuccess ~ par:`, par)
formData.pkjsxm = par.xm;
formData.pkjsbh = par.gh;
}
/**
* 校验课堂数据
*/

View File

@ -2,20 +2,27 @@
<a-spin :spinning="confirmLoading">
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol" :model="formData" :rules="validatorRules">
<a-row>
<a-col :span="8">
<a-form-item label="评课教师姓名" v-bind="validateInfos.tkjsxm">
<a-input v-model:value="formData.tkjsxm" placeholder="请输入评课教师姓名" @change="handleHqjsbh" :disabled="disabled"></a-input>
</a-form-item>
<a-col :span="4" style="height: 80px;line-height: 80px;text-align: center;">
<a-button type="primary" @click="checkTeacher" style="font-size:20px;height: 50px;">匹配教师数据</a-button>
</a-col>
<a-col :span="8">
<a-form-item label="工号" v-bind="validateInfos.tkjsgh">
<a-input v-model:value="formData.tkjsgh" placeholder="请输入工号" disabled="true"></a-input>
</a-form-item>
</a-col>
<a-col :span="8">
<a-form-item label="评课时间" v-bind="validateInfos.tksj">
<a-date-picker placeholder="请选择评课时间" v-model:value="formData.tksj" value-format="YYYY-MM-DD" style="width: 100%" :disabled="disabled"/>
</a-form-item>
<a-col :span="20">
<a-row>
<a-col :span="8" style="margin-top: 20px;">
<a-form-item label="评课教师姓名" v-bind="validateInfos.tkjsxm">
<a-input v-model:value="formData.tkjsxm" placeholder="请输入评课教师姓名" disabled></a-input>
</a-form-item>
</a-col>
<a-col :span="8" style="margin-top: 20px;">
<a-form-item label="工号" v-bind="validateInfos.tkjsgh">
<a-input v-model:value="formData.tkjsgh" placeholder="请输入工号" disabled="true"></a-input>
</a-form-item>
</a-col>
<a-col :span="8" style="margin-top: 20px;">
<a-form-item label="评课时间" v-bind="validateInfos.tksj">
<a-date-picker placeholder="请选择评课时间" v-model:value="formData.tksj" value-format="YYYY-MM-DD" style="width: 100%" :disabled="disabled"/>
</a-form-item>
</a-col>
</a-row>
</a-col>
<a-col :span="4" style="height: 80px;line-height: 80px;text-align: center;">
<a-button type="primary" @click="handleJyktsj" style="font-size:20px;height: 50px;">匹配课堂数据</a-button>
@ -113,6 +120,7 @@
</a-row>
</a-form>
<KcKetangbiaoListModal ref="KcKetangbiaoListModalPage" @success="handleSuccess"></KcKetangbiaoListModal>
<CheckUserToolModal ref="CheckUserToolModalRef" @success="userSuccess"/>
</a-spin>
</template>
@ -126,8 +134,10 @@
import { Form } from 'ant-design-vue';
import KcKetangbiaoListModal from '/@/views/kc/ketang/KcKetangbiaoListModal.vue'
import JCheckbox from "/@/components/Form/src/jeecg/components/JCheckbox.vue";
import CheckUserToolModal from '/@/views/kc/kcTingkeBmd/checkuser/CheckUserToolModal.vue';
const KcKetangbiaoListModalPage = ref();
const CheckUserToolModalRef = ref();
const props = defineProps({
formDisabled: { type: Boolean, default: false },
@ -194,6 +204,16 @@
return props.formDisabled;
});
//
function checkTeacher(){
CheckUserToolModalRef.value.add("选择教师")
}
//
function userSuccess(par){
console.log(`🚀 ~ userSuccess ~ par:`, par)
formData.tkjsxm = par.xm;
formData.tkjsgh = par.gh;
}
/**
* 校验课堂数据
*/

View File

@ -2,20 +2,27 @@
<a-spin :spinning="confirmLoading">
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol" :model="formData" :rules="validatorRules">
<a-row>
<a-col :span="8">
<a-form-item label="评课教师姓名" v-bind="validateInfos.tkjsxm">
<a-input v-model:value="formData.tkjsxm" placeholder="请输入评课教师姓名" @change="handleHqjsbh" :disabled="disabled"></a-input>
</a-form-item>
<a-col :span="4" style="height: 80px;line-height: 80px;text-align: center;">
<a-button type="primary" @click="checkTeacher" style="font-size:20px;height: 50px;">匹配教师数据</a-button>
</a-col>
<a-col :span="8">
<a-form-item label="工号" v-bind="validateInfos.tkjsbh">
<a-input v-model:value="formData.tkjsbh" placeholder="请输入工号" disabled="true"></a-input>
</a-form-item>
</a-col>
<a-col :span="8" style="height: 32px;">
<a-form-item label="评课时间" v-bind="validateInfos.pksj">
<a-date-picker placeholder="请选择评课时间" v-model:value="formData.pksj" value-format="YYYY-MM-DD" style="width: 100%" :disabled="disabled"/>
</a-form-item>
<a-col :span="20">
<a-row>
<a-col :span="8" style="margin-top: 20px;">
<a-form-item label="评课教师姓名" v-bind="validateInfos.tkjsxm">
<a-input v-model:value="formData.tkjsxm" placeholder="请输入评课教师姓名" disabled></a-input>
</a-form-item>
</a-col>
<a-col :span="8" style="margin-top: 20px;">
<a-form-item label="工号" v-bind="validateInfos.tkjsbh">
<a-input v-model:value="formData.tkjsbh" placeholder="请输入工号" disabled="true"></a-input>
</a-form-item>
</a-col>
<a-col :span="8" style="margin-top: 20px;height: 32px;">
<a-form-item label="评课时间" v-bind="validateInfos.pksj">
<a-date-picker placeholder="请选择评课时间" v-model:value="formData.pksj" value-format="YYYY-MM-DD" style="width: 100%" :disabled="disabled"/>
</a-form-item>
</a-col>
</a-row>
</a-col>
<a-col :span="4" style="height: 80px;line-height: 80px;text-align: center;">
<a-button type="primary" @click="handleJyktsj" style="font-size:20px;height: 50px;">匹配课堂数据</a-button>
@ -44,7 +51,7 @@
</a-col>
<a-col :span="16">
<a-form-item label="上课地点" v-bind="validateInfos.skdd" :labelCol="labelCol3" :wrapperCol="wrapperCol3">
<a-input v-model:value="formData.skjs" placeholder="请输入上课地点" disabled="true"></a-input>
<a-input v-model:value="formData.skdd" placeholder="请输入上课地点" disabled="true"></a-input>
</a-form-item>
</a-col>
</a-row>
@ -104,6 +111,7 @@
</a-row>
</a-form>
<KcKetangbiaoListModal ref="KcKetangbiaoListModalPage" @success="handleSuccess"></KcKetangbiaoListModal>
<CheckUserToolModal ref="CheckUserToolModalRef" @success="userSuccess"/>
</a-spin>
</template>
@ -114,10 +122,12 @@
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import KcKetangbiaoListModal from '/@/views/kc/ketang/KcKetangbiaoListModal.vue'
import CheckUserToolModal from '/@/views/kc/kcTingkeBmd/checkuser/CheckUserToolModal.vue';
import { getValueType } from '/@/utils';
import { saveOrUpdate } from '../KcZzYbtkb.api';
import { Form } from 'ant-design-vue';
const KcKetangbiaoListModalPage = ref();
const CheckUserToolModalRef = ref();
const props = defineProps({
formDisabled: { type: Boolean, default: false },
@ -181,7 +191,16 @@
}
return props.formDisabled;
});
//
function checkTeacher(){
CheckUserToolModalRef.value.add("选择教师")
}
//
function userSuccess(par){
console.log(`🚀 ~ userSuccess ~ par:`, par)
formData.tkjsxm = par.xm;
formData.tkjsbh = par.gh;
}
/**
* 校验课堂数据
*/

View File

@ -0,0 +1,272 @@
<template>
<div>
<!--查询区域-->
<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="课程名称">
<j-input placeholder="请输入课程名称" v-model:value="queryParam.kcmc"></j-input>
</a-form-item>
</a-col>
<a-col :lg="8">
<a-form-item label="授课教师">
<j-input placeholder="请输入授课教师" v-model:value="queryParam.skjs"></j-input>
</a-form-item>
</a-col>
<a-col :lg="8">
<a-form-item label="授课教师工号">
<j-input placeholder="请输入授课教师工号" v-model:value="queryParam.jgh"></j-input>
</a-form-item>
</a-col>
<a-col :lg="8">
<a-form-item label="授课开始时间">
<a-date-picker valueFormat="YYYY-MM-DD" placeholder="请选择授课开始时间" v-model:value="queryParam.startTime" style="width:100%"/>
</a-form-item>
</a-col>
<a-col :lg="8">
<a-form-item label="授课结束时间">
<a-date-picker valueFormat="YYYY-MM-DD" placeholder="请选择授课结束时间" v-model:value="queryParam.endTime" style="width:100%"/>
</a-form-item>
</a-col>
<a-col :lg="8">
<a-form-item label="开课单位">
<!-- <j-input placeholder="请输入开课单位" v-model:value="queryParam.kkdw"></j-input> -->
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`"/>
</a-form-item>
</a-col>
<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-col>
</span>
</a-col>
</a-row>
</a-form>
</div>
<!--引用表格-->
<BasicTable @register="registerTable" :rowSelection="rowSelection">
<!--插槽:table标题-->
<template #tableTitle>
</template>
<!-- 不显示未选中任何数据 -->
<template #tableTop><span></span></template>
<!--操作栏-->
<template #action="{ record }">
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)"/>
</template>
<!--字段回显插槽-->
<template #htmlSlot="{text}">
<div v-html="text"></div>
</template>
<!-- <template #toUrl="{ text }">
<a-tooltip placement="left" trigger="click">
<template #title>
<a :href="text" target="_blank" style="color:white;">{{ text }}</a>
</template>
<a-button type="primary">查看</a-button>
</a-tooltip>
</template> -->
<!--省市区字段回显插槽-->
<!--<template #pcaSlot="{text}">
{{ getAreaTextByCode(text) }}
</template>-->
<template #fileSlot="{text}">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
<a-button v-else :ghost="true" type="primary" preIcon="ant-design:download-outlined" size="small" @click="downloadFile(text)">下载</a-button>
</template>
</BasicTable>
<!-- 表单区域 -->
</div>
</template>
<script lang="ts" name="ktgl-kcKetangbiao" setup>
import { ref, reactive, watch,defineExpose } from 'vue';
import { BasicTable, useTable, TableAction } from '/@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { useMessage } from '/@/hooks/web/useMessage';
import { columns } from './KcKetangbiao.data';
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './KcKetangbiao.api';
import { downloadFile } from '/@/utils/common/renderUtils';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import {JInput } from '/@/components/Form';
const queryParam = ref<any>({searchByNowXqxn:true});
const toggleSearchStatus = ref<boolean>(false);
const { createMessage } = useMessage();
const registerModal = ref();
const emit = defineEmits(['register', 'ok']);
//table
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
tableProps: {
title: '课堂管理-子表',
api: list,
columns,
canResize:false,
useSearchForm: false,
showActionColumn: false,
clickToRowSelect: true,
rowSelection: {
type: 'checkbox'
},
actionColumn: {
width: 120,
fixed: 'right',
},
beforeFetch: (params) => {
params.column = '',params.order = '';//
params.isDelete = 0;
return Object.assign(params, queryParam.value);
},
},
exportConfig: {
name: "课堂管理-子表",
url: getExportUrl,
},
importConfig: {
url: getImportUrl,
success: handleSuccess
},
});
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys, selectedRows }] = tableContext;
const labelCol = reactive({
xs: { span: 24 },
sm: { span: 7 },
});
const wrapperCol = reactive({
xs: { span: 24 },
sm: { span: 16 },
});
const props = defineProps({
currentRowKey: Object,
})
watch(() => props.currentRowKey, async (newRow, oldRow) => {
selectedRows.value = [];
selectedRowKeys.value = [];
});
/**
* 新增事件
*/
function add() {
selectedRowKeys.value = [];
rowSelection.value = [];
selectedRows.value = [];
queryParam.value = {searchByNowXqxn:true};
reload();
}
function submitForm() {
console.log(selectedRows.value);
var infoPar = selectedRows.value
if(infoPar){
var kssj = queryParam.value.startTime;
var jssj = queryParam.value.endTime;
var returnPar = {list:infoPar,kssj:kssj,jssj:jssj}
// console.log(`🚀 ~ file: KcKetangbiaoList.vue:157 ~ submitForm ~ aa:`, aa)
console.log(`🚀 ~ submitForm ~ returnPar:`, returnPar)
emit('ok',returnPar);
}else{
createMessage.warning("请选择课堂数据");
}
}
defineExpose({
add,
submitForm,
});
/**
* 编辑事件
*/
function handleEdit(record: Recordable) {
// registerModal.value.disableSubmit = false;
// registerModal.value.type = 'all';
// registerModal.value.edit(record);
}
/**
* 详情
*/
function handleDetail(record: Recordable) {
// registerModal.value.disableSubmit = true;
// registerModal.value.edit(record);
}
/**
* 成功回调
*/
function handleSuccess() {
(selectedRowKeys.value = []) && reload();
}
/**
* 操作栏
*/
function getTableAction(record) {
return [
{
label: '编辑',
onClick: handleEdit.bind(null, record),
},
];
}
/**
* 下拉操作栏
*/
function getDropDownAction(record) {
return [
{
label: '详情',
onClick: handleDetail.bind(null, record),
}
]
}
/**
* 查询
*/
function searchQuery() {
reload();
}
/**
* 重置
*/
function searchReset() {
queryParam.value = {};
selectedRowKeys.value = [];
//
reload();
}
</script>
<style lang="less" scoped>
.jeecg-basic-table-form-container {
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;
white-space: nowrap;
}
.query-group-cust{
width: calc(50% - 15px);
min-width: 100px !important;
}
.query-group-split-cust{
width: 30px;
display: inline-block;
text-align: center
}
}
</style>

View File

@ -0,0 +1,76 @@
<template>
<a-modal :title="title" :width="width" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
<KcKetangbiaoCheckBmdList ref="registerForm222" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></KcKetangbiaoCheckBmdList>
</a-modal>
</template>
<script lang="ts" setup>
import { ref, nextTick, defineExpose } from 'vue';
import KcKetangbiaoCheckBmdList from './KcKetangbiaoCheckBmdList.vue'
const title = ref<string>('');
const width = ref<string>('80%');
const visible = ref<boolean>(false);
const disableSubmit = ref<boolean>(false);
const registerForm222 = ref();
const emit = defineEmits(['register', 'success']);
/**
* 新增
*/
function add(titlePar) {
title.value = titlePar+'新增';
visible.value = true;
nextTick(() => {
registerForm222.value.add();
});
}
/**
* 编辑
* @param record
*/
function edit(record) {
// title.value = disableSubmit.value ? '' : '';
// visible.value = true;
// nextTick(() => {
// registerForm.value.edit(record);
// });
}
/**
* 确定按钮点击事件
*/
function handleOk() {
registerForm222.value.submitForm();
}
/**
* form保存回调事件
*/
function submitCallback(aa) {
console.log(`🚀 ~ file: KcKetangbiaoListModal.vue:52 ~ submitCallback ~ aa:`, aa)
handleCancel();
emit('success',aa);
}
/**
* 取消按钮回调事件
*/
function handleCancel() {
visible.value = false;
}
defineExpose({
add,
edit,
disableSubmit,
});
</script>
<style>
/**隐藏样式-modal确定按钮 */
.jee-hidden {
display: none !important;
}
</style>

View File

@ -31,7 +31,8 @@
</a-col>
<a-col :lg="8">
<a-form-item label="开课单位">
<j-input placeholder="请输入开课单位" v-model:value="queryParam.kkdw"></j-input>
<!-- <j-input placeholder="请输入开课单位" v-model:value="queryParam.kkdw"></j-input> -->
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`"/>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">

View File

@ -21,10 +21,10 @@
<a-row >
<a-col :xs="{ span: 0 }" :sm="{ span: 24 }" :lg="{ span: 24 }">
<a-menu style="margin-top: 20px;" :selectable="false">
<a-menu-item key="1" v-if="getSysConfig().flag7=='1'&& getSysConfig().sfbmd=='n'">
<a-menu-item key="1" v-if="getSysConfig().flag7=='1'">
<a class="abox" @click="toDom('tkzjDom')">听课足迹</a>
</a-menu-item>
<a-menu-item key="2" v-if="getSysConfig().flag7=='1'&& getSysConfig().sfbmd=='n'">
<a-menu-item key="2" v-if="getSysConfig().flag7=='1'">
<a class="abox" @click="toDom('tkzjDom')">评课足迹</a>
</a-menu-item>
<a-menu-item key="3" v-if="getSysConfig().flag2=='1'&& getSysConfig().sfbmd=='n'">
@ -33,7 +33,7 @@
<a-menu-item key="8" v-if="getSysConfig().sfbmd=='n'">
<a class="abox" @click="toDom('pjjgDom')">评价结果</a>
</a-menu-item>
<a-menu-item key="4" v-if="getSysConfig().flag3=='1'&& getSysConfig().sfbmd=='n'">
<a-menu-item key="4" v-if="getSysConfig().flag3=='1'">
<a class="abox" @click="toDom('yykcDom')">预约课程</a>
</a-menu-item>
<a-menu-item key="5" v-if="getSysConfig().flag4=='1'&& getSysConfig().sfbmd=='n'">

View File

@ -6,6 +6,8 @@
<headerPage showRightButton/>
<!-- 主体部分 -->
<a-layout-content>
<!-- 白名单说明文字 -->
<div class="bmdTitle" v-if="getSysConfig().sfbmd=='y'&&getSysConfig().bmdTitle">{{getSysConfig().bmdTitle}}</div>
<!-- 统计 -->
<tongjiPage v-if="getUserSf()=='T'&&getSysConfig().flag7=='1'&&getSysConfig().sfbmd=='n'"/>
<!-- 轮播图 -->
@ -13,13 +15,13 @@
<!-- 通知公告 -->
<tongZhiGongGaoPage v-if="getSysConfig().sfbmd=='n'"/>
<!-- 听课足迹 -->
<tingKeZuJiPage v-if="getUserSf()=='T'&&getSysConfig().sfbmd=='n'"/>
<tingKeZuJiPage v-if="getUserSf()=='T'"/>
<!-- 任教教程 -->
<renKeJiaoChengPage v-if="getUserSf()=='T'&&getSysConfig().flag2=='1'&&getSysConfig().sfbmd=='n'" />
<!-- 评价结果 -->
<pjjgPage v-if="getSysConfig().sfbmd=='n'"/>
<!-- 预约课程 -->
<yuYueKeChengPage ref="yykcModeal" @orther-load="yykcLoad" v-if="getUserSf()=='T'&&getSysConfig().flag3=='1'&&getSysConfig().sfbmd=='n'"/>
<yuYueKeChengPage ref="yykcModeal" @orther-load="yykcLoad" v-if="getUserSf()=='T'&&getSysConfig().flag3=='1'"/>
<!-- 精彩公开课 -->
<jingCaiGongKaiKePage v-if="getUserSf()=='T'&&getSysConfig().flag4=='1'&&getSysConfig().sfbmd=='n'"/>
<!-- 可线上听课课堂 -->
@ -262,4 +264,15 @@
a {
color: #337ab7;
}
.bmdTitle{
background-color: #fff;
height: 100px;
line-height: 23px;
padding: 10px;
display: flex;
align-items: center;
flex-direction: row;
flex-wrap: wrap;
font-weight: 600;font-size: 16px;
}
</style>

View File

@ -9,7 +9,8 @@
</a-col>
<a-col :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 6 }">
<a-form-item label="" style="padding: 10px;">
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`" />
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`" v-if="getSysConfig().sfbmd=='n'" />
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`t_bmd_kkdw,kkdw,kkdw,jgh = '${userStore?.getUserInfo?.username}'`" v-else />
</a-form-item>
</a-col>
<a-col :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 6 }">
@ -43,7 +44,7 @@
<a-tab-pane key="1">
<template #tab>
<div>
<div style="float: left;">完全线下课程</div>
<div style="float: left;">课程总数</div>
<div style="background-color: rgb(26, 179, 148);color: rgb(255, 255, 255);border-radius: 18px;min-width: 22px;text-align: center;float: left;margin-left: 10px;">
{{xxkcTotal}}</div>
</div>
@ -71,6 +72,10 @@ import { ref,onMounted,defineExpose } from 'vue';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import kclbList from '/@/views/site/jrkclb/kclbList.vue';
import { defHttp } from '/@/utils/http/axios';
import {getSysConfig } from '/@/views/site/utils/index';
//
import { useUserStore } from '/@/store/modules/user';
const userStore = useUserStore();
const rkbActiveKey = ref('1');
const jclist = (queryParam) => defHttp.get({ url: '/kcJieci/kcJieci/getIndexJcList', params:queryParam });
const queryParam = ref<any>({});

View File

@ -6,7 +6,9 @@
<a-row style="margin-top:20px;">
<a-col :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 4 }">
<a-form-item label="" style="padding: 10px;">
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`" />
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`" v-if="getSysConfig().sfbmd=='n'" />
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`t_bmd_kkdw,kkdw,kkdw,jgh = '${userStore?.getUserInfo?.username}'`" v-else />
</a-form-item>
</a-col>
<a-col :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 4 }">
@ -33,7 +35,7 @@
<a-tab-pane key="1">
<template #tab>
<div>
<div style="float: left;">完全线下课程</div>
<div style="float: left;">课程总数</div>
<div style="background-color: rgb(26, 179, 148);color: rgb(255, 255, 255);border-radius: 18px;width: 22px;text-align: center;float: left;margin-left: 10px;">
{{xxkcTotal}}</div>
</div>
@ -61,6 +63,10 @@ import { ref,onMounted,defineExpose } from 'vue';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import kclbList from '/@/views/site/jrkclb/kclbList.vue';
import { defHttp } from '/@/utils/http/axios';
import {getSysConfig } from '/@/views/site/utils/index';
//
import { useUserStore } from '/@/store/modules/user';
const userStore = useUserStore();
const rkbActiveKey = ref('1');
const jclist = (queryParam) => defHttp.get({ url: '/kcJieci/kcJieci/getIndexJcList', params:queryParam });
const queryParam = ref<any>({});

View File

@ -12,7 +12,8 @@
<a-row style="margin-top:20px;">
<a-col :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 4 }">
<a-form-item label="" style="padding: 10px;">
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`" />
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`" v-if="getSysConfig().sfbmd=='n'" />
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`t_bmd_kkdw,kkdw,kkdw,jgh = '${userStore?.getUserInfo?.username}'`" v-else />
</a-form-item>
</a-col>
<a-col :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 4 }">
@ -39,7 +40,7 @@
<a-tab-pane key="1">
<template #tab>
<div>
<div style="float: left;">完全线下课程</div>
<div style="float: left;">课程总数</div>
<div style="background-color: rgb(26, 179, 148);color: rgb(255, 255, 255);border-radius: 18px;width: 22px;text-align: center;float: left;margin-left: 10px;">
{{xxkcTotal}}</div>
</div>
@ -67,6 +68,10 @@ import { ref,onMounted,defineExpose } from 'vue';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import kclbList from '/@/views/site/jrkclb/kclbList.vue';
import { defHttp } from '/@/utils/http/axios';
import {getSysConfig } from '/@/views/site/utils/index';
//
import { useUserStore } from '/@/store/modules/user';
const userStore = useUserStore();
const emit = defineEmits(['jrkclbLoad']);
const rkbActiveKey = ref('1');

View File

@ -85,11 +85,17 @@ function funpingjia(item){
function isNow(item){
const jssj = dayjs(item.skrq + " " +item.jssj, 'YYYY-MM-DD hh:mm:ss');
const kssj = dayjs(item.skrq + " " +item.xjkssj, 'YYYY-MM-DD hh:mm:ss');
const dqsj = dayjs(new Date());
if(jssj.unix() < dqsj.unix()){
return true;
}else{
const threeMin = new Date(kssj).getTime() - 30*60*1000;
const threeMinAbc = dayjs(threeMin);
console.log("kssj--->",threeMinAbc.unix() < dqsj.unix());
console.log("kssj--->",dqsj.unix() < jssj.unix());
if(threeMinAbc.unix() < dqsj.unix() && dqsj.unix() < jssj.unix()){
console.log("false");
return false;
}else{
return true;
}
}

View File

@ -7,7 +7,8 @@
</a-col>
<a-col :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 4 }">
<a-form-item label="" style="padding: 10px;">
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`" />
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`" v-if="getSysConfig().sfbmd=='n'" />
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`t_bmd_kkdw,kkdw,kkdw,jgh = '${userStore?.getUserInfo?.username}'`" v-else />
</a-form-item>
</a-col>
<a-col :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 3 }">
@ -73,6 +74,7 @@ import { useRouter } from 'vue-router'
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import { Modal } from 'ant-design-vue';
import { CloseOutlined } from '@ant-design/icons-vue';
import {getSysConfig } from '/@/views/site/utils/index';
//
import { useUserStore } from '/@/store/modules/user';

View File

@ -2,7 +2,8 @@
<a-row style="margin-top:20px;">
<a-col :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 4 }">
<a-form-item label="" style="padding: 10px;">
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`" />
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`" v-if="getSysConfig().sfbmd=='n'" />
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`t_bmd_kkdw,kkdw,kkdw,jgh = '${userStore?.getUserInfo?.username}'`" v-else />
</a-form-item>
</a-col>
<a-col :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 4 }">
@ -61,6 +62,7 @@ import { useRouter } from 'vue-router'
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import { Modal } from 'ant-design-vue';
import { CloseOutlined } from '@ant-design/icons-vue';
import {getSysConfig } from '/@/views/site/utils/index';
//
import { useUserStore } from '/@/store/modules/user';

View File

@ -2,7 +2,8 @@
<a-row style="margin-top:20px;">
<a-col :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 4 }">
<a-form-item label="" style="padding: 10px;">
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`" />
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`" v-if="getSysConfig().sfbmd=='n'" />
<JDictSelectTag placeholder="请选择院系" v-model:value="queryParam.kkdw" :dictCode="`t_bmd_kkdw,kkdw,kkdw,jgh = '${userStore?.getUserInfo?.username}'`" v-else />
</a-form-item>
</a-col>
<a-col :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 4 }">
@ -60,6 +61,7 @@ import { useRouter } from 'vue-router'
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import { Modal } from 'ant-design-vue';
import { CloseOutlined } from '@ant-design/icons-vue';
import {getSysConfig } from '/@/views/site/utils/index';
//
import { useUserStore } from '/@/store/modules/user';

View File

@ -38,7 +38,7 @@
<a-tab-pane key="1">
<template #tab>
<div>
<div style="float: left;">完全线下课程</div>
<div style="float: left;">课程总数</div>
<div style="background-color: rgb(26, 179, 148);color: rgb(255, 255, 255);border-radius: 18px;min-width: 22px;text-align: center;float: left;margin-left: 10px;">
{{xxkcTotal}}</div>
</div>

View File

@ -24,7 +24,7 @@
<a-tab-pane key="1">
<template #tab>
<div>
<div style="float: left;">完全线下课程</div>
<div style="float: left;">课程总数</div>
<div style="background-color: rgb(26, 179, 148);color: rgb(255, 255, 255);border-radius: 18px;width: 22px;text-align: center;float: left;margin-left: 10px;">
{{xxkcTotal}}</div>
</div>

View File

@ -29,7 +29,7 @@
<a-tab-pane key="1">
<template #tab>
<div>
<div style="float: left;">完全线下课程</div>
<div style="float: left;">课程总数</div>
<div style="background-color: rgb(26, 179, 148);color: rgb(255, 255, 255);border-radius: 18px;width: 22px;text-align: center;float: left;margin-left: 10px;">
{{xxkcTotal}}</div>
</div>