From a057d3e0d82b2a525833e12eb10a28859734ed0f Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Thu, 9 Nov 2023 23:27:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../KcExportConfigTpkwcqkjzglxListNew.vue | 283 ++++++++++++++ .../KcExportConfigTpkwcqkjzglxListOld.vue | 355 ++++++++++++++++++ .../kc/config/StaticCon/StaticCon.api.ts | 72 ++++ .../kc/config/StaticCon/StaticCon.data.ts | 81 ++++ src/views/kc/config/StaticCon/StaticCon.vue | 206 ++++++++++ .../kc/config/StaticCon/StaticConModal.vue | 75 ++++ .../components/KcSysConfigMain.vue | 4 +- src/views/site/kxstkkt/rkb.vue | 2 +- src/views/site/kxstkkt/xyjk.vue | 2 +- src/views/site/kxstkkt/zzsk.vue | 2 +- 10 files changed, 1077 insertions(+), 5 deletions(-) create mode 100644 src/views/kc/config/KcExportConfigTpkwcqkjzglxListNew.vue create mode 100644 src/views/kc/config/KcExportConfigTpkwcqkjzglxListOld.vue create mode 100644 src/views/kc/config/StaticCon/StaticCon.api.ts create mode 100644 src/views/kc/config/StaticCon/StaticCon.data.ts create mode 100644 src/views/kc/config/StaticCon/StaticCon.vue create mode 100644 src/views/kc/config/StaticCon/StaticConModal.vue diff --git a/src/views/kc/config/KcExportConfigTpkwcqkjzglxListNew.vue b/src/views/kc/config/KcExportConfigTpkwcqkjzglxListNew.vue new file mode 100644 index 0000000..84f8b7a --- /dev/null +++ b/src/views/kc/config/KcExportConfigTpkwcqkjzglxListNew.vue @@ -0,0 +1,283 @@ + + + + + diff --git a/src/views/kc/config/KcExportConfigTpkwcqkjzglxListOld.vue b/src/views/kc/config/KcExportConfigTpkwcqkjzglxListOld.vue new file mode 100644 index 0000000..02b841d --- /dev/null +++ b/src/views/kc/config/KcExportConfigTpkwcqkjzglxListOld.vue @@ -0,0 +1,355 @@ + + + + + diff --git a/src/views/kc/config/StaticCon/StaticCon.api.ts b/src/views/kc/config/StaticCon/StaticCon.api.ts new file mode 100644 index 0000000..03f91dd --- /dev/null +++ b/src/views/kc/config/StaticCon/StaticCon.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/config/kcExportConfigTpkwcqkjzglx/queryTkyqPageList', + save='/config/kcExportConfigTpkwcqkjzglx/add', + edit='/config/kcExportConfigTpkwcqkjzglx/edit', + deleteOne = '/config/kcExportConfigTpkwcqkjzglx/delete', + deleteBatch = '/config/kcExportConfigTpkwcqkjzglx/deleteBatch', + importExcel = '/config/kcExportConfigTpkwcqkjzglx/importExcel', + exportXls = '/config/kcExportConfigTpkwcqkjzglx/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 }); +} diff --git a/src/views/kc/config/StaticCon/StaticCon.data.ts b/src/views/kc/config/StaticCon/StaticCon.data.ts new file mode 100644 index 0000000..1636a81 --- /dev/null +++ b/src/views/kc/config/StaticCon/StaticCon.data.ts @@ -0,0 +1,81 @@ +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: 'xymc' + }, + { + title: '姓名', + align: "center", + dataIndex: 'xm' + }, + { + title: '听课身份', + align: "center", + dataIndex: 'tksf' + }, + { + title: '本学期应听课次数', + align: "center", + dataIndex: 'ytkcs' + }, + { + title: '本学期实际听课次数', + align: "center", + dataIndex: 'sjtkcs' + }, +]; + +//查询数据 +export const searchFormSchema: FormSchema[] = [ + { + label: "教师", + field: 'gh', + component: 'JDictSelectTag', + componentProps:{ + dictCode: "xxhbuser,xm,gh" + }, + colProps: {span: 6}, + }, + { + label: "听课类型", + field: 'tklx', + component: 'JDictSelectTag', + componentProps:{ + dictCode: "tpkwcqkjzglx" + }, + colProps: {span: 6}, + }, +]; + +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '教师', + field: 'gh', + component: 'JDictSelectTag', + componentProps:{ + dictCode: "xxhbuser,xm,gh" + }, + }, + { + label: '听课类型', + field: 'tklx', + component: 'JDictSelectTag', + componentProps:{ + dictCode: "tpkwcqkjzglx" + }, + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/src/views/kc/config/StaticCon/StaticCon.vue b/src/views/kc/config/StaticCon/StaticCon.vue new file mode 100644 index 0000000..ac52140 --- /dev/null +++ b/src/views/kc/config/StaticCon/StaticCon.vue @@ -0,0 +1,206 @@ + + + + + diff --git a/src/views/kc/config/StaticCon/StaticConModal.vue b/src/views/kc/config/StaticCon/StaticConModal.vue new file mode 100644 index 0000000..aca52be --- /dev/null +++ b/src/views/kc/config/StaticCon/StaticConModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/views/kc/kcSysConfig/components/KcSysConfigMain.vue b/src/views/kc/kcSysConfig/components/KcSysConfigMain.vue index 67389aa..ca83d13 100644 --- a/src/views/kc/kcSysConfig/components/KcSysConfigMain.vue +++ b/src/views/kc/kcSysConfig/components/KcSysConfigMain.vue @@ -10,8 +10,8 @@ - - + + diff --git a/src/views/site/kxstkkt/rkb.vue b/src/views/site/kxstkkt/rkb.vue index 74a0300..fea22e3 100644 --- a/src/views/site/kxstkkt/rkb.vue +++ b/src/views/site/kxstkkt/rkb.vue @@ -25,7 +25,7 @@ 全部 逸夫教学楼 - 净月综合教学楼 + 净月综合教学楼 惟真楼 diff --git a/src/views/site/kxstkkt/xyjk.vue b/src/views/site/kxstkkt/xyjk.vue index d921c8b..5a6b6b3 100644 --- a/src/views/site/kxstkkt/xyjk.vue +++ b/src/views/site/kxstkkt/xyjk.vue @@ -10,7 +10,7 @@ 全部 逸夫教学楼 - 净月综合教学楼 + 净月综合教学楼 惟真楼 diff --git a/src/views/site/kxstkkt/zzsk.vue b/src/views/site/kxstkkt/zzsk.vue index e7ff085..7843d21 100644 --- a/src/views/site/kxstkkt/zzsk.vue +++ b/src/views/site/kxstkkt/zzsk.vue @@ -12,7 +12,7 @@ 全部 逸夫教学楼 - 净月综合教学楼 + 净月综合教学楼 惟真楼