Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
oEshield
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 049d85fe
authored
Apr 26, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增围栏关联设备增加参数vdId
1 parent
bc6042a3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
src/pages/monitor/fence_userlist.vue
src/pages/monitor/userList.vue
src/pages/monitor/fence_userlist.vue
View file @
049d85f
...
@@ -125,7 +125,7 @@ import userListImport from "./userListImport.vue";
...
@@ -125,7 +125,7 @@ import userListImport from "./userListImport.vue";
import
InfiniteLoading
from
"vue-infinite-loading"
;
import
InfiniteLoading
from
"vue-infinite-loading"
;
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
{
GET_ELECFENCE_LINKSNS
}
from
"@/api/services/fence"
;
import
{
GET_ELECFENCE_LINKSNS
}
from
"@/api/services/fence"
;
import
{
deepClone
}
from
"@/utils/utils"
;
import
{
deepClone
,
showToast
}
from
"@/utils/utils"
;
export
default
{
export
default
{
name
:
"UserList"
,
name
:
"UserList"
,
props
:
[
"userListModalVisible"
,
"userData"
,
"init"
,
"shopId"
],
props
:
[
"userListModalVisible"
,
"userData"
,
"init"
,
"shopId"
],
...
@@ -232,6 +232,12 @@ export default {
...
@@ -232,6 +232,12 @@ export default {
// 保存数据
// 保存数据
sure
()
{
sure
()
{
let
list
=
deepClone
(
this
.
chosenList
);
let
list
=
deepClone
(
this
.
chosenList
);
if
(
list
.
length
>
2000
)
{
showToast
({
message
:
"最多关联2000个设备"
,
});
return
false
;
}
const
userdata
=
[];
const
userdata
=
[];
list
.
map
((
k
)
=>
{
list
.
map
((
k
)
=>
{
let
o
=
{
let
o
=
{
...
@@ -241,6 +247,7 @@ export default {
...
@@ -241,6 +247,7 @@ export default {
userTel
:
k
.
userTel
,
userTel
:
k
.
userTel
,
address
:
k
.
address
,
address
:
k
.
address
,
time
:
k
.
time
,
time
:
k
.
time
,
vdId
:
k
.
vdId
,
};
};
userdata
.
push
(
o
);
userdata
.
push
(
o
);
});
});
...
...
src/pages/monitor/userList.vue
View file @
049d85f
...
@@ -295,7 +295,8 @@ export default{
...
@@ -295,7 +295,8 @@ export default{
sn
:
snsItem
,
sn
:
snsItem
,
name
:
obj
.
name
,
name
:
obj
.
name
,
vin
:
obj
.
vin
,
vin
:
obj
.
vin
,
userTel
:
obj
.
userTel
userTel
:
obj
.
userTel
,
vdId
:
obj
.
vdId
});
});
})
})
}
else
{
}
else
{
...
@@ -303,7 +304,8 @@ export default{
...
@@ -303,7 +304,8 @@ export default{
sn
:
obj
.
sns
,
sn
:
obj
.
sns
,
name
:
obj
.
name
,
name
:
obj
.
name
,
vin
:
obj
.
vin
,
vin
:
obj
.
vin
,
userTel
:
obj
.
userTel
userTel
:
obj
.
userTel
,
vdId
:
obj
.
vdId
});
});
}
}
})
})
...
...
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