Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
4dd4b77f
提交
4dd4b77f
编写于
9月 18, 2025
作者:
jlj05024111@163.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 更新登录页密码框禁用自动提示,更新登录失败时统一消息提示
上级
123040e6
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
101 行增加
和
16 行删除
+101
-16
ibiz-input.tsx
.../src/components/editor/text-box/ibiz-input/ibiz-input.tsx
+26
-1
app-login-extend.scss
...ponents/login-view/app-login-extend/app-login-extend.scss
+14
-3
app-login-extend.tsx
...mponents/login-view/app-login-extend/app-login-extend.tsx
+16
-4
app-login-view.tsx
...c/components/login-view/app-login-view/app-login-view.tsx
+16
-4
kq-login-view.scss
...rc/components/login-view/kq-login-view/kq-login-view.scss
+13
-0
kq-login-view.tsx
...src/components/login-view/kq-login-view/kq-login-view.tsx
+16
-4
未找到文件。
app_Web/src/components/editor/text-box/ibiz-input/ibiz-input.tsx
浏览文件 @
4dd4b77f
...
...
@@ -36,6 +36,8 @@ export const IBizInput = defineComponent({
let
autoSize
:
boolean
|
{
minRows
:
Number
;
maxRows
?:
Number
}
=
{
minRows
:
2
,
};
const
showPwd
=
ref
(
false
);
const
showTogglePwdIcon
=
ref
(
false
);
// 文本域默认行数,仅在 textarea 类型下有效
const
rows
=
ref
(
2
);
...
...
@@ -72,6 +74,10 @@ export const IBizInput = defineComponent({
autoSize
=
false
;
}
}
if
(
editorModel
.
editorParams
.
showtogglepwdicon
)
{
showTogglePwdIcon
.
value
=
editorModel
.
editorParams
.
showtogglepwdicon
===
'true'
;
}
}
const
currentVal
=
ref
<
string
|
number
>
(
''
);
...
...
@@ -187,6 +193,17 @@ export const IBizInput = defineComponent({
});
}
const
pwdIcon
=
computed
(()
=>
{
if
(
showTogglePwdIcon
.
value
&&
type
.
value
===
'password'
)
{
return
showPwd
.
value
?
'eye-open'
:
'eye-close'
;
}
return
''
;
});
const
handleTogglePwd
=
()
=>
{
showPwd
.
value
=
!
showPwd
.
value
;
};
return
{
ns
,
rows
,
...
...
@@ -198,6 +215,10 @@ export const IBizInput = defineComponent({
inputRef
,
autoSize
,
c
,
showPwd
,
showTogglePwdIcon
,
pwdIcon
,
handleTogglePwd
,
};
},
render
(
h
)
{
...
...
@@ -223,20 +244,24 @@ export const IBizInput = defineComponent({
'disabledresize'
,
this
.
c
.
editorParams
.
disabledresize
===
'true'
,
),
this
.
ns
.
e
(
this
.
type
),
this
.
ns
.
is
(
'show-pwd'
,
this
.
showPwd
),
],
props
:
{
...
this
.
c
.
customProps
,
value
:
this
.
currentVal
,
clearable
:
!
this
.
disabled
&&
!
this
.
readonly
&&
true
,
placeholder
:
this
.
controller
.
placeHolder
,
type
:
this
.
type
,
type
:
this
.
type
===
'password'
?
'text'
:
this
.
type
,
rows
:
this
.
rows
,
disabled
:
this
.
disabled
,
autosize
:
this
.
autoSize
,
icon
:
this
.
pwdIcon
,
},
on
:
{
'on-change'
:
this
.
handleChange
,
'on-blur'
:
this
.
handleBlur
,
'on-click'
:
this
.
handleTogglePwd
,
},
nativeOn
:
{
keyup
:
this
.
handleKeyUp
,
...
...
app_Web/src/components/login-view/app-login-extend/app-login-extend.scss
浏览文件 @
4dd4b77f
...
...
@@ -28,6 +28,17 @@
}
}
}
@include
e
(
password
)
{
input
{
-webkit-text-security
:
disc
;
}
@include
when
(
'show-pwd'
)
{
input
{
-webkit-text-security
:
unset
;
}
}
}
}
@media
screen
and
(
max-width
:
720px
)
{
...
...
@@ -130,9 +141,9 @@
}
&
.is-disabled
{
background-color
:
#
E5E8EC
;
border-color
:
#
E5E8EC
;
color
:
#
B3BBC
6
;
background-color
:
#
e5e8ec
;
border-color
:
#
e5e8ec
;
color
:
#
b3bbc
6
;
}
}
...
...
app_Web/src/components/login-view/app-login-extend/app-login-extend.tsx
浏览文件 @
4dd4b77f
...
...
@@ -72,6 +72,8 @@ export default defineComponent({
const
countdown
=
ref
(
0
);
const
showPwd
=
ref
(
false
);
onMounted
(()
=>
{
setTimeout
(()
=>
{
const
el
=
document
.
querySelector
(
'.app-loading-x'
)
as
HTMLDivElement
;
...
...
@@ -110,12 +112,18 @@ export default defineComponent({
}
}
ibiz
.
notification
.
error
({
title
:
res
.
data
?.
message
||
'登录失败'
,
title
:
res
.
data
?.
message
?.
includes
(
'用户名或密码错误'
)
?
res
.
data
?.
message
:
'登录失败'
,
});
loading
.
value
=
false
;
}
catch
(
error
)
{
ibiz
.
notification
.
error
({
title
:
(
error
as
IData
).
response
?.
data
?.
message
||
'登录失败'
,
title
:
(
error
as
IData
).
response
?.
data
?.
message
?.
includes
(
'用户名或密码错误'
,
)
?
(
error
as
IData
).
response
?.
data
?.
message
:
'登录失败'
,
});
loading
.
value
=
false
;
}
...
...
@@ -213,16 +221,20 @@ export default defineComponent({
</
i
-
form
-
item
>
<
i
-
form
-
item
prop=
'password'
>
<
i
-
input
type=
'password'
type=
'text'
class=
{
[
ns
.
e
(
'password'
),
ns
.
is
(
'show-pwd'
,
showPwd
.
value
)]
}
value=
{
loginData
.
password
}
on
-
on
-
change=
{
(
evt
:
InputEvent
)
=>
{
const
{
value
}
=
evt
.
target
as
HTMLInputElement
;
loginData
.
password
=
value
;
}
}
on
-
on
-
enter=
{
onClick
}
on
-
on
-
click=
{
()
=>
{
showPwd
.
value
=
!
showPwd
.
value
;
}
}
placeholder=
'请输入密码'
size=
'large'
password
icon=
{
showPwd
.
value
?
'ios-eye'
:
'ios-eye-off'
}
>
<
i
-
icon
type=
'ios-unlock'
slot=
'prefix'
></
i
-
icon
>
</
i
-
input
>
...
...
app_Web/src/components/login-view/app-login-view/app-login-view.tsx
浏览文件 @
4dd4b77f
...
...
@@ -56,6 +56,8 @@ export default defineComponent({
ibiz
.
appData
=
undefined
;
ibiz
.
orgData
=
undefined
;
const
showPwd
=
ref
(
false
);
onMounted
(()
=>
{
setTimeout
(()
=>
{
const
el
=
document
.
querySelector
(
'.app-loading-x'
)
as
HTMLDivElement
;
...
...
@@ -90,12 +92,18 @@ export default defineComponent({
}
}
ibiz
.
notification
.
error
({
title
:
res
.
data
?.
message
||
'登录失败'
,
title
:
res
.
data
?.
message
?.
includes
(
'用户名或密码错误'
)
?
res
.
data
?.
message
:
'登录失败'
,
});
loading
.
value
=
false
;
}
catch
(
error
)
{
ibiz
.
notification
.
error
({
title
:
(
error
as
IData
).
response
?.
data
?.
message
||
'登录失败'
,
title
:
(
error
as
IData
).
response
?.
data
?.
message
?.
includes
(
'用户名或密码错误'
,
)
?
(
error
as
IData
).
response
?.
data
?.
message
:
'登录失败'
,
});
loading
.
value
=
false
;
}
...
...
@@ -150,16 +158,20 @@ export default defineComponent({
</
i
-
form
-
item
>
<
i
-
form
-
item
prop=
'password'
>
<
i
-
input
type=
'password'
type=
'text'
class=
{
[
ns
.
e
(
'password'
),
ns
.
is
(
'show-pwd'
,
showPwd
.
value
)]
}
value=
{
loginData
.
password
}
on
-
on
-
change=
{
(
evt
:
InputEvent
)
=>
{
const
{
value
}
=
evt
.
target
as
HTMLInputElement
;
loginData
.
password
=
value
;
}
}
on
-
on
-
enter=
{
onClick
}
on
-
on
-
click=
{
()
=>
{
showPwd
.
value
=
!
showPwd
.
value
;
}
}
placeholder=
'请输入密码'
size=
'large'
password
icon=
{
showPwd
.
value
?
'ios-eye'
:
'ios-eye-off'
}
>
<
i
-
icon
type=
'ios-unlock'
slot=
'prefix'
></
i
-
icon
>
</
i
-
input
>
...
...
app_Web/src/components/login-view/kq-login-view/kq-login-view.scss
浏览文件 @
4dd4b77f
...
...
@@ -127,3 +127,16 @@
}
}
}
@include
b
(
'kq-login-view'
)
{
@include
e
(
password
)
{
input
{
-webkit-text-security
:
disc
;
}
@include
when
(
'show-pwd'
)
{
input
{
-webkit-text-security
:
unset
;
}
}
}
}
app_Web/src/components/login-view/kq-login-view/kq-login-view.tsx
浏览文件 @
4dd4b77f
...
...
@@ -57,6 +57,8 @@ export default defineComponent({
ibiz
.
appData
=
undefined
;
ibiz
.
orgData
=
undefined
;
const
showPwd
=
ref
(
false
);
onMounted
(()
=>
{
setTimeout
(()
=>
{
const
el
=
document
.
querySelector
(
'.app-loading-x'
)
as
HTMLDivElement
;
...
...
@@ -90,12 +92,18 @@ export default defineComponent({
}
}
ibiz
.
notification
.
error
({
title
:
res
.
data
?.
message
||
'登录失败'
,
title
:
res
.
data
?.
message
?.
includes
(
'用户名或密码错误'
)
?
res
.
data
?.
message
:
'登录失败'
,
});
loading
.
value
=
false
;
}
catch
(
error
)
{
ibiz
.
notification
.
error
({
title
:
(
error
as
IData
).
response
?.
data
?.
message
||
'登录失败'
,
title
:
(
error
as
IData
).
response
?.
data
?.
message
?.
includes
(
'用户名或密码错误'
,
)
?
(
error
as
IData
).
response
?.
data
?.
message
:
'登录失败'
,
});
loading
.
value
=
false
;
}
...
...
@@ -147,16 +155,20 @@ export default defineComponent({
<
span
class=
{
ns
.
b
(
'form-label-text'
)
}
>
密码
</
span
>
</
div
>
<
i
-
input
type=
'
password
'
type=
'
text
'
value=
{
loginData
.
password
}
on
-
on
-
change=
{
(
evt
:
InputEvent
)
=>
{
const
{
value
}
=
evt
.
target
as
HTMLInputElement
;
loginData
.
password
=
value
;
}
}
class=
{
[
ns
.
e
(
'password'
),
ns
.
is
(
'show-pwd'
,
showPwd
.
value
)]
}
on
-
on
-
enter=
{
onClick
}
on
-
on
-
click=
{
()
=>
{
showPwd
.
value
=
!
showPwd
.
value
;
}
}
placeholder=
'请输入密码'
size=
'large'
password
icon=
{
showPwd
.
value
?
'ios-eye'
:
'ios-eye-off'
}
></
i
-
input
>
</
i
-
form
-
item
>
<
i
-
form
-
item
class=
{
ns
.
b
(
'buttons'
)
}
>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录