Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
8c4aeb57
提交
8c4aeb57
编写于
10月 26, 2023
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zhujiamin 发布系统代码 [TrainSys,网页端]
上级
992dad6e
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
136 行增加
和
84 行删除
+136
-84
package.json
app_Web/package.json
+7
-7
pnpm-lock.yaml
app_Web/pnpm-lock.yaml
+41
-41
ibiz-input.tsx
.../src/components/editor/text-box/ibiz-input/ibiz-input.tsx
+39
-3
grid-control.tsx
app_Web/src/components/widgets/grid-control/grid-control.tsx
+16
-3
grid-control.util.ts
.../src/components/widgets/grid-control/grid-control.util.ts
+5
-2
PSSYSAPP.json
...ces/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSSYSAPP.json
+28
-28
未找到文件。
app_Web/package.json
浏览文件 @
8c4aeb57
...
...
@@ -13,13 +13,13 @@
"dependencies"
:
{
"@floating-ui/dom"
:
"^1.0.11"
,
"@ibiz-template/command"
:
"^0.0.1-beta.50"
,
"@ibiz-template/controller"
:
"^0.0.1-beta.12
5
"
,
"@ibiz-template/core"
:
"^0.0.1-beta.12
5
"
,
"@ibiz-template/model"
:
"^0.0.1-beta.12
5
"
,
"@ibiz-template/runtime"
:
"^0.0.1-beta.12
5
"
,
"@ibiz-template/service"
:
"^0.0.1-beta.12
5
"
,
"@ibiz-template/theme"
:
"^0.0.1-beta.12
5
"
,
"@ibiz-template/vue-util"
:
"^0.0.1-beta.12
5
"
,
"@ibiz-template/controller"
:
"^0.0.1-beta.12
6
"
,
"@ibiz-template/core"
:
"^0.0.1-beta.12
6
"
,
"@ibiz-template/model"
:
"^0.0.1-beta.12
6
"
,
"@ibiz-template/runtime"
:
"^0.0.1-beta.12
6
"
,
"@ibiz-template/service"
:
"^0.0.1-beta.12
6
"
,
"@ibiz-template/theme"
:
"^0.0.1-beta.12
6
"
,
"@ibiz-template/vue-util"
:
"^0.0.1-beta.12
6
"
,
"@ibiz/dynamic-model-api"
:
"^2.1.28"
,
"@riophae/vue-treeselect"
:
"^0.4.0"
,
"dayjs"
:
"^1.11.7"
,
...
...
app_Web/pnpm-lock.yaml
浏览文件 @
8c4aeb57
...
...
@@ -12,26 +12,26 @@ dependencies:
specifier
:
^0.0.1-beta.50
version
:
0.0.1-beta.50
'
@ibiz-template/controller'
:
specifier
:
^0.0.1-beta.12
5
version
:
0.0.1-beta.12
5(@ibiz-template/core@0.0.1-beta.125)(@ibiz-template/model@0.0.1-beta.125)(@ibiz-template/runtime@0.0.1-beta.125)(@ibiz-template/service@0.0.1-beta.125
)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
specifier
:
^0.0.1-beta.12
6
version
:
0.0.1-beta.12
6(@ibiz-template/core@0.0.1-beta.126)(@ibiz-template/model@0.0.1-beta.126)(@ibiz-template/runtime@0.0.1-beta.126)(@ibiz-template/service@0.0.1-beta.126
)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
'
@ibiz-template/core'
:
specifier
:
^0.0.1-beta.12
5
version
:
0.0.1-beta.12
5
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
specifier
:
^0.0.1-beta.12
6
version
:
0.0.1-beta.12
6
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/model'
:
specifier
:
^0.0.1-beta.12
5
version
:
0.0.1-beta.12
5
(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
specifier
:
^0.0.1-beta.12
6
version
:
0.0.1-beta.12
6
(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'
@ibiz-template/runtime'
:
specifier
:
^0.0.1-beta.12
5
version
:
0.0.1-beta.12
5(@ibiz-template/core@0.0.1-beta.125)(@ibiz-template/model@0.0.1-beta.125)(@ibiz-template/service@0.0.1-beta.125
)(qx-util@0.4.8)
specifier
:
^0.0.1-beta.12
6
version
:
0.0.1-beta.12
6(@ibiz-template/core@0.0.1-beta.126)(@ibiz-template/model@0.0.1-beta.126)(@ibiz-template/service@0.0.1-beta.126
)(qx-util@0.4.8)
'
@ibiz-template/service'
:
specifier
:
^0.0.1-beta.12
5
version
:
0.0.1-beta.12
5(@ibiz-template/core@0.0.1-beta.125)(@ibiz-template/model@0.0.1-beta.125
)(qx-util@0.4.8)(ramda@0.28.0)
specifier
:
^0.0.1-beta.12
6
version
:
0.0.1-beta.12
6(@ibiz-template/core@0.0.1-beta.126)(@ibiz-template/model@0.0.1-beta.126
)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/theme'
:
specifier
:
^0.0.1-beta.12
5
version
:
0.0.1-beta.12
5
specifier
:
^0.0.1-beta.12
6
version
:
0.0.1-beta.12
6
'
@ibiz-template/vue-util'
:
specifier
:
^0.0.1-beta.12
5
version
:
0.0.1-beta.12
5(@ibiz-template/controller@0.0.1-beta.125)(@ibiz-template/core@0.0.1-beta.125)(@ibiz-template/model@0.0.1-beta.125)(@ibiz-template/service@0.0.1-beta.125
)(qs@6.11.1)(qx-util@0.4.8)(ramda@0.28.0)(vue-router@3.6.5)(vue@2.7.14)
specifier
:
^0.0.1-beta.12
6
version
:
0.0.1-beta.12
6(@ibiz-template/controller@0.0.1-beta.126)(@ibiz-template/core@0.0.1-beta.126)(@ibiz-template/model@0.0.1-beta.126)(@ibiz-template/service@0.0.1-beta.126
)(qs@6.11.1)(qx-util@0.4.8)(ramda@0.28.0)(vue-router@3.6.5)(vue@2.7.14)
'
@ibiz/dynamic-model-api'
:
specifier
:
^2.1.28
version
:
2.1.28(qx-util@0.4.8)
...
...
@@ -939,8 +939,8 @@ packages:
qx-util
:
0.4.8
dev
:
false
/@ibiz-template/controller@0.0.1-beta.12
5(@ibiz-template/core@0.0.1-beta.125)(@ibiz-template/model@0.0.1-beta.125)(@ibiz-template/runtime@0.0.1-beta.125)(@ibiz-template/service@0.0.1-beta.125
)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
:
resolution
:
{
integrity
:
sha512-
ifHE04YIhIQB5l62ccGiMzuad3i5dBG+cqwZWaM9qit7uFNVDn+fvkxAFTkwDtaw8+TXo4U5hyv70xHjx9LPx
g==
}
/@ibiz-template/controller@0.0.1-beta.12
6(@ibiz-template/core@0.0.1-beta.126)(@ibiz-template/model@0.0.1-beta.126)(@ibiz-template/runtime@0.0.1-beta.126)(@ibiz-template/service@0.0.1-beta.126
)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
:
resolution
:
{
integrity
:
sha512-
+wo2yqXiWqf1c4RGdNWBQAiA/u0RtiFaxcAtXJ+iw5pasOYq0HeQ9FZSAk83thxN1x41qJ42Wb1AJnU6d6mA+
g==
}
peerDependencies
:
'
@ibiz-template/core'
:
^0.0.1-beta.30
'
@ibiz-template/model'
:
^0.0.1-beta.30
...
...
@@ -950,10 +950,10 @@ packages:
qs
:
^6.11.0
qx-util
:
^0.4.8
dependencies
:
'
@ibiz-template/core'
:
0.0.1-beta.12
5
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/model'
:
0.0.1-beta.12
5
(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'
@ibiz-template/runtime'
:
0.0.1-beta.12
5(@ibiz-template/core@0.0.1-beta.125)(@ibiz-template/model@0.0.1-beta.125)(@ibiz-template/service@0.0.1-beta.125
)(qx-util@0.4.8)
'
@ibiz-template/service'
:
0.0.1-beta.12
5(@ibiz-template/core@0.0.1-beta.125)(@ibiz-template/model@0.0.1-beta.125
)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/core'
:
0.0.1-beta.12
6
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/model'
:
0.0.1-beta.12
6
(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'
@ibiz-template/runtime'
:
0.0.1-beta.12
6(@ibiz-template/core@0.0.1-beta.126)(@ibiz-template/model@0.0.1-beta.126)(@ibiz-template/service@0.0.1-beta.126
)(qx-util@0.4.8)
'
@ibiz-template/service'
:
0.0.1-beta.12
6(@ibiz-template/core@0.0.1-beta.126)(@ibiz-template/model@0.0.1-beta.126
)(qx-util@0.4.8)(ramda@0.28.0)
async-validator
:
4.2.5
dayjs
:
1.11.7
lodash-es
:
4.17.21
...
...
@@ -961,8 +961,8 @@ packages:
qx-util
:
0.4.8
dev
:
false
/@ibiz-template/core@0.0.1-beta.12
5
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
:
resolution
:
{
integrity
:
sha512-
SINrxnYI8NamGqUODPVyiF3jSzj8sz4hV4JHLwdMvHiU1FUbrZgGyk1oSZwWDw8M1I6ZjY9Y5W4G6EEZVcD55g
==
}
/@ibiz-template/core@0.0.1-beta.12
6
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
:
resolution
:
{
integrity
:
sha512-
ue+kv5LKvH2Q4LPDZJTKoem9pPzleaSQHujD0C55r4qL2MFWb9utShbhdXgdTcS9pnzAetjVhhHNcJ5jwKvB5A
==
}
peerDependencies
:
lodash-es
:
^4.17.21
qx-util
:
^0.4.8
...
...
@@ -979,8 +979,8 @@ packages:
-
debug
dev
:
false
/@ibiz-template/model@0.0.1-beta.12
5
(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
:
resolution
:
{
integrity
:
sha512-
Uzatt11gfXTR4bHsOOnMtokhcRpfsRUL3DH1/kRpMvLj4HfGVxIdKKlBA5ZEl1aIkktcXFyxyFnxRI/DrIg8fQ
==
}
/@ibiz-template/model@0.0.1-beta.12
6
(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
:
resolution
:
{
integrity
:
sha512-
5OaakKcxBfvf18aW/fWsTypHIOpjsh5CX8fV9R+dSLDJVaTjGQJsRpvrmMukZ63Bk18UfaDi+bxJlEipkK+RDA
==
}
peerDependencies
:
'
@ibiz/dynamic-model-api'
:
^2.1.28
lodash-es
:
^4.17.21
...
...
@@ -992,8 +992,8 @@ packages:
qx-util
:
0.4.8
dev
:
false
/@ibiz-template/runtime@0.0.1-beta.12
5(@ibiz-template/core@0.0.1-beta.125)(@ibiz-template/model@0.0.1-beta.125)(@ibiz-template/service@0.0.1-beta.125
)(qx-util@0.4.8)
:
resolution
:
{
integrity
:
sha512-
UF+MJXleE241M4J99ymthQjBAsIfiRb7paA4NLlor0TYKiJqzMvVRktLChssUzwqz14QjZwmusEJYTe/Tfhq4Q
==
}
/@ibiz-template/runtime@0.0.1-beta.12
6(@ibiz-template/core@0.0.1-beta.126)(@ibiz-template/model@0.0.1-beta.126)(@ibiz-template/service@0.0.1-beta.126
)(qx-util@0.4.8)
:
resolution
:
{
integrity
:
sha512-
4kxaB/4RjVGbotZd1OK/H8SaHF9ab7YIsbfgE9mKZH/6K6QKbe8xF8/a/4UXkcoBjpgw2+UeNZNVZ5JI74mhGg
==
}
peerDependencies
:
'
@ibiz-template/core'
:
^0.0.1-beta.30
'
@ibiz-template/model'
:
^0.0.1-beta.30
...
...
@@ -1001,33 +1001,33 @@ packages:
qx-util
:
^0.4.8
dependencies
:
'
@ibiz-template/command'
:
0.0.1-beta.50
'
@ibiz-template/core'
:
0.0.1-beta.12
5
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/model'
:
0.0.1-beta.12
5
(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'
@ibiz-template/service'
:
0.0.1-beta.12
5(@ibiz-template/core@0.0.1-beta.125)(@ibiz-template/model@0.0.1-beta.125
)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/core'
:
0.0.1-beta.12
6
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/model'
:
0.0.1-beta.12
6
(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'
@ibiz-template/service'
:
0.0.1-beta.12
6(@ibiz-template/core@0.0.1-beta.126)(@ibiz-template/model@0.0.1-beta.126
)(qx-util@0.4.8)(ramda@0.28.0)
qs
:
6.11.1
qx-util
:
0.4.8
dev
:
false
/@ibiz-template/service@0.0.1-beta.12
5(@ibiz-template/core@0.0.1-beta.125)(@ibiz-template/model@0.0.1-beta.125
)(qx-util@0.4.8)(ramda@0.28.0)
:
resolution
:
{
integrity
:
sha512-
ztVTvSXodM/vwslhEJlPcaM0XbICgZqbV+iIcnCE/VQWTUwfu7NUFlghUlncbfjyQqJlUAfEogKqvvJZiepfSg
==
}
/@ibiz-template/service@0.0.1-beta.12
6(@ibiz-template/core@0.0.1-beta.126)(@ibiz-template/model@0.0.1-beta.126
)(qx-util@0.4.8)(ramda@0.28.0)
:
resolution
:
{
integrity
:
sha512-
NWWFEHwz03PLMV9JFivQQcTtKoI781qse98vdhi+tB663eZP9FUP3A8fSXDSxWn0l9TKJTivuf8AjvZDK67MlQ
==
}
peerDependencies
:
'
@ibiz-template/core'
:
^0.0.1-beta.30
'
@ibiz-template/model'
:
^0.0.1-beta.30
qx-util
:
^0.4.8
ramda
:
^0.28.0
dependencies
:
'
@ibiz-template/core'
:
0.0.1-beta.12
5
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/model'
:
0.0.1-beta.12
5
(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'
@ibiz-template/core'
:
0.0.1-beta.12
6
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/model'
:
0.0.1-beta.12
6
(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
qx-util
:
0.4.8
ramda
:
0.28.0
dev
:
false
/@ibiz-template/theme@0.0.1-beta.12
5
:
resolution
:
{
integrity
:
sha512-
9yEd3syK3HmimB4wsHeyvw2Y5ZQAleUeUyJPKzrS4qXiUGhAcILsmMBR4uzkRKbvajT940NHSiiebEy3avYMUg
==
}
/@ibiz-template/theme@0.0.1-beta.12
6
:
resolution
:
{
integrity
:
sha512-
pwGagVAONkPkoMtOBYG7Smobe4AqbKFLaoIx4mkpA0OElJKbxy6WPnG6lbevUDA6bvBoMQCJ5ghLzExrkwfnAA
==
}
dev
:
false
/@ibiz-template/vue-util@0.0.1-beta.12
5(@ibiz-template/controller@0.0.1-beta.125)(@ibiz-template/core@0.0.1-beta.125)(@ibiz-template/model@0.0.1-beta.125)(@ibiz-template/service@0.0.1-beta.125
)(qs@6.11.1)(qx-util@0.4.8)(ramda@0.28.0)(vue-router@3.6.5)(vue@2.7.14)
:
resolution
:
{
integrity
:
sha512-
g2/PO/cfKQeSWE1pHURKR+Cx2IuYA7EkZh5weXshdsV54gylcBHmRT1+6cpTmNkThCrUal3SOZSp0CAhN24JEw
==
}
/@ibiz-template/vue-util@0.0.1-beta.12
6(@ibiz-template/controller@0.0.1-beta.126)(@ibiz-template/core@0.0.1-beta.126)(@ibiz-template/model@0.0.1-beta.126)(@ibiz-template/service@0.0.1-beta.126
)(qs@6.11.1)(qx-util@0.4.8)(ramda@0.28.0)(vue-router@3.6.5)(vue@2.7.14)
:
resolution
:
{
integrity
:
sha512-
BCEGZSOV8BlZw/ze6CGNNUSIBYI1NzNBLA/JpWd4gaJTe7DUY9mOgy7s0C2ErMT6hoYEf7vKsrkDtnmzfe+21g
==
}
peerDependencies
:
'
@ibiz-template/controller'
:
^0.0.1-beta.30
'
@ibiz-template/core'
:
^0.0.1-beta.30
...
...
@@ -1039,10 +1039,10 @@ packages:
vue
:
^2.7.14
vue-router
:
^3.6.5
dependencies
:
'
@ibiz-template/controller'
:
0.0.1-beta.12
5(@ibiz-template/core@0.0.1-beta.125)(@ibiz-template/model@0.0.1-beta.125)(@ibiz-template/runtime@0.0.1-beta.125)(@ibiz-template/service@0.0.1-beta.125
)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
'
@ibiz-template/core'
:
0.0.1-beta.12
5
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/model'
:
0.0.1-beta.12
5
(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'
@ibiz-template/service'
:
0.0.1-beta.12
5(@ibiz-template/core@0.0.1-beta.125)(@ibiz-template/model@0.0.1-beta.125
)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/controller'
:
0.0.1-beta.12
6(@ibiz-template/core@0.0.1-beta.126)(@ibiz-template/model@0.0.1-beta.126)(@ibiz-template/runtime@0.0.1-beta.126)(@ibiz-template/service@0.0.1-beta.126
)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
'
@ibiz-template/core'
:
0.0.1-beta.12
6
(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'
@ibiz-template/model'
:
0.0.1-beta.12
6
(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'
@ibiz-template/service'
:
0.0.1-beta.12
6(@ibiz-template/core@0.0.1-beta.126)(@ibiz-template/model@0.0.1-beta.126
)(qx-util@0.4.8)(ramda@0.28.0)
qs
:
6.11.1
qx-util
:
0.4.8
ramda
:
0.28.0
...
...
app_Web/src/components/editor/text-box/ibiz-input/ibiz-input.tsx
浏览文件 @
8c4aeb57
import
{
computed
,
defineComponent
,
ref
,
watch
}
from
'vue'
;
import
{
debounce
}
from
'lodash-es'
;
import
{
debounce
,
isNaN
}
from
'lodash-es'
;
import
{
getEditorEmits
,
getInputProps
,
...
...
@@ -7,6 +7,19 @@ import {
}
from
'@ibiz-template/vue-util'
;
import
'@ibiz-template/theme/style/components/editor/ibiz-input/ibiz-input.scss'
;
const
fomatFloat
=
function
(
value
:
number
,
n
:
number
)
{
const
f
=
Math
.
round
(
value
*
10
**
n
)
/
10
**
n
;
let
s
=
f
.
toString
();
const
rs
=
s
.
indexOf
(
'.'
);
if
(
rs
<
0
)
{
s
+=
'.'
;
}
for
(
let
i
=
s
.
length
-
s
.
indexOf
(
'.'
);
i
<=
n
;
i
++
)
{
s
+=
'0'
;
}
return
s
;
};
export
const
IBizInput
=
defineComponent
({
name
:
'IBizInput'
,
props
:
getInputProps
(),
...
...
@@ -31,6 +44,9 @@ export const IBizInput = defineComponent({
// 类型
const
type
=
computed
(()
=>
{
if
(
c
.
model
.
precision
!==
-
1
)
{
return
'number'
;
}
switch
(
editorModel
.
editorType
)
{
case
'TEXTBOX'
:
return
'text'
;
...
...
@@ -77,7 +93,22 @@ export const IBizInput = defineComponent({
(
e
:
IData
)
=>
{
// 拦截掉blur触发后change
if
(
blurCacheValue
!==
e
.
target
.
value
)
{
emit
(
'change'
,
e
.
target
.
value
);
if
(
c
.
model
.
precision
!==
-
1
)
{
const
num
=
Number
(
e
.
target
.
value
);
if
(
!
isNaN
(
num
))
{
const
number
=
fomatFloat
(
num
,
c
.
model
.
precision
);
currentVal
.
value
=
e
.
target
.
value
;
// 1.001
setTimeout
(()
=>
{
currentVal
.
value
=
number
;
// 1.00 1.001
if
(
number
!==
props
.
value
)
{
emit
(
'change'
,
number
);
}
});
}
}
else
{
emit
(
'change'
,
e
.
target
.
value
);
}
}
blurCacheValue
=
undefined
;
isDebounce
=
false
;
...
...
@@ -111,7 +142,12 @@ export const IBizInput = defineComponent({
*/
const
handleBlur
=
()
=>
{
blurCacheValue
=
inputRef
.
value
.
currentValue
;
emit
(
'change'
,
blurCacheValue
);
const
number
=
fomatFloat
(
Number
(
blurCacheValue
),
c
.
model
.
precision
);
if
(
c
.
model
.
precision
!==
-
1
)
{
emit
(
'change'
,
number
);
}
else
{
emit
(
'change'
,
blurCacheValue
);
}
};
// 自动聚焦
...
...
app_Web/src/components/widgets/grid-control/grid-control.tsx
浏览文件 @
8c4aeb57
...
...
@@ -53,6 +53,12 @@ export const GridControl = defineComponent({
const
{
onPageChange
,
onPageReset
,
onPageSizeChange
}
=
useAppGridPagination
(
c
);
const
highlight
=
computed
(()
=>
{
const
ctrlParams
=
props
.
modelData
?.
source
.
getPSControlParam
()?.
ctrlParams
;
return
ctrlParams
?.
HIGHLIGHT
!==
'false'
;
});
// iView表格单击行选中没有,必须手动调用选中方法
const
onUIRowClick
=
(
data
:
IData
,
index
:
number
)
=>
{
const
gridInstance
:
IData
|
undefined
=
proxy
.
$refs
.
grid
;
...
...
@@ -60,8 +66,14 @@ export const GridControl = defineComponent({
if
(
gridInstance
.
toggleSelect
)
{
gridInstance
.
toggleSelect
(
index
);
}
if
(
gridInstance
.
highlightCurrentRow
)
{
gridInstance
.
highlightCurrentRow
(
index
);
const
objData
=
gridInstance
.
objData
;
const
rowData
=
objData
?.[
index
];
if
(
rowData
)
{
if
(
rowData
.
_isChecked
)
{
gridInstance
.
highlightCurrentRow
(
index
);
}
else
{
gridInstance
.
clearCurrentRow
();
}
}
}
onRowClick
(
data
);
...
...
@@ -147,6 +159,7 @@ export const GridControl = defineComponent({
tableHeight
,
gridRef
,
girdPaginationRef
,
highlight
,
};
},
render
()
{
...
...
@@ -198,7 +211,7 @@ export const GridControl = defineComponent({
height=
{
this
.
tableHeight
}
class=
{
this
.
ns
.
b
(
'content'
)
}
show
-
header=
{
!
this
.
c
.
model
.
source
.
hideHeader
}
highlight
-
row
highlight
-
row
=
{
this
.
highlight
}
data=
{
this
.
tableData
}
columns=
{
this
.
columns
}
on
-
on
-
row
-
click=
{
this
.
onUIRowClick
}
...
...
app_Web/src/components/widgets/grid-control/grid-control.util.ts
浏览文件 @
8c4aeb57
...
...
@@ -31,7 +31,7 @@ export function generateColumnData(column: GridColumnModel, c: GridController) {
sortable
:
!
c
.
noSort
&&
column
.
source
.
enableSort
?
'custom'
:
false
,
columnType
:
column
.
source
.
columnType
,
userParams
:
column
.
source
.
userParams
,
className
:
column
.
code
Name
,
className
:
column
.
source
.
getCellPSSysCss
()?.
css
Name
,
};
if
(
columnChildren
.
length
>
0
)
{
Object
.
assign
(
columnData
,
{
children
:
columnChildren
});
...
...
@@ -139,7 +139,10 @@ export function useITableEvent(c: GridController) {
const
origin
=
getOriginData
(
data
);
// 单选的时候选中效果靠这个回调
if
(
c
.
singleSelect
)
{
c
.
onSelectionChange
([
origin
]);
const
selectedItem
=
c
.
selectedData
.
find
(
item
=>
item
.
srfkey
===
data
.
srfkey
,
);
c
.
onSelectionChange
(
selectedItem
?
[]
:
[
origin
]);
}
c
.
onRowClick
(
origin
);
}
...
...
trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSSYSAPP.json
浏览文件 @
8c4aeb57
...
...
@@ -9830,16 +9830,16 @@
"id" : "ViewMsg4"
}
}, {
"name" : "消息类型-
警告
信息",
"name" : "消息类型-
错误
信息",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg
5
"
"id" : "ViewMsg
6
"
}
}, {
"name" : "消息类型-
错误
信息",
"name" : "消息类型-
警告
信息",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg
6
"
"id" : "ViewMsg
5
"
}
} ]
}, {
...
...
@@ -9856,12 +9856,6 @@
"codeName" : "VMGroup4",
"name" : "视图消息位置测试",
"getPSAppViewMsgGroupDetails" : [ {
"name" : "消息位置-视图下方",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg8"
}
}, {
"name" : "消息位置-弹出",
"getPSAppViewMsg" : {
"modelref" : true,
...
...
@@ -9879,23 +9873,17 @@
"modelref" : true,
"id" : "ViewMsg9"
}
}, {
"name" : "消息位置-视图下方",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg8"
}
} ]
}, {
"codeName" : "VMGroup8",
"name" : "【静态测试】",
"getPSAppViewMsgGroupDetails" : [ {
"name" : "消息位置-视图内容区",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg9"
}
}, {
"name" : "关闭模式-默认删除-上方-错误",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg12"
}
}, {
"name" : "关闭模式-本次删除-上方-警告",
"getPSAppViewMsg" : {
"modelref" : true,
...
...
@@ -9934,17 +9922,23 @@
"modelref" : true,
"id" : "ViewMsg11"
}
}, {
"name" : "消息位置-视图内容区",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg9"
}
}, {
"name" : "关闭模式-默认删除-上方-错误",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg12"
}
} ]
}, {
"codeName" : "VMGroup5",
"name" : "视图消息关闭模式",
"getPSAppViewMsgGroupDetails" : [ {
"name" : "关闭模式-本次删除",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg13"
}
}, {
"name" : "关闭模式-无删除",
"getPSAppViewMsg" : {
"modelref" : true,
...
...
@@ -9956,6 +9950,12 @@
"modelref" : true,
"id" : "ViewMsg12"
}
}, {
"name" : "关闭模式-本次删除",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg13"
}
} ]
}, {
"codeName" : "VMGroup6",
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录