diff --git a/src/views/kc/xxhbbks/Xxhbbks.api.ts b/src/views/kc/xxhbbks/Xxhbbks.api.ts new file mode 100644 index 0000000..d16ecfd --- /dev/null +++ b/src/views/kc/xxhbbks/Xxhbbks.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/grab/xxhbbks/getXsxkbList', + save='/grab/xxhbbks/add', + edit='/grab/xxhbbks/edit', + deleteOne = '/grab/xxhbbks/delete', + deleteBatch = '/grab/xxhbbks/deleteBatch', + importExcel = '/grab/xxhbbks/importExcel', + exportXls = '/grab/xxhbbks/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/xxhbbks/Xxhbbks.data.ts b/src/views/kc/xxhbbks/Xxhbbks.data.ts new file mode 100644 index 0000000..b3e6050 --- /dev/null +++ b/src/views/kc/xxhbbks/Xxhbbks.data.ts @@ -0,0 +1,102 @@ +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: 'xh' + }, + { + title: '姓名', + align: "center", + dataIndex: 'xm' + }, + { + title: '学院名称', + align: "center", + dataIndex: 'dwmc' + }, + { + title: '专业名称', + align: "center", + dataIndex: 'zymc' + }, + { + title: '年级', + align: "center", + dataIndex: 'nj' + }, +]; + +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; + +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '学号', + field: 'xh', + component: 'Input', + }, + { + label: '姓名', + field: 'xm', + component: 'Input', + }, + { + label: 'xbm', + field: 'xbm', + component: 'Input', + }, + { + label: 'yxh', + field: 'yxh', + component: 'Input', + }, + { + label: '单位名称', + field: 'dwmc', + component: 'Input', + }, + { + label: '专业号', + field: 'zyh', + component: 'Input', + }, + { + label: '专业名称', + field: 'zymc', + component: 'Input', + }, + { + label: '学期名称', + field: 'xqm', + component: 'Input', + }, + { + label: '年级', + field: 'nj', + component: 'Input', + }, + { + label: 'xjztdm', + field: 'xjztdm', + component: 'Input', + }, + { + label: '时间戳', + field: 'timestamps', + component: 'Input', + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/src/views/kc/xxhbbks/XxhbbksList.vue b/src/views/kc/xxhbbks/XxhbbksList.vue new file mode 100644 index 0000000..6fda13e --- /dev/null +++ b/src/views/kc/xxhbbks/XxhbbksList.vue @@ -0,0 +1,239 @@ + + + + + + + + + + + + + + + + + + + + + + 无文件 + 下载 + + + + + + + + + + diff --git a/src/views/kc/xxhbbks/XxhbbksListModal.vue b/src/views/kc/xxhbbks/XxhbbksListModal.vue new file mode 100644 index 0000000..b347a9c --- /dev/null +++ b/src/views/kc/xxhbbks/XxhbbksListModal.vue @@ -0,0 +1,64 @@ + + + + + + + + + diff --git a/src/views/kc/xxhbbks/components/XxhbbksForm.vue b/src/views/kc/xxhbbks/components/XxhbbksForm.vue new file mode 100644 index 0000000..c33f9c6 --- /dev/null +++ b/src/views/kc/xxhbbks/components/XxhbbksForm.vue @@ -0,0 +1,187 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/kc/xxhbbks/components/XxhbbksModal.vue b/src/views/kc/xxhbbks/components/XxhbbksModal.vue new file mode 100644 index 0000000..12b8d40 --- /dev/null +++ b/src/views/kc/xxhbbks/components/XxhbbksModal.vue @@ -0,0 +1,75 @@ + + + + + + + + + diff --git a/src/views/zy/zyGonggao/ZyGonggao.api.ts b/src/views/zy/zyGonggao/ZyGonggao.api.ts new file mode 100644 index 0000000..9df2628 --- /dev/null +++ b/src/views/zy/zyGonggao/ZyGonggao.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/zyGonggao/zyGonggao/list', + save='/zyGonggao/zyGonggao/add', + edit='/zyGonggao/zyGonggao/edit', + deleteOne = '/zyGonggao/zyGonggao/delete', + deleteBatch = '/zyGonggao/zyGonggao/deleteBatch', + importExcel = '/zyGonggao/zyGonggao/importExcel', + exportXls = '/zyGonggao/zyGonggao/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/zy/zyGonggao/ZyGonggao.data.ts b/src/views/zy/zyGonggao/ZyGonggao.data.ts new file mode 100644 index 0000000..ed615de --- /dev/null +++ b/src/views/zy/zyGonggao/ZyGonggao.data.ts @@ -0,0 +1,66 @@ +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: 'title' + }, + { + title: '状态', + align: "center", + dataIndex: 'ggStatus_dictText' + }, + { + title: '发布时间', + align: "center", + dataIndex: 'fbTime', + customRender:({text}) =>{ + return !text?"":(text.length>10?text.substr(0,10):text); + }, + }, +]; + +//查询数据 +export const searchFormSchema: FormSchema[] = [ + { + label: "标题", + field: 'title', + component: 'Input', + colProps: {span: 6}, + }, +]; + +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '标题', + field: 'title', + component: 'Input', + dynamicRules: ({model,schema}) => { + return [ + { required: true, message: '请输入标题!'}, + ]; + }, + }, + { + label: '内容', + field: 'content', + component: 'JEditor', + dynamicRules: ({model,schema}) => { + return [ + { required: true, message: '请输入内容!'}, + ]; + }, + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/src/views/zy/zyGonggao/ZyGonggaoList.vue b/src/views/zy/zyGonggao/ZyGonggaoList.vue new file mode 100644 index 0000000..dba6986 --- /dev/null +++ b/src/views/zy/zyGonggao/ZyGonggaoList.vue @@ -0,0 +1,260 @@ + + + + + + + + + + + + + + + 查询 + 重置 + 新增 + + + + + + + + + + + + + + + + + + + + + + + + 无文件 + 下载 + + + + + + + + + + diff --git a/src/views/zy/zyGonggao/components/ZyGonggaoForm.vue b/src/views/zy/zyGonggao/components/ZyGonggaoForm.vue new file mode 100644 index 0000000..ca91ffb --- /dev/null +++ b/src/views/zy/zyGonggao/components/ZyGonggaoForm.vue @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/zy/zyGonggao/components/ZyGonggaoModal.vue b/src/views/zy/zyGonggao/components/ZyGonggaoModal.vue new file mode 100644 index 0000000..581cf0d --- /dev/null +++ b/src/views/zy/zyGonggao/components/ZyGonggaoModal.vue @@ -0,0 +1,75 @@ + + + + + + + + + diff --git a/src/views/zy/zyInfo/StudentZyInfoList.vue b/src/views/zy/zyInfo/StudentZyInfoList.vue new file mode 100644 index 0000000..8e07f03 --- /dev/null +++ b/src/views/zy/zyInfo/StudentZyInfoList.vue @@ -0,0 +1,233 @@ + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + + + {{item.zyStatus_dictText}} + + + + 【{{item.zyType_dictText}}】{{item.title}} + + 时间:{{item.startTime}} - {{item.endTime}} + {{item.xnxq}}{{item.xkxs}}人选课 + + 详情 + 上传 + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/zy/zyInfo/SutdentZyInfoHistoryList.vue b/src/views/zy/zyInfo/SutdentZyInfoHistoryList.vue new file mode 100644 index 0000000..0b0f698 --- /dev/null +++ b/src/views/zy/zyInfo/SutdentZyInfoHistoryList.vue @@ -0,0 +1,285 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + 新增 + + + + + + + + + + + {{item.zyStatus_dictText}} + + + + 【{{item.zyType_dictText}}】{{item.title}} + + 时间:{{item.startTime}} - {{item.endTime}} + {{item.xnxq}}{{item.xkxs}}人选课 + + + 详情 + 作业 + + + + + + + + + + + + + + + + + + + + + + + + +