Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
SHR
/
tFIMS
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c7a7bf55
authored
Sep 10, 2019
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/glsx-web/tFIMS
2 parents
d59c1941
e257acd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/views/deviceManagement/editDialog.vue
src/views/deviceManagement/editDialog.vue
View file @
c7a7bf5
...
@@ -154,7 +154,7 @@ export default {
...
@@ -154,7 +154,7 @@ export default {
methods
:
{
methods
:
{
async
isCodeExist
(
rule
,
value
,
callback
)
{
async
isCodeExist
(
rule
,
value
,
callback
)
{
if
(
this
.
deviceNum
!==
value
&&
this
.
deviceName
!==
this
.
editForm
.
deviceName
)
{
if
(
this
.
deviceNum
!==
value
||
this
.
deviceName
!==
this
.
editForm
.
deviceName
)
{
const
res
=
await
isExistApi
({
deviceNum
:
value
,
deviceName
:
this
.
editForm
.
deviceName
,
stationCode
:
this
.
editForm
.
stationCode
})
const
res
=
await
isExistApi
({
deviceNum
:
value
,
deviceName
:
this
.
editForm
.
deviceName
,
stationCode
:
this
.
editForm
.
stationCode
})
// console.log(res)
// console.log(res)
res
.
deviceNum
?
callback
(
new
Error
(
rule
.
message
))
:
callback
()
res
.
deviceNum
?
callback
(
new
Error
(
rule
.
message
))
:
callback
()
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment