From 71bbeb1c94303940764323a4d763b5a27be53004 Mon Sep 17 00:00:00 2001 From: Lys <111@qq.com> Date: Fri, 6 Feb 2026 18:54:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E4=BB=B6=E6=A8=A1=E6=9D=BF=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 2 +- package.json | 1 + src/api/net/idea/index.ts | 63 ++++++++ src/api/net/idea/types.ts | 68 +++++++++ src/api/net/invitation/types.ts | 175 ++-------------------- src/api/net/plan/index.ts | 12 ++ src/api/net/plan/types.ts | 10 ++ src/views/net/idea/index.vue | 226 +++++++++++++++++++++++++++++ src/views/net/invitation/index.vue | 3 + src/views/net/node/index.vue | 42 +++--- src/views/net/plan/planRule.vue | 59 +++++++- 11 files changed, 480 insertions(+), 181 deletions(-) create mode 100644 src/api/net/idea/index.ts create mode 100644 src/api/net/idea/types.ts create mode 100644 src/views/net/idea/index.vue diff --git a/.env.production b/.env.production index 883c8f1..88f1f2d 100644 --- a/.env.production +++ b/.env.production @@ -15,7 +15,7 @@ VITE_APP_MONITOR_ADMIN = '/admin/applications' VITE_APP_SNAILJOB_ADMIN = '/snail-job' # 生产环境 -VITE_APP_BASE_API = '/prod-api' +VITE_APP_BASE_API = '/twk71hc7r9khxy2026v1' # 是否在打包时开启压缩,支持 gzip 和 brotli VITE_BUILD_COMPRESS = gzip diff --git a/package.json b/package.json index 322f6ff..640dad0 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "image-conversion": "2.1.1", "js-cookie": "3.0.5", "jsencrypt": "3.5.4", + "monaco-editor": "^0.55.1", "nprogress": "0.2.0", "pinia": "3.0.3", "screenfull": "6.0.2", diff --git a/src/api/net/idea/index.ts b/src/api/net/idea/index.ts new file mode 100644 index 0000000..fc78484 --- /dev/null +++ b/src/api/net/idea/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { IdeaVO, IdeaForm, IdeaQuery } from '@/api/net/idea/types'; + +/** + * 查询用户反馈列表 + * @param query + * @returns {*} + */ + +export const listIdea = (query?: IdeaQuery): AxiosPromise => { + return request({ + url: '/net/idea/list', + method: 'get', + params: query + }); +}; + +/** + * 查询用户反馈详细 + * @param id + */ +export const getIdea = (id: string | number): AxiosPromise => { + return request({ + url: '/net/idea/' + id, + method: 'get' + }); +}; + +/** + * 新增用户反馈 + * @param data + */ +export const addIdea = (data: IdeaForm) => { + return request({ + url: '/net/idea', + method: 'post', + data: data + }); +}; + +/** + * 修改用户反馈 + * @param data + */ +export const updateIdea = (data: IdeaForm) => { + return request({ + url: '/net/idea', + method: 'put', + data: data + }); +}; + +/** + * 删除用户反馈 + * @param id + */ +export const delIdea = (id: string | number | Array) => { + return request({ + url: '/net/idea/' + id, + method: 'delete' + }); +}; diff --git a/src/api/net/idea/types.ts b/src/api/net/idea/types.ts new file mode 100644 index 0000000..71ebf03 --- /dev/null +++ b/src/api/net/idea/types.ts @@ -0,0 +1,68 @@ +export interface IdeaVO { + /** + * + */ + id: string | number; + + /** + * 用户ID + */ + userId: string | number; + + /** + * 分数 + */ + score: number; + + /** + * 反馈意见 + */ + ideaContent: string; + +} + +export interface IdeaForm extends BaseEntity { + /** + * + */ + id?: string | number; + + /** + * 用户ID + */ + userId?: string | number; + + /** + * 分数 + */ + score?: number; + + /** + * 反馈意见 + */ + ideaContent?: string; + +} + +export interface IdeaQuery extends PageQuery { + + /** + * 用户ID + */ + userId?: string | number; + + /** + * 分数 + */ + score?: number; + + /** + * 反馈意见 + */ + ideaContent?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/net/invitation/types.ts b/src/api/net/invitation/types.ts index 1960e3b..85edad1 100644 --- a/src/api/net/invitation/types.ts +++ b/src/api/net/invitation/types.ts @@ -14,6 +14,16 @@ export interface InvitationVO { */ invitationName: string; + /** + * 短信模板 + */ + smsTemplate?: string; + + /** + * 邮件模板 + */ + emailTemplate?: string; + /** * 加速计划ID */ @@ -77,6 +87,11 @@ export interface InvitationForm extends BaseEntity { */ smsTemplate?: string; + /** + * 邮件模板 + */ + emailTemplate?: string; + /** * 加速计划ID */ @@ -155,162 +170,4 @@ export interface InvitationQuery extends PageQuery { * 日期范围参数 */ params?: any; -} -export interface InvitationVO { - /** - * - */ - id: string | number; - - /** - * 渠道编号 - */ - invitationCode: string; - - /** - * 渠道名称 - */ - invitationName: string; - - /** - * 加速计划ID - */ - planId: string | number; - - /** - * 最近多少天 - */ - ipRegisterDay: number; - - /** - * 注册多少个 - */ - ipRegisterNum: number; - - /** - * 邮箱绑定赠送分钟数 - */ - emailBindGift: number; - - /** - * 签到赠送分钟数 - */ - signInGift: number; - - /** - * 保护地区 - */ - protectedArea: string; - - /** - * 节点选择 - */ - nodeFlag: number; - - /** - * 备注 - */ - remark: string; - -} - -export interface InvitationForm extends BaseEntity { - /** - * - */ - id?: string | number; - - /** - * 渠道编号 - */ - invitationCode?: string; - - /** - * 渠道名称 - */ - invitationName?: string; - - /** - * 短信模板 - */ - smsTemplate?: string; - - /** - * 加速计划ID - */ - planId?: string | number; - - /** - * 最近多少天 - */ - ipRegisterDay?: number; - - /** - * 注册多少个 - */ - ipRegisterNum?: number; - - /** - * 注册赠送分钟数 - */ - registerGift?: number; - - /** - * 绑定手机号赠送分钟数 - */ - phoneBindGift?: number; - - /** - * 邮箱绑定赠送分钟数 - */ - emailBindGift?: number; - - /** - * 签到赠送分钟数 - */ - signInGift?: number; - - /** - * 保护地区 - */ - protectedArea?: string; - - /** - * 节点选择 - */ - nodeFlag?: number; - - /** - * 备注 - */ - remark?: string; - -} - -export interface InvitationQuery extends PageQuery { - - /** - * 渠道编号 - */ - invitationCode?: string; - - /** - * 渠道名称 - */ - invitationName?: string; - - /** - * 加速计划ID - */ - planId?: string | number; - - /** - * 保护地区 - */ - protectedArea?: string; - - /** - * 日期范围参数 - */ - params?: any; -} +} \ No newline at end of file diff --git a/src/api/net/plan/index.ts b/src/api/net/plan/index.ts index 04b450b..3e98678 100644 --- a/src/api/net/plan/index.ts +++ b/src/api/net/plan/index.ts @@ -50,6 +50,18 @@ export const updatePlan = (data: PlanForm) => { }); }; +/** + * 修改加速计划 + * @param data + */ +export const configVm = (data: PlanForm) => { + return request({ + url: '/net/plan/configVm', + method: 'put', + data: data + }); +}; + /** * 删除加速计划 * @param id diff --git a/src/api/net/plan/types.ts b/src/api/net/plan/types.ts index 573bd6a..4c6159b 100644 --- a/src/api/net/plan/types.ts +++ b/src/api/net/plan/types.ts @@ -34,6 +34,11 @@ export interface PlanVO { */ groupIds?: string | number; + /** + * 配置模板 + */ + configVm?: string; + } export interface PlanForm extends BaseEntity { @@ -77,6 +82,11 @@ export interface PlanForm extends BaseEntity { */ groupIds?: string | number; + /** + * 配置模板 + */ + configVm?: string; + } export interface PlanQuery extends PageQuery { diff --git a/src/views/net/idea/index.vue b/src/views/net/idea/index.vue new file mode 100644 index 0000000..0b4241c --- /dev/null +++ b/src/views/net/idea/index.vue @@ -0,0 +1,226 @@ + + + diff --git a/src/views/net/invitation/index.vue b/src/views/net/invitation/index.vue index 86e137c..89fc199 100644 --- a/src/views/net/invitation/index.vue +++ b/src/views/net/invitation/index.vue @@ -92,6 +92,9 @@ + + + diff --git a/src/views/net/node/index.vue b/src/views/net/node/index.vue index b06c00f..39b3bbe 100644 --- a/src/views/net/node/index.vue +++ b/src/views/net/node/index.vue @@ -181,16 +181,6 @@ > - - - - - - + + + + + + + + + + + - + - - - \ No newline at end of file