From 7680fc2c18c53b8739fdc3ccf070449b64b10fd8 Mon Sep 17 00:00:00 2001 From: lvxudong Date: Thu, 2 Nov 2023 19:41:25 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- index.html | 2 +- src/layout/components/Sidebar/Logo.vue | 2 +- src/views/index.vue | 91 +------------------------- src/views/login.vue | 2 +- src/views/register.vue | 2 +- 7 files changed, 8 insertions(+), 95 deletions(-) diff --git a/.env.development b/.env.development index 6d2f8ddf..0b5004bd 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VITE_APP_TITLE = RuoYi-Vue-Plus多租户管理系统 +VITE_APP_TITLE = 题库管理系统 # 开发环境配置 VITE_APP_ENV = 'development' diff --git a/.env.production b/.env.production index d723d2ad..e3f92290 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,5 @@ # 页面标题 -VITE_APP_TITLE = RuoYi-Vue-Plus多租户管理系统 +VITE_APP_TITLE = 题库管理系统 # 生产环境配置 VITE_APP_ENV = 'production' diff --git a/index.html b/index.html index c0dab512..28dc9601 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - RuoYi-Vue-Plus多租户管理系统 + 题库管理系统 + + + + + + + + + + + + + + + -- Gitee From d2328a531f8e307592b11144186e7627812922d6 Mon Sep 17 00:00:00 2001 From: lvxudong Date: Wed, 8 Nov 2023 18:22:59 +0800 Subject: [PATCH 03/10] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A0=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/question/label/index.ts | 63 ++++++++ src/api/question/label/types.ts | 56 ++++++++ src/views/question/label/index.vue | 224 +++++++++++++++++++++++++++++ src/views/question/title/index.vue | 27 +++- 4 files changed, 366 insertions(+), 4 deletions(-) create mode 100644 src/api/question/label/index.ts create mode 100644 src/api/question/label/types.ts create mode 100644 src/views/question/label/index.vue diff --git a/src/api/question/label/index.ts b/src/api/question/label/index.ts new file mode 100644 index 00000000..4e4f893a --- /dev/null +++ b/src/api/question/label/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { LabelVO, LabelForm, LabelQuery } from '@/api/question/label/types'; + +/** + * 查询题目标签列表 + * @param query + * @returns {*} + */ + +export const listLabel = (query?: LabelQuery): AxiosPromise => { + return request({ + url: '/question/label/list', + method: 'get', + params: query + }); +}; + +/** + * 查询题目标签详细 + * @param id + */ +export const getLabel = (id: string | number): AxiosPromise => { + return request({ + url: '/question/label/' + id, + method: 'get' + }); +}; + +/** + * 新增题目标签 + * @param data + */ +export const addLabel = (data: LabelForm) => { + return request({ + url: '/question/label', + method: 'post', + data: data + }); +}; + +/** + * 修改题目标签 + * @param data + */ +export const updateLabel = (data: LabelForm) => { + return request({ + url: '/question/label', + method: 'put', + data: data + }); +}; + +/** + * 删除题目标签 + * @param id + */ +export const delLabel = (id: string | number | Array) => { + return request({ + url: '/question/label/' + id, + method: 'delete' + }); +}; diff --git a/src/api/question/label/types.ts b/src/api/question/label/types.ts new file mode 100644 index 00000000..fa4fa77a --- /dev/null +++ b/src/api/question/label/types.ts @@ -0,0 +1,56 @@ +export interface LabelVO { + /** + * + */ + id: string | number; + + /** + * 标签名称 + */ + label: string; + + /** + * 标签状态 1:启用 0:禁用 + */ + status: number; + +} + +export interface LabelForm extends BaseEntity { + /** + * + */ + id?: string | number; + + /** + * 标签名称 + */ + label?: string; + + /** + * 标签状态 1:启用 0:禁用 + */ + status?: number; + +} + +export interface LabelQuery extends PageQuery { + + /** + * 标签名称 + */ + label?: string; + + /** + * 标签状态 1:启用 0:禁用 + */ + status?: number; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/question/label/index.vue b/src/views/question/label/index.vue new file mode 100644 index 00000000..e2d3835b --- /dev/null +++ b/src/views/question/label/index.vue @@ -0,0 +1,224 @@ + + + diff --git a/src/views/question/title/index.vue b/src/views/question/title/index.vue index a5c1a923..725cee4d 100644 --- a/src/views/question/title/index.vue +++ b/src/views/question/title/index.vue @@ -7,7 +7,14 @@ - + + + 搜索 @@ -40,7 +47,11 @@ - + + +