Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
AI推理平台
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lichunliang
AI推理平台
Commits
10aec2f3
Commit
10aec2f3
authored
Feb 17, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: maxlength tel格式
parent
5c08fbe2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
11 deletions
+16
-11
.env
.env
+3
-3
index.vue
src/views/manage/role/index.vue
+2
-2
index.vue
src/views/manage/user/index.vue
+6
-1
vite.config.ts
vite.config.ts
+5
-5
No files found.
.env
View file @
10aec2f3
...
...
@@ -74,10 +74,10 @@ VITE_STORAGE_PREFIX=SOY_
# ============================================ old
# 开发环境 - 视频流地址
VITE_VIDEO_URL=ws://192.168.2.1
6
:9999
VITE_VIDEO_URL=ws://192.168.2.1
4
:9999
# 开发环境 - 所有服务接口地址
VITE_SERVICE_URL=http://192.168.2.1
6
:9998
VITE_SERVICE_URL=http://192.168.2.1
4
:9998
# 开发环境 - WebSocket 全局地址
VITE_WEBSOCKET_URL=ws://192.168.2.1
6
:9998
VITE_WEBSOCKET_URL=ws://192.168.2.1
4
:9998
src/views/manage/role/index.vue
View file @
10aec2f3
...
...
@@ -515,11 +515,11 @@ onMounted(() => {
<NForm
label-placement=
"left"
label-width=
"auto"
>
<NFormItem
required
label=
"角色名称"
>
<NInput
v-model:value=
"form.roleName"
placeholder=
"请输入
任务名称"
/>
<NInput
v-model:value=
"form.roleName"
placeholder=
"请输入
角色名称"
maxlength=
90
/>
</NFormItem>
<NFormItem
required
label=
"角色描述"
>
<n-input
v-model:value=
"form.roleRemark"
placeholder=
"请输入
任务地址"
type=
"textarea"
:autosize=
"
{
<n-input
v-model:value=
"form.roleRemark"
placeholder=
"请输入
角色描述"
maxlength=
90
type=
"textarea"
:autosize=
"
{
minRows: 3,
maxRows: 5,
}" />
...
...
src/views/manage/user/index.vue
View file @
10aec2f3
...
...
@@ -13,6 +13,8 @@ import { api_algorithms, api_delPushItem, api_findPushItem, api_modifyAlgorithms
import
type
{
ItablePagination
}
from
'
@/views/AlgorithmConfiguration/index
'
;
// api_userList api_addUserInfo api_modifyUserInfo api_delUserInfo api_modifyUserPass
import
{
REG_PHONE
}
from
'
@/constants/reg
'
;
import
{
api_getKeyOfAnaly
,
...
...
@@ -113,6 +115,9 @@ const addUserItem = async () => {
if
(
form
.
name
&&
form
.
phone
&&
form
.
roleId
&&
form
.
userName
)
{
if
(
isAddUserModalType
.
value
)
{
if
(
!
REG_PHONE
.
test
(
form
.
phone
))
{
return
message
.
error
(
'
手机号格式不正确!
'
);
}
if
(
!
form
.
password
)
{
return
message
.
error
(
'
选项皆为必选项!
'
);
}
...
...
@@ -642,7 +647,7 @@ onMounted(() => {
</NFormItem>
<NFormItem
required
label=
"手机号"
>
<NInput
v-model:value=
"form.phone"
placeholder=
"请输入"
/>
<NInput
v-model:value=
"form.phone"
placeholder=
"请输入"
maxlength=
11
/>
</NFormItem>
<NFormItem
required
label=
"真实姓名"
>
...
...
vite.config.ts
View file @
10aec2f3
...
...
@@ -5,21 +5,21 @@ import { setupVitePlugins } from './build/plugins';
import
{
createViteProxy
,
getBuildTime
}
from
'
./build/config
'
;
// export const proxyTarget = 'http://192.168.3.248:9996';
// export const proxyTarget = 'http://192.168.2.1
6
:9998';
export
const
proxyTarget
=
'
http://192.168.2.1
6
:9998
'
;
// export const proxyTarget = 'http://192.168.2.1
4
:9998';
export
const
proxyTarget
=
'
http://192.168.2.1
4
:9998
'
;
// export const proxyTarget = 'http://192.168.1.119:9996';
// export const proxyTarget = 'http://192.168.1.119:9996';
// 视频地址
export
const
videdUrl
=
'
ws://192.168.2.1
6
:9999
'
;
export
const
videdUrl
=
'
ws://192.168.2.1
4
:9999
'
;
// 固定接口地址
export
const
apiUrl
=
'
http://192.168.2.1
6
:9998
'
;
export
const
apiUrl
=
'
http://192.168.2.1
4
:9998
'
;
// WS 地址
export
const
wsUrl
=
'
ws://192.168.2.1
6
:9999
'
;
export
const
wsUrl
=
'
ws://192.168.2.1
4
:9999
'
;
export
default
defineConfig
(
configEnv
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment