统一修改ruoyi->bms

This commit is contained in:
caojia
2026-09-28 10:02:38 +08:00
parent 341afc4111
commit 0408b6c35e
639 changed files with 2776 additions and 2807 deletions
+1 -1
View File
@@ -1 +1 @@
custom: http://doc.ruoyi.vip/ruoyi-vue/other/donate.html
# BMS 暂未配置外部赞助链接。
+2 -22
View File
@@ -3,32 +3,12 @@
</p>
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">BMS</h1>
<h4 align="center">基于SpringBoot+Vue3前后端分离的Java快速开发框架</h4>
<p align="center">
<a href="https://gitee.com/y_project/RuoYi-Vue/stargazers"><img src="https://gitee.com/y_project/RuoYi-Vue/badge/star.svg?theme=dark"></a>
<a href="https://gitee.com/y_project/RuoYi-Vue"><img src="https://img.shields.io/badge/RuoYi-v3.9.2-brightgreen.svg"></a>
<a href="https://gitee.com/y_project/RuoYi-Vue/blob/master/LICENSE"><img src="https://img.shields.io/github/license/mashape/apistatus.svg"></a>
</p>
<p align="center">BMS 前端应用</p>
## 平台简介
* 本仓库为前端技术栈 [Vue3](https://v3.cn.vuejs.org) + [Element Plus](https://element-plus.org/zh-CN) + [Vite](https://cn.vitejs.dev) 版本。
* 配套后端代码仓库地址[RuoYi-Vue](https://gitee.com/y_project/RuoYi-Vue) 或 [RuoYi-Vue-fast](https://gitcode.com/yangzongzhuan/RuoYi-Vue-fast) 版本。
* 阿里云折扣场:[点我进入](http://aly.ruoyi.vip),腾讯云秒杀场:[点我进入](http://txy.ruoyi.vip)&nbsp;&nbsp;
# 版本对比
RuoYi-Vue 前端项目的三个主要演进版本,方便你直观对比其技术栈差异(并行开发维护)。
| 项目名称 | **RuoYi-Vue2** | **RuoYi-Vue3** | **RuoYi-Vue3-TypeScript** |
| :--- | :--- | :--- | :--- |
| **前端框架** | Vue 2 | Vue 3 | Vue 3 |
| **脚本语言** | JavaScript | JavaScript | TypeScript |
| **构建工具** | Vue CLI | Vite | Vite |
| **UI 组件库** | Element UI | Element Plus | Element Plus |
| **状态管理** | Vuex | Pinia | Pinia |
| **路由管理** | Vue Router 3 | Vue Router 4 | Vue Router 4 |
| **核心特点** | 1. 技术栈经典稳定<br>2. 社区资料丰富<br>3. 当前维护重心已转移 | 1. 现代前端技术栈<br>2. 开发体验与性能更优<br>3. 官方主推的活跃版本 | 1. 类型加持,减少沟通成本<br>2. 开发时有提示,效率更高<br>3. 多人协作企业级开发项目 |
| **仓库地址** | [RuoYi-Vue2](https://gitcode.com/yangzongzhuan/RuoYi-Vue2) | [RuoYi-Vue3](https://gitcode.com/yangzongzhuan/RuoYi-Vue3) | [RuoYi-Vue3-TypeScript](https://gitcode.com/yangzongzhuan/RuoYi-Vue3/tree/typescript) |
* 配套后端代码仓库地址:[BMS](http://git.lionquexpress.com/wuweihua/BMS)。
## 前端运行
+3 -3
View File
@@ -1,8 +1,8 @@
{
"name": "ruoyi",
"name": "bms",
"version": "3.9.2",
"description": "BMS",
"author": "若依",
"author": "BMS",
"license": "MIT",
"type": "module",
"scripts": {
@@ -13,7 +13,7 @@
},
"repository": {
"type": "git",
"url": "https://gitee.com/y_project/RuoYi-Vue.git"
"url": "http://git.lionquexpress.com/wuweihua/BMS.git"
},
"dependencies": {
"@element-plus/icons-vue": "2.3.2",
+1 -1
View File
@@ -61,7 +61,7 @@ export async function savePriceSetAsync(data, onProgress) {
throw new Error('save timeout')
}
/** Accept data.taskId / data string / legacy msg UUID (RuoYi String overload). */
/** Accept data.taskId / data string / legacy msg UUID (Bms String overload). */
function pickSaveTaskId(res) {
if (!res) return null
const d = res.data
+1 -1
View File
@@ -1,5 +1,5 @@
import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";
import { parseStrEmpty } from "@/utils/bms";
// 查询用户列表
export function listUser(query) {
@@ -1,6 +1,6 @@
/**
* 通用css样式布局处理
* Copyright (c) 2019 ruoyi
* Copyright (c) 2019 bms
*/
/** 基础通用 **/
+1 -1
View File
@@ -3,7 +3,7 @@
@use './element-ui.scss';
@use './sidebar.scss';
@use './btn.scss';
@use './ruoyi.scss';
@use './bms.scss';
body {
height: 100%;
@@ -5,9 +5,9 @@
</template>
<script setup>
const url = ref('http://doc.ruoyi.vip/ruoyi-vue')
const url = ref(import.meta.env.VITE_DOCS_URL || window.location.origin)
function goto() {
window.open(url.value)
}
</script>
</script>
@@ -5,7 +5,7 @@
</template>
<script setup>
const url = ref('https://gitee.com/y_project/RuoYi-Vue')
const url = ref('http://git.lionquexpress.com/wuweihua/BMS')
function goto() {
window.open(url.value)
@@ -78,7 +78,7 @@
<script setup>
import Fuse from 'fuse.js'
import { getNormalPath } from '@/utils/ruoyi'
import { getNormalPath } from '@/utils/bms'
import { isHttp } from '@/utils/validate'
import useSettingsStore from '@/store/modules/settings'
import usePermissionStore from '@/store/modules/permission'
+1 -1
View File
@@ -1,6 +1,6 @@
/**
* v-copyText 复制文本内容
* Copyright (c) 2022 ruoyi
* Copyright (c) 2022 bms
*/
export default {
beforeMount(el, { value, arg }) {
@@ -1,6 +1,6 @@
/**
* v-hasPermi 操作权限处理
* Copyright (c) 2019 ruoyi
* Copyright (c) 2019 bms
*/
import useUserStore from '@/store/modules/user'
@@ -1,6 +1,6 @@
/**
* v-hasRole 角色权限处理
* Copyright (c) 2019 ruoyi
* Copyright (c) 2019 bms
*/
import useUserStore from '@/store/modules/user'
@@ -30,7 +30,7 @@
<script setup>
import { isExternal } from '@/utils/validate'
import AppLink from './Link'
import { getNormalPath } from '@/utils/ruoyi'
import { getNormalPath } from '@/utils/bms'
const props = defineProps({
// route object
@@ -70,7 +70,7 @@
<script setup>
import ScrollPane from './ScrollPane'
import { getNormalPath } from '@/utils/ruoyi'
import { getNormalPath } from '@/utils/bms'
import useTagsViewStore from '@/store/modules/tagsView'
import useSettingsStore from '@/store/modules/settings'
import usePermissionStore from '@/store/modules/permission'
+1 -1
View File
@@ -27,7 +27,7 @@ import './permission' // permission control
import { useDict } from '@/utils/dict'
import { getConfigKey } from "@/api/system/config"
import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi'
import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/bms'
// 分页组件
import Pagination from '@/components/Pagination'
+1 -1
View File
@@ -3,7 +3,7 @@ import { ElLoading, ElMessage } from 'element-plus'
import { saveAs } from 'file-saver'
import { getToken } from '@/utils/auth'
import errorCode from '@/utils/errorCode'
import { blobValidate } from '@/utils/ruoyi'
import { blobValidate } from '@/utils/bms'
const baseURL = import.meta.env.VITE_APP_BASE_API
let downloadLoadingInstance
@@ -1,6 +1,6 @@
/**
* 通用js方法封装处理
* Copyright (c) 2019 ruoyi
* Copyright (c) 2019 bms
*/
// 日期格式化
+1 -1
View File
@@ -1,4 +1,4 @@
import { parseTime } from './ruoyi'
import { parseTime } from './bms'
/**
* 表格时间格式化
+1 -1
View File
@@ -2,7 +2,7 @@ import axios from 'axios'
import { ElNotification , ElMessageBox, ElMessage, ElLoading } from 'element-plus'
import { getToken } from '@/utils/auth'
import errorCode from '@/utils/errorCode'
import { tansParams, blobValidate } from '@/utils/ruoyi'
import { tansParams, blobValidate } from '@/utils/bms'
import cache from '@/plugins/cache'
import { saveAs } from 'file-saver'
import useUserStore from '@/store/modules/user'
+1 -1
View File
@@ -117,7 +117,7 @@
<template #content>
<div>
Bean调用示例:ryTask.ryParams('ry')
<br />Class类调用示例:com.ruoyi.quartz.task.RyTask.ryParams('ry')
<br />Class类调用示例:com.bms.quartz.task.RyTask.ryParams('ry')
<br />参数说明:支持字符串,布尔类型,长整型,浮点型,整型
</div>
</template>
@@ -239,7 +239,7 @@ import {
listTemplate, getTemplate, addTemplate, updateTemplate, delTemplate,
listDetail, addDetail, updateDetail, delDetail
} from '@/api/price/weight'
import { parseTime } from '@/utils/ruoyi'
import { parseTime } from '@/utils/bms'
const { proxy } = getCurrentInstance()
@@ -4,7 +4,7 @@
* 只做数据转换,不依赖组件实例 / 字典 / 接口,
* create.vue、detail.vue 及 set/components 下的组件共用。
*/
import { parseTime } from '@/utils/ruoyi'
import { parseTime } from '@/utils/bms'
/** 计价类型枚举 */
export const SET_TYPE = {
+1 -1
View File
@@ -27,7 +27,7 @@
<el-form-item prop="packageName">
<template #label>
生成包路径
<el-tooltip content="生成在哪个java包下,例如 com.ruoyi.system" placement="top">
<el-tooltip content="生成在哪个java包下,例如 com.bms.system" placement="top">
<el-icon><question-filled /></el-icon>
</el-tooltip>
</template>
+1 -1
View File
@@ -192,7 +192,7 @@ function handleGenTable(row) {
proxy.$modal.msgSuccess("成功生成到自定义路径:" + row.genPath)
})
} else {
const zipName = Array.isArray(tbNames) ? "ruoyi.zip" : tbNames + ".zip"
const zipName = Array.isArray(tbNames) ? "bms.zip" : tbNames + ".zip"
proxy.$download.zip("/tool/gen/batchGenCode?tables=" + tbNames, zipName)
}
}
+1 -1
View File
@@ -11,7 +11,7 @@ export default defineConfig(({ mode, command }) => {
return {
// 部署生产环境和开发环境下的URL。
// 默认情况下,vite 会假设你的应用是被部署在一个域名的根路径上
// 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
// 例如 https://your-domain.example/。如果应用被部署在一个子路径上,请在这里指定该子路径。
base: VITE_APP_ENV === 'production' ? '/' : '/',
plugins: createVitePlugins(env, command === 'build'),
resolve: {
+1 -1
View File
@@ -8,7 +8,7 @@ export default function createAutoImport() {
'pinia',
{
'@/utils/dict': ['useDict'],
'@/utils/ruoyi': ['selectDictLabel']
'@/utils/bms': ['selectDictLabel']
}
],
dts: false
+1 -1
View File
@@ -6,7 +6,7 @@ export default function createCompression(env) {
if (VITE_BUILD_COMPRESS) {
const compressList = VITE_BUILD_COMPRESS.split(',')
if (compressList.includes('gzip')) {
// http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件
// 生成 gzip 静态资源,部署时由 Web 服务器负责解压缩。
plugin.push(
compression({
ext: '.gz',