diff --git a/src/views/kc/kcEvaluationsStat/KcEvaluationsStat.data.ts b/src/views/kc/kcEvaluationsStat/KcEvaluationsStat.data.ts index 1408e43..faa9fdd 100644 --- a/src/views/kc/kcEvaluationsStat/KcEvaluationsStat.data.ts +++ b/src/views/kc/kcEvaluationsStat/KcEvaluationsStat.data.ts @@ -97,7 +97,7 @@ export const columns: BasicColumn[] = [ { title: '思政课程', align: "center", - dataIndex: 'col59' + dataIndex: 'szkc_dictText' }, { title: '评价日期', diff --git a/src/views/kc/kcEvaluationsStat/KcEvaluationsStatList.vue b/src/views/kc/kcEvaluationsStat/KcEvaluationsStatList.vue index 24ae812..c773307 100644 --- a/src/views/kc/kcEvaluationsStat/KcEvaluationsStatList.vue +++ b/src/views/kc/kcEvaluationsStat/KcEvaluationsStatList.vue @@ -68,7 +68,7 @@ - + diff --git a/src/views/kc/kcKetangBaobiao/KetangNum.api.ts b/src/views/kc/kcKetangBaobiao/KetangNum.api.ts new file mode 100644 index 0000000..044eee6 --- /dev/null +++ b/src/views/kc/kcKetangBaobiao/KetangNum.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/ktgl/kcKetangbiao/getKtcountList', + save='/grab/imports/xxhbtkxx/add', + edit='/grab/imports/xxhbtkxx/edit', + deleteOne = '/grab/imports/xxhbtkxx/delete', + deleteBatch = '/grab/imports/xxhbtkxx/deleteBatch', + importExcel = '/grab/imports/xxhbtkxx/importExcel', + exportXls = '/ktgl/kcKetangbiao/exportKcnumXls', +} + +/** + * 导出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 }); +} diff --git a/src/views/kc/kcKetangBaobiao/KetangNum.data.ts b/src/views/kc/kcKetangBaobiao/KetangNum.data.ts new file mode 100644 index 0000000..eadc463 --- /dev/null +++ b/src/views/kc/kcKetangBaobiao/KetangNum.data.ts @@ -0,0 +1,319 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { log } from 'console'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '学年学期', + align: "center", + dataIndex: 'xnxq' + }, + { + title: '开课单位', + align: "center", + dataIndex: 'kkdw' + }, + { + title: '开课数量', + align: "center", + dataIndex: 'num' + }, +]; + +//查询数据 +export const searchFormSchema: FormSchema[] = [ + { + label: "学年学期", + field: 'xqxn', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "姓名", + field: 'xm', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "cjr", + field: 'cjr', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "sjh", + field: 'sjh', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "tksy", + field: 'tksy', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "xyjwmsshyj", + field: 'xyjwmsshyj', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "yjxq", + field: 'yjxq', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "sqrdw", + field: 'sqrdw', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "bizbh", + field: 'bizbh', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "jwcsh", + field: 'jwcsh', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "szxyldshyj", + field: 'szxyldshyj', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "shxq", + field: 'shxq', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "lcjgbh", + field: 'lcjgbh', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "bkjh", + field: 'bkjh', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "时间戳", + field: 'timestamps', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "课程名称", + field: 'kcmc', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "pbh", + field: 'pbh', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "教材", + field: 'jc', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "上课日期", + field: 'skrq', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "kcxxbh", + field: 'kcxxbh', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "学期", + field: 'xq', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "jsgh", + field: 'jsgh', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "编号", + field: 'bh', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "授课教师", + field: 'skjs', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "lcbh", + field: 'lcbh', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "1-调整时间,2-调整地点,3-更换教师,4-其他", + field: 'tklx', + component: 'Input', + colProps: {span: 6}, + }, +]; + +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '姓名', + field: 'xm', + component: 'Input', + }, + { + label: 'cjr', + field: 'cjr', + component: 'Input', + }, + { + label: 'sjh', + field: 'sjh', + component: 'Input', + }, + { + label: 'tksy', + field: 'tksy', + component: 'Input', + }, + { + label: 'xyjwmsshyj', + field: 'xyjwmsshyj', + component: 'Input', + }, + { + label: 'yjxq', + field: 'yjxq', + component: 'Input', + }, + { + label: 'sqrdw', + field: 'sqrdw', + component: 'Input', + }, + { + label: 'bizbh', + field: 'bizbh', + component: 'Input', + }, + { + label: 'jwcsh', + field: 'jwcsh', + component: 'Input', + }, + { + label: 'szxyldshyj', + field: 'szxyldshyj', + component: 'Input', + }, + { + label: 'shxq', + field: 'shxq', + component: 'Input', + }, + { + label: 'lcjgbh', + field: 'lcjgbh', + component: 'Input', + }, + { + label: 'bkjh', + field: 'bkjh', + component: 'Input', + }, + { + label: '时间戳', + field: 'timestamps', + component: 'Input', + }, + { + label: '课程名称', + field: 'kcmc', + component: 'Input', + }, + { + label: 'pbh', + field: 'pbh', + component: 'Input', + }, + { + label: '教材', + field: 'jc', + component: 'Input', + }, + { + label: '上课日期', + field: 'skrq', + component: 'Input', + }, + { + label: 'kcxxbh', + field: 'kcxxbh', + component: 'Input', + }, + { + label: '学期', + field: 'xq', + component: 'Input', + }, + { + label: 'jsgh', + field: 'jsgh', + component: 'Input', + }, + { + label: '编号', + field: 'bh', + component: 'Input', + }, + { + label: '授课教师', + field: 'skjs', + component: 'Input', + }, + { + label: 'lcbh', + field: 'lcbh', + component: 'Input', + }, + { + label: '1-调整时间,2-调整地点,3-更换教师,4-其他', + field: 'tklx', + component: 'Input', + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/src/views/kc/kcKetangBaobiao/KetangNumList.vue b/src/views/kc/kcKetangBaobiao/KetangNumList.vue new file mode 100644 index 0000000..b4e6590 --- /dev/null +++ b/src/views/kc/kcKetangBaobiao/KetangNumList.vue @@ -0,0 +1,150 @@ + + + + + diff --git a/src/views/site/tongJi/show/ykkttkrc.vue b/src/views/site/tongJi/show/ykkttkrc.vue index 4b1b77c..ad28570 100644 --- a/src/views/site/tongJi/show/ykkttkrc.vue +++ b/src/views/site/tongJi/show/ykkttkrc.vue @@ -99,11 +99,11 @@ const queryParam = ref({}); align: 'center', dataIndex: 'skrq', }, - { - title: '听课人', - align: 'center', - dataIndex: 'username', - }, + // { + // title: '听课人', + // align: 'center', + // dataIndex: 'username', + // }, ]); const dataSource: any = ref([]); diff --git a/src/views/site/tongJi/show/ykktzs.vue b/src/views/site/tongJi/show/ykktzs.vue index e87f47c..d2602ff 100644 --- a/src/views/site/tongJi/show/ykktzs.vue +++ b/src/views/site/tongJi/show/ykktzs.vue @@ -117,11 +117,11 @@ const listTkjlApi = (params) => defHttp.get({ url: Api.listTkjl, params }); align: 'center', dataIndex: 'skrq', }, - { - title: '评课分数', - align: 'center', - dataIndex: 'score', - }, + // { + // title: '评课分数', + // align: 'center', + // dataIndex: 'score', + // }, { title: '操作', align: 'center',