点位排序
+ ghostClass="dragClass" :group="{ name: 'people', pull: false, put: true }" itemKey="_bindingKey">
{{ index + 1 }} 、{{ element.waypointName }}
+
@@ -163,7 +168,7 @@
diff --git a/src/views/intelligenceTest/mobilePhone/index.vue b/src/views/intelligenceTest/mobilePhone/index.vue
deleted file mode 100644
index 9b7acac..0000000
--- a/src/views/intelligenceTest/mobilePhone/index.vue
+++ /dev/null
@@ -1,321 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/intelligenceTest/runningTask/index.vue b/src/views/intelligenceTest/runningTask/index.vue
deleted file mode 100644
index 0a23ee3..0000000
--- a/src/views/intelligenceTest/runningTask/index.vue
+++ /dev/null
@@ -1,647 +0,0 @@
-
-
-
-
-
-
-
-
{{ task.taskName }}
-
-
-
-
-
-
-
-
手机:{{ task.phoneName }}
-
车辆:{{ task.vehicleName }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ taskStatusMap[scope.row.status] || '未知状态' }}
-
-
-
-
-
-
- {{ scope.row.taskType === '1' ? '巡检任务' : '讲解任务' }}
-
-
-
-
-
-
- {{ formatDate(scope.row.startTime) }}
-
-
-
-
- {{ formatDate(scope.row.endTime) }}
-
-
-
-
-
- 日志
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/intelligenceTest/runningTask/task-log.vue b/src/views/intelligenceTest/runningTask/task-log.vue
deleted file mode 100644
index 28b562b..0000000
--- a/src/views/intelligenceTest/runningTask/task-log.vue
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
-
{{ formatDate(log.logTime) }}
-
{{ log.logContent }}
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/intelligenceTest/runningTask/task-steps.vue b/src/views/intelligenceTest/runningTask/task-steps.vue
deleted file mode 100644
index 3aa7440..0000000
--- a/src/views/intelligenceTest/runningTask/task-steps.vue
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/intelligenceTest/taskManage/index.vue b/src/views/intelligenceTest/taskManage/index.vue
deleted file mode 100644
index 57687c2..0000000
--- a/src/views/intelligenceTest/taskManage/index.vue
+++ /dev/null
@@ -1,357 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.taskType === '1' ? '巡检任务' : '讲解任务' }}
-
-
-
-
-
-
-
-
- 修改
-
- 绑定用例
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
待选择用例
-
-
-
-
-
-
-
- {{ element.caseName }}
-
-
-
-
-
-
-
-
用例排序
-
-
-
- {{ index + 1 }} 、{{ element.caseName }}
-
-
-
-
-
-
-
-
1、将待选择用例拖拽至用例排序中
-
2、用例排序中可拖拽自定义其顺序
-
-
-
-
-
-
-
-
-
diff --git a/src/views/intelligenceTest/testCase/index.vue b/src/views/intelligenceTest/testCase/index.vue
deleted file mode 100644
index ef81792..0000000
--- a/src/views/intelligenceTest/testCase/index.vue
+++ /dev/null
@@ -1,330 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 修改
-
- 配置
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/lock.vue b/src/views/lock.vue
new file mode 100644
index 0000000..7c4cfc1
--- /dev/null
+++ b/src/views/lock.vue
@@ -0,0 +1,374 @@
+
+
+
+
+
+
+
{{ currentTime }}
+
{{ currentDate }}
+
+
+
+
+
+
🔒
+
+
{{ userStore.nickName }}
+
系统已锁定,请输入密码解锁
+
+
+
+
+ →
+ ···
+
+
+
+
{{ errorMsg }}
+
+
+
+
+
+
+
+
+
diff --git a/src/views/login.vue b/src/views/login.vue
deleted file mode 100644
index 16a8f28..0000000
--- a/src/views/login.vue
+++ /dev/null
@@ -1,236 +0,0 @@
-
-
-
- 招商车研AI测评机器人模拟测试平台
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 记住密码
-
-
- 登 录
- 登 录 中...
-
-
- 立即注册
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/monitor/cache/index.vue b/src/views/monitor/cache/index.vue
deleted file mode 100644
index f2a53a9..0000000
--- a/src/views/monitor/cache/index.vue
+++ /dev/null
@@ -1,132 +0,0 @@
-
-
-
-
-
- 基本信息
-
-
-
-
- Redis版本
- {{ cache.info.redis_version }}
- 运行模式
- {{ cache.info.redis_mode == "standalone" ? "单机" : "集群" }}
- 端口
- {{ cache.info.tcp_port }}
- 客户端数
- {{ cache.info.connected_clients }}
-
-
- 运行时间(天)
- {{ cache.info.uptime_in_days }}
- 使用内存
- {{ cache.info.used_memory_human }}
- 使用CPU
- {{ parseFloat(cache.info.used_cpu_user_children).toFixed(2) }}
- 内存配置
- {{ cache.info.maxmemory_human }}
-
-
- AOF是否开启
- {{ cache.info.aof_enabled == "0" ? "否" : "是" }}
- RDB是否成功
- {{ cache.info.rdb_last_bgsave_status }}
- Key数量
- {{ cache.dbSize }}
- 网络入口/出口
- {{ cache.info.instantaneous_input_kbps }}kps/{{cache.info.instantaneous_output_kbps}}kps
-
-
-
-
-
-
-
-
-
- 命令统计
-
-
-
-
-
-
- 内存信息
-
-
-
-
-
-
-
-
diff --git a/src/views/monitor/cache/list.vue b/src/views/monitor/cache/list.vue
deleted file mode 100644
index 1696f3a..0000000
--- a/src/views/monitor/cache/list.vue
+++ /dev/null
@@ -1,246 +0,0 @@
-
-
-
-
-
-
- 缓存列表
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 键名列表
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 缓存内容
- 清理全部
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/monitor/druid/index.vue b/src/views/monitor/druid/index.vue
deleted file mode 100644
index 13736ec..0000000
--- a/src/views/monitor/druid/index.vue
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/views/monitor/job/index.vue b/src/views/monitor/job/index.vue
deleted file mode 100644
index d40828d..0000000
--- a/src/views/monitor/job/index.vue
+++ /dev/null
@@ -1,501 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 导出
-
-
- 日志
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 调用方法
-
-
-
- Bean调用示例:ryTask.ryParams('ry')
- Class类调用示例:com.ruoyi.quartz.task.RyTask.ryParams('ry')
- 参数说明:支持字符串,布尔类型,长整型,浮点型,整型
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 生成表达式
-
-
-
-
-
-
-
-
-
- {{ dict.label }}
-
-
-
-
-
-
- 立即执行
- 执行一次
- 放弃执行
-
-
-
-
-
-
- 允许
- 禁止
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ form.jobId }}
- {{ form.jobName }}
-
-
- {{ jobGroupFormat(form) }}
- {{ form.createTime }}
-
-
- {{ form.cronExpression }}
-
-
- {{ parseTime(form.nextValidTime) }}
-
-
- {{ form.invokeTarget }}
-
-
-
- 正常
- 暂停
-
-
-
-
- 允许
- 禁止
-
-
-
-
- 默认策略
- 立即执行
- 执行一次
- 放弃执行
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/monitor/job/log.vue b/src/views/monitor/job/log.vue
deleted file mode 100644
index 6823883..0000000
--- a/src/views/monitor/job/log.vue
+++ /dev/null
@@ -1,283 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- 删除
-
-
- 清空
-
-
- 导出
-
-
- 关闭
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
- 详细
-
-
-
-
-
-
-
-
-
-
-
- {{ form.jobLogId }}
- {{ form.jobName }}
-
-
- {{ form.jobGroup }}
- {{ form.createTime }}
-
-
- {{ form.invokeTarget }}
-
-
- {{ form.jobMessage }}
-
-
-
- 正常
- 失败
-
-
-
- {{ form.exceptionInfo }}
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/monitor/logininfor/index.vue b/src/views/monitor/logininfor/index.vue
deleted file mode 100644
index 09c5642..0000000
--- a/src/views/monitor/logininfor/index.vue
+++ /dev/null
@@ -1,233 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- 删除
-
-
- 清空
-
-
- 解锁
-
-
- 导出
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.loginTime) }}
-
-
-
-
-
-
-
-
-
diff --git a/src/views/monitor/online/index.vue b/src/views/monitor/online/index.vue
deleted file mode 100644
index 9481959..0000000
--- a/src/views/monitor/online/index.vue
+++ /dev/null
@@ -1,109 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- {{ (pageNum - 1) * pageSize + scope.$index + 1 }}
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.loginTime) }}
-
-
-
-
- 强退
-
-
-
-
-
-
-
-
-
diff --git a/src/views/monitor/operlog/index.vue b/src/views/monitor/operlog/index.vue
deleted file mode 100644
index 3f2ea94..0000000
--- a/src/views/monitor/operlog/index.vue
+++ /dev/null
@@ -1,310 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- 删除
-
-
- 清空
-
-
- 导出
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.operTime) }}
-
-
-
-
- {{ scope.row.costTime }}毫秒
-
-
-
-
- 详细
-
-
-
-
-
-
-
-
-
-
-
- {{ form.title }} / {{ typeFormat(form) }}
- {{ form.operName }} / {{ form.operIp }} / {{ form.operLocation }}
-
-
- {{ form.operUrl }}
- {{ form.requestMethod }}
-
-
- {{ form.method }}
-
-
- {{ form.operParam }}
-
-
- {{ form.jsonResult }}
-
-
-
- 正常
- 失败
-
-
-
- {{ form.costTime }}毫秒
-
-
- {{ parseTime(form.operTime) }}
-
-
- {{ form.errorMsg }}
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/monitor/server/index.vue b/src/views/monitor/server/index.vue
deleted file mode 100644
index a1178b1..0000000
--- a/src/views/monitor/server/index.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
- CPU
-
-
-
-
- 属性
- 值
-
-
-
-
- 核心数
- {{ server.cpu.cpuNum }}
-
-
- 用户使用率
- {{ server.cpu.used }}%
-
-
- 系统使用率
- {{ server.cpu.sys }}%
-
-
- 当前空闲率
- {{ server.cpu.free }}%
-
-
-
-
-
-
-
-
-
- 内存
-
-
-
-
- 属性
- 内存
- JVM
-
-
-
-
- 总内存
- {{ server.mem.total }}G
- {{ server.jvm.total }}M
-
-
- 已用内存
- {{ server.mem.used}}G
- {{ server.jvm.used}}M
-
-
- 剩余内存
- {{ server.mem.free }}G
- {{ server.jvm.free }}M
-
-
- 使用率
- {{ server.mem.usage }}%
- {{ server.jvm.usage }}%
-
-
-
-
-
-
-
-
-
- 服务器信息
-
-
-
-
- 服务器名称
- {{ server.sys.computerName }}
- 操作系统
- {{ server.sys.osName }}
-
-
- 服务器IP
- {{ server.sys.computerIp }}
- 系统架构
- {{ server.sys.osArch }}
-
-
-
-
-
-
-
-
-
- Java虚拟机信息
-
-
-
-
- Java名称
- {{ server.jvm.name }}
- Java版本
- {{ server.jvm.version }}
-
-
- 启动时间
- {{ server.jvm.startTime }}
- 运行时长
- {{ server.jvm.runTime }}
-
-
- 安装路径
- {{ server.jvm.home }}
-
-
- 项目路径
- {{ server.sys.userDir }}
-
-
- 运行参数
- {{ server.jvm.inputArgs }}
-
-
-
-
-
-
-
-
-
- 磁盘状态
-
-
-
-
- 盘符路径
- 文件系统
- 盘符类型
- 总大小
- 可用大小
- 已用大小
- 已用百分比
-
-
-
-
- {{ sysFile.dirName }}
- {{ sysFile.sysTypeName }}
- {{ sysFile.typeName }}
- {{ sysFile.total }}
- {{ sysFile.free }}
- {{ sysFile.used }}
- {{ sysFile.usage }}%
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/redirect/index.vue b/src/views/redirect/index.vue
deleted file mode 100644
index 15401f8..0000000
--- a/src/views/redirect/index.vue
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
diff --git a/src/views/register.vue b/src/views/register.vue
deleted file mode 100644
index 97e51d0..0000000
--- a/src/views/register.vue
+++ /dev/null
@@ -1,219 +0,0 @@
-
-
-
- 智能座舱测评AI机器人
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 注 册
- 注 册 中...
-
-
- 使用已有账户登录
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/config/index.vue b/src/views/system/config/index.vue
deleted file mode 100644
index 2945fea..0000000
--- a/src/views/system/config/index.vue
+++ /dev/null
@@ -1,316 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 导出
-
-
- 刷新缓存
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
- 修改
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ dict.label }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue
deleted file mode 100644
index b356179..0000000
--- a/src/views/system/dept/index.vue
+++ /dev/null
@@ -1,283 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
- 修改
- 新增
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ dict.label }}
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/data.vue b/src/views/system/dict/data.vue
deleted file mode 100644
index 9dc8eaf..0000000
--- a/src/views/system/dict/data.vue
+++ /dev/null
@@ -1,362 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 导出
-
-
- 关闭
-
-
-
-
-
-
-
-
-
- {{ scope.row.dictLabel }}
- {{ scope.row.dictLabel }}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
- 修改
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ dict.label }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue
deleted file mode 100644
index e40cb43..0000000
--- a/src/views/system/dict/index.vue
+++ /dev/null
@@ -1,420 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 导出
-
-
- 刷新缓存
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.dictType }}
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
- 修改
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ dict.label }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/file/index.vue b/src/views/system/file/index.vue
deleted file mode 100644
index 8fa3319..0000000
--- a/src/views/system/file/index.vue
+++ /dev/null
@@ -1,350 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ fileType.find(item => item.value === scope.row.fileType)["label"] }}
-
-
-
-
- {{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 支持格式:json/ xlsx/ txt / png / jpg / jpeg / mp3 / mp4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/group/index.vue b/src/views/system/group/index.vue
deleted file mode 100644
index 925ef7d..0000000
--- a/src/views/system/group/index.vue
+++ /dev/null
@@ -1,289 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
- 修改
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ sys_group_type?.find(item => Number(item.value) === scope.row.type)["label"] }}
-
-
-
-
-
-
-
- 修改
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue
deleted file mode 100644
index b65b3a8..0000000
--- a/src/views/system/menu/index.vue
+++ /dev/null
@@ -1,461 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- 新增
-
-
- 展开/折叠
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
- 修改
- 新增
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 目录
- 菜单
- 按钮
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 路由名称
-
-
-
-
-
-
-
-
-
-
-
- 是否外链
-
-
-
- 是
- 否
-
-
-
-
-
-
-
-
-
-
- 路由地址
-
-
-
-
-
-
-
-
-
-
-
-
- 组件路径
-
-
-
-
-
-
-
-
-
-
-
-
-
- 权限字符
-
-
-
-
-
-
-
-
-
-
-
-
- 路由参数
-
-
-
-
-
-
-
-
-
-
-
- 是否缓存
-
-
-
- 缓存
- 不缓存
-
-
-
-
-
-
-
-
-
-
- 显示状态
-
-
-
- {{ dict.label }}
-
-
-
-
-
-
-
-
-
-
- 菜单状态
-
-
-
- {{ dict.label }}
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue
deleted file mode 100644
index b009d7c..0000000
--- a/src/views/system/notice/index.vue
+++ /dev/null
@@ -1,292 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
-
-
-
-
- 修改
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ dict.label }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue
deleted file mode 100644
index 045ed41..0000000
--- a/src/views/system/post/index.vue
+++ /dev/null
@@ -1,287 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 导出
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
- 修改
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ dict.label }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/authUser.vue b/src/views/system/role/authUser.vue
deleted file mode 100644
index 5bc3404..0000000
--- a/src/views/system/role/authUser.vue
+++ /dev/null
@@ -1,179 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- 添加用户
-
-
- 批量取消授权
-
-
- 关闭
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
- 取消授权
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue
deleted file mode 100644
index 3af1b4e..0000000
--- a/src/views/system/role/index.vue
+++ /dev/null
@@ -1,593 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 导出
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 权限字符
-
-
-
-
-
-
-
-
-
- {{ dict.label }}
-
-
-
- 展开/折叠
- 全选/全不选
- 父子联动
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 展开/折叠
- 全选/全不选
- 父子联动
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/role/selectUser.vue b/src/views/system/role/selectUser.vue
deleted file mode 100644
index 6e61b4c..0000000
--- a/src/views/system/role/selectUser.vue
+++ /dev/null
@@ -1,144 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/authRole.vue b/src/views/system/user/authRole.vue
deleted file mode 100644
index 7555cac..0000000
--- a/src/views/system/user/authRole.vue
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ (pageNum - 1) * pageSize + scope.$index + 1 }}
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
-
-
-
-
- 提交
- 返回
-
-
-
-
-
-
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
deleted file mode 100644
index d221a84..0000000
--- a/src/views/system/user/index.vue
+++ /dev/null
@@ -1,547 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 导入
-
-
- 导出
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ dict.label }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 将文件拖到此处,或点击上传
-
-
-
- 是否更新已经存在的用户数据
-
-
仅允许导入xls、xlsx格式文件。
-
下载模板
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/profile/index.vue b/src/views/system/user/profile/index.vue
deleted file mode 100644
index 5851f05..0000000
--- a/src/views/system/user/profile/index.vue
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
-
-
-
- 个人信息
-
-
-
-
-
-
-
-
- 用户名称
- {{ state.user.userName }}
-
-
- 手机号码
- {{ state.user.phonenumber }}
-
-
- 用户邮箱
- {{ state.user.email }}
-
-
- 所属部门
- {{ state.user.dept.deptName }} / {{ state.postGroup }}
-
-
- 所属角色
- {{ state.roleGroup }}
-
-
- 创建日期
- {{ state.user.createTime }}
-
-
-
-
-
-
-
-
-
- 基本资料
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/profile/resetPwd.vue b/src/views/system/user/profile/resetPwd.vue
deleted file mode 100644
index b484755..0000000
--- a/src/views/system/user/profile/resetPwd.vue
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
- 关闭
-
-
-
-
-
diff --git a/src/views/system/user/profile/userAvatar.vue b/src/views/system/user/profile/userAvatar.vue
deleted file mode 100644
index 3dbc40c..0000000
--- a/src/views/system/user/profile/userAvatar.vue
+++ /dev/null
@@ -1,180 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 选择
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 提 交
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/user/profile/userInfo.vue b/src/views/system/user/profile/userInfo.vue
deleted file mode 100644
index 2737fe1..0000000
--- a/src/views/system/user/profile/userInfo.vue
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 男
- 女
-
-
-
- 保存
- 关闭
-
-
-
-
-
diff --git a/src/views/system/vehOper/index.vue b/src/views/system/vehOper/index.vue
deleted file mode 100644
index 0a9b389..0000000
--- a/src/views/system/vehOper/index.vue
+++ /dev/null
@@ -1,349 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
- 修改
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 修改
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 格式化
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/test/configs/Run.vue b/src/views/test/configs/Run.vue
deleted file mode 100644
index 3040369..0000000
--- a/src/views/test/configs/Run.vue
+++ /dev/null
@@ -1,172 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ row.name }}
- *
-
-
-
-
-
- {{ row.type }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 关闭
- 确定
-
-
-
-
diff --git a/src/views/test/configs/index.vue b/src/views/test/configs/index.vue
deleted file mode 100644
index f70efe7..0000000
--- a/src/views/test/configs/index.vue
+++ /dev/null
@@ -1,696 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
- 修改
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 修改
-
- 编排
-
- 执行
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
待检测项
-
-
-
-
-
-
- {{ element.name }}
-
-
-
-
-
-
-
-
流程编排
-
-
-
- {{ index + 1 }} 、{{ element.name }}
-
-
-
-
-
-
-
-
1、将待检测项拖拽至流程编排中
-
2、流程编排中可拖拽自定义其顺序
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/test/detect/index.vue b/src/views/test/detect/index.vue
deleted file mode 100644
index 836d697..0000000
--- a/src/views/test/detect/index.vue
+++ /dev/null
@@ -1,477 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
- 修改
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{
- groupList?.find((item) => item.value === scope.row.groupId)[
- "label"
- ]
- }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 修改
-
- 配置
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/test/log/index.vue b/src/views/test/log/index.vue
deleted file mode 100644
index 9af113e..0000000
--- a/src/views/test/log/index.vue
+++ /dev/null
@@ -1,450 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
-
-
-
-
-
-
- 日志
-
- 流程可视化
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{
- item.logLevel
- }}
- {{
- item.nodeType
- }}
- {{
- item.message
- }}
-
- {{ JSON.parse(item.params) }}
-
-
-
-
-
-
-
-
-
-
-
{{ item.name }}
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/test/params/index.vue b/src/views/test/params/index.vue
deleted file mode 100644
index 1375f04..0000000
--- a/src/views/test/params/index.vue
+++ /dev/null
@@ -1,431 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
- 修改
-
-
-
- 删除
-
-
-
- 导出
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 修改
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- form.sourceValue=null">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 是
- 否
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/tool/build/CodeTypeDialog.vue b/src/views/tool/build/CodeTypeDialog.vue
deleted file mode 100644
index b322c69..0000000
--- a/src/views/tool/build/CodeTypeDialog.vue
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
-
-
-
- {{ item.label }}
-
-
-
-
-
-
-
-
-
- 取消
- 确定
-
-
-
-
-
diff --git a/src/views/tool/build/DraggableItem.vue b/src/views/tool/build/DraggableItem.vue
deleted file mode 100644
index d345ae5..0000000
--- a/src/views/tool/build/DraggableItem.vue
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-
-
-
-
- {{ element.componentName }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/tool/build/IconsDialog.vue b/src/views/tool/build/IconsDialog.vue
deleted file mode 100644
index 98d9c13..0000000
--- a/src/views/tool/build/IconsDialog.vue
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
diff --git a/src/views/tool/build/RightPanel.vue b/src/views/tool/build/RightPanel.vue
deleted file mode 100644
index 48e3087..0000000
--- a/src/views/tool/build/RightPanel.vue
+++ /dev/null
@@ -1,918 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.label }}
-
-
-
-
-
-
-
-
- {{ activeData.componentName }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 选择
-
-
-
-
-
-
-
-
- 选择
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 默认
-
-
- 右侧
-
-
-
-
-
-
- 个字符
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text
-
-
- picture
-
-
- picture-card
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 选项
-
-
-
-
-
-
-
- 添加选项
-
-
-
-
-
-
- 选项
-
-
-
- 动态数据
-
-
- 静态数据
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 添加父级
-
-
-
-
-
-
-
-
- 默认
-
-
- 按钮
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 较大
-
-
- 默认
-
-
- 较小
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 布局结构树
-
-
-
-
- {{ node.label }}
-
-
-
-
-
-
- 正则校验
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 添加规则
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 较大
-
-
- 默认
-
-
- 较小
-
-
-
-
-
-
- 左对齐
-
-
- 右对齐
-
-
- 顶部对齐
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/tool/build/TreeNodeDialog.vue b/src/views/tool/build/TreeNodeDialog.vue
deleted file mode 100644
index 372d3af..0000000
--- a/src/views/tool/build/TreeNodeDialog.vue
+++ /dev/null
@@ -1,93 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/tool/build/index.vue b/src/views/tool/build/index.vue
deleted file mode 100644
index e630740..0000000
--- a/src/views/tool/build/index.vue
+++ /dev/null
@@ -1,653 +0,0 @@
-
-
-
-
-
-
Form Generator
-
-
-
-
-
- 输入型组件
-
-
-
-
-
-
- {{ element.label }}
-
-
-
-
-
- 选择型组件
-
-
-
-
-
-
- {{ element.label }}
-
-
-
-
-
- 布局型组件
-
-
-
-
-
-
- {{ element.label }}
-
-
-
-
-
-
-
-
-
-
- 导出vue文件
-
-
- 复制代码
-
-
- 清空
-
-
-
-
-
-
-
-
-
-
-
- 从左侧拖入或点选组件进行表单设计
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/tool/gen/basicInfoForm.vue b/src/views/tool/gen/basicInfoForm.vue
deleted file mode 100644
index 39c8515..0000000
--- a/src/views/tool/gen/basicInfoForm.vue
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/tool/gen/createTable.vue b/src/views/tool/gen/createTable.vue
deleted file mode 100644
index 00fdfdb..0000000
--- a/src/views/tool/gen/createTable.vue
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
- 创建表语句(支持多个建表语句):
-
-
-
-
-
-
-
-
diff --git a/src/views/tool/gen/editTable.vue b/src/views/tool/gen/editTable.vue
deleted file mode 100644
index 5d22780..0000000
--- a/src/views/tool/gen/editTable.vue
+++ /dev/null
@@ -1,200 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ dict.dictName }}
- {{ dict.dictType }}
-
-
-
-
-
-
-
-
-
-
-
-
- 提交
- 返回
-
-
-
-
-
-
diff --git a/src/views/tool/gen/genInfoForm.vue b/src/views/tool/gen/genInfoForm.vue
deleted file mode 100644
index e5189c5..0000000
--- a/src/views/tool/gen/genInfoForm.vue
+++ /dev/null
@@ -1,306 +0,0 @@
-
-
-
-
-
- 生成模板
-
-
-
-
-
-
-
-
-
-
- 前端类型
-
-
-
-
-
-
-
-
-
-
- 生成包路径
-
-
-
-
-
-
-
-
-
-
-
- 生成模块名
-
-
-
-
-
-
-
-
-
-
-
- 生成业务名
-
-
-
-
-
-
-
-
-
-
-
- 生成功能名
-
-
-
-
-
-
-
-
-
-
-
- 生成代码方式
-
-
-
-
- zip压缩包
- 自定义路径
-
-
-
-
-
-
- 上级菜单
-
-
-
-
-
-
-
-
-
-
-
- 自定义路径
-
-
-
-
-
-
-
-
- 最近路径快速选择
-
-
-
-
- 恢复默认的生成基础路径
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 树编码字段
-
-
-
-
-
-
-
-
-
-
-
-
- 树父编码字段
-
-
-
-
-
-
-
-
-
-
-
-
- 树名称字段
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 关联子表的表名
-
-
-
-
-
-
-
-
-
-
-
-
- 子表关联的外键名
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/tool/gen/importTable.vue b/src/views/tool/gen/importTable.vue
deleted file mode 100644
index d0115c4..0000000
--- a/src/views/tool/gen/importTable.vue
+++ /dev/null
@@ -1,126 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/tool/gen/index.vue b/src/views/tool/gen/index.vue
deleted file mode 100644
index e6bf638..0000000
--- a/src/views/tool/gen/index.vue
+++ /dev/null
@@ -1,310 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- 生成
-
-
- 创建
-
-
- 导入
-
-
- 修改
-
-
- 删除
-
-
-
-
-
-
-
-
- {{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 复制
- {{ value }}
-
-
-
-
-
-
-
-
-
diff --git a/src/views/tool/swagger/index.vue b/src/views/tool/swagger/index.vue
deleted file mode 100644
index a44fa71..0000000
--- a/src/views/tool/swagger/index.vue
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
diff --git a/vite.config.js b/vite.config.js
index 11f4957..39bc171 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -1,93 +1,96 @@
-import {defineConfig, loadEnv, normalizePath} from 'vite'
+import { defineConfig, loadEnv, normalizePath } from 'vite'
import path from 'path'
import createVitePlugins from './vite/plugins'
// https://vitejs.dev/config/
-export default defineConfig(({mode, command}) => {
- const env = loadEnv(mode, process.cwd())
- const {VITE_APP_ENV, VITE_API_URL} = env
- const variablePath = normalizePath(path.resolve('./src/style/variable.scss'));
- return {
- // 部署生产环境和开发环境下的URL。
- // 默认情况下,vite 会假设你的应用是被部署在一个域名的根路径上
- // 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
- base: VITE_APP_ENV === 'production' ? '/' : '/',
- plugins: createVitePlugins(env, command === 'build'),
- assetsInclude: ['**/*.urdf', '**/*.xacro'], // 将 .urdf 文件视为静态资源
- optimizeDeps: {
- exclude: [
- // 排除 Monaco Editor 相关的依赖
- 'monaco-editor',
- 'monaco-editor/esm/vs/base/worker/workerMain.js',
- 'monaco-editor/esm/vs/editor/editor.main.js',
- // 排除 TypeScript worker
- 'ts.worker.js',
- 'typescript',
- ],
- include: [
- // 确保其他依赖被优化
- 'monaco-editor/esm/vs/language/typescript/monaco.contribution',
- ],
+export default defineConfig(({ mode, command }) => {
+ const env = loadEnv(mode, process.cwd())
+ const { VITE_APP_ENV, VITE_API_URL, VITE_PORT } = env
+ const variablePath = normalizePath(path.resolve('./src/style/variable.scss'))
+ return {
+ base: VITE_APP_ENV === 'production' ? '/' : '/',
+ plugins: createVitePlugins(env, command === 'build'),
+ optimizeDeps: {
+ exclude: [
+ 'monaco-editor',
+ 'monaco-editor/esm/vs/base/worker/workerMain.js',
+ 'monaco-editor/esm/vs/editor/editor.main.js',
+ 'ts.worker.js',
+ 'typescript'
+ ],
+ include: [
+ 'monaco-editor/esm/vs/language/typescript/monaco.contribution'
+ ]
+ },
+ resolve: {
+ // https://cn.vitejs.dev/config/#resolve-alias
+ alias: {
+ // 设置路径
+ '~': path.resolve(__dirname, './'),
+ // 设置别名
+ '@': path.resolve(__dirname, './src')
+ },
+ dedupe: ['vue', 'vue-router', 'pinia', 'element-plus', '@element-plus/icons-vue'],
+ // https://cn.vitejs.dev/config/#resolve-extensions
+ extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
+ },
+ // 打包配置
+ build: {
+ // https://vite.dev/config/build-options.html
+ sourcemap: command === 'build' ? false : 'inline',
+ outDir: 'dist',
+ assetsDir: 'assets',
+ chunkSizeWarningLimit: 2000,
+ rollupOptions: {
+ output: {
+ manualChunks: {
+ monaco: ['monaco-editor']
+ },
+ chunkFileNames: 'static/js/[name]-[hash].js',
+ entryFileNames: 'static/js/[name]-[hash].js',
+ assetFileNames: 'static/[ext]/[name]-[hash].[ext]'
+ }
+ }
+ },
+ // vite 相关配置
+ server: {
+ port: Number(VITE_PORT || 80),
+ host: true,
+ open: true,
+ proxy: {
+ // https://cn.vitejs.dev/config/#server-proxy
+ '/dev-api': {
+ target: VITE_API_URL || 'http://localhost:13080',
+ changeOrigin: true,
+ rewrite: (p) => p.replace(/^\/dev-api/, '')
},
- resolve: {
- // https://cn.vitejs.dev/config/#resolve-alias
- alias: {
- // 设置路径
- '~': path.resolve(__dirname, './'),
- // 设置别名
- '@': path.resolve(__dirname, './src')
- },
- // https://cn.vitejs.dev/config/#resolve-extensions
- extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
- },
- // vite 相关配置
- server: {
- port: 13080,
- host: true,
- open: true,
- proxy: {
- // https://cn.vitejs.dev/config/#server-proxy
- '/dev-api': {
- //李小龙 http://192.168.0.201:13080
- // dev http://10.148.20.34:13080
- target: VITE_API_URL,
- // target: command === 'build' ? VITE_API_URL : 'http://192.168.0.201:13080',
- changeOrigin: true,
- rewrite: (p) => p.replace(/^\/dev-api/, '')
+ // springdoc proxy
+ '^/v3/api-docs/(.*)': {
+ target: VITE_API_URL || 'http://localhost:13080',
+ changeOrigin: true,
+ }
+ }
+ },
+ css: {
+ postcss: {
+ plugins: [
+ {
+ postcssPlugin: 'internal:charset-removal',
+ AtRule: {
+ charset: (atRule) => {
+ if (atRule.name === 'charset') {
+ atRule.remove()
}
+ }
}
- },
- //fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file
- css: {
- postcss: {
- plugins: [
- {
- postcssPlugin: 'internal:charset-removal',
- AtRule: {
- charset: (atRule) => {
- if (atRule.name === 'charset') {
- atRule.remove();
- }
- }
- }
- }
- ]
- },
- preprocessorOptions: {
- scss: {
- additionalData: `@import "${variablePath}";`
- },
- },
- },
- build: {
- rollupOptions: {
- // 确保 Monaco Editor 的 worker 文件被正确处理
- output: {
- manualChunks: {
- monaco: ['monaco-editor'],
- },
- },
- },
- },
+ }
+ ]
+ },
+ preprocessorOptions: {
+ scss: {
+ additionalData: `@use "${variablePath}" as *;`
+ }
+ }
}
+ }
})
diff --git a/vite/plugins/auto-import.js b/vite/plugins/auto-import.js
index a5d3576..1b6ab1d 100644
--- a/vite/plugins/auto-import.js
+++ b/vite/plugins/auto-import.js
@@ -1,12 +1,16 @@
import autoImport from 'unplugin-auto-import/vite'
export default function createAutoImport() {
- return autoImport({
- imports: [
- 'vue',
- 'vue-router',
- 'pinia'
- ],
- dts: false
- })
+ return autoImport({
+ imports: [
+ 'vue',
+ 'vue-router',
+ 'pinia',
+ {
+ '@/utils/dict': ['useDict'],
+ '@/utils/ruoyi': ['selectDictLabel']
+ }
+ ],
+ dts: false
+ })
}
diff --git a/vite/plugins/compression.js b/vite/plugins/compression.js
index e90aaec..24bf85b 100644
--- a/vite/plugins/compression.js
+++ b/vite/plugins/compression.js
@@ -1,28 +1,28 @@
import compression from 'vite-plugin-compression'
export default function createCompression(env) {
- const { VITE_BUILD_COMPRESS } = env
- const plugin = []
- if (VITE_BUILD_COMPRESS) {
- const compressList = VITE_BUILD_COMPRESS.split(',')
- if (compressList.includes('gzip')) {
- // http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件
- plugin.push(
- compression({
- ext: '.gz',
- deleteOriginFile: false
- })
- )
- }
- if (compressList.includes('brotli')) {
- plugin.push(
- compression({
- ext: '.br',
- algorithm: 'brotliCompress',
- deleteOriginFile: false
- })
- )
- }
+ const { VITE_BUILD_COMPRESS } = env
+ const plugin = []
+ if (VITE_BUILD_COMPRESS) {
+ const compressList = VITE_BUILD_COMPRESS.split(',')
+ if (compressList.includes('gzip')) {
+ // http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件
+ plugin.push(
+ compression({
+ ext: '.gz',
+ deleteOriginFile: false
+ })
+ )
}
- return plugin
+ if (compressList.includes('brotli')) {
+ plugin.push(
+ compression({
+ ext: '.br',
+ algorithm: 'brotliCompress',
+ deleteOriginFile: false
+ })
+ )
+ }
+ }
+ return plugin
}
diff --git a/vite/plugins/index.js b/vite/plugins/index.js
index dbad7e0..fede791 100644
--- a/vite/plugins/index.js
+++ b/vite/plugins/index.js
@@ -4,23 +4,20 @@ import createAutoImport from './auto-import'
import createSvgIcon from './svg-icon'
import createCompression from './compression'
import createSetupExtend from './setup-extend'
-
import monacoPluginModule from 'vite-plugin-monaco-editor'
-// 2. 提取真正的插件函数(核心修正)
const monacoEditorPlugin = monacoPluginModule.default || monacoPluginModule
+
export default function createVitePlugins(viteEnv, isBuild = false) {
- const vitePlugins = [
- vue(),
- // 配置 Monaco 插件
- monacoEditorPlugin({
- // 按需引入语言(减小打包体积),默认全部引入
- languages: ['javascript', 'html', 'css', 'json', 'python', 'java']
- })
- ]
- vitePlugins.push(createAutoImport())
- vitePlugins.push(createSetupExtend())
- vitePlugins.push(createSvgIcon(isBuild))
- isBuild && vitePlugins.push(...createCompression(viteEnv))
- return vitePlugins
+ const vitePlugins = [
+ vue(),
+ monacoEditorPlugin({
+ languages: ['javascript', 'html', 'css', 'json', 'python', 'java']
+ })
+ ]
+ vitePlugins.push(createAutoImport())
+ vitePlugins.push(createSetupExtend())
+ vitePlugins.push(createSvgIcon(isBuild))
+ isBuild && vitePlugins.push(...createCompression(viteEnv))
+ return vitePlugins
}
diff --git a/vite/plugins/setup-extend.js b/vite/plugins/setup-extend.js
index ed8342e..fb70609 100644
--- a/vite/plugins/setup-extend.js
+++ b/vite/plugins/setup-extend.js
@@ -1,5 +1,5 @@
import setupExtend from 'unplugin-vue-setup-extend-plus/vite'
export default function createSetupExtend() {
- return setupExtend({})
+ return setupExtend({})
}
diff --git a/vite/plugins/svg-icon.js b/vite/plugins/svg-icon.js
index 30a4140..fe7bb37 100644
--- a/vite/plugins/svg-icon.js
+++ b/vite/plugins/svg-icon.js
@@ -2,9 +2,9 @@ import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
import path from 'path'
export default function createSvgIcon(isBuild) {
- return createSvgIconsPlugin({
- iconDirs: [path.resolve(process.cwd(), 'src/assets/icons/svg')],
- symbolId: 'icon-[dir]-[name]',
- svgoOptions: isBuild
- })
+ return createSvgIconsPlugin({
+ iconDirs: [path.resolve(process.cwd(), 'src/assets/icons/svg')],
+ symbolId: 'icon-[dir]-[name]',
+ svgoOptions: isBuild
+ })
}