修改bug
This commit is contained in:
parent
40077fe34f
commit
628e7961c6
|
@ -0,0 +1,64 @@
|
|||
import {defHttp} from '/@/utils/http/axios';
|
||||
import { useMessage } from "/@/hooks/web/useMessage";
|
||||
|
||||
const { createConfirm } = useMessage();
|
||||
|
||||
enum Api {
|
||||
list = '/blZycc/blZycc/list',
|
||||
save='/blZycc/blZycc/add',
|
||||
edit='/blZycc/blZycc/edit',
|
||||
deleteOne = '/blZycc/blZycc/delete',
|
||||
deleteBatch = '/blZycc/blZycc/deleteBatch',
|
||||
importExcel = '/blZycc/blZycc/importExcel',
|
||||
exportXls = '/blZycc/blZycc/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});
|
||||
|
||||
/**
|
||||
* 删除单个
|
||||
*/
|
||||
export const deleteOne = (params,handleSuccess) => {
|
||||
return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => {
|
||||
handleSuccess();
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 批量删除
|
||||
* @param params
|
||||
*/
|
||||
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
|
||||
*/
|
||||
export const saveOrUpdate = (params, isUpdate) => {
|
||||
let url = isUpdate ? Api.edit : Api.save;
|
||||
return defHttp.post({url: url, params});
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
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: 'filePath',
|
||||
align:"center",
|
||||
dataIndex: 'filePath',
|
||||
slots: { customRender: 'fileSlot' },
|
||||
},
|
||||
];
|
||||
//查询数据
|
||||
export const searchFormSchema: FormSchema[] = [
|
||||
];
|
||||
//表单数据
|
||||
export const formSchema: FormSchema[] = [
|
||||
{
|
||||
label: 'filePath',
|
||||
field: 'filePath',
|
||||
component: 'JUpload',
|
||||
componentProps:{
|
||||
},
|
||||
},
|
||||
// TODO 主键隐藏字段,目前写死为ID
|
||||
{
|
||||
label: '',
|
||||
field: 'id',
|
||||
component: 'Input',
|
||||
show: false
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 流程表单调用这个方法获取formSchema
|
||||
* @param param
|
||||
*/
|
||||
export function getBpmFormSchema(_formData): FormSchema[]{
|
||||
// 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
|
||||
return formSchema;
|
||||
}
|
|
@ -0,0 +1,173 @@
|
|||
<template>
|
||||
<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)" :dropDownActions="getDropDownAction(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>
|
||||
<!-- 表单区域 -->
|
||||
<BlZyccModal @register="registerModal" @success="handleSuccess"></BlZyccModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="blZycc-blZycc" setup>
|
||||
import {ref, computed, unref} from 'vue';
|
||||
import {BasicTable, useTable, TableAction} from '/@/components/Table';
|
||||
import {useModal} from '/@/components/Modal';
|
||||
import { useListPage } from '/@/hooks/system/useListPage'
|
||||
import BlZyccModal from './components/BlZyccModal.vue'
|
||||
import {columns, searchFormSchema} from './BlZycc.data';
|
||||
import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './BlZycc.api';
|
||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||
const checkedKeys = ref<Array<string | number>>([]);
|
||||
//注册model
|
||||
const [registerModal, {openModal}] = useModal();
|
||||
//注册table数据
|
||||
const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({
|
||||
tableProps:{
|
||||
title: 'bl_zycc',
|
||||
api: list,
|
||||
columns,
|
||||
canResize:false,
|
||||
formConfig: {
|
||||
//labelWidth: 120,
|
||||
schemas: searchFormSchema,
|
||||
autoSubmitOnEnter:true,
|
||||
showAdvancedButton:true,
|
||||
fieldMapToNumber: [
|
||||
],
|
||||
fieldMapToTime: [
|
||||
],
|
||||
},
|
||||
actionColumn: {
|
||||
width: 120,
|
||||
fixed:'right'
|
||||
},
|
||||
},
|
||||
exportConfig: {
|
||||
name:"bl_zycc",
|
||||
url: getExportUrl,
|
||||
},
|
||||
importConfig: {
|
||||
url: getImportUrl,
|
||||
success: handleSuccess
|
||||
},
|
||||
})
|
||||
|
||||
const [registerTable, {reload},{ rowSelection, selectedRowKeys }] = tableContext
|
||||
|
||||
/**
|
||||
* 新增事件
|
||||
*/
|
||||
function handleAdd() {
|
||||
openModal(true, {
|
||||
isUpdate: false,
|
||||
showFooter: true,
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 编辑事件
|
||||
*/
|
||||
function handleEdit(record: Recordable) {
|
||||
openModal(true, {
|
||||
record,
|
||||
isUpdate: true,
|
||||
showFooter: true,
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 详情
|
||||
*/
|
||||
function handleDetail(record: Recordable) {
|
||||
openModal(true, {
|
||||
record,
|
||||
isUpdate: true,
|
||||
showFooter: false,
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 删除事件
|
||||
*/
|
||||
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),
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
|
@ -0,0 +1,70 @@
|
|||
<template>
|
||||
<div style="min-height: 400px">
|
||||
<BasicForm @register="registerForm"></BasicForm>
|
||||
<div style="width: 100%;text-align: center" v-if="!formDisabled">
|
||||
<a-button @click="submitForm" pre-icon="ant-design:check" type="primary">提 交</a-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import {BasicForm, useForm} from '/@/components/Form/index';
|
||||
import {computed, defineComponent} from 'vue';
|
||||
import {defHttp} from '/@/utils/http/axios';
|
||||
import { propTypes } from '/@/utils/propTypes';
|
||||
import {getBpmFormSchema} from '../BlZycc.data';
|
||||
import {saveOrUpdate} from '../BlZycc.api';
|
||||
|
||||
export default defineComponent({
|
||||
name: "BlZyccForm",
|
||||
components:{
|
||||
BasicForm
|
||||
},
|
||||
props:{
|
||||
formData: propTypes.object.def({}),
|
||||
formBpm: propTypes.bool.def(true),
|
||||
},
|
||||
setup(props){
|
||||
const [registerForm, { setFieldsValue, setProps, getFieldsValue }] = useForm({
|
||||
labelWidth: 150,
|
||||
schemas: getBpmFormSchema(props.formData),
|
||||
showActionButtonGroup: false,
|
||||
baseColProps: {span: 24}
|
||||
});
|
||||
|
||||
const formDisabled = computed(()=>{
|
||||
if(props.formData.disabled === false){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
let formData = {};
|
||||
const queryByIdUrl = '/blZycc/blZycc/queryById';
|
||||
async function initFormData(){
|
||||
let params = {id: props.formData.dataId};
|
||||
const data = await defHttp.get({url: queryByIdUrl, params});
|
||||
formData = {...data}
|
||||
//设置表单的值
|
||||
await setFieldsValue(formData);
|
||||
//默认是禁用
|
||||
await setProps({disabled: formDisabled.value})
|
||||
}
|
||||
|
||||
async function submitForm() {
|
||||
let data = getFieldsValue();
|
||||
let params = Object.assign({}, formData, data);
|
||||
console.log('表单数据', params)
|
||||
await saveOrUpdate(params, true)
|
||||
}
|
||||
|
||||
initFormData();
|
||||
|
||||
return {
|
||||
registerForm,
|
||||
formDisabled,
|
||||
submitForm,
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
|
@ -0,0 +1,66 @@
|
|||
<template>
|
||||
<BasicModal v-bind="$attrs" @register="registerModal" destroyOnClose :title="title" :width="800" @ok="handleSubmit">
|
||||
<BasicForm @register="registerForm"/>
|
||||
</BasicModal>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import {ref, computed, unref} from 'vue';
|
||||
import {BasicModal, useModalInner} from '/@/components/Modal';
|
||||
import {BasicForm, useForm} from '/@/components/Form/index';
|
||||
import {formSchema} from '../BlZycc.data';
|
||||
import {saveOrUpdate} from '../BlZycc.api';
|
||||
// Emits声明
|
||||
const emit = defineEmits(['register','success']);
|
||||
const isUpdate = ref(true);
|
||||
//表单配置
|
||||
const [registerForm, {setProps,resetFields, setFieldsValue, validate}] = useForm({
|
||||
//labelWidth: 150,
|
||||
schemas: formSchema,
|
||||
showActionButtonGroup: false,
|
||||
baseColProps: {span: 24}
|
||||
});
|
||||
//表单赋值
|
||||
const [registerModal, {setModalProps, closeModal}] = useModalInner(async (data) => {
|
||||
//重置表单
|
||||
await resetFields();
|
||||
setModalProps({confirmLoading: false,showCancelBtn:!!data?.showFooter,showOkBtn:!!data?.showFooter});
|
||||
isUpdate.value = !!data?.isUpdate;
|
||||
if (unref(isUpdate)) {
|
||||
//表单赋值
|
||||
await setFieldsValue({
|
||||
...data.record,
|
||||
});
|
||||
}
|
||||
// 隐藏底部时禁用整个表单
|
||||
setProps({ disabled: !data?.showFooter })
|
||||
});
|
||||
//设置标题
|
||||
const title = computed(() => (!unref(isUpdate) ? '新增' : '编辑'));
|
||||
//表单提交事件
|
||||
async function handleSubmit(v) {
|
||||
try {
|
||||
let values = await validate();
|
||||
setModalProps({confirmLoading: true});
|
||||
//提交表单
|
||||
await saveOrUpdate(values, isUpdate.value);
|
||||
//关闭弹窗
|
||||
closeModal();
|
||||
//刷新列表
|
||||
emit('success');
|
||||
} finally {
|
||||
setModalProps({confirmLoading: false});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
/** 时间和数字输入框样式 */
|
||||
:deep(.ant-input-number){
|
||||
width: 100%
|
||||
}
|
||||
|
||||
:deep(.ant-calendar-picker){
|
||||
width: 100%
|
||||
}
|
||||
</style>
|
|
@ -6,7 +6,7 @@
|
|||
<a-row :gutter="24">
|
||||
<a-col :span="4">
|
||||
<a-form-item label="">
|
||||
<JDictSelectTag placeholder="报错人所在单位" v-model:value="queryParam.kkdw" :dictCode="`tkrszdw_view,college,college`"/>
|
||||
<JDictSelectTag placeholder="报错人所在单位" v-model:value="queryParam.kkdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="3">
|
||||
|
|
|
@ -0,0 +1,64 @@
|
|||
import {defHttp} from '/@/utils/http/axios';
|
||||
import { useMessage } from "/@/hooks/web/useMessage";
|
||||
|
||||
const { createConfirm } = useMessage();
|
||||
|
||||
enum Api {
|
||||
list = '/kcEvaluationsHisrecord/kcEvaluationsHisrecord/list',
|
||||
save='/kcEvaluationsHisrecord/kcEvaluationsHisrecord/add',
|
||||
edit='/kcEvaluationsHisrecord/kcEvaluationsHisrecord/edit',
|
||||
deleteOne = '/kcEvaluationsHisrecord/kcEvaluationsHisrecord/delete',
|
||||
deleteBatch = '/kcEvaluationsHisrecord/kcEvaluationsHisrecord/deleteBatch',
|
||||
importExcel = '/kcEvaluationsHisrecord/kcEvaluationsHisrecord/importExcel',
|
||||
exportXls = '/kcEvaluationsHisrecord/kcEvaluationsHisrecord/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});
|
||||
|
||||
/**
|
||||
* 删除单个
|
||||
*/
|
||||
export const deleteOne = (params,handleSuccess) => {
|
||||
return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => {
|
||||
handleSuccess();
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 批量删除
|
||||
* @param params
|
||||
*/
|
||||
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
|
||||
*/
|
||||
export const saveOrUpdate = (params, isUpdate) => {
|
||||
let url = isUpdate ? Api.edit : Api.save;
|
||||
return defHttp.post({url: url, params});
|
||||
}
|
|
@ -0,0 +1,201 @@
|
|||
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: 'xnxq'
|
||||
},
|
||||
{
|
||||
title: '课程编号',
|
||||
align:"center",
|
||||
dataIndex: 'kcbh'
|
||||
},
|
||||
{
|
||||
title: '课程名称',
|
||||
align:"center",
|
||||
dataIndex: 'kcmc'
|
||||
},
|
||||
{
|
||||
title: '开课院系',
|
||||
align:"center",
|
||||
dataIndex: 'kkdw'
|
||||
},
|
||||
{
|
||||
title: '上课教师',
|
||||
align:"center",
|
||||
dataIndex: 'skjs'
|
||||
},
|
||||
{
|
||||
title: '听课教师',
|
||||
align:"center",
|
||||
dataIndex: 'tkjs'
|
||||
},
|
||||
{
|
||||
title: '课堂教学总体印象评价(综合评分)',
|
||||
align:"center",
|
||||
dataIndex: 'col01'
|
||||
},
|
||||
{
|
||||
title: '无迟到、早退、旷课现象(学生情况)',
|
||||
align:"center",
|
||||
dataIndex: 'col02'
|
||||
},
|
||||
{
|
||||
title: '课堂教学秩序好、无喧闹、打瞌睡、发短信、玩手机等现象(学生情况)',
|
||||
align:"center",
|
||||
dataIndex: 'col03'
|
||||
},
|
||||
{
|
||||
title: '上课认真听讲、积极思考,主动与老师交流互动(学生情况)',
|
||||
align:"center",
|
||||
dataIndex: 'col04'
|
||||
},
|
||||
{
|
||||
title: '讲课有热情、精神饱满,能够调动学生情绪,课堂气氛活跃(教师情况)',
|
||||
align:"center",
|
||||
dataIndex: 'col05'
|
||||
},
|
||||
{
|
||||
title: '教学目标明确,内容丰富,重点突出,语言表达清楚(教师情况)',
|
||||
align:"center",
|
||||
dataIndex: 'col06'
|
||||
},
|
||||
{
|
||||
title: '授课有启发性,能给予学生思考、联想、创新的启迪(教师情况)',
|
||||
align:"center",
|
||||
dataIndex: 'col07'
|
||||
},
|
||||
{
|
||||
title: '能有效利用各种教学媒体,课件或板书使用效果好(教师情况)',
|
||||
align:"center",
|
||||
dataIndex: 'col08'
|
||||
},
|
||||
{
|
||||
title: '仪表得体,按时上下课,严格要求学生(教师情况)',
|
||||
align:"center",
|
||||
dataIndex: 'col09'
|
||||
},
|
||||
{
|
||||
title: '意见或建议',
|
||||
align:"center",
|
||||
dataIndex: 'col10'
|
||||
},
|
||||
{
|
||||
title: '数据来源',
|
||||
align:"center",
|
||||
dataIndex: 'source'
|
||||
},
|
||||
];
|
||||
//查询数据
|
||||
export const searchFormSchema: FormSchema[] = [
|
||||
];
|
||||
//表单数据
|
||||
export const formSchema: FormSchema[] = [
|
||||
{
|
||||
label: '学年学期',
|
||||
field: 'xnxq',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '课程编号',
|
||||
field: 'kcbh',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '课程名称',
|
||||
field: 'kcmc',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '开课院系',
|
||||
field: 'kkdw',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '上课教师',
|
||||
field: 'skjs',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '听课教师',
|
||||
field: 'tkjs',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '课堂教学总体印象评价(综合评分)',
|
||||
field: 'col01',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '无迟到、早退、旷课现象(学生情况)',
|
||||
field: 'col02',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '课堂教学秩序好、无喧闹、打瞌睡、发短信、玩手机等现象(学生情况)',
|
||||
field: 'col03',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '上课认真听讲、积极思考,主动与老师交流互动(学生情况)',
|
||||
field: 'col04',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '讲课有热情、精神饱满,能够调动学生情绪,课堂气氛活跃(教师情况)',
|
||||
field: 'col05',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '教学目标明确,内容丰富,重点突出,语言表达清楚(教师情况)',
|
||||
field: 'col06',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '授课有启发性,能给予学生思考、联想、创新的启迪(教师情况)',
|
||||
field: 'col07',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '能有效利用各种教学媒体,课件或板书使用效果好(教师情况)',
|
||||
field: 'col08',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '仪表得体,按时上下课,严格要求学生(教师情况)',
|
||||
field: 'col09',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '意见或建议',
|
||||
field: 'col10',
|
||||
component: 'InputTextArea',
|
||||
},
|
||||
{
|
||||
label: '数据来源',
|
||||
field: 'source',
|
||||
component: 'Input',
|
||||
},
|
||||
// TODO 主键隐藏字段,目前写死为ID
|
||||
{
|
||||
label: '',
|
||||
field: 'id',
|
||||
component: 'Input',
|
||||
show: false
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 流程表单调用这个方法获取formSchema
|
||||
* @param param
|
||||
*/
|
||||
export function getBpmFormSchema(_formData): FormSchema[]{
|
||||
// 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
|
||||
return formSchema;
|
||||
}
|
|
@ -0,0 +1,173 @@
|
|||
<template>
|
||||
<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>
|
||||
<!-- 表单区域 -->
|
||||
<KcEvaluationsHisrecordModal @register="registerModal" @success="handleSuccess"></KcEvaluationsHisrecordModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="kcEvaluationsHisrecord-kcEvaluationsHisrecord" setup>
|
||||
import {ref, computed, unref} from 'vue';
|
||||
import {BasicTable, useTable, TableAction} from '/@/components/Table';
|
||||
import {useModal} from '/@/components/Modal';
|
||||
import { useListPage } from '/@/hooks/system/useListPage'
|
||||
import KcEvaluationsHisrecordModal from './components/KcEvaluationsHisrecordModal.vue'
|
||||
import {columns, searchFormSchema} from './KcEvaluationsHisrecord.data';
|
||||
import {list, deleteOne, batchDelete, getImportUrl,getExportUrl} from './KcEvaluationsHisrecord.api';
|
||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||
const checkedKeys = ref<Array<string | number>>([]);
|
||||
//注册model
|
||||
const [registerModal, {openModal}] = useModal();
|
||||
//注册table数据
|
||||
const { prefixCls,tableContext,onExportXls,onImportXls } = useListPage({
|
||||
tableProps:{
|
||||
title: '历史听课数据',
|
||||
api: list,
|
||||
columns,
|
||||
canResize:false,
|
||||
formConfig: {
|
||||
//labelWidth: 120,
|
||||
schemas: searchFormSchema,
|
||||
autoSubmitOnEnter:true,
|
||||
showAdvancedButton:true,
|
||||
fieldMapToNumber: [
|
||||
],
|
||||
fieldMapToTime: [
|
||||
],
|
||||
},
|
||||
actionColumn: {
|
||||
width: 120,
|
||||
fixed:'right'
|
||||
},
|
||||
},
|
||||
exportConfig: {
|
||||
name:"历史听课数据",
|
||||
url: getExportUrl,
|
||||
},
|
||||
importConfig: {
|
||||
url: getImportUrl,
|
||||
success: handleSuccess
|
||||
},
|
||||
})
|
||||
|
||||
const [registerTable, {reload},{ rowSelection, selectedRowKeys }] = tableContext
|
||||
|
||||
/**
|
||||
* 新增事件
|
||||
*/
|
||||
function handleAdd() {
|
||||
openModal(true, {
|
||||
isUpdate: false,
|
||||
showFooter: true,
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 编辑事件
|
||||
*/
|
||||
function handleEdit(record: Recordable) {
|
||||
openModal(true, {
|
||||
record,
|
||||
isUpdate: true,
|
||||
showFooter: true,
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 详情
|
||||
*/
|
||||
function handleDetail(record: Recordable) {
|
||||
openModal(true, {
|
||||
record,
|
||||
isUpdate: true,
|
||||
showFooter: false,
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 删除事件
|
||||
*/
|
||||
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: handleDetail.bind(null, record),
|
||||
}
|
||||
]
|
||||
}
|
||||
/**
|
||||
* 下拉操作栏
|
||||
*/
|
||||
function getDropDownAction(record){
|
||||
return [
|
||||
{
|
||||
label: '详情',
|
||||
onClick: handleDetail.bind(null, record),
|
||||
}, {
|
||||
label: '删除',
|
||||
popConfirm: {
|
||||
title: '是否确认删除',
|
||||
confirm: handleDelete.bind(null, record),
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
|
@ -0,0 +1,70 @@
|
|||
<template>
|
||||
<div style="min-height: 400px">
|
||||
<BasicForm @register="registerForm"></BasicForm>
|
||||
<div style="width: 100%;text-align: center" v-if="!formDisabled">
|
||||
<a-button @click="submitForm" pre-icon="ant-design:check" type="primary">提 交</a-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import {BasicForm, useForm} from '/@/components/Form/index';
|
||||
import {computed, defineComponent} from 'vue';
|
||||
import {defHttp} from '/@/utils/http/axios';
|
||||
import { propTypes } from '/@/utils/propTypes';
|
||||
import {getBpmFormSchema} from '../KcEvaluationsHisrecord.data';
|
||||
import {saveOrUpdate} from '../KcEvaluationsHisrecord.api';
|
||||
|
||||
export default defineComponent({
|
||||
name: "KcEvaluationsHisrecordForm",
|
||||
components:{
|
||||
BasicForm
|
||||
},
|
||||
props:{
|
||||
formData: propTypes.object.def({}),
|
||||
formBpm: propTypes.bool.def(true),
|
||||
},
|
||||
setup(props){
|
||||
const [registerForm, { setFieldsValue, setProps, getFieldsValue }] = useForm({
|
||||
labelWidth: 150,
|
||||
schemas: getBpmFormSchema(props.formData),
|
||||
showActionButtonGroup: false,
|
||||
baseColProps: {span: 24}
|
||||
});
|
||||
|
||||
const formDisabled = computed(()=>{
|
||||
if(props.formData.disabled === false){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
let formData = {};
|
||||
const queryByIdUrl = '/kcEvaluationsHisrecord/kcEvaluationsHisrecord/queryById';
|
||||
async function initFormData(){
|
||||
let params = {id: props.formData.dataId};
|
||||
const data = await defHttp.get({url: queryByIdUrl, params});
|
||||
formData = {...data}
|
||||
//设置表单的值
|
||||
await setFieldsValue(formData);
|
||||
//默认是禁用
|
||||
await setProps({disabled: formDisabled.value})
|
||||
}
|
||||
|
||||
async function submitForm() {
|
||||
let data = getFieldsValue();
|
||||
let params = Object.assign({}, formData, data);
|
||||
console.log('表单数据', params)
|
||||
await saveOrUpdate(params, true)
|
||||
}
|
||||
|
||||
initFormData();
|
||||
|
||||
return {
|
||||
registerForm,
|
||||
formDisabled,
|
||||
submitForm,
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
|
@ -0,0 +1,66 @@
|
|||
<template>
|
||||
<BasicModal v-bind="$attrs" @register="registerModal" destroyOnClose :title="title" :width="800" @ok="handleSubmit">
|
||||
<BasicForm @register="registerForm"/>
|
||||
</BasicModal>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import {ref, computed, unref} from 'vue';
|
||||
import {BasicModal, useModalInner} from '/@/components/Modal';
|
||||
import {BasicForm, useForm} from '/@/components/Form/index';
|
||||
import {formSchema} from '../KcEvaluationsHisrecord.data';
|
||||
import {saveOrUpdate} from '../KcEvaluationsHisrecord.api';
|
||||
// Emits声明
|
||||
const emit = defineEmits(['register','success']);
|
||||
const isUpdate = ref(true);
|
||||
//表单配置
|
||||
const [registerForm, {setProps,resetFields, setFieldsValue, validate}] = useForm({
|
||||
//labelWidth: 150,
|
||||
schemas: formSchema,
|
||||
showActionButtonGroup: false,
|
||||
baseColProps: {span: 24}
|
||||
});
|
||||
//表单赋值
|
||||
const [registerModal, {setModalProps, closeModal}] = useModalInner(async (data) => {
|
||||
//重置表单
|
||||
await resetFields();
|
||||
setModalProps({confirmLoading: false,showCancelBtn:!!data?.showFooter,showOkBtn:!!data?.showFooter});
|
||||
isUpdate.value = !!data?.isUpdate;
|
||||
if (unref(isUpdate)) {
|
||||
//表单赋值
|
||||
await setFieldsValue({
|
||||
...data.record,
|
||||
});
|
||||
}
|
||||
// 隐藏底部时禁用整个表单
|
||||
setProps({ disabled: !data?.showFooter })
|
||||
});
|
||||
//设置标题
|
||||
const title = computed(() => (!unref(isUpdate) ? '新增' : '编辑'));
|
||||
//表单提交事件
|
||||
async function handleSubmit(v) {
|
||||
try {
|
||||
let values = await validate();
|
||||
setModalProps({confirmLoading: true});
|
||||
//提交表单
|
||||
await saveOrUpdate(values, isUpdate.value);
|
||||
//关闭弹窗
|
||||
closeModal();
|
||||
//刷新列表
|
||||
emit('success');
|
||||
} finally {
|
||||
setModalProps({confirmLoading: false});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
/** 时间和数字输入框样式 */
|
||||
:deep(.ant-input-number){
|
||||
width: 100%
|
||||
}
|
||||
|
||||
:deep(.ant-calendar-picker){
|
||||
width: 100%
|
||||
}
|
||||
</style>
|
|
@ -54,6 +54,11 @@ export const columns: BasicColumn[] = [
|
|||
align: "center",
|
||||
dataIndex: 'col09'
|
||||
},
|
||||
{
|
||||
title: '授课教师单位',
|
||||
align: "center",
|
||||
dataIndex: 'skjsdw'
|
||||
},
|
||||
{
|
||||
title: '听课教师单位',
|
||||
align: "center",
|
||||
|
|
|
@ -14,10 +14,16 @@
|
|||
<j-input placeholder="请输入课程名称" v-model:value="queryParam.col02"></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!--<template v-if="toggleSearchStatus">-->
|
||||
<a-col :lg="8">
|
||||
<a-form-item label="授课教师">
|
||||
<j-input placeholder="请输入授课教师" v-model:value="queryParam.col04"></j-input>
|
||||
<a-form-item label="思政课程">
|
||||
<j-dict-select-tag placeholder="请选择思政课程" v-model:value="queryParam.szkc" dictCode="yn"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
|
||||
<a-col :lg="8">
|
||||
<a-form-item label="授课教师姓名">
|
||||
<j-input placeholder="请输入授课教师姓名" v-model:value="queryParam.col04"></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="8">
|
||||
|
@ -26,8 +32,16 @@
|
|||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="8">
|
||||
<a-form-item label="授课日期">
|
||||
<a-date-picker :showTime="false" valueFormat="YYYY-MM-DD" :placeholder="'请选择授课日期'" style="width:100%;" v-model:value="queryParam.col06"></a-date-picker>
|
||||
<a-form-item label="授课教师单位">
|
||||
<j-dict-select-tag placeholder="请选择授课教师单位" v-model:value="queryParam.skjsdw" dictCode="kc_kkdw_view,kkdw,kkdw"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
|
||||
|
||||
<a-col :lg="8">
|
||||
<a-form-item label="听课教师姓名">
|
||||
<j-input placeholder="请输入听课教师姓名" v-model:value="queryParam.col12"></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="8">
|
||||
|
@ -36,10 +50,16 @@
|
|||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="8">
|
||||
<a-form-item label="听课教师姓名">
|
||||
<j-input placeholder="请输入听课教师姓名" v-model:value="queryParam.col12"></j-input>
|
||||
<a-form-item label="听课教师单位">
|
||||
<j-dict-select-tag placeholder="请选择听课教师单位" v-model:value="queryParam.col10" dictCode="kc_kkdw_view,kkdw,kkdw"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="8">
|
||||
<a-form-item label="听课教师身份">
|
||||
<j-dict-select-tag placeholder="请选择听课教师身份" v-model:value="queryParam.col13" dictCode="tkjssfview,tksf,tksf"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
<a-col :lg="8">
|
||||
<a-form-item label="数据来源">
|
||||
<j-dict-select-tag
|
||||
|
@ -57,28 +77,8 @@
|
|||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="8">
|
||||
<a-form-item label="听课教师单位">
|
||||
<!-- <j-dict-select-tag placeholder="请选择听课教师单位" v-model:value="queryParam.col10" dictCode="XXHBXSKC,dwmc,dwmc,true group by dwmc"/> -->
|
||||
<a-select placeholder="请选择听课教师单位" v-model:value="queryParam.col10">
|
||||
<a-select-option :value="undefined">请选择</a-select-option>
|
||||
<a-select-option value="东北师范大学人文学院">东北师范大学人文学院</a-select-option>
|
||||
<a-select-option value="东北师范大学深圳研究院">东北师范大学深圳研究院</a-select-option>
|
||||
<a-select-option value="东北师范大学罗格斯大学·纽瓦克学院">东北师范大学罗格斯大学·纽瓦克学院</a-select-option>
|
||||
<a-select-option value="东北民族民俗博物馆">东北民族民俗博物馆</a-select-option>
|
||||
<a-select-option value="中国赴日本国留学生预备学校">中国赴日本国留学生预备学校(教育部出国留学人员培训部)</a-select-option>
|
||||
<a-select-option value="人事处">人事处</a-select-option>
|
||||
<a-select-option value="人才交流中心">人才交流中心</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="8">
|
||||
<a-form-item label="听课教师身份">
|
||||
<j-dict-select-tag placeholder="请选择听课教师身份" v-model:value="queryParam.col13" dictCode="tkjssfview,tksf,tksf"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="8">
|
||||
<a-form-item label="思政课程">
|
||||
<j-dict-select-tag placeholder="请选择思政课程" v-model:value="queryParam.szkc" dictCode="yn"/>
|
||||
<a-form-item label="授课日期">
|
||||
<a-date-picker :showTime="false" valueFormat="YYYY-MM-DD" :placeholder="'请选择授课日期'" style="width:100%;" v-model:value="queryParam.col06"></a-date-picker>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="8">
|
||||
|
@ -154,8 +154,9 @@
|
|||
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||
import KcEvaluationsStatModal from './components/KcEvaluationsStatModal.vue'
|
||||
import { JDictSelectTag, JInput } from '/@/components/Form';
|
||||
import { getUserSf,getSysConfig } from '/@/views/site/utils/index';
|
||||
|
||||
const queryParam = ref<any>({});
|
||||
const queryParam = ref<any>({col01:getSysConfig().flag1});
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
const registerModal = ref();
|
||||
//注册table数据
|
||||
|
|
|
@ -8,12 +8,14 @@
|
|||
</a-form>
|
||||
</div> -->
|
||||
<!--引用表格-->
|
||||
<BasicTable @register="registerTable">
|
||||
<BasicTable @register="registerTable" :rowSelection="rowSelection">
|
||||
<!--插槽:table标题-->
|
||||
<template #tableTitle>
|
||||
<span style="font-size:24px;font-weight: 600;padding: 10px;">精彩公开课</span>
|
||||
<span style="padding: 14px;">
|
||||
<a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增精彩公开课</a-button>
|
||||
<a-button type="primary" @click="handleQtxs('0')" preIcon="ant-design:plus-outlined" style="margin-left: 10px;"> 关闭前台显示</a-button>
|
||||
<a-button type="primary" @click="handleQtxs('1')" preIcon="ant-design:plus-outlined" style="margin-left: 10px;"> 开启前台显示</a-button>
|
||||
</span>
|
||||
<!-- <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>
|
||||
|
@ -55,16 +57,19 @@
|
|||
|
||||
<script lang="ts" name="kcGongkaike-kcGongkaike" setup>
|
||||
import { ref, reactive } from 'vue';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { columns } from './KcGongkaike.data';
|
||||
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './KcGongkaike.api';
|
||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||
import KcGongkaikeModal from './components/KcGongkaikeModal.vue'
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
|
||||
const queryParam = ref<any>({});
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
const registerModal = ref();
|
||||
const { createMessage } = useMessage();
|
||||
//注册table数据
|
||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||
tableProps: {
|
||||
|
@ -124,6 +129,24 @@
|
|||
registerModal.value.disableSubmit = true;
|
||||
registerModal.value.edit(record);
|
||||
}
|
||||
|
||||
function handleQtxs(sfxs){
|
||||
const checksId = selectedRowKeys.value;
|
||||
let ids = "";
|
||||
for(var i = 0;i<checksId.length;i++){
|
||||
ids = ids + checksId[i] + ",";
|
||||
}
|
||||
if(!ids){
|
||||
createMessage.error("请选择您想操作的公开课");
|
||||
return;
|
||||
}
|
||||
ids = ids.substring(0, ids.length - 1);
|
||||
const params = { id: ids, sfxs: sfxs }
|
||||
console.log(`🚀 ~ handleQtxs ~ params:`, params)
|
||||
defHttp.post({ url: '/kcGongkaike/kcGongkaike/editBatch', params }).then(res => {
|
||||
reload();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除事件
|
||||
|
|
|
@ -0,0 +1,72 @@
|
|||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from "/@/hooks/web/useMessage";
|
||||
|
||||
const { createConfirm } = useMessage();
|
||||
|
||||
enum Api {
|
||||
list = '/kcTtksdpz/kcTtksdpz/list',
|
||||
save='/kcTtksdpz/kcTtksdpz/add',
|
||||
edit='/kcTtksdpz/kcTtksdpz/edit',
|
||||
deleteOne = '/kcTtksdpz/kcTtksdpz/delete',
|
||||
deleteBatch = '/kcTtksdpz/kcTtksdpz/deleteBatch',
|
||||
importExcel = '/kcTtksdpz/kcTtksdpz/importExcel',
|
||||
exportXls = '/kcTtksdpz/kcTtksdpz/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 });
|
||||
}
|
|
@ -0,0 +1,84 @@
|
|||
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: 'createBy'
|
||||
},
|
||||
{
|
||||
title: '操作时间',
|
||||
align: "center",
|
||||
dataIndex: 'createTime',
|
||||
customRender:({text}) =>{
|
||||
return !text?"":(text.length>10?text.substr(0,10):text);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '调课类型',
|
||||
align: "center",
|
||||
dataIndex: 'tklx_dictText'
|
||||
},
|
||||
{
|
||||
title: '放假时间',
|
||||
align: "center",
|
||||
dataIndex: 'fjsj',
|
||||
customRender:({text}) =>{
|
||||
return !text?"":(text.length>10?text.substr(0,10):text);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '调课时间',
|
||||
align: "center",
|
||||
dataIndex: 'tksj',
|
||||
customRender:({text}) =>{
|
||||
return !text?"":(text.length>10?text.substr(0,10):text);
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
//查询数据
|
||||
export const searchFormSchema: FormSchema[] = [
|
||||
];
|
||||
|
||||
//表单数据
|
||||
export const formSchema: FormSchema[] = [
|
||||
{
|
||||
label: '调课类型',
|
||||
field: 'tklx',
|
||||
component: 'JDictSelectTag',
|
||||
componentProps:{
|
||||
dictCode: "tklx_type"
|
||||
},
|
||||
dynamicRules: ({model,schema}) => {
|
||||
return [
|
||||
{ required: true, message: '请输入调课类型!'},
|
||||
];
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '放假时间',
|
||||
field: 'fjsj',
|
||||
component: 'DatePicker',
|
||||
dynamicRules: ({model,schema}) => {
|
||||
return [
|
||||
{ required: true, message: '请输入放假时间!'},
|
||||
];
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '调课时间',
|
||||
field: 'tksj',
|
||||
component: 'DatePicker',
|
||||
},
|
||||
// TODO 主键隐藏字段,目前写死为ID
|
||||
{
|
||||
label: '',
|
||||
field: 'id',
|
||||
component: 'Input',
|
||||
show: false,
|
||||
},
|
||||
];
|
|
@ -0,0 +1,215 @@
|
|||
<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-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>
|
||||
<!-- 表单区域 -->
|
||||
<KcTtksdpzModal ref="registerModal" @success="handleSuccess"></KcTtksdpzModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="kcTtksdpz-kcTtksdpz" setup>
|
||||
import { ref, reactive } from 'vue';
|
||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { columns } from './KcTtksdpz.data';
|
||||
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './KcTtksdpz.api';
|
||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||
import KcTtksdpzModal from './components/KcTtksdpzModal.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: 220,
|
||||
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),
|
||||
}, {
|
||||
label: '删除',
|
||||
popConfirm: {
|
||||
title: '是否确认删除',
|
||||
confirm: handleDelete.bind(null, record),
|
||||
}
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* 下拉操作栏
|
||||
*/
|
||||
function getDropDownAction(record) {
|
||||
return [
|
||||
]
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
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>
|
|
@ -0,0 +1,153 @@
|
|||
<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.tklx">
|
||||
<j-dict-select-tag type='radio' v-model:value="formData.tklx" dictCode="tklx_type" placeholder="请选择调课类型" :disabled="disabled" @change="handleChange" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="放假时间" v-bind="validateInfos.fjsj">
|
||||
<a-date-picker placeholder="请选择放假时间" v-model:value="formData.fjsj" value-format="YYYY-MM-DD" style="width: 100%" :disabled="disabled"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="调课时间" v-bind="validateInfos.tksj" v-show="formData.tklx=='1'">
|
||||
<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-col :span="24">
|
||||
<a-form-item label="说明" v-bind="validateInfos.tksj" style="color:red;">
|
||||
<p style="margin-top: 5px;">停课:代表在放假时间内,不上课</p>
|
||||
<p>调课:放假时间上调课时间内的课程</p>
|
||||
</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 JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
||||
import { getValueType } from '/@/utils';
|
||||
import { saveOrUpdate } from '../KcTtksdpz.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: '',
|
||||
tklx: '',
|
||||
fjsj: '',
|
||||
tksj: '',
|
||||
});
|
||||
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 = {
|
||||
tklx: [{ required: true, message: '请输入调课类型!'},],
|
||||
fjsj: [{ required: true, message: '请输入放假时间!'},],
|
||||
};
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
||||
function handleChange(record){
|
||||
console.log(`🚀 ~ handleChange ~ record:`, 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>
|
|
@ -0,0 +1,75 @@
|
|||
<template>
|
||||
<a-modal :title="title" :width="width" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
|
||||
<KcTtksdpzForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></KcTtksdpzForm>
|
||||
</a-modal>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, nextTick, defineExpose } from 'vue';
|
||||
import KcTtksdpzForm from './KcTtksdpzForm.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>
|
|
@ -14,11 +14,11 @@ export const columns: BasicColumn[] = [
|
|||
align: "center",
|
||||
dataIndex: 'teacherName'
|
||||
},
|
||||
{
|
||||
title: '学期学年',
|
||||
align: "center",
|
||||
dataIndex: 'xqxn'
|
||||
},
|
||||
// {
|
||||
// title: '学期学年',
|
||||
// align: "center",
|
||||
// dataIndex: 'xqxn'
|
||||
// },
|
||||
{
|
||||
title: '发送内容',
|
||||
align: "center",
|
||||
|
|
|
@ -12,11 +12,11 @@
|
|||
<a-input v-model:value="formData.openid" placeholder="请输入微信openid" :disabled="disabled"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<!-- <a-col :span="24">
|
||||
<a-form-item label="学期学年" v-bind="validateInfos.xqxn">
|
||||
<j-dict-select-tag ref="xqDictTag" placeholder="请选择学年学期" v-model:value="formData.xqxn" :disabled="disabled" dictCode="kc_xqxn_history,title,title,true order by start_time desc"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-col> -->
|
||||
<a-col :span="24">
|
||||
<a-form-item label="推送内容" v-bind="validateInfos.ytkcs">
|
||||
<a-input v-model:value="formData.ytkcs" placeholder="请输入推送内容,最大20个字" :disabled="disabled"></a-input>
|
||||
|
@ -27,11 +27,11 @@
|
|||
<a-input v-model:value="formData.sjtkcs" placeholder="请输入实际听课次数" :disabled="disabled"></a-input>
|
||||
</a-form-item>
|
||||
</a-col> -->
|
||||
<a-col :span="24" v-show="formData.remark">
|
||||
<!-- <a-col :span="24" v-show="formData.remark">
|
||||
<a-form-item label="备注" v-bind="validateInfos.remark">
|
||||
<a-textarea v-model:value="formData.remark" placeholder="请输入实际听课次数" :disabled="disabled" style="height: 80px;"></a-textarea>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-col> -->
|
||||
</a-row>
|
||||
</a-form>
|
||||
</a-spin>
|
||||
|
@ -57,11 +57,11 @@
|
|||
const formData = reactive<Record<string, any>>({
|
||||
id: '',
|
||||
teacherName: '',
|
||||
xqxn: '',
|
||||
// xqxn: '',
|
||||
ytkcs: '',
|
||||
// sjtkcs: '',
|
||||
openid: '',
|
||||
remark: '',
|
||||
// remark: '',
|
||||
});
|
||||
const { createMessage } = useMessage();
|
||||
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
|
||||
|
@ -70,7 +70,7 @@
|
|||
//表单验证
|
||||
const validatorRules = {
|
||||
teacherName: [{ required: true, message: '请输入教师姓名!'},],
|
||||
xqxn: [{ required: true, message: '请选择学期学年!'},],
|
||||
openid: [{ required: true, message: '请输入微信openid!'},],
|
||||
ytkcs: [{ required: true, message: '请输入应听课次数!'},],
|
||||
// sjtkcs: [{ required: true, message: '请输入实际听课次数!'},],
|
||||
};
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
<a-col :span="6">
|
||||
<a-form-item label="" style="padding: 10px;">
|
||||
<!-- <JDictSelectTag placeholder="评课身份" v-model:value="queryParam.tksf" dictCode="kc_tksf" @change="loadData" /> -->
|
||||
<j-dict-select-tag placeholder="听课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="kc_tksfrzb,ZWMC,ZWMC,true group by ZWMC" @change="loadData"/>
|
||||
<j-dict-select-tag placeholder="听课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="tkjssfview,tksf,tksf" @change="loadData"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
<a-form-item label="" style="padding: 10px;">
|
||||
<JDictSelectTag placeholder="评课人所在单位" v-model:value="queryParam.szdw" :dictCode="`tkrszdw_view,college,college`" @change="loadData"/>
|
||||
<JDictSelectTag placeholder="评课人所在单位" v-model:value="queryParam.szdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`" @change="loadData"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div class="tktjClass">
|
||||
<div style="margin-bottom: 20px;">
|
||||
<span style="font-size: 22px;font-weight: bold;margin: 20px;">评课明细表</span>
|
||||
<span style="color: #9a9a9a;">(点击下方数据查看问卷内容)</span>
|
||||
<!-- <span style="color: #9a9a9a;">(点击下方数据查看问卷内容)</span> -->
|
||||
</div>
|
||||
<!--查询区域-->
|
||||
<a-form @keyup.enter.native="searchQuery" :model="queryParam" >
|
||||
|
@ -10,12 +10,13 @@
|
|||
<a-col :span="6">
|
||||
<a-form-item label="">
|
||||
<!-- <JDictSelectTag placeholder="听课身份" v-model:value="queryParam.tksf" dictCode="kc_tksf"/> -->
|
||||
<j-dict-select-tag placeholder="听课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="kc_tksfrzb,ZWMC,ZWMC,true group by ZWMC" />
|
||||
<!-- <j-dict-select-tag placeholder="听课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="tkjssfview,tksf,tksf" /> -->
|
||||
<j-dict-select-tag placeholder="听课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="tkjssfview,tksf,tksf"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
<a-form-item label="">
|
||||
<JDictSelectTag placeholder="听课人所在单位" v-model:value="queryParam.szdw" :dictCode="`tkrszdw_view,college,college`"/>
|
||||
<JDictSelectTag placeholder="听课人所在单位" v-model:value="queryParam.szdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
</a-col>
|
||||
<a-col :span="6">
|
||||
<a-form-item label="">
|
||||
<JDictSelectTag placeholder="听课人所在单位" v-model:value="queryParam.szdw" :dictCode="`tkrszdw_view,college,college`"/>
|
||||
<JDictSelectTag placeholder="听课人所在单位" v-model:value="queryParam.szdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
<a-col :span="5">
|
||||
<a-form-item label="" style="padding: 10px;">
|
||||
<!-- <JDictSelectTag placeholder="评课身份" v-model:value="queryParam.tksf" dictCode="kc_tksf" @change="loadData" /> -->
|
||||
<j-dict-select-tag placeholder="听课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="kc_tksfrzb,ZWMC,ZWMC,true group by ZWMC" @change="loadData"/>
|
||||
<j-dict-select-tag placeholder="听课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="tkjssfview,tksf,tksf" @change="loadData"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="5">
|
||||
<a-form-item label="" style="padding: 10px;">
|
||||
<JDictSelectTag placeholder="评课人所在单位" v-model:value="queryParam.szdw" :dictCode="`tkrszdw_view,college,college`" @change="loadData"/>
|
||||
<JDictSelectTag placeholder="评课人所在单位" v-model:value="queryParam.szdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`" @change="loadData"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="5">
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
</a-col>
|
||||
<a-col :lg="8">
|
||||
<a-form-item label="评课身份">
|
||||
<!-- <j-dict-select-tag placeholder="请选择评课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="kc_tksfrzb,ZWMC,ZWMC,true group by ZWMC" /> -->
|
||||
<!-- <j-dict-select-tag placeholder="请选择评课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="tkjssfview,tksf,tksf" /> -->
|
||||
<j-dict-select-tag placeholder="请选择评课身份" style="width: 100%;" v-model:value="queryParam.tksf" dictCode="tpkwcqkjzglx"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
</a-col>
|
||||
<a-col :lg="8" v-if="roleList.filter(x => x.roleCode == 'admin' ).length" >
|
||||
<a-form-item label="评课身份">
|
||||
<!-- <j-dict-select-tag placeholder="请选择评课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="kc_tksfrzb,ZWMC,ZWMC,true group by ZWMC" /> -->
|
||||
<!-- <j-dict-select-tag placeholder="请选择评课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="tkjssfview,tksf,tksf" /> -->
|
||||
<j-dict-select-tag placeholder="请选择评课身份" style="width: 100%;" v-model:value="queryParam.tksf" dictCode="tpkwcqkjzglx"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<a-col :span="24">
|
||||
<a-form-item label="职务名称" v-bind="validateInfos.zwmc">
|
||||
<!-- <a-input v-model:value="formData.zwmc" placeholder="请输入职务名称" :disabled="disabled"></a-input> -->
|
||||
<j-dict-select-tag mode="multiple" v-model:value="formData.zwmc" style="width: 100%;" dictCode="kc_tksfrzb,ZWMC,ZWMC,true group by ZWMC" placeholder="请选择听课身份"/>
|
||||
<j-dict-select-tag mode="multiple" v-model:value="formData.zwmc" style="width: 100%;" dictCode="tkjssfview,tksf,tksf" placeholder="请选择听课身份"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</a-col>
|
||||
<a-col :span="6">
|
||||
<a-form-item label="">
|
||||
<JDictSelectTag placeholder="听课人所在单位" v-model:value="queryParam.szdw" :dictCode="`tkrszdw_view,college,college`"/>
|
||||
<JDictSelectTag placeholder="听课人所在单位" v-model:value="queryParam.szdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
<a-col :span="3">
|
||||
<a-form-item label="">
|
||||
<!-- <JDictSelectTag placeholder="听课身份" v-model:value="queryParam.tksf" dictCode="kc_tksf"/> -->
|
||||
<j-dict-select-tag placeholder="听课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="kc_tksfrzb,ZWMC,ZWMC,true group by ZWMC" />
|
||||
<j-dict-select-tag placeholder="听课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="tkjssfview,tksf,tksf" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="4">
|
||||
<a-form-item label="">
|
||||
<JDictSelectTag placeholder="听课人所在单位" v-model:value="queryParam.szdw" :dictCode="`tkrszdw_view,college,college`"/>
|
||||
<JDictSelectTag placeholder="听课人所在单位" v-model:value="queryParam.szdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="3">
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
<a-col :span="6">
|
||||
<a-form-item label="" style="padding: 10px;">
|
||||
<!-- <JDictSelectTag placeholder="听课身份" v-model:value="queryParam.tksf" dictCode="kc_tksf" @change="loadData" /> -->
|
||||
<j-dict-select-tag placeholder="听课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="kc_tksfrzb,ZWMC,ZWMC,true group by ZWMC" @change="loadData"/>
|
||||
<j-dict-select-tag placeholder="听课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="tkjssfview,tksf,tksf" @change="loadData"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
<a-form-item label="" style="padding: 10px;">
|
||||
<JDictSelectTag placeholder="听课人所在单位" v-model:value="queryParam.szdw" :dictCode="`tkrszdw_view,college,college`" @change="loadData"/>
|
||||
<JDictSelectTag placeholder="听课人所在单位" v-model:value="queryParam.szdw" dictCode="kc_kkdw_view,kkdw,kkdw" @change="loadData"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
<a-col :span="6">
|
||||
<a-form-item label="">
|
||||
<!-- <JDictSelectTag placeholder="听课身份" v-model:value="queryParam.tksf" dictCode="kc_tksf"/> -->
|
||||
<j-dict-select-tag placeholder="听课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="kc_tksfrzb,ZWMC,ZWMC,true group by ZWMC" />
|
||||
<j-dict-select-tag placeholder="听课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="tkjssfview,tksf,tksf" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
<a-form-item label="">
|
||||
<JDictSelectTag placeholder="听课人所在单位" v-model:value="queryParam.szdw" :dictCode="`tkrszdw_view,college,college`"/>
|
||||
<JDictSelectTag placeholder="听课人所在单位" v-model:value="queryParam.szdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
<a-col :span="5">
|
||||
<a-form-item label="" style="padding: 10px;">
|
||||
<!-- <JDictSelectTag placeholder="听课身份" v-model:value="queryParam.tksf" dictCode="kc_tksf" @change="loadData" /> -->
|
||||
<j-dict-select-tag placeholder="听课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="kc_tksfrzb,ZWMC,ZWMC,true group by ZWMC" @change="loadData"/>
|
||||
<j-dict-select-tag placeholder="听课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="tkjssfview,tksf,tksf" @change="loadData"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="5">
|
||||
<a-form-item label="" style="padding: 10px;">
|
||||
<JDictSelectTag placeholder="听课人所在单位" v-model:value="queryParam.szdw" :dictCode="`tkrszdw_view,college,college`" @change="loadData"/>
|
||||
<JDictSelectTag placeholder="听课人所在单位" v-model:value="queryParam.szdw" :dictCode="`kc_kkdw_view,kkdw,kkdw`" @change="loadData"/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="5">
|
||||
|
|
|
@ -116,10 +116,10 @@ function jrkt(item){
|
|||
let jssj = Date.parse(item.rq+" "+item.jssj+":00");
|
||||
let dqsj = Date.parse(dateFormat(new Date(), format));
|
||||
console.log(`🚀 ~ file: index.vue:114 ~ jrkt ~ dqsj:`, kssj,dqsj,jssj)
|
||||
if(kssj<=dqsj && jssj>= dqsj){
|
||||
// if(kssj<=dqsj && jssj>= dqsj){
|
||||
var par = {usercode:userStore?.getUserInfo?.username,username:userStore?.getUserInfo?.realname,shijian: dateFormat(new Date(), format),gkkid:item.id}
|
||||
saveOrUpdate(par, false) .then((res) => { })
|
||||
}
|
||||
// }
|
||||
}
|
||||
const saveOrUpdate = (params, isUpdate) => {
|
||||
let url = isUpdate ? Api.edit : Api.save;
|
||||
|
|
|
@ -0,0 +1,354 @@
|
|||
<template>
|
||||
<a-spin :spinning="confirmLoading">
|
||||
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-row>
|
||||
<a-col :span="24">
|
||||
<a-card title="外网检测" >
|
||||
<a-row>
|
||||
<a-col :span="12">
|
||||
<a-form-item label="文件">
|
||||
<j-upload v-model:value="formData.filePath"></j-upload>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-button type="primary" @click="saveOrUpdate">上传并查重</a-button>
|
||||
<a-button type="primary" @click="handleWwcxjcjg" style="margin-left: 8px;">查询检测结果</a-button>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="检测文章" :labelCol="labelCol2" :wrapperCol="wrapperCol2">
|
||||
<a-input v-model:value="formData.paperid" style="width:200px;"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="返回结果" :labelCol="labelCol2" :wrapperCol="wrapperCol2">
|
||||
<div v-html="formData.content"></div>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-card>
|
||||
</a-col>
|
||||
|
||||
|
||||
<a-col :span="24">
|
||||
<a-card title="校内检测(自定义范围库唯一标识及名称)" >
|
||||
<a-row>
|
||||
<a-col :span="12">
|
||||
<a-form-item label="文件">
|
||||
<j-upload v-model:value="formData.xnfilePath"></j-upload>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-button type="primary" @click="handleNeiwang">上传并查重</a-button>
|
||||
<a-button type="primary" @click="handleNwcxjcjg" style="margin-left: 8px;">查询检测结果</a-button>
|
||||
|
||||
<!-- <a-button type="primary" @click="handleNeiwang" style="margin-left: 8px;">内网保存</a-button>
|
||||
<a-button type="primary" @click="handleNwtj" style="margin-left: 8px;">内网提交</a-button>
|
||||
<a-button type="primary" @click="handleNwcxjcjg" style="margin-left: 8px;">内网查询检测结果</a-button> -->
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="检测文章" :labelCol="labelCol2" :wrapperCol="wrapperCol2">
|
||||
<a-input v-model:value="formData.xnpaperid" style="width:200px;"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="返回结果" :labelCol="labelCol2" :wrapperCol="wrapperCol2">
|
||||
<div v-html="formData.xncontent"></div>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-card>
|
||||
</a-col>
|
||||
|
||||
|
||||
<a-col :span="24">
|
||||
<a-card title="AIGC检测" >
|
||||
<a-row>
|
||||
<a-col :span="12">
|
||||
<a-form-item label="文件">
|
||||
<j-upload v-model:value="formData.aigcfilePath"></j-upload>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-button type="primary" @click="handleAigc">上传并查重</a-button>
|
||||
<a-button type="primary" @click="handleAigccxjcjg" style="margin-left: 8px;">查询检测结果</a-button>
|
||||
<!-- <a-button type="primary" @click="handleAigc" style="margin-left: 8px;">aigc保存</a-button>
|
||||
<a-button type="primary" @click="handleAigcTj" style="margin-left: 8px;">aigc提交</a-button>
|
||||
<a-button type="primary" @click="handleAigccxjcjg" style="margin-left: 8px;">AIGC查询检测结果</a-button> -->
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="检测文章" :labelCol="labelCol2" :wrapperCol="wrapperCol2">
|
||||
<a-input v-model:value="formData.aigcpaperid" style="width:200px;"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="返回结果" :labelCol="labelCol2" :wrapperCol="wrapperCol2">
|
||||
<div v-html="formData.aigccontent"></div>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-card>
|
||||
</a-col>
|
||||
|
||||
<a-col :span="24">
|
||||
<a-card title="图片检测人数(最大检测人数:120人)" >
|
||||
<a-row>
|
||||
<a-col :span="12">
|
||||
<a-form-item label="图片">
|
||||
<j-upload v-model:value="formData.facefilePath"></j-upload>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-button type="primary" @click="handleImagePic">上传并检测</a-button>
|
||||
<!-- <a-button type="primary" @click="handleAigccxjcjg" style="margin-left: 8px;">查询检测结果</a-button> -->
|
||||
<!-- <a-button type="primary" @click="handleAigc" style="margin-left: 8px;">aigc保存</a-button>
|
||||
<a-button type="primary" @click="handleAigcTj" style="margin-left: 8px;">aigc提交</a-button>
|
||||
<a-button type="primary" @click="handleAigccxjcjg" style="margin-left: 8px;">AIGC查询检测结果</a-button> -->
|
||||
</a-col>
|
||||
<!-- <a-col :span="24">
|
||||
<a-form-item label="检测文章" :labelCol="labelCol2" :wrapperCol="wrapperCol2">
|
||||
<a-input v-model:value="formData.aigcpaperid" style="width:200px;"></a-input>
|
||||
</a-form-item>
|
||||
</a-col> -->
|
||||
<a-col :span="24">
|
||||
<a-form-item label="返回结果" :labelCol="labelCol2" :wrapperCol="wrapperCol2">
|
||||
<div v-html="formData.facecontent"></div>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-card>
|
||||
</a-col>
|
||||
|
||||
|
||||
<!-- <a-col :span="24">
|
||||
<a-card title="外网检测">
|
||||
<a-button type="primary" @click="handleNeiwang" style="margin-left: 8px;">内网保存</a-button>
|
||||
<a-button type="primary" @click="handleNwtj" style="margin-left: 8px;">内网提交</a-button>
|
||||
<a-button type="primary" @click="handleNwcxjcjg" style="margin-left: 8px;">内网查询检测结果</a-button>
|
||||
</a-card>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-card title="AIGC 检测">
|
||||
<a-button type="primary" @click="handleAigc" style="margin-left: 8px;">aigc保存</a-button>
|
||||
<a-button type="primary" @click="handleAigcTj" style="margin-left: 8px;">aigc提交</a-button>
|
||||
<a-button type="primary" @click="handleAigccxjcjg" style="margin-left: 8px;">AIGC查询检测结果</a-button>
|
||||
</a-card>
|
||||
</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 { Form } from 'ant-design-vue';
|
||||
import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.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 formData = reactive<Record<string, any>>({
|
||||
id: '',
|
||||
cn: '',
|
||||
type: undefined,
|
||||
dwh: '',
|
||||
});
|
||||
const { createMessage } = useMessage();
|
||||
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 6 } });
|
||||
const wrapperCol = ref<any>({ xs: { span: 24 }, sm: { span: 16 } });
|
||||
const labelCol2 = ref<any>({ xs: { span: 24 }, sm: { span: 3 } });
|
||||
const wrapperCol2 = ref<any>({ xs: { span: 24 }, sm: { span: 20 } });
|
||||
const confirmLoading = ref<boolean>(false);
|
||||
|
||||
/**
|
||||
* 外网保存
|
||||
*/
|
||||
function saveOrUpdate() {
|
||||
confirmLoading.value = true;
|
||||
console.log('sub--->',formData);
|
||||
defHttp.post({ url: '/blZycc/blZycc/zyccUpload', params: formData, }).then((res) => {
|
||||
console.log(`🚀 ~ saveOrUpdate ~ res:`, res)
|
||||
formData.paperid = res.paperid;
|
||||
formData.content = res.message;
|
||||
confirmLoading.value = false;
|
||||
});
|
||||
}
|
||||
//外网提交
|
||||
function handleWwtj(){
|
||||
defHttp.post({ url: '/blZycc/blZycc/wwKsjc', params: formData, }).then((res) => {
|
||||
console.log(`🚀 ~ saveOrUpdate ~ res:`, res)
|
||||
});
|
||||
}
|
||||
//外网查询检测结果
|
||||
function handleWwcxjcjg(){
|
||||
confirmLoading.value = true;
|
||||
defHttp.post({ url: '/blZycc/blZycc/wwCxjcjg', params: formData, }).then((res) => {
|
||||
console.log(`🚀 ~ saveOrUpdate ~ res:`, res)
|
||||
var resHtml = "";
|
||||
if(res.filestateid=='0'){
|
||||
resHtml = resHtml+"检测状态:未检测<br/>";
|
||||
}else if(res.filestateid=='1'){
|
||||
resHtml = resHtml+"检测状态:检测中<br/>";
|
||||
}else if(res.filestateid=='2'){
|
||||
resHtml = resHtml+"检测状态:检测完成<br/>";
|
||||
resHtml = resHtml+"返回信息:"+res.message+"<br/>";
|
||||
resHtml = resHtml+"复写率:"+res.duplicatepercentage+"<br/>";
|
||||
resHtml = resHtml+"报告下载地址: <a href='"+res.paperdownurl+"' target='_blank'>点击下载</a><br/>";
|
||||
resHtml = resHtml+"论文字数:"+res.paperword+"<br/>";
|
||||
resHtml = resHtml+"他引率:"+res.paichupercentage+"<br/>";
|
||||
resHtml = resHtml+"报告在线查看地址:<a href='"+res.paperviewurl+"' target='_blank'>点击预览</a><br/>";
|
||||
resHtml = resHtml+"论文标题:"+res.papertitle+"<br/>";
|
||||
resHtml = resHtml+"自写率:"+res.ownpercentage+"<br/>";
|
||||
resHtml = resHtml+"相似率:"+res.percentage+"<br/>";
|
||||
resHtml = resHtml+"报告编号:"+res.paperguid+"<br/>";
|
||||
resHtml = resHtml+"引用率:"+res.quotepercentage+"<br/>";
|
||||
resHtml = resHtml+"自引率:"+res.selfyypercentage+"<br/>";
|
||||
resHtml = resHtml+"专业术语率:"+res.authorpercentage+"<br/>";
|
||||
resHtml = resHtml+"检测时间:"+res.checkdate+"<br/>";
|
||||
resHtml = resHtml+"其他信息:"+res.papermsg+"<br/>";
|
||||
}else if(res.filestateid=='3'){
|
||||
resHtml = resHtml+"检测状态:检测失败<br/>";
|
||||
resHtml = resHtml+"返回信息:"+res.message+"<br/>";
|
||||
}
|
||||
formData.content = resHtml;
|
||||
confirmLoading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
//内网保存
|
||||
function handleNeiwang() {
|
||||
confirmLoading.value = true;
|
||||
defHttp.post({ url: '/blZycc/blZycc/xfwbdUpload', params: formData, }).then((res) => {
|
||||
console.log(`🚀 ~ saveOrUpdate ~ res:`, res)
|
||||
formData.xnpaperid = res.paperid;
|
||||
formData.xncontent = res.message;
|
||||
confirmLoading.value = false;
|
||||
});
|
||||
}
|
||||
//内网提交
|
||||
function handleNwtj(){
|
||||
defHttp.post({ url: '/blZycc/blZycc/xfwbdKsjc', params: formData, }).then((res) => {
|
||||
console.log(`🚀 ~ saveOrUpdate ~ res:`, res)
|
||||
});
|
||||
}
|
||||
//内网查询检测结果
|
||||
function handleNwcxjcjg(){
|
||||
confirmLoading.value = true;
|
||||
defHttp.post({ url: '/blZycc/blZycc/xfwbdCxjcjg', params: formData, }).then((res) => {
|
||||
console.log(`🚀 ~ saveOrUpdate ~ res:`, res)
|
||||
var resHtml = "";
|
||||
if(res.filestateid=='0'){
|
||||
resHtml = resHtml+"检测状态:未检测<br/>";
|
||||
}else if(res.filestateid=='1'){
|
||||
resHtml = resHtml+"检测状态:检测中<br/>";
|
||||
}else if(res.filestateid=='2'){
|
||||
resHtml = resHtml+"检测状态:检测完成<br/>";
|
||||
resHtml = resHtml+"返回信息:"+res.message+"<br/>";
|
||||
resHtml = resHtml+"复写率:"+res.duplicatepercentage+"<br/>";
|
||||
resHtml = resHtml+"报告下载地址: <a href='"+res.paperdownurl+"' target='_blank'>点击下载</a><br/>";
|
||||
resHtml = resHtml+"论文字数:"+res.paperword+"<br/>";
|
||||
resHtml = resHtml+"他引率:"+res.paichupercentage+"<br/>";
|
||||
resHtml = resHtml+"报告在线查看地址:<a href='"+res.paperviewurl+"' target='_blank'>点击预览</a><br/>";
|
||||
resHtml = resHtml+"论文标题:"+res.papertitle+"<br/>";
|
||||
resHtml = resHtml+"自写率:"+res.ownpercentage+"<br/>";
|
||||
resHtml = resHtml+"相似率:"+res.percentage+"<br/>";
|
||||
resHtml = resHtml+"报告编号:"+res.paperguid+"<br/>";
|
||||
resHtml = resHtml+"引用率:"+res.quotepercentage+"<br/>";
|
||||
resHtml = resHtml+"自引率:"+res.selfyypercentage+"<br/>";
|
||||
resHtml = resHtml+"专业术语率:"+res.authorpercentage+"<br/>";
|
||||
resHtml = resHtml+"检测时间:"+res.checkdate+"<br/>";
|
||||
resHtml = resHtml+"其他信息:"+res.papermsg+"<br/>";
|
||||
}else if(res.filestateid=='3'){
|
||||
resHtml = resHtml+"检测状态:检测失败<br/>";
|
||||
resHtml = resHtml+"返回信息:"+res.message+"<br/>";
|
||||
}
|
||||
formData.xncontent = resHtml;
|
||||
confirmLoading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
//AIGC保存
|
||||
function handleAigc() {
|
||||
confirmLoading.value = true;
|
||||
defHttp.post({ url: '/blZycc/blZycc/aigcUpload', params: formData, }).then((res) => {
|
||||
console.log(`🚀 ~ saveOrUpdate ~ res:`, res)
|
||||
formData.aigcpaperid = res.paperid;
|
||||
formData.aigccontent = res.message;
|
||||
confirmLoading.value = false;
|
||||
});
|
||||
}
|
||||
//AIGC提交检测
|
||||
function handleAigcTj(){
|
||||
defHttp.post({ url: '/blZycc/blZycc/aigcKsjc', params: formData, }).then((res) => {
|
||||
console.log(`🚀 ~ saveOrUpdate ~ res:`, res)
|
||||
});
|
||||
}
|
||||
//AIGC检测结果查询
|
||||
function handleAigccxjcjg(){
|
||||
confirmLoading.value = true;
|
||||
defHttp.post({ url: '/blZycc/blZycc/aigcCxjcjg', params: formData, }).then((res) => {
|
||||
console.log(`🚀 ~ saveOrUpdate ~ res:`, res)
|
||||
var resHtml = "";
|
||||
if(res.filestateid=='0'){
|
||||
resHtml = resHtml+"检测状态:未检测<br/>";
|
||||
}else if(res.filestateid=='1'){
|
||||
resHtml = resHtml+"检测状态:检测中<br/>";
|
||||
}else if(res.filestateid=='2'){
|
||||
resHtml = resHtml+"检测状态:检测完成<br/>";
|
||||
resHtml = resHtml+"返回信息:"+res.message+"<br/>";
|
||||
resHtml = resHtml+"报告编号:"+res.paperguid+"<br/>";
|
||||
resHtml = resHtml+"标题:"+res.papertitle+"<br/>";
|
||||
resHtml = resHtml+"检测时间:"+res.checkdate+"<br/>";
|
||||
resHtml = resHtml+"字数:"+res.paperword+"<br/>";
|
||||
resHtml = resHtml+"疑似ai全文占比:"+res.aiRate+"<br/>";
|
||||
resHtml = resHtml+"人工占比:"+res.humanRate+"<br/>";
|
||||
resHtml = resHtml+"报告在线查看地址:<a href='"+res.paperviewurl+"' target='_blank'>点击预览</a><br/>";
|
||||
resHtml = resHtml+"报告下载地址: <a href='"+res.paperdownurl+"' target='_blank'>点击下载</a><br/>";
|
||||
resHtml = resHtml+"其他信息:"+res.papermsg+"<br/>";
|
||||
|
||||
|
||||
// resHtml = resHtml+"复写率:"+res.duplicatepercentage+"<br/>";
|
||||
// resHtml = resHtml+"他引率:"+res.paichupercentage+"<br/>";
|
||||
// resHtml = resHtml+"自写率:"+res.ownpercentage+"<br/>";
|
||||
// resHtml = resHtml+"相似率:"+res.percentage+"<br/>";
|
||||
// resHtml = resHtml+"引用率:"+res.quotepercentage+"<br/>";
|
||||
// resHtml = resHtml+"自引率:"+res.selfyypercentage+"<br/>";
|
||||
// resHtml = resHtml+"专业术语率:"+res.authorpercentage+"<br/>";
|
||||
}else if(res.filestateid=='3'){
|
||||
resHtml = resHtml+"检测状态:检测失败<br/>";
|
||||
resHtml = resHtml+"返回信息:"+res.message+"<br/>";
|
||||
}
|
||||
formData.aigccontent = resHtml;
|
||||
confirmLoading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function handleImagePic(){
|
||||
confirmLoading.value = true;
|
||||
defHttp.post({ url: '/blZycc/blZycc/getPicPerno', params: formData }).then((res) => {
|
||||
console.log(`🚀 ~ handleImagePic ~ res:`, res)
|
||||
var resHtml = "检测人脸数量为:"+res.facenum;
|
||||
formData.facecontent = resHtml;
|
||||
confirmLoading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.antd-modal-form {
|
||||
min-height: 500px !important;
|
||||
overflow-y: auto;
|
||||
padding: 24px 24px 24px 24px;
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue