- 添加移动工作空间对话框全屏样式支持 - 更新应用主视图以支持桌面视口布局 - 重构Excel导入对话框增加预览和校验功能 - 在移动端主页增加生产与交付模块和项目借还功能 - 移动端库存列表显示项目名称和成品标识 - 增加入库记录批量操作和撤销功能 - 优化分页组件在桌面视口中的滚动行为 - 更新路由配置和数据库连接配置 - 调整仓库领域模型移除预期日期字段 - 优化智能代理服务的正则匹配和出库类型处理
24 lines
1.9 KiB
PowerShell
24 lines
1.9 KiB
PowerShell
param([ValidateSet('Backend','Frontend','Both')][string]$Component='Both')
|
|
$ErrorActionPreference='Stop'
|
|
$taskRoot=(Resolve-Path (Join-Path $PSScriptRoot '../..')).Path
|
|
$taskTemp=Join-Path $taskRoot '.codex-tmp'
|
|
New-Item -ItemType Directory -Path $taskTemp -Force | Out-Null
|
|
if ($Component -in @('Backend','Both')) {
|
|
if (!(Get-NetTCPConnection -State Listen -LocalPort 8080 -ErrorAction SilentlyContinue)) {
|
|
$taskJava=Join-Path $env:USERPROFILE '.jdks/ms-17.0.19/bin/java.exe'
|
|
if (!(Test-Path -LiteralPath $taskJava)) { throw 'Configure a Java 17 or newer runtime for this computer.' }
|
|
$env:RUOYI_PROFILE=Join-Path $taskTemp 'uploads'
|
|
$env:RUOYI_LOG_PATH=Join-Path $taskTemp 'logs'
|
|
$taskArgs=@("-Djdk.net.unixdomain.tmpdir=$($taskTemp.Replace('\','/'))",'-Dstdout.encoding=UTF-8','-Dstderr.encoding=UTF-8','-jar','ruoyi-admin/target/cmvr-wms.jar','--spring.quartz.auto-startup=false','--spring.devtools.restart.enabled=false')
|
|
Start-Process -FilePath $taskJava -ArgumentList $taskArgs -WorkingDirectory $taskRoot -WindowStyle Hidden -RedirectStandardOutput (Join-Path $taskTemp 'backend.out.log') -RedirectStandardError (Join-Path $taskTemp 'backend.err.log') | Out-Null
|
|
}
|
|
Write-Output 'Backend: http://localhost:8080 (copied scheduled jobs disabled)'
|
|
}
|
|
if ($Component -in @('Frontend','Both')) {
|
|
if (!(Get-NetTCPConnection -State Listen -LocalPort 8088 -ErrorAction SilentlyContinue)) {
|
|
$env:NODE_OPTIONS='--openssl-legacy-provider'
|
|
Start-Process -FilePath 'C:/Program Files/nodejs/node.exe' -ArgumentList @('node_modules/@vue/cli-service/bin/vue-cli-service.js','serve','--host','0.0.0.0','--port','8088') -WorkingDirectory (Join-Path $taskRoot 'ruoyi-ui') -WindowStyle Hidden -RedirectStandardOutput (Join-Path $taskTemp 'frontend.out.log') -RedirectStandardError (Join-Path $taskTemp 'frontend.err.log') | Out-Null
|
|
}
|
|
Write-Output 'Frontend: http://localhost:8088'
|
|
}
|