diff --git a/src/views/kc/kcTkSfWh/听课身份维护-删除.md b/src/views/kc/kcTkSfWh/听课身份维护-删除.md new file mode 100644 index 0000000..e69de29 diff --git a/src/views/kc/tksf/kctkcstj/KcTkcstj.api.ts b/src/views/kc/tksf/kctkcstj/KcTkcstj.api.ts new file mode 100644 index 0000000..09085f9 --- /dev/null +++ b/src/views/kc/tksf/kctkcstj/KcTkcstj.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/kctkcstj/kcTkcstj/list', + save='/kctkcstj/kcTkcstj/add', + edit='/kctkcstj/kcTkcstj/edit', + deleteOne = '/kctkcstj/kcTkcstj/delete', + deleteBatch = '/kctkcstj/kcTkcstj/deleteBatch', + importExcel = '/kctkcstj/kcTkcstj/importExcel', + exportXls = '/kctkcstj/kcTkcstj/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/tksf/kctkcstj/KcTkcstj.data.ts b/src/views/kc/tksf/kctkcstj/KcTkcstj.data.ts new file mode 100644 index 0000000..ac196b4 --- /dev/null +++ b/src/views/kc/tksf/kctkcstj/KcTkcstj.data.ts @@ -0,0 +1,116 @@ +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: 'jgh' + }, + { + title: '教师姓名', + align: "center", + dataIndex: 'jsxm' + }, + { + title: '所属学院', + align: "center", + dataIndex: 'ssxy' + }, + { + title: '听课身份', + align: "center", + dataIndex: 'tksf' + }, + { + title: '应听课次数', + align: "center", + dataIndex: 'yskcs' + }, + { + title: '听课次数', + align: "center", + dataIndex: 'tkxttj' + }, +]; + +//查询数据 +export const searchFormSchema: FormSchema[] = [ + { + label: "学年学期", + field: 'xnxq', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "教师工号", + field: 'jgh', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "教师姓名", + field: 'jsxm', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "听课身份", + field: 'tksf', + component: 'Input', + colProps: {span: 6}, + }, +]; + +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '学年学期', + field: 'xnxq', + component: 'Input', + }, + { + label: '教师工号', + field: 'jgh', + component: 'Input', + }, + { + label: '教师姓名', + field: 'jsxm', + component: 'Input', + }, + { + label: '所属学院', + field: 'ssxy', + component: 'Input', + }, + { + label: '听课身份', + field: 'tksf', + component: 'Input', + }, + { + label: '应听课次数', + field: 'yskcs', + component: 'Input', + }, + { + label: '应听课次数', + field: 'tkxttj', + component: 'Input', + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/src/views/kc/tksf/kctkcstj/KcTkcstjList.vue b/src/views/kc/tksf/kctkcstj/KcTkcstjList.vue new file mode 100644 index 0000000..c9520e8 --- /dev/null +++ b/src/views/kc/tksf/kctkcstj/KcTkcstjList.vue @@ -0,0 +1,249 @@ + + + + + diff --git a/src/views/kc/tksf/kctkcstj/components/KcTkcstjForm.vue b/src/views/kc/tksf/kctkcstj/components/KcTkcstjForm.vue new file mode 100644 index 0000000..a37c9fd --- /dev/null +++ b/src/views/kc/tksf/kctkcstj/components/KcTkcstjForm.vue @@ -0,0 +1,163 @@ + + + + + diff --git a/src/views/kc/tksf/kctkcstj/components/KcTkcstjModal.vue b/src/views/kc/tksf/kctkcstj/components/KcTkcstjModal.vue new file mode 100644 index 0000000..f8455ad --- /dev/null +++ b/src/views/kc/tksf/kctkcstj/components/KcTkcstjModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/views/kc/tksf/kctksfrzb/KcTksfrzb.api.ts b/src/views/kc/tksf/kctksfrzb/KcTksfrzb.api.ts new file mode 100644 index 0000000..66bcdc5 --- /dev/null +++ b/src/views/kc/tksf/kctksfrzb/KcTksfrzb.api.ts @@ -0,0 +1,82 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/kctksfrzb/kcTksfrzb/list', + save='/kctksfrzb/kcTksfrzb/add', + edit='/kctksfrzb/kcTksfrzb/edit', + deleteOne = '/kctksfrzb/kcTksfrzb/delete', + deleteBatch = '/kctksfrzb/kcTksfrzb/deleteBatch', + importExcel = '/kctksfrzb/kcTksfrzb/importExcel', + exportXls = '/kctksfrzb/kcTksfrzb/exportXls', + addTksfyq = '/kctksfyq/kcTksfyq/add', +} + +/** + * 导出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 }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const addTksfyq = (params) => { + return defHttp.post({ url: Api.addTksfyq, params }, { isTransformResponse: false }); +} diff --git a/src/views/kc/tksf/kctksfrzb/KcTksfrzb.data.ts b/src/views/kc/tksf/kctksfrzb/KcTksfrzb.data.ts new file mode 100644 index 0000000..3e6c94b --- /dev/null +++ b/src/views/kc/tksf/kctksfrzb/KcTksfrzb.data.ts @@ -0,0 +1,67 @@ +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: 'gh' + }, + { + title: '姓名', + align: "center", + dataIndex: 'xm' + }, + { + title: '职务名称', + align: "center", + dataIndex: 'zwmc' + }, + { + title: '听课要求', + align: "center", + dataIndex: 'tkyq' + }, + // { + // title: '标志位 1:学校教务委员会+学校督学(曹老师excel提供)2:信息办数据同步,每天更新(先删除后插入)', + // align: "center", + // dataIndex: 'flag' + // }, +]; + +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; + +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '工号', + field: 'gh', + component: 'Input', + }, + { + label: '姓名', + field: 'xm', + component: 'Input', + }, + { + label: '职务名称', + field: 'zwmc', + component: 'Input', + }, + { + label: '标志位 1:学校教务委员会+学校督学(曹老师excel提供)2:信息办数据同步,每天更新(先删除后插入)', + field: 'flag', + component: 'Input', + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/src/views/kc/tksf/kctksfrzb/KcTksfrzbList.vue b/src/views/kc/tksf/kctksfrzb/KcTksfrzbList.vue new file mode 100644 index 0000000..6df9bc9 --- /dev/null +++ b/src/views/kc/tksf/kctksfrzb/KcTksfrzbList.vue @@ -0,0 +1,215 @@ + + + + + diff --git a/src/views/kc/tksf/kctksfrzb/components/KcTksfrzbForm.vue b/src/views/kc/tksf/kctksfrzb/components/KcTksfrzbForm.vue new file mode 100644 index 0000000..5521a77 --- /dev/null +++ b/src/views/kc/tksf/kctksfrzb/components/KcTksfrzbForm.vue @@ -0,0 +1,140 @@ + + + + + diff --git a/src/views/kc/tksf/kctksfrzb/components/KcTksfrzbModal.vue b/src/views/kc/tksf/kctksfrzb/components/KcTksfrzbModal.vue new file mode 100644 index 0000000..0b49e21 --- /dev/null +++ b/src/views/kc/tksf/kctksfrzb/components/KcTksfrzbModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/views/kc/tksf/kctksfyq/KcTksfyq.api.ts b/src/views/kc/tksf/kctksfyq/KcTksfyq.api.ts new file mode 100644 index 0000000..6969aec --- /dev/null +++ b/src/views/kc/tksf/kctksfyq/KcTksfyq.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/kctksfyq/kcTksfyq/list', + save='/kctksfyq/kcTksfyq/add', + edit='/kctksfyq/kcTksfyq/edit', + deleteOne = '/kctksfyq/kcTksfyq/delete', + deleteBatch = '/kctksfyq/kcTksfyq/deleteBatch', + importExcel = '/kctksfyq/kcTksfyq/importExcel', + exportXls = '/kctksfyq/kcTksfyq/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/tksf/kctksfyq/KcTksfyq.data.ts b/src/views/kc/tksf/kctksfyq/KcTksfyq.data.ts new file mode 100644 index 0000000..ec89c8f --- /dev/null +++ b/src/views/kc/tksf/kctksfyq/KcTksfyq.data.ts @@ -0,0 +1,42 @@ +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: 'zwmc' + }, + { + title: '听课要求', + align: "center", + dataIndex: 'tkyq' + }, +]; + +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; + +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '听课身份', + field: 'zwmc', + component: 'Input', + }, + { + label: '听课要求', + field: 'tkyq', + component: 'Input', + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/src/views/kc/tksf/kctksfyq/KcTksfyqList.vue b/src/views/kc/tksf/kctksfyq/KcTksfyqList.vue new file mode 100644 index 0000000..86f0659 --- /dev/null +++ b/src/views/kc/tksf/kctksfyq/KcTksfyqList.vue @@ -0,0 +1,215 @@ + + + + + diff --git a/src/views/kc/tksf/kctksfyq/components/KcTksfyqForm.vue b/src/views/kc/tksf/kctksfyq/components/KcTksfyqForm.vue new file mode 100644 index 0000000..03a4d57 --- /dev/null +++ b/src/views/kc/tksf/kctksfyq/components/KcTksfyqForm.vue @@ -0,0 +1,133 @@ + + + + + diff --git a/src/views/kc/tksf/kctksfyq/components/KcTksfyqModal.vue b/src/views/kc/tksf/kctksfyq/components/KcTksfyqModal.vue new file mode 100644 index 0000000..c52c701 --- /dev/null +++ b/src/views/kc/tksf/kctksfyq/components/KcTksfyqModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/views/kc/tksf/听课身份模块.md b/src/views/kc/tksf/听课身份模块.md new file mode 100644 index 0000000..e69de29