From 2b7eebf412f874858a7535309f74f1535b730110 Mon Sep 17 00:00:00 2001
From: bai <1643359946@qq.com>
Date: Wed, 19 Apr 2023 19:59:16 +0800
Subject: [PATCH] =?UTF-8?q?2023=E5=B9=B44=E6=9C=8819=E6=97=A5=20=E6=96=B0?=
=?UTF-8?q?=E5=A2=9E=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/kc/qa/KcEvaluationstudent.api.ts | 72 ++++++
src/views/kc/qa/KcEvaluationstudent.data.ts | 92 ++++++++
src/views/kc/qa/KcEvaluationstudentList.vue | 215 ++++++++++++++++++
.../qa/components/KcEvaluationstudentForm.vue | 163 +++++++++++++
.../components/KcEvaluationstudentModal.vue | 75 ++++++
5 files changed, 617 insertions(+)
create mode 100644 src/views/kc/qa/KcEvaluationstudent.api.ts
create mode 100644 src/views/kc/qa/KcEvaluationstudent.data.ts
create mode 100644 src/views/kc/qa/KcEvaluationstudentList.vue
create mode 100644 src/views/kc/qa/components/KcEvaluationstudentForm.vue
create mode 100644 src/views/kc/qa/components/KcEvaluationstudentModal.vue
diff --git a/src/views/kc/qa/KcEvaluationstudent.api.ts b/src/views/kc/qa/KcEvaluationstudent.api.ts
new file mode 100644
index 0000000..330742c
--- /dev/null
+++ b/src/views/kc/qa/KcEvaluationstudent.api.ts
@@ -0,0 +1,72 @@
+import { defHttp } from '/@/utils/http/axios';
+import { useMessage } from "/@/hooks/web/useMessage";
+
+const { createConfirm } = useMessage();
+
+enum Api {
+ list = '/qa/kcEvaluationstudent/list',
+ save='/qa/kcEvaluationstudent/add',
+ edit='/qa/kcEvaluationstudent/edit',
+ deleteOne = '/qa/kcEvaluationstudent/delete',
+ deleteBatch = '/qa/kcEvaluationstudent/deleteBatch',
+ importExcel = '/qa/kcEvaluationstudent/importExcel',
+ exportXls = '/qa/kcEvaluationstudent/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/qa/KcEvaluationstudent.data.ts b/src/views/kc/qa/KcEvaluationstudent.data.ts
new file mode 100644
index 0000000..7e8324e
--- /dev/null
+++ b/src/views/kc/qa/KcEvaluationstudent.data.ts
@@ -0,0 +1,92 @@
+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: '课堂表id',
+ align: "center",
+ dataIndex: 'ketangbiaoid'
+ },
+ {
+ title: '学生学号',
+ align: "center",
+ dataIndex: 'sid'
+ },
+ {
+ title: '学生姓名',
+ align: "center",
+ dataIndex: 'sname'
+ },
+ {
+ title: '提交时间',
+ align: "center",
+ dataIndex: 'uptime'
+ },
+ {
+ title: '提交文本内容',
+ align: "center",
+ dataIndex: 'textdeail'
+ },
+ {
+ title: '是否匿名 0 是 1否',
+ align: "center",
+ dataIndex: 'sfnm'
+ },
+ {
+ title: '星级',
+ align: "center",
+ dataIndex: 'stars'
+ },
+];
+
+//查询数据
+export const searchFormSchema: FormSchema[] = [
+];
+
+//表单数据
+export const formSchema: FormSchema[] = [
+ {
+ label: '课堂表id',
+ field: 'ketangbiaoid',
+ component: 'Input',
+ },
+ {
+ label: '学生学号',
+ field: 'sid',
+ component: 'Input',
+ },
+ {
+ label: '学生姓名',
+ field: 'sname',
+ component: 'Input',
+ },
+ {
+ label: '提交时间',
+ field: 'uptime',
+ component: 'Input',
+ },
+ {
+ label: '提交文本内容',
+ field: 'textdeail',
+ component: 'Input',
+ },
+ {
+ label: '是否匿名 0 是 1否',
+ field: 'sfnm',
+ component: 'Input',
+ },
+ {
+ label: '星级',
+ field: 'stars',
+ component: 'InputNumber',
+ },
+ // TODO 主键隐藏字段,目前写死为ID
+ {
+ label: '',
+ field: 'id',
+ component: 'Input',
+ show: false,
+ },
+];
diff --git a/src/views/kc/qa/KcEvaluationstudentList.vue b/src/views/kc/qa/KcEvaluationstudentList.vue
new file mode 100644
index 0000000..6d3eaf9
--- /dev/null
+++ b/src/views/kc/qa/KcEvaluationstudentList.vue
@@ -0,0 +1,215 @@
+
+
+
+
+
+
+
+
+ 新增
+ 导出
+ 导入
+
+
+
+
+
+ 删除
+
+
+
+ 批量操作
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 无文件
+ 下载
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/kc/qa/components/KcEvaluationstudentForm.vue b/src/views/kc/qa/components/KcEvaluationstudentForm.vue
new file mode 100644
index 0000000..50f216d
--- /dev/null
+++ b/src/views/kc/qa/components/KcEvaluationstudentForm.vue
@@ -0,0 +1,163 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/kc/qa/components/KcEvaluationstudentModal.vue b/src/views/kc/qa/components/KcEvaluationstudentModal.vue
new file mode 100644
index 0000000..f908cd8
--- /dev/null
+++ b/src/views/kc/qa/components/KcEvaluationstudentModal.vue
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+