Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
f8060f7d
提交
f8060f7d
编写于
3月 25, 2025
作者:
zhangpingchuan
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into vue2-sy-ui
上级
828bacb6
1cb7980c
变更
22
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
22 个修改的文件
包含
2383 行增加
和
1817 行删除
+2383
-1817
environment.config
app_Web/environment.config
+2
-1
package.json
app_Web/package.json
+10
-9
pnpm-lock.yaml
app_Web/pnpm-lock.yaml
+68
-41
environment.js
app_Web/public/environments/environment.js
+2
-0
ibiz-template-plugin.es.js
...e-plugin/sy-dsf-web@0.0.2/dist/ibiz-template-plugin.es.js
+826
-559
index.legacy.js
...biz-template-plugin/sy-dsf-web@0.0.2/dist/index.legacy.js
+1
-1
polyfills.legacy.js
...template-plugin/sy-dsf-web@0.0.2/dist/polyfills.legacy.js
+1
-1
ibiz-template-plugin.es.js
...mplate-plugin/sy-ty@0.0.1/dist/ibiz-template-plugin.es.js
+1309
-1135
index.legacy.js
...ns/@ibiz-template-plugin/sy-ty@0.0.1/dist/index.legacy.js
+1
-1
polyfills.legacy.js
...ibiz-template-plugin/sy-ty@0.0.1/dist/polyfills.legacy.js
+1
-1
style.css
.../plugins/@ibiz-template-plugin/sy-ty@0.0.1/dist/style.css
+1
-1
ibiz-template-plugin.es.js
...plate-plugin/sy-web@0.0.1/dist/ibiz-template-plugin.es.js
+56
-54
index.legacy.js
...s/@ibiz-template-plugin/sy-web@0.0.1/dist/index.legacy.js
+1
-1
polyfills.legacy.js
...biz-template-plugin/sy-web@0.0.1/dist/polyfills.legacy.js
+2
-2
ibiz-input.tsx
.../src/components/editor/text-box/ibiz-input/ibiz-input.tsx
+16
-2
app-login-view.tsx
...c/components/login-view/app-login-view/app-login-view.tsx
+5
-4
tab-exp-view.scss
app_Web/src/components/views/tab-exp-view/tab-exp-view.scss
+13
-0
form-item-container.scss
...form-control/form-item-container/form-item-container.scss
+8
-0
form-item-container.tsx
.../form-control/form-item-container/form-item-container.tsx
+30
-4
form-item.tsx
...c/components/widgets/form-control/form-item/form-item.tsx
+1
-0
grid-control.tsx
app_Web/src/components/widgets/grid-control/grid-control.tsx
+1
-0
auth-guard.ts
app_Web/src/guard/auth-guard/auth-guard.ts
+28
-0
未找到文件。
app_Web/environment.config
浏览文件 @
f8060f7d
...
...
@@ -7,4 +7,5 @@ casLoginUrl:CAS_LOGIN_URL
previewFileUrl
:
PREVIEW_FILE_URL
loginViewName
:
LOGIN_VIEW_NAME
favicon
:
FAVICON
logLevel
:
LOGLEVEL
\ No newline at end of file
logLevel
:
LOGLEVEL
enableSM3
:
ENABLE_SM3
\ No newline at end of file
app_Web/package.json
浏览文件 @
f8060f7d
{
"name"
:
"vite-project"
,
"private"
:
true
,
"version"
:
"0.0.
8
"
,
"version"
:
"0.0.
12
"
,
"type"
:
"module"
,
"scripts"
:
{
"dev"
:
"vite"
,
...
...
@@ -13,13 +13,13 @@
"dependencies"
:
{
"@floating-ui/dom"
:
"^1.5.3"
,
"@ibiz-template/command"
:
"0.0.1-beta.50"
,
"@ibiz-template/controller"
:
"0.0.1-beta.1
59
"
,
"@ibiz-template/core"
:
"0.0.1-beta.1
59
"
,
"@ibiz-template/model"
:
"0.0.1-beta.1
59
"
,
"@ibiz-template/runtime"
:
"0.0.1-beta.1
59
"
,
"@ibiz-template/service"
:
"0.0.1-beta.1
59
"
,
"@ibiz-template/theme"
:
"0.0.1-beta.1
58
"
,
"@ibiz-template/vue-util"
:
"0.0.1-beta.1
59
"
,
"@ibiz-template/controller"
:
"0.0.1-beta.1
63
"
,
"@ibiz-template/core"
:
"0.0.1-beta.1
63
"
,
"@ibiz-template/model"
:
"0.0.1-beta.1
60
"
,
"@ibiz-template/runtime"
:
"0.0.1-beta.1
63
"
,
"@ibiz-template/service"
:
"0.0.1-beta.1
63
"
,
"@ibiz-template/theme"
:
"0.0.1-beta.1
63
"
,
"@ibiz-template/vue-util"
:
"0.0.1-beta.1
63
"
,
"@ibiz/dynamic-model-api"
:
"^2.1.28"
,
"@riophae/vue-treeselect"
:
"^0.4.0"
,
"dayjs"
:
"^1.11.10"
,
...
...
@@ -35,7 +35,8 @@
"vite-plugin-style-import"
:
"1.4.1"
,
"vue"
:
"^2.7.15"
,
"vue-router"
:
"^3.6.5"
,
"vue-text-format"
:
"^3.1.2"
"vue-text-format"
:
"^3.1.2"
,
"xss"
:
"^1.0.15"
},
"devDependencies"
:
{
"@commitlint/cli"
:
"^17.3.0"
,
...
...
app_Web/pnpm-lock.yaml
浏览文件 @
f8060f7d
此差异已折叠。
点击以展开。
app_Web/public/environments/environment.js
浏览文件 @
f8060f7d
...
...
@@ -22,4 +22,6 @@ window.Environment = {
favicon
:
'./favicon.ico'
,
// 当前版本
version
:
'0.0.1'
,
// 启用sm3加密
enableSM3
:
true
,
};
app_Web/public/plugins/@ibiz-template-plugin/sy-dsf-web@0.0.2/dist/ibiz-template-plugin.es.js
浏览文件 @
f8060f7d
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-plugin/sy-dsf-web@0.0.2/dist/index.legacy.js
浏览文件 @
f8060f7d
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-plugin/sy-dsf-web@0.0.2/dist/polyfills.legacy.js
浏览文件 @
f8060f7d
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
app_Web/public/plugins/@ibiz-template-plugin/sy-ty@0.0.1/dist/ibiz-template-plugin.es.js
浏览文件 @
f8060f7d
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-plugin/sy-ty@0.0.1/dist/index.legacy.js
浏览文件 @
f8060f7d
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-plugin/sy-ty@0.0.1/dist/polyfills.legacy.js
浏览文件 @
f8060f7d
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
app_Web/public/plugins/@ibiz-template-plugin/sy-ty@0.0.1/dist/style.css
浏览文件 @
f8060f7d
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-plugin/sy-web@0.0.1/dist/ibiz-template-plugin.es.js
浏览文件 @
f8060f7d
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-plugin/sy-web@0.0.1/dist/index.legacy.js
浏览文件 @
f8060f7d
此差异已折叠。
点击以展开。
app_Web/public/plugins/@ibiz-template-plugin/sy-web@0.0.1/dist/polyfills.legacy.js
浏览文件 @
f8060f7d
此差异已折叠。
点击以展开。
app_Web/src/components/editor/text-box/ibiz-input/ibiz-input.tsx
浏览文件 @
f8060f7d
...
...
@@ -6,6 +6,7 @@ import {
useNamespace
,
}
from
'@ibiz-template/vue-util'
;
import
'@ibiz-template/theme/style/components/editor/ibiz-input/ibiz-input.scss'
;
import
xss
from
'xss'
;
const
fomatFloat
=
function
(
value
:
number
,
n
:
number
)
{
const
f
=
value
;
...
...
@@ -74,6 +75,19 @@ export const IBizInput = defineComponent({
}
const
currentVal
=
ref
<
string
>
(
''
);
const
getInputValue
=
(
value
:
string
|
number
)
=>
{
if
(
type
.
value
===
'number'
||
!
ibiz
.
config
.
enableXSS
)
{
return
value
;
}
const
result
=
xss
(
value
as
string
);
if
(
result
!==
value
)
{
currentVal
.
value
=
result
;
inputRef
.
value
?.
setCurrentValue
?.(
result
);
ibiz
.
message
.
warning
(
'输入值存在不规范格式,已自动调整!'
);
}
return
result
;
};
watch
(
()
=>
props
.
value
,
(
newVal
,
oldVal
)
=>
{
...
...
@@ -96,7 +110,7 @@ export const IBizInput = defineComponent({
(
e
:
IData
)
=>
{
// 拦截掉blur触发后change
if
(
blurCacheValue
!==
e
.
target
.
value
)
{
emit
(
'change'
,
e
.
target
.
value
);
emit
(
'change'
,
getInputValue
(
e
.
target
.
value
)
);
}
blurCacheValue
=
undefined
;
isDebounce
=
false
;
...
...
@@ -156,7 +170,7 @@ export const IBizInput = defineComponent({
inputRef
.
value
?.
setCurrentValue
?.(
number
);
emit
(
'change'
,
number
);
}
else
{
emit
(
'change'
,
blurCacheValue
);
emit
(
'change'
,
getInputValue
(
blurCacheValue
as
string
)
);
}
};
...
...
app_Web/src/components/login-view/app-login-view/app-login-view.tsx
浏览文件 @
f8060f7d
...
...
@@ -74,10 +74,11 @@ export default defineComponent({
try
{
loading
.
value
=
true
;
clearCookie
(
CoreConst
.
TOKEN
,
true
);
const
res
=
await
ibiz
.
auth
.
v7login
(
loginData
.
username
,
loginData
.
password
,
);
let
password
=
loginData
.
password
;
if
((
ibiz
.
env
as
IData
).
enableSM3
)
{
password
=
ibiz
.
util
.
text
.
sm3
(
password
).
toUpperCase
();
}
const
res
=
await
ibiz
.
auth
.
v7login
(
loginData
.
username
,
password
);
if
(
res
.
ok
)
{
const
{
data
}
=
res
;
if
(
data
&&
data
.
token
)
{
...
...
app_Web/src/components/views/tab-exp-view/tab-exp-view.scss
浏览文件 @
f8060f7d
...
...
@@ -47,6 +47,7 @@
@include
e
(
route-content
)
{
height
:
calc
(
100%
-
39px
);
background-color
:
getCssVar
(
view-layout-route-bg-color
);
>
.
#{
bem
(
'view-layout'
)
}
{
.
#{
bem
(
'view-layout-header'
)
}
{
position
:
absolute
;
...
...
@@ -61,6 +62,18 @@
}
}
}
>
.
#{
bem
(
exp-view
)
}
{
display
:
flex
;
padding
:
getCssVar
(
padding
)
0
;
.
#{
bem
(
exp-view-right
)
}
{
>
.
#{
bem
(
'view-layout'
)
}
{
.
#{
bem
(
'view-layout-header'
)
}
{
width
:
auto
;
margin-right
:
getCssVar
(
margin
);
}
}
}
}
}
}
}
app_Web/src/components/widgets/form-control/form-item-container/form-item-container.scss
0 → 100644
浏览文件 @
f8060f7d
@include
b
(
form-item-container-inputtip
)
{
width
:
13px
;
height
:
13px
;
margin-right
:
4px
;
font-size
:
13px
;
vertical-align
:
text-top
;
cursor
:
pointer
;
}
\ No newline at end of file
app_Web/src/components/widgets/form-control/form-item-container/form-item-container.tsx
浏览文件 @
f8060f7d
import
{
useNamespace
}
from
'@ibiz-template/vue-util'
;
import
{
computed
,
defineComponent
}
from
'vue'
;
import
'@ibiz-template/theme/style/components/widgets/form/form-item-container.scss'
;
import
'./form-item-container.scss'
;
export
default
defineComponent
({
props
:
{
...
...
@@ -22,6 +23,9 @@ export default defineComponent({
type
:
Number
,
required
:
true
,
},
inputTip
:
{
type
:
String
,
},
},
setup
(
props
)
{
const
ns
=
useNamespace
(
'form-item-container'
);
...
...
@@ -47,15 +51,37 @@ export default defineComponent({
>
<
div
class=
{
[
this
.
ns
.
b
(
'content'
)]
}
>
{
this
.
labelPos
===
'LEFT'
||
this
.
labelPos
===
'TOP'
?
(
<
div
class=
{
[
this
.
ns
.
e
(
'label'
)]
}
title=
{
this
.
label
}
>
{
this
.
label
}
<
div
class=
{
[
this
.
ns
.
e
(
'label'
)]
}
>
{
this
.
inputTip
&&
(
<
i
-
tooltip
content=
{
this
.
inputTip
}
transfer
-
class
-
name=
{
this
.
ns
.
b
(
'input-tip-popper'
)
}
class=
{
[
this
.
ns
.
b
(
'inputtip'
)]
}
>
<
i
-
icon
type=
'ios-help-circle-outline'
/>
</
i
-
tooltip
>
)
}
<
span
class=
{
[
this
.
ns
.
em
(
'label'
,
'text'
)]
}
title=
{
this
.
label
}
>
{
this
.
label
}
</
span
>
</
div
>
)
:
null
}
<
div
class=
{
[
this
.
ns
.
e
(
'editor'
)]
}
>
{
this
.
$slots
.
default
}
</
div
>
{
this
.
labelPos
===
'RIGHT'
||
this
.
labelPos
===
'BOTTOM'
?
(
<
div
class=
{
[
this
.
ns
.
e
(
'label'
)]
}
title=
{
this
.
label
}
>
{
this
.
label
}
<
div
class=
{
[
this
.
ns
.
e
(
'label'
)]
}
>
{
this
.
inputTip
&&
(
<
i
-
tooltip
content=
{
this
.
inputTip
}
class=
{
[
this
.
ns
.
b
(
'inputtip'
)]
}
transfer
-
class
-
name=
{
this
.
ns
.
b
(
'input-tip-popper'
)
}
>
<
i
-
icon
type=
'ios-help-circle-outline'
/>
</
i
-
tooltip
>
)
}
<
span
class=
{
[
this
.
ns
.
em
(
'label'
,
'text'
)]
}
title=
{
this
.
label
}
>
{
this
.
label
}
</
span
>
</
div
>
)
:
null
}
</
div
>
...
...
app_Web/src/components/widgets/form-control/form-item/form-item.tsx
浏览文件 @
f8060f7d
...
...
@@ -57,6 +57,7 @@ export const FormItem = defineComponent({
class=
{
[
this
.
ns
.
b
(),
this
.
ns
.
m
(
this
.
modelData
.
modelClass
)]
}
required=
{
this
.
c
.
required
}
error=
{
this
.
c
.
error
}
input
-
tip=
{
this
.
controller
.
editor
?.
editorParams
?.
inputTip
}
label=
{
this
.
modelData
.
source
.
caption
}
label
-
pos=
{
this
.
c
.
model
.
labelPos
}
label
-
width=
{
this
.
c
.
model
.
labelWidth
}
...
...
app_Web/src/components/widgets/grid-control/grid-control.tsx
浏览文件 @
f8060f7d
...
...
@@ -266,6 +266,7 @@ export const GridControl = defineComponent({
on
-
on
-
selection
-
change=
{
this
.
onSelectionChange
}
on
-
on
-
sort
-
change=
{
this
.
onSortChange
}
row
-
class
-
name=
{
(
row
:
IData
)
=>
(
row
.
hiddenRow
?
'hidden-row'
:
''
)
}
span
-
method=
{
this
.
c
.
spanMethod
.
bind
(
this
.
c
)
}
scopedSlots=
{
columnSlots
}
></
i
-
table
>
{
this
.
c
.
model
.
source
.
enablePagingBar
&&
(
...
...
app_Web/src/guard/auth-guard/auth-guard.ts
浏览文件 @
f8060f7d
...
...
@@ -48,6 +48,32 @@ async function loadAppPlugins(): Promise<void> {
}
}
/**
* 初始化应用配置参数
*
* @export
* @param {IData} userParam
* @return {*} {Promise<void>}
*/
export
async
function
initConfig
(
userParam
:
IData
):
Promise
<
void
>
{
if
(
userParam
)
{
Object
.
keys
(
userParam
).
forEach
(
key
=>
{
const
value
=
ibiz
.
util
.
rawValue
.
format
(
userParam
[
key
]);
const
keys
=
key
.
split
(
'.'
);
let
currentObj
=
ibiz
.
config
as
IData
;
for
(
let
i
=
0
;
i
<
keys
.
length
;
i
++
)
{
const
k
=
keys
[
i
];
if
(
i
===
keys
.
length
-
1
)
{
currentObj
[
k
]
=
value
;
}
else
{
currentObj
[
k
]
=
currentObj
[
k
]
||
{};
currentObj
=
currentObj
[
k
];
}
}
});
}
}
/**
* 初始化模型
*
...
...
@@ -60,6 +86,8 @@ async function loadModel(): Promise<void> {
const
url
=
`
${
ibiz
.
env
.
remoteModelUrl
}${
modelPath
}
`
;
const
res
=
await
ibiz
.
net
.
get
(
url
);
if
(
res
.
ok
)
{
const
userParam
=
res
.
data
.
getUserParam
||
{};
await
initConfig
(
userParam
);
return
res
.
data
as
IModel
;
}
return
{};
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录