diff --git a/src/components/Form/src/jeecg/components/modal/UserSelectModal.vue b/src/components/Form/src/jeecg/components/modal/UserSelectModal.vue index 673e312..c78e77c 100644 --- a/src/components/Form/src/jeecg/components/modal/UserSelectModal.vue +++ b/src/components/Form/src/jeecg/components/modal/UserSelectModal.vue @@ -106,6 +106,8 @@ getUserList, getBindValue ); + + rowSelection.type = "radio" const searchInfo = ref(props.params); //查询form const formConfig = { @@ -153,26 +155,6 @@ dataIndex: 'realname', width: 40, }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 20, - }, - { - title: '手机号码', - dataIndex: 'phone', - width: 30, - }, - { - title: '邮箱', - dataIndex: 'email', - width: 40, - }, - { - title: '状态', - dataIndex: 'status_dictText', - width: 20, - }, ]; //已选择的table信息 const selectedTable = { @@ -227,6 +209,7 @@ handleDeleteSelected, tableScroll, tableRef, + rowSelection, }; }, }); diff --git a/src/router/routes/modules/zy/zy.ts b/src/router/routes/modules/zy/zy.ts index 1e109b6..6dd5f16 100644 --- a/src/router/routes/modules/zy/zy.ts +++ b/src/router/routes/modules/zy/zy.ts @@ -151,6 +151,14 @@ const zuoye: AppRouteModule = { title: '考核材料', }, }, + { + path: 'dqkcKczj', + name: 'dqkcKczj', + component: () => import('/@/views/kc/kcZjInfo/KcZjInfoList.vue'), + meta: { + title: '课程助教', + }, + }, ] } diff --git a/src/views/kc/kcZjInfo/KcZjInfo.api.ts b/src/views/kc/kcZjInfo/KcZjInfo.api.ts new file mode 100644 index 0000000..dd36783 --- /dev/null +++ b/src/views/kc/kcZjInfo/KcZjInfo.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/kcZjInfo/kcZjInfo/list', + save='/kcZjInfo/kcZjInfo/add', + edit='/kcZjInfo/kcZjInfo/edit', + deleteOne = '/kcZjInfo/kcZjInfo/delete', + deleteBatch = '/kcZjInfo/kcZjInfo/deleteBatch', + importExcel = '/kcZjInfo/kcZjInfo/importExcel', + exportXls = '/kcZjInfo/kcZjInfo/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/kcZjInfo/KcZjInfo.data.ts b/src/views/kc/kcZjInfo/KcZjInfo.data.ts new file mode 100644 index 0000000..a5db6ac --- /dev/null +++ b/src/views/kc/kcZjInfo/KcZjInfo.data.ts @@ -0,0 +1,77 @@ +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: 'rwbh' + }, + { + title: '助教', + align: "center", + dataIndex: 'zjbh_dictText' + }, + // { + // title: '课程名称', + // align: "center", + // dataIndex: 'kcmc' + // }, + // { + // title: '助教名称', + // align: "center", + // dataIndex: 'zjxm' + // }, +]; + +//查询数据 +export const searchFormSchema: FormSchema[] = [ + { + label: "助教编号", + field: 'zjbh', + component: 'JSelectUserByDept', + colProps: {span: 6}, + }, + { + label: "助教名称", + field: 'zjxm', + component: 'Input', + colProps: {span: 6}, + }, +]; + +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '任务编号', + field: 'rwbh', + component: 'Input', + }, + { + label: '助教编号', + field: 'zjbh', + component: 'JSelectUserByDept', + componentProps:{ + labelKey: 'realname', + }, + }, + { + label: '课程名称', + field: 'kcmc', + component: 'Input', + }, + { + label: '助教名称', + field: 'zjxm', + component: 'Input', + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/src/views/kc/kcZjInfo/KcZjInfoList.vue b/src/views/kc/kcZjInfo/KcZjInfoList.vue new file mode 100644 index 0000000..53908e8 --- /dev/null +++ b/src/views/kc/kcZjInfo/KcZjInfoList.vue @@ -0,0 +1,223 @@ + + + + + diff --git a/src/views/kc/kcZjInfo/components/KcZjInfoForm.vue b/src/views/kc/kcZjInfo/components/KcZjInfoForm.vue new file mode 100644 index 0000000..0a63a3f --- /dev/null +++ b/src/views/kc/kcZjInfo/components/KcZjInfoForm.vue @@ -0,0 +1,144 @@ + + + + + diff --git a/src/views/kc/kcZjInfo/components/KcZjInfoModal.vue b/src/views/kc/kcZjInfo/components/KcZjInfoModal.vue new file mode 100644 index 0000000..a041618 --- /dev/null +++ b/src/views/kc/kcZjInfo/components/KcZjInfoModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/views/site/index.vue b/src/views/site/index.vue index 23bb2ce..d854294 100644 --- a/src/views/site/index.vue +++ b/src/views/site/index.vue @@ -65,13 +65,16 @@ - + - + + + + @@ -89,6 +92,7 @@ import tongjiPage from '/@/views/site/tongJi/index.vue'; import lunboPage from '/@/views/site/lunBo/index.vue'; import tongZhiGongGaoPage from '/@/views/site/tongZhiGongGao/index.vue'; import renKeJiaoChengPage from '/@/views/site/renKeJiaoCheng/index.vue'; +import zjkcList from '/@/views/site/renKeJiaoCheng/zjkcList.vue'; import tingKeZuJiPage from '/@/views/site/tingKeZuJi/index.vue'; import yuYueKeChengPage from '/@/views/site/yuYueKeCheng/index.vue'; import jingCaiGongKaiKePage from '/@/views/site/jingCaiGongKaiKe/index.vue'; diff --git a/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkc.vue b/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkc.vue index 8094ee5..b40c40d 100644 --- a/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkc.vue +++ b/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkc.vue @@ -78,9 +78,9 @@ function openXkrs(record) { //进入就加载 onMounted(() => { loadData(); - setInterval(() => { - loadData() - }, 60 * 1000); + // setInterval(() => { + // loadData() + // }, 60 * 1000); }); function loadData() { diff --git a/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcMenu.vue b/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcMenu.vue index 002050c..faf215c 100644 --- a/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcMenu.vue +++ b/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcMenu.vue @@ -56,11 +56,13 @@ 讨论区 - + 教学大纲 + + + 课程助教 +