Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
李苏
sgaqgl-vue
Commits
80590df7
Commit
80590df7
authored
Nov 22, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
必填字段优化
parent
8756ceb7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
request.js
src/utils/request.js
+1
-1
edit.vue
src/views/dangerManagement/enterSafetyRecords/edit.vue
+25
-1
No files found.
src/utils/request.js
View file @
80590df7
...
...
@@ -87,7 +87,7 @@ service.interceptors.response.use(res => {
type
:
'error'
})
return
Promise
.
reject
(
new
Error
(
msg
))
}
else
if
(
code
!==
200
&&
code
!=
1
)
{
}
else
if
(
code
!==
200
&&
code
!=
=
'1'
)
{
Notification
.
error
({
title
:
msg
})
...
...
src/views/dangerManagement/enterSafetyRecords/edit.vue
View file @
80590df7
...
...
@@ -186,7 +186,31 @@
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
fxd
:
[
{
required
:
true
}
],
fxrq
:[
{
required
:
true
}
],
yhdd
:[
{
required
:
true
}
],
flid
:[
{
required
:
true
}
],
dj
:[
{
required
:
true
}
],
bmid
:[
{
required
:
true
}
],
nr
:[
{
required
:
true
}
],
yqzgsj
:[
{
required
:
true
}
]
}
}
},
...
...
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