From 6b8f6ce29924b35c0c87cbb721f82f19a1b0a016 Mon Sep 17 00:00:00 2001
From: yangjun <1173114630@qq.com>
Date: Wed, 15 Jan 2025 15:41:31 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=A9=E6=95=99=E6=A8=A1?=
=?UTF-8?q?=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/modal/UserSelectModal.vue | 23 +-
src/router/routes/modules/zy/zy.ts | 8 +
src/views/kc/kcZjInfo/KcZjInfo.api.ts | 72 ++++++
src/views/kc/kcZjInfo/KcZjInfo.data.ts | 77 ++++++
src/views/kc/kcZjInfo/KcZjInfoList.vue | 223 ++++++++++++++++++
.../kc/kcZjInfo/components/KcZjInfoForm.vue | 144 +++++++++++
.../kc/kcZjInfo/components/KcZjInfoModal.vue | 75 ++++++
src/views/site/index.vue | 8 +-
.../renKeJiaoCheng/checkKecheng/dqxqkc.vue | 6 +-
.../checkKecheng/dqxqkcMenu.vue | 11 +-
src/views/site/renKeJiaoCheng/zjkcList.vue | 184 +++++++++++++++
11 files changed, 803 insertions(+), 28 deletions(-)
create mode 100644 src/views/kc/kcZjInfo/KcZjInfo.api.ts
create mode 100644 src/views/kc/kcZjInfo/KcZjInfo.data.ts
create mode 100644 src/views/kc/kcZjInfo/KcZjInfoList.vue
create mode 100644 src/views/kc/kcZjInfo/components/KcZjInfoForm.vue
create mode 100644 src/views/kc/kcZjInfo/components/KcZjInfoModal.vue
create mode 100644 src/views/site/renKeJiaoCheng/zjkcList.vue
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 @@
讨论区
-
-
-
+
教学大纲
+
+
+ 课程助教
+