Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
74427977
提交
74427977
编写于
11月 01, 2023
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tony001 发布系统代码 [TrainSys,Mob]
上级
1d5e8b13
变更
11
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
161 行增加
和
59 行删除
+161
-59
CHANGELOG.md
app_Mob/CHANGELOG.md
+14
-0
package.json
app_Mob/package.json
+7
-7
environment.js
app_Mob/public/environments/environment.js
+2
-2
mqtt.min.js
app_Mob/public/extras/js/mqtt/2.18.9/mqtt.min.js
+1
-0
home-view.scss
app_Mob/src/components/home-view/home-view.scss
+7
-0
home-view.tsx
app_Mob/src/components/home-view/home-view.tsx
+10
-2
auth-guard.ts
app_Mob/src/guard/auth-guard/auth-guard.ts
+2
-0
index.ts
app_Mob/src/router/index.ts
+1
-1
vite.config.ts
app_Mob/vite.config.ts
+72
-2
PSSYSAPP.json
.../ibizlab/trainsys/PSSYSAPPS/TemplatePublish/PSSYSAPP.json
+4
-4
PSSYSAPP.json
...ces/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSSYSAPP.json
+41
-41
未找到文件。
app_Mob/CHANGELOG.md
0 → 100644
浏览文件 @
74427977
# 版本变更日志
这个项目的所有关键变化都将记录在此文件中.
此日志格式基于
[
Keep a Changelog
](
https://keepachangelog.com/zh-CN/1.0.0/
)
,
并且此项目遵循
[
Semantic Versioning
](
https://semver.org/lang/zh-CN/
)
.
## [Unreleased]
## [0.0.1] - 2023-11-01
### Added
-
初始化0.0.1
app_Mob/package.json
浏览文件 @
74427977
...
@@ -11,14 +11,14 @@
...
@@ -11,14 +11,14 @@
},
},
"dependencies"
:
{
"dependencies"
:
{
"@ibiz-template-package/vs-tree-ex"
:
"^0.1.1"
,
"@ibiz-template-package/vs-tree-ex"
:
"^0.1.1"
,
"@ibiz-template/core"
:
"0.2.
0
"
,
"@ibiz-template/core"
:
"0.2.
6
"
,
"@ibiz-template/mob-theme"
:
"^0.2.
5
"
,
"@ibiz-template/mob-theme"
:
"^0.2.
6
"
,
"@ibiz-template/mob-vue3-components"
:
"0.0.1-alpha.1
6
"
,
"@ibiz-template/mob-vue3-components"
:
"0.0.1-alpha.1
7
"
,
"@ibiz-template/model-helper"
:
"0.2.
0
"
,
"@ibiz-template/model-helper"
:
"0.2.
9
"
,
"@ibiz-template/runtime"
:
"0.2.
0
"
,
"@ibiz-template/runtime"
:
"0.2.
9
"
,
"@ibiz-template/theme"
:
"0.2.0"
,
"@ibiz-template/theme"
:
"0.2.0"
,
"@ibiz-template/vue3-util"
:
"0.2.
0
"
,
"@ibiz-template/vue3-util"
:
"0.2.
9
"
,
"@ibiz/model-core"
:
"^0.0.
19
"
,
"@ibiz/model-core"
:
"^0.0.
20
"
,
"async-validator"
:
"^4.2.5"
,
"async-validator"
:
"^4.2.5"
,
"dayjs"
:
"^1.11.10"
,
"dayjs"
:
"^1.11.10"
,
"echarts"
:
"^5.4.3"
,
"echarts"
:
"^5.4.3"
,
...
...
app_Mob/public/environments/environment.js
浏览文件 @
74427977
...
@@ -2,7 +2,7 @@ window.Environment = {
...
@@ -2,7 +2,7 @@ window.Environment = {
// 是否为开发模式
// 是否为开发模式
dev
:
false
,
dev
:
false
,
// 日志输出级别, 支持: TRACE、DEBUG、INFO、WARN、ERROR、SILENT
// 日志输出级别, 支持: TRACE、DEBUG、INFO、WARN、ERROR、SILENT
logLevel
:
'
ERROR
'
,
logLevel
:
'
TRACE
'
,
BaseUrl
:
'/api'
,
BaseUrl
:
'/api'
,
isMob
:
true
,
isMob
:
true
,
pluginBaseUrl
:
'http://unpkg.zhr.icu:8088'
,
pluginBaseUrl
:
'http://unpkg.zhr.icu:8088'
,
...
@@ -29,7 +29,7 @@ window.Environment = {
...
@@ -29,7 +29,7 @@ window.Environment = {
// 应用标题
// 应用标题
AppTitle
:
'应用首页'
,
AppTitle
:
'应用首页'
,
hub
:
false
,
hub
:
false
,
enableMqtt
:
tru
e
,
enableMqtt
:
fals
e
,
mqttUrl
:
'/portal/mqtt/mqtt'
,
mqttUrl
:
'/portal/mqtt/mqtt'
,
// isLocalModel: true,
// isLocalModel: true,
};
};
app_Mob/public/extras/js/mqtt/2.18.9/mqtt.min.js
0 → 100644
浏览文件 @
74427977
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
app_Mob/src/components/home-view/home-view.scss
0 → 100644
浏览文件 @
74427977
@include
b
(
home-view
)
{
&
.ibiz-view-appindexview
{
.ibiz-view-content
{
overflow-y
:
auto
;
}
}
}
\ No newline at end of file
app_Mob/src/components/home-view/home-view.tsx
浏览文件 @
74427977
import
{
defineComponent
,
PropType
}
from
'vue'
;
import
{
defineComponent
,
PropType
}
from
'vue'
;
import
{
IModal
,
Modal
,
ViewMode
}
from
'@ibiz-template/runtime'
;
import
{
IModal
,
Modal
,
ViewMode
}
from
'@ibiz-template/runtime'
;
import
'./home-view.scss'
;
import
{
useNamespace
}
from
'@ibiz-template/vue3-util'
;
export
const
HomeView
=
defineComponent
({
export
const
HomeView
=
defineComponent
({
name
:
'HomeView'
,
name
:
'HomeView'
,
...
@@ -10,6 +12,7 @@ export const HomeView = defineComponent({
...
@@ -10,6 +12,7 @@ export const HomeView = defineComponent({
},
},
},
},
setup
(
props
)
{
setup
(
props
)
{
const
ns
=
useNamespace
(
'home-view'
);
const
viewModal
=
new
Modal
({
const
viewModal
=
new
Modal
({
mode
:
ViewMode
.
ROUTE
,
mode
:
ViewMode
.
ROUTE
,
viewUsage
:
1
,
viewUsage
:
1
,
...
@@ -18,9 +21,14 @@ export const HomeView = defineComponent({
...
@@ -18,9 +21,14 @@ export const HomeView = defineComponent({
props
.
modal
.
dismiss
();
props
.
modal
.
dismiss
();
},
},
});
});
return
{
viewModal
};
return
{
viewModal
,
ns
};
},
},
render
()
{
render
()
{
return
<
iBizRouterView
modal=
{
this
.
viewModal
}
></
iBizRouterView
>;
return
(
<
iBizRouterView
class=
{
this
.
ns
.
b
()
}
modal=
{
this
.
viewModal
}
></
iBizRouterView
>
);
},
},
});
});
app_Mob/src/guard/auth-guard/auth-guard.ts
浏览文件 @
74427977
...
@@ -95,6 +95,8 @@ async function initModel(permission: boolean = true): Promise<void> {
...
@@ -95,6 +95,8 @@ async function initModel(permission: boolean = true): Promise<void> {
ibiz
.
appData
?.
dynamodeltag
||
''
,
ibiz
.
appData
?.
dynamodeltag
||
''
,
ibiz
.
env
.
appId
,
ibiz
.
env
.
appId
,
);
);
const
app
=
await
helper
.
getAppModel
();
ibiz
.
env
.
isMob
=
app
.
mobileApp
===
true
;
if
(
ibiz
.
env
.
isEnableMultiLan
)
{
if
(
ibiz
.
env
.
isEnableMultiLan
)
{
const
lang
=
ibiz
.
i18n
.
getLang
();
const
lang
=
ibiz
.
i18n
.
getLang
();
const
m
=
await
helper
.
getPSAppLang
(
lang
.
replace
(
'-'
,
'_'
).
toUpperCase
());
const
m
=
await
helper
.
getPSAppLang
(
lang
.
replace
(
'-'
,
'_'
).
toUpperCase
());
...
...
app_Mob/src/router/index.ts
浏览文件 @
74427977
...
@@ -2,13 +2,13 @@ import { Router, createRouter, createWebHashHistory } from 'vue-router';
...
@@ -2,13 +2,13 @@ import { Router, createRouter, createWebHashHistory } from 'vue-router';
import
{
import
{
AppRedirectView
,
AppRedirectView
,
View404
,
View404
,
LoginView
,
useViewStack
,
useViewStack
,
}
from
'@ibiz-template/mob-vue3-components'
;
}
from
'@ibiz-template/mob-vue3-components'
;
import
{
Modal
,
ViewMode
}
from
'@ibiz-template/runtime'
;
import
{
Modal
,
ViewMode
}
from
'@ibiz-template/runtime'
;
import
{
isNilOrEmpty
}
from
'qx-util'
;
import
{
isNilOrEmpty
}
from
'qx-util'
;
import
{
AuthGuard
}
from
'../guard'
;
import
{
AuthGuard
}
from
'../guard'
;
import
{
RouterShell
,
HomeView
}
from
'@/components'
;
import
{
RouterShell
,
HomeView
}
from
'@/components'
;
import
{
LoginView
}
from
'@/components/login-view/login-view'
;
const
getPropsCallback
=
(
depth
:
number
)
=>
{
const
getPropsCallback
=
(
depth
:
number
)
=>
{
if
(
depth
===
1
)
{
if
(
depth
===
1
)
{
...
...
app_Mob/vite.config.ts
浏览文件 @
74427977
...
@@ -27,6 +27,32 @@ export default defineConfig({
...
@@ -27,6 +27,32 @@ export default defineConfig({
'@'
:
path
.
resolve
(
__dirname
,
'src'
),
'@'
:
path
.
resolve
(
__dirname
,
'src'
),
},
},
},
},
optimizeDeps
:
{
entries
:
[
'@ibiz-template-package/vs-tree-ex'
,
'@ibiz-template/core'
,
'@ibiz-template/mob-theme'
,
'@ibiz-template/mob-vue3-components'
,
'@ibiz-template/model-helper'
,
'@ibiz-template/runtime'
,
'@ibiz-template/theme'
,
'@ibiz-template/vue3-util'
,
'@ibiz/model-core'
,
'async-validator'
,
'dayjs'
,
'echarts'
,
'ionicons'
,
'lodash-es'
,
'pinia'
,
'qs'
,
'qx-util'
,
'ramda'
,
'vant'
,
'vue'
,
'vue-i18n'
,
'vue-router'
,
],
},
build
:
{
build
:
{
rollupOptions
:
{
rollupOptions
:
{
external
:
[
external
:
[
...
@@ -43,6 +69,7 @@ export default defineConfig({
...
@@ -43,6 +69,7 @@ export default defineConfig({
'lodash-es'
,
'lodash-es'
,
'qx-util'
,
'qx-util'
,
'pinia'
,
'pinia'
,
'mqtt/dist/mqtt.min'
,
'cherry-markdown'
,
'cherry-markdown'
,
'@ibiz-template-package/vs-tree-ex'
,
'@ibiz-template-package/vs-tree-ex'
,
'@ibiz-template/core'
,
'@ibiz-template/core'
,
...
@@ -66,14 +93,57 @@ export default defineConfig({
...
@@ -66,14 +93,57 @@ export default defineConfig({
rewrite
(
path
)
{
rewrite
(
path
)
{
return
path
.
replace
(
'/api/ls__lsmob/remotemodel'
,
'/ls__lsmob/model'
);
return
path
.
replace
(
'/api/ls__lsmob/remotemodel'
,
'/ls__lsmob/model'
);
},
},
target
:
'http://
172.16.103.189
:20003'
,
target
:
'http://
localhost
:20003'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
},
},
'/api/ls__lsmob'
:
{
'/api/ls__lsmob'
:
{
rewrite
(
path
)
{
rewrite
(
path
)
{
return
path
.
replace
(
'/api/ls__lsmob'
,
'/api'
);
return
path
.
replace
(
'/api/ls__lsmob'
,
'/api'
);
},
},
target
:
'http://node:8081'
,
target
:
'http://localhost:8081'
,
changeOrigin
:
true
,
},
'/api/pms__sclpmsmob'
:
{
// rewrite(path) {
// return path.replace('/api/pms__sclpmsmob', '/api');
// },
target
:
'http://172.16.103.158:30164/'
,
changeOrigin
:
true
,
},
'/api/demosys__mobvue3/portal/mqtt/mqtt'
:
{
rewrite
(
path
)
{
return
path
.
replace
(
'/api'
,
''
);
},
target
:
'ws://172.16.103.169:30350'
,
changeOrigin
:
true
,
},
'/api/demosys__mobvue3'
:
{
rewrite
(
path
)
{
return
path
.
replace
(
'/api'
,
'/api'
);
},
target
:
'http://172.16.103.169:30350'
,
changeOrigin
:
true
,
},
'/api/cxfhmgmt__cxfhappmob'
:
{
rewrite
(
path
)
{
return
path
.
replace
(
'/api'
,
''
);
},
target
:
'http://172.16.103.158:30086'
,
changeOrigin
:
true
,
},
'/api/qdehr__qdehrapp/portal/mqtt/mqtt'
:
{
rewrite
(
path
)
{
return
path
.
replace
(
'/api'
,
''
);
},
ws
:
true
,
target
:
'ws://172.16.240.140:46020'
,
changeOrigin
:
true
,
},
'/api/qdehr__qdehrapp'
:
{
rewrite
(
path
)
{
return
path
.
replace
(
'/api'
,
''
);
},
target
:
'http://172.16.240.140:46020'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
},
},
},
},
...
...
trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/TemplatePublish/PSSYSAPP.json
浏览文件 @
74427977
...
@@ -1432,16 +1432,16 @@
...
@@ -1432,16 +1432,16 @@
"codeName"
:
"VMGroup2"
,
"codeName"
:
"VMGroup2"
,
"name"
:
"视图消息组2"
,
"name"
:
"视图消息组2"
,
"getPSAppViewMsgGroupDetails"
:
[
{
"getPSAppViewMsgGroupDetails"
:
[
{
"name"
:
"视图消息"
,
"name"
:
"视图消息
2
"
,
"getPSAppViewMsg"
:
{
"getPSAppViewMsg"
:
{
"modelref"
:
true
,
"modelref"
:
true
,
"id"
:
"ViewMsg
2
"
"id"
:
"ViewMsg
3
"
}
}
},
{
},
{
"name"
:
"视图消息
2
"
,
"name"
:
"视图消息"
,
"getPSAppViewMsg"
:
{
"getPSAppViewMsg"
:
{
"modelref"
:
true
,
"modelref"
:
true
,
"id"
:
"ViewMsg
3
"
"id"
:
"ViewMsg
2
"
}
}
}
]
}
]
},
{
},
{
...
...
trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSSYSAPP.json
浏览文件 @
74427977
...
@@ -11189,16 +11189,16 @@
...
@@ -11189,16 +11189,16 @@
"codeName" : "VMGroup2",
"codeName" : "VMGroup2",
"name" : "视图消息组2",
"name" : "视图消息组2",
"getPSAppViewMsgGroupDetails" : [ {
"getPSAppViewMsgGroupDetails" : [ {
"name" : "视图消息",
"name" : "视图消息
2
",
"getPSAppViewMsg" : {
"getPSAppViewMsg" : {
"modelref" : true,
"modelref" : true,
"id" : "ViewMsg
2
"
"id" : "ViewMsg
3
"
}
}
}, {
}, {
"name" : "视图消息
2
",
"name" : "视图消息",
"getPSAppViewMsg" : {
"getPSAppViewMsg" : {
"modelref" : true,
"modelref" : true,
"id" : "ViewMsg
3
"
"id" : "ViewMsg
2
"
}
}
} ]
} ]
}, {
}, {
...
@@ -11227,22 +11227,22 @@
...
@@ -11227,22 +11227,22 @@
"codeName" : "VMGroup3",
"codeName" : "VMGroup3",
"name" : "视图消息类型测试",
"name" : "视图消息类型测试",
"getPSAppViewMsgGroupDetails" : [ {
"getPSAppViewMsgGroupDetails" : [ {
"name" : "消息类型-
警告
信息",
"name" : "消息类型-
常规
信息",
"getPSAppViewMsg" : {
"getPSAppViewMsg" : {
"modelref" : true,
"modelref" : true,
"id" : "ViewMsg
5
"
"id" : "ViewMsg
4
"
}
}
}, {
}, {
"name" : "消息类型-
错误
信息",
"name" : "消息类型-
警告
信息",
"getPSAppViewMsg" : {
"getPSAppViewMsg" : {
"modelref" : true,
"modelref" : true,
"id" : "ViewMsg
6
"
"id" : "ViewMsg
5
"
}
}
}, {
}, {
"name" : "消息类型-
常规
信息",
"name" : "消息类型-
错误
信息",
"getPSAppViewMsg" : {
"getPSAppViewMsg" : {
"modelref" : true,
"modelref" : true,
"id" : "ViewMsg
4
"
"id" : "ViewMsg
6
"
}
}
} ]
} ]
}, {
}, {
...
@@ -11259,10 +11259,10 @@
...
@@ -11259,10 +11259,10 @@
"codeName" : "VMGroup4",
"codeName" : "VMGroup4",
"name" : "视图消息位置测试",
"name" : "视图消息位置测试",
"getPSAppViewMsgGroupDetails" : [ {
"getPSAppViewMsgGroupDetails" : [ {
"name" : "消息位置-
弹出
",
"name" : "消息位置-
视图下方
",
"getPSAppViewMsg" : {
"getPSAppViewMsg" : {
"modelref" : true,
"modelref" : true,
"id" : "ViewMsg
10
"
"id" : "ViewMsg
8
"
}
}
}, {
}, {
"name" : "消息位置-视图内容区",
"name" : "消息位置-视图内容区",
...
@@ -11271,34 +11271,28 @@
...
@@ -11271,34 +11271,28 @@
"id" : "ViewMsg9"
"id" : "ViewMsg9"
}
}
}, {
}, {
"name" : "消息位置-
视图上方
",
"name" : "消息位置-
弹出
",
"getPSAppViewMsg" : {
"getPSAppViewMsg" : {
"modelref" : true,
"modelref" : true,
"id" : "ViewMsg
7
"
"id" : "ViewMsg
10
"
}
}
}, {
}, {
"name" : "消息位置-视图
下
方",
"name" : "消息位置-视图
上
方",
"getPSAppViewMsg" : {
"getPSAppViewMsg" : {
"modelref" : true,
"modelref" : true,
"id" : "ViewMsg
8
"
"id" : "ViewMsg
7
"
}
}
} ]
} ]
}, {
}, {
"codeName" : "VMGroup8",
"codeName" : "VMGroup8",
"name" : "【静态测试】",
"name" : "【静态测试】",
"getPSAppViewMsgGroupDetails" : [ {
"getPSAppViewMsgGroupDetails" : [ {
"name" : "消息类型-
错误
信息",
"name" : "消息类型-
常规
信息",
"getPSAppViewMsg" : {
"getPSAppViewMsg" : {
"modelref" : true,
"modelref" : true,
"id" : "ViewMsg
6
"
"id" : "ViewMsg
4
"
},
},
"position" : "POPUP"
"position" : "POPUP"
}, {
"name" : "消息位置-视图下方",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg8"
}
}, {
}, {
"name" : "关闭模式-无删除-上方-常规",
"name" : "关闭模式-无删除-上方-常规",
"getPSAppViewMsg" : {
"getPSAppViewMsg" : {
...
@@ -11306,19 +11300,11 @@
...
@@ -11306,19 +11300,11 @@
"id" : "ViewMsg11"
"id" : "ViewMsg11"
}
}
}, {
}, {
"name" : "消息类型-常规信息",
"name" : "消息位置-视图内容区",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg4"
},
"position" : "POPUP"
}, {
"name" : "消息类型-警告信息",
"getPSAppViewMsg" : {
"getPSAppViewMsg" : {
"modelref" : true,
"modelref" : true,
"id" : "ViewMsg5"
"id" : "ViewMsg9"
},
}
"position" : "POPUP"
}, {
}, {
"name" : "关闭模式-默认删除-上方-错误",
"name" : "关闭模式-默认删除-上方-错误",
"getPSAppViewMsg" : {
"getPSAppViewMsg" : {
...
@@ -11326,10 +11312,10 @@
...
@@ -11326,10 +11312,10 @@
"id" : "ViewMsg12"
"id" : "ViewMsg12"
}
}
}, {
}, {
"name" : "消息位置-视图
内容区
",
"name" : "消息位置-视图
下方
",
"getPSAppViewMsg" : {
"getPSAppViewMsg" : {
"modelref" : true,
"modelref" : true,
"id" : "ViewMsg
9
"
"id" : "ViewMsg
8
"
}
}
}, {
}, {
"name" : "关闭模式-本次删除-上方-警告",
"name" : "关闭模式-本次删除-上方-警告",
...
@@ -11337,6 +11323,20 @@
...
@@ -11337,6 +11323,20 @@
"modelref" : true,
"modelref" : true,
"id" : "ViewMsg13"
"id" : "ViewMsg13"
}
}
}, {
"name" : "消息类型-警告信息",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg5"
},
"position" : "POPUP"
}, {
"name" : "消息类型-错误信息",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg6"
},
"position" : "POPUP"
} ]
} ]
}, {
}, {
"codeName" : "VMGroup5",
"codeName" : "VMGroup5",
...
@@ -11364,16 +11364,16 @@
...
@@ -11364,16 +11364,16 @@
"codeName" : "VMGroup6",
"codeName" : "VMGroup6",
"name" : "视图消息动态模式测试",
"name" : "视图消息动态模式测试",
"getPSAppViewMsgGroupDetails" : [ {
"getPSAppViewMsgGroupDetails" : [ {
"name" : "动态模式-
实体数据集
",
"name" : "动态模式-
静态内容
",
"getPSAppViewMsg" : {
"getPSAppViewMsg" : {
"modelref" : true,
"modelref" : true,
"id" : "ViewMsg1
4
"
"id" : "ViewMsg1
5
"
}
}
}, {
}, {
"name" : "动态模式-
静态内容
",
"name" : "动态模式-
实体数据集
",
"getPSAppViewMsg" : {
"getPSAppViewMsg" : {
"modelref" : true,
"modelref" : true,
"id" : "ViewMsg1
5
"
"id" : "ViewMsg1
4
"
}
}
} ]
} ]
} ],
} ],
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录