Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
王涛
3 years ago
Commit
339fbcc7c6aa52470cd126ffe449573104c876d2
1 parent
0b137be1
乙方运维,删除必填验证;修复表格组件报错
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/table-page/index.js
hg-monitor-web-zj/src/main/resources/static/vue3/src/components/page/operationMaintenance/user/index.js
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/res/list/index.html
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/table-page/index.js
View file @
339fbcc
...
...
@@ -202,7 +202,7 @@ export default {
let
getTextContent
=
(
val
)
=>
{
if
(
val
&&
val
!=
''
&&
val
!=
null
){
val
=
val
.
replace
(
/
[^\x
00-
\x
ff
]
/g
,
"$&\x01"
).
replace
(
/.
{50}\x
01
?
/g
,
"$&<br/>"
).
replace
(
/
\x
01/g
,
""
);
val
=
val
+
''
.
replace
(
/
[^\x
00-
\x
ff
]
/g
,
"$&\x01"
).
replace
(
/.
{50}\x
01
?
/g
,
"$&<br/>"
).
replace
(
/
\x
01/g
,
""
);
}
return
val
;
...
...
hg-monitor-web-zj/src/main/resources/static/vue3/src/components/page/operationMaintenance/user/index.js
View file @
339fbcc
...
...
@@ -297,7 +297,7 @@ export default {
var
re1
=
/^0
\d{2}
-
[
1-9
]\d{7}
$/
;
var
re2
=
/^0
\d{3}
-
[
1-9
]\{
6,7}$/
;
var
result
=
re1
.
test
(
value
)
||
re2
.
test
(
value
);
if
(
!
result
)
{
if
(
!
result
&&
value
)
{
return
callback
(
new
Error
(
'请输入正确的座机号!'
))
}
else
{
callback
()
...
...
@@ -330,6 +330,7 @@ export default {
var
obj
=
document
.
getElementById
(
"email"
);
//要验证的对象
if
(
obj
.
value
===
""
){
//输入不能为空
//return callback(new Error('邮箱不能为空!'));
callback
()
}
else
if
(
!
reg
.
test
(
obj
.
value
)){
//正则验证不通过,格式不对
return
callback
(
new
Error
(
'邮箱格式不正确!'
));
}
else
{
...
...
@@ -353,9 +354,6 @@ export default {
nickname
:
[
{
message
:
'请输入姓名'
,
trigger
:
'blur'
}
],
tel
:
[
{
validator
:
checkTel
,
trigger
:
'blur'
}
],
phone
:
[
{
validator
:
checkPhone
,
trigger
:
'blur'
}
],
...
...
@@ -380,6 +378,7 @@ export default {
*/
// 保存用户信息
let
saveUser
=
()
=>
{
debugger
proxy
.
$refs
.
rule
.
validate
((
valid
)
=>
{
if
(
valid
)
{
console
.
log
(
'submit!!'
);
...
...
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/res/list/index.html
View file @
339fbcc
...
...
@@ -14,7 +14,8 @@
<div
style=
"width: calc(100% - 100px)"
>
<el-form
:inline=
"true"
:model=
"searchForm"
class=
"demo-form-inline"
>
<el-form-item
v-for=
"searchInfo in obj.searchList"
:label=
"searchInfo.name"
>
<el-input
v-model=
"searchForm[searchInfo.key]"
placeholder=
"请输入资源名称"
></el-input>
<el-input
v-if=
"searchInfo.type == 'INPUT'"
v-model=
"searchForm[searchInfo.key]"
:placeholder=
"'请输入' + searchInfo.name"
></el-input>
<el-input
v-else
v-model=
"searchForm[searchInfo.key]"
:placeholder=
"'请输入' + searchInfo.name"
></el-input>
</el-form-item>
<el-form-item>
...
...
@@ -22,7 +23,7 @@
</el-form-item>
</el-form>
</div>
<div
style=
"width: 100px"
v-if=
"$global.
isAdminRole
()"
>
<div
style=
"width: 100px"
v-if=
"$global.
common.isAdminManager
()"
>
<el-button
type=
"primary"
@
click=
"showConfigDialog(true)"
>
配置
</el-button>
</div>
</div>
...
...
Please
register
or
login
to post a comment