Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
property-company
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
物业总平台
property-company
Commits
06366d6d
提交
06366d6d
authored
7月 19, 2023
作者:
何忠建
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
多域名地址设置
上级
d76e81ce
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
27 行增加
和
1 行删除
+27
-1
validate.js
src/utils/validate.js
+6
-0
NoticeForm.vue
src/views/base/housing/modules/NoticeForm.vue
+21
-1
没有找到文件。
src/utils/validate.js
浏览文件 @
06366d6d
...
@@ -29,3 +29,9 @@ export function isPhone (s) {
...
@@ -29,3 +29,9 @@ export function isPhone (s) {
export
function
isURL
(
s
)
{
export
function
isURL
(
s
)
{
return
/^http
[
s
]?
:
\/\/
.*/
.
test
(
s
)
return
/^http
[
s
]?
:
\/\/
.*/
.
test
(
s
)
}
}
/* 校验字母*/
export
function
alphanumeric
(
s
)
{
return
/^
[
a-zA-Z
]
+$/
.
test
(
s
)
}
src/views/base/housing/modules/NoticeForm.vue
浏览文件 @
06366d6d
...
@@ -86,6 +86,14 @@
...
@@ -86,6 +86,14 @@
<a-input
v-model=
"model.adminPassword"
placeholder=
"请输入管理员登录密码"
></a-input>
<a-input
v-model=
"model.adminPassword"
placeholder=
"请输入管理员登录密码"
></a-input>
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:span=
"12"
>
<a-form-model-item
label=
"访问域名前缀"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"accessAddress"
>
<a-input
v-model=
"model.accessAddress"
placeholder=
"请输入访问域名前缀"
addon-after=
".group.hjxbc.cn"
></a-input>
<p
v-if=
"model.accessAddress"
>
访问域名:
{{
model
.
accessAddress
}}
.group.hjxbc.cn
</p>
</a-form-model-item>
</a-col>
</a-row>
</a-row>
<a-row>
<a-row>
<a-col
:span=
"24"
>
<a-col
:span=
"24"
>
...
@@ -104,7 +112,7 @@
...
@@ -104,7 +112,7 @@
import
{
httpAction
,
getAction
}
from
'@/api/manage'
import
{
httpAction
,
getAction
}
from
'@/api/manage'
import
{
validateDuplicateValue
}
from
'@/utils/util'
import
{
validateDuplicateValue
}
from
'@/utils/util'
import
{
ajaxGetDictItems
,
getDictItemsFromCache
}
from
'@/api/api'
import
{
ajaxGetDictItems
,
getDictItemsFromCache
}
from
'@/api/api'
import
{
isMobile
}
from
'@/utils/validate'
import
{
isMobile
,
alphanumeric
}
from
'@/utils/validate'
export
default
{
export
default
{
name
:
'PropertyChargruleForm'
,
name
:
'PropertyChargruleForm'
,
...
@@ -126,6 +134,13 @@
...
@@ -126,6 +134,13 @@
callback
(
'请输入正确的联系人电话!'
);
callback
(
'请输入正确的联系人电话!'
);
}
}
}
}
const
isAlphanumeric
=
(
rule
,
value
,
callback
)
=>
{
if
(
value
&&
alphanumeric
(
value
))
{
callback
()
}
else
{
callback
(
'请输入带字母的域名前缀'
)
}
}
return
{
return
{
model
:{
model
:{
communityName
:
''
,
communityName
:
''
,
...
@@ -144,6 +159,7 @@
...
@@ -144,6 +159,7 @@
adminPhone
:
''
,
adminPhone
:
''
,
adminPassword
:
''
,
adminPassword
:
''
,
adminAvatar
:
''
,
adminAvatar
:
''
,
accessAddress
:
''
,
},
},
labelCol
:
{
labelCol
:
{
xs
:
{
span
:
24
},
xs
:
{
span
:
24
},
...
@@ -168,6 +184,10 @@
...
@@ -168,6 +184,10 @@
{
validator
:
validateToNextPhone
}
{
validator
:
validateToNextPhone
}
],
],
adminPassword
:
[{
required
:
true
,
message
:
'请输入管理员登录密码'
,
trigger
:
'blur'
}],
adminPassword
:
[{
required
:
true
,
message
:
'请输入管理员登录密码'
,
trigger
:
'blur'
}],
accessAddress
:
[
{
required
:
true
,
message
:
'请输入访问域名前缀'
,
trigger
:
'blur'
},
{
validator
:
isAlphanumeric
},
],
adminAvatar
:
[{
required
:
true
,
message
:
'请上传管理员头像'
,
trigger
:
'blur'
}]
adminAvatar
:
[{
required
:
true
,
message
:
'请上传管理员头像'
,
trigger
:
'blur'
}]
},
},
url
:
{
url
:
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论