From cc8da7e8e2f58b89845a9e63813439b9cac597a7 Mon Sep 17 00:00:00 2001
From: qsh <>
Date: Mon, 12 May 2025 17:45:07 +0800
Subject: [PATCH] sc
---
build/vite/index.ts | 10 +-
src/api/customer/customer.js | 31 ++++
src/api/customer/examRecord.js | 10 ++
src/api/cutomer/customer.js | 36 ----
src/router/modules/remaining.ts | 33 +---
.../Customer/Customer/Comp/DialogCustomer.vue | 67 +++----
src/views/Customer/Customer/index.vue | 98 +++++++----
src/views/Customer/ExamRecord/index.vue | 165 ++++++++++++++++++
8 files changed, 299 insertions(+), 151 deletions(-)
create mode 100644 src/api/customer/customer.js
create mode 100644 src/api/customer/examRecord.js
delete mode 100644 src/api/cutomer/customer.js
diff --git a/build/vite/index.ts b/build/vite/index.ts
index 574a0d6..a352d94 100644
--- a/build/vite/index.ts
+++ b/build/vite/index.ts
@@ -3,7 +3,7 @@ import Vue from '@vitejs/plugin-vue'
import VueJsx from '@vitejs/plugin-vue-jsx'
import WindiCSS from 'vite-plugin-windicss'
import progress from 'vite-plugin-progress'
-import EslintPlugin from 'vite-plugin-eslint'
+// import EslintPlugin from 'vite-plugin-eslint'
import PurgeIcons from 'vite-plugin-purge-icons'
import { ViteEjsPlugin } from 'vite-plugin-ejs'
// @ts-ignore
@@ -75,10 +75,10 @@ export function createVitePlugins() {
resolvers: [ElementPlusResolver()],
exclude: [/[\\/]node_modules[\\/]/]
}),
- EslintPlugin({
- cache: false,
- include: ['src/**/*.vue', 'src/**/*.ts', 'src/**/*.tsx'] // 检查的文件
- }),
+ // EslintPlugin({
+ // cache: false,
+ // include: ['src/**/*.vue', 'src/**/*.ts', 'src/**/*.tsx'] // 检查的文件
+ // }),
VueI18nPlugin({
runtimeOnly: true,
compositionOnly: true,
diff --git a/src/api/customer/customer.js b/src/api/customer/customer.js
new file mode 100644
index 0000000..8f040a0
--- /dev/null
+++ b/src/api/customer/customer.js
@@ -0,0 +1,31 @@
+import request from '@/config/axios'
+
+// 创建
+export const createCustomer = (data) => {
+ return request.post({ url: '/admin-api/applet/xunjia/user/add', data, isSubmitForm: true })
+}
+
+// 修改
+export const updateCustomer = (data) => {
+ return request.put({ url: '/admin-api/applet/xunjia/user/update', data })
+}
+
+// 分页
+export const getCustomerPage = (params) => {
+ return request.get({ url: '/admin-api/applet/xunjia/user/page', params })
+}
+
+// 删除
+export const deleteCustomer = (userId) => {
+ return request.delete({ url: '/admin-api/applet/xunjia/user/delete', params: { userId } })
+}
+
+// 获取考试车型
+export const getCustomerExamCarType = () => {
+ return request.get({ url: '/admin-api/applet/xunjia/car/simple-list' })
+}
+
+// 导入学员
+export const importStudent = async (data) => {
+ return await request.upload({ url: '/admin-api/applet/xunjia/user/import', data })
+}
diff --git a/src/api/customer/examRecord.js b/src/api/customer/examRecord.js
new file mode 100644
index 0000000..8a0360a
--- /dev/null
+++ b/src/api/customer/examRecord.js
@@ -0,0 +1,10 @@
+import request from '@/config/axios'
+// 分页
+export const getRecordPage = (data) => {
+ return request.post({ url: '/admin-api/applet/xunjia/qestionTest/page', data })
+}
+
+// 导出
+export const exportRecord = (params) => {
+ return request.download({ url: '/admin-api/applet/xunjia/qestionTest/export', params })
+}
diff --git a/src/api/cutomer/customer.js b/src/api/cutomer/customer.js
deleted file mode 100644
index 631e584..0000000
--- a/src/api/cutomer/customer.js
+++ /dev/null
@@ -1,36 +0,0 @@
-import request from '@/config/axios'
-
-// 创建
-export const createCustomer = (data) => {
- return request.post({ url: '/admin-api/tiku/customer/create', data, isSubmitForm: true })
-}
-
-// 分页
-export const getCustomerSimpleList = (params) => {
- return request.get({ url: '/admin-api/tiku/customer/list-all-simple', params })
-}
-
-// 修改
-export const updateCustomer = (data) => {
- return request.put({ url: '/admin-api/tiku/customer/update', data })
-}
-
-// 分页
-export const getCustomerPage = (params) => {
- return request.get({ url: '/admin-api/tiku/customer/page', params })
-}
-
-// 详情
-export const getCustomerDetail = (id) => {
- return request.get({ url: '/admin-api/tiku/customer/get', params: { id } })
-}
-
-// 删除
-export const deleteCustomer = (id) => {
- return request.delete({ url: '/admin-api/tiku/customer/delete', params: { id } })
-}
-
-// 获取钉钉id
-export const getDingUserId = (params) => {
- return request.get({ url: '/admin-api/tiku/customer/getDingTalkUserIdByMobile', params })
-}
diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts
index 54cbca7..0798ba7 100644
--- a/src/router/modules/remaining.ts
+++ b/src/router/modules/remaining.ts
@@ -51,9 +51,9 @@ const remainingRouter: AppRouteRecordRaw[] = [
}
},
{
- path: '/Home',
+ path: '',
component: Layout,
- redirect: '/Home/index',
+ redirect: '/index',
name: '',
meta: {
title: '首页'
@@ -129,35 +129,6 @@ const remainingRouter: AppRouteRecordRaw[] = [
// }
// ]
// },
- {
- path: '/Customer',
- component: Layout,
- name: 'Customer',
- meta: {
- title: '客户管理'
- },
- redirect: '/Customer/customer',
- children: [
- {
- path: 'customer',
- component: () => import('@/views/Customer/Customer/index.vue'),
- name: 'CustomerList',
- meta: {
- canTo: true,
- title: '学员管理'
- }
- },
- {
- path: 'ExamRecord',
- component: () => import('@/views/Customer/ExamRecord/index.vue'),
- name: 'ExamRecord',
- meta: {
- canTo: true,
- title: '考试成绩'
- }
- }
- ]
- },
{
path: '/login',
component: () => import('@/views/Login/Login.vue'),
diff --git a/src/views/Customer/Customer/Comp/DialogCustomer.vue b/src/views/Customer/Customer/Comp/DialogCustomer.vue
index d2cd4b6..501fba0 100644
--- a/src/views/Customer/Customer/Comp/DialogCustomer.vue
+++ b/src/views/Customer/Customer/Comp/DialogCustomer.vue
@@ -9,8 +9,8 @@
>
-
-
+
+
@@ -24,8 +24,8 @@
-
-
+
+
@@ -34,23 +34,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
@@ -64,9 +47,9 @@
>
@@ -80,10 +63,8 @@
diff --git a/src/views/Customer/ExamRecord/index.vue b/src/views/Customer/ExamRecord/index.vue
index e69de29..af8bbf8 100644
--- a/src/views/Customer/ExamRecord/index.vue
+++ b/src/views/Customer/ExamRecord/index.vue
@@ -0,0 +1,165 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+