Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lbs-gpsbd-web
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
yangkaiyi
lbs-gpsbd-web
Commits
84859b65
Commit
84859b65
authored
Apr 30, 2021
by
yangkaiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
把“设备”替换成 “重要有害植物”,格式化代码,无其他改动
parent
753ab675
Show whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
759 additions
and
730 deletions
+759
-730
api.js
src/api/api.js
+18
-18
Main.vue
src/assets/images/Main.vue
+3
-3
index.vue
src/components/FlvPlayer/index.vue
+1
-1
zh_CN.js
src/i18n/langs/zh_CN.js
+17
-16
defineSteps.js
src/utils/defineSteps.js
+9
-9
TabDevices.vue
src/views/distributor/components/TabDevices.vue
+29
-15
search.vue
src/views/distributor/search.vue
+1
-1
userinfo.vue
src/views/distributor/userinfo.vue
+3
-3
Device.vue
src/views/map/components/menu/Device.vue
+17
-7
Menu.vue
src/views/map/components/menu/Menu.vue
+12
-12
Control.vue
src/views/map/components/playback/Control.vue
+1
-1
Geofence.vue
src/views/map/components/tools/Geofence.vue
+1
-1
Message.vue
src/views/map/components/tools/Message.vue
+1
-1
DeviceStatistics.vue
src/views/map/components/user/DeviceStatistics.vue
+2
-2
Groups.vue
src/views/map/components/user/Groups.vue
+2
-2
StopsStatistics.vue
src/views/map/components/user/StopsStatistics.vue
+5
-1
index.vue
src/views/map/index.vue
+2
-2
InDevice.vue
src/views/system/components/InDevice.vue
+2
-2
PanelGroup.vue
src/views/system/components/PanelGroup.vue
+1
-1
PieChart.vue
src/views/system/components/PieChart.vue
+1
-1
TransferDevice.vue
src/views/system/components/TransferDevice.vue
+2
-2
dashboard.vue
src/views/system/dashboard.vue
+1
-1
devices.vue
src/views/system/devices.vue
+260
-260
devicetypes.vue
src/views/system/system/devicetypes.vue
+2
-2
session.vue
src/views/system/system/session.vue
+1
-1
users.vue
src/views/system/users.vue
+334
-334
actions.js
src/vuex/actions.js
+3
-3
user.js
src/vuex/modules/user.js
+14
-14
mutation-types.js
src/vuex/mutation-types.js
+12
-12
mutations.js
src/vuex/mutations.js
+2
-2
No files found.
src/api/api.js
View file @
84859b65
...
@@ -15,17 +15,17 @@ export const userAdd = (params) => {
...
@@ -15,17 +15,17 @@ export const userAdd = (params) => {
return
axios
.
post
(
`users`
,
params
,
true
).
then
((
res
)
=>
res
.
data
);
return
axios
.
post
(
`users`
,
params
,
true
).
then
((
res
)
=>
res
.
data
);
};
};
// 新增
设备
// 新增
重要有害植物
export
const
deviceAdd
=
(
params
)
=>
{
export
const
deviceAdd
=
(
params
)
=>
{
return
axios
.
post
(
`devices`
,
params
).
then
((
res
)
=>
res
.
data
);
return
axios
.
post
(
`devices`
,
params
).
then
((
res
)
=>
res
.
data
);
};
};
// 删除
设备
// 删除
重要有害植物
export
const
delDevice
=
(
deviceId
)
=>
{
export
const
delDevice
=
(
deviceId
)
=>
{
return
axios
.
delete
(
`devices/`
+
deviceId
).
then
((
res
)
=>
res
.
data
);
return
axios
.
delete
(
`devices/`
+
deviceId
).
then
((
res
)
=>
res
.
data
);
};
};
// 更新
设备
// 更新
重要有害植物
export
const
updateDevice
=
(
params
)
=>
{
export
const
updateDevice
=
(
params
)
=>
{
return
axios
.
put
(
`devices/`
+
params
.
id
,
params
).
then
((
res
)
=>
res
.
data
);
return
axios
.
put
(
`devices/`
+
params
.
id
,
params
).
then
((
res
)
=>
res
.
data
);
};
};
...
@@ -187,7 +187,7 @@ export const getCommonRoles = (params) => {
...
@@ -187,7 +187,7 @@ export const getCommonRoles = (params) => {
return
axios
.
get
(
`common/roles`
).
then
((
res
)
=>
res
.
data
);
return
axios
.
get
(
`common/roles`
).
then
((
res
)
=>
res
.
data
);
};
};
// 获取分组
设备
的树形机构
// 获取分组
重要有害植物
的树形机构
export
const
getDevicesTree
=
(
params
)
=>
{
export
const
getDevicesTree
=
(
params
)
=>
{
return
axios
.
get
(
`devices/tree`
).
then
((
res
)
=>
res
.
data
);
return
axios
.
get
(
`devices/tree`
).
then
((
res
)
=>
res
.
data
);
};
};
...
@@ -226,19 +226,19 @@ export const getGeofenceIdsByGroupId = (id) => {
...
@@ -226,19 +226,19 @@ export const getGeofenceIdsByGroupId = (id) => {
return
axios
.
get
(
`groups/geofenceids/`
+
id
).
then
((
res
)
=>
res
.
data
);
return
axios
.
get
(
`groups/geofenceids/`
+
id
).
then
((
res
)
=>
res
.
data
);
};
};
// 获取
设备
信息
// 获取
重要有害植物
信息
export
const
getDeviceInfo
=
(
id
)
=>
{
export
const
getDeviceInfo
=
(
id
)
=>
{
return
axios
.
get
(
`devices/`
+
id
).
then
((
res
)
=>
res
.
data
);
return
axios
.
get
(
`devices/`
+
id
).
then
((
res
)
=>
res
.
data
);
};
};
// 统计
设备
信息
// 统计
重要有害植物
信息
export
const
getStatisticsDevice
=
(
params
)
=>
{
export
const
getStatisticsDevice
=
(
params
)
=>
{
return
axios
return
axios
.
get
(
`statistics/device`
,
{
params
:
params
})
.
get
(
`statistics/device`
,
{
params
:
params
})
.
then
((
res
)
=>
res
.
data
);
.
then
((
res
)
=>
res
.
data
);
};
};
// 移动分组
设备
// 移动分组
重要有害植物
export
const
moveGroup
=
(
params
)
=>
{
export
const
moveGroup
=
(
params
)
=>
{
return
axios
.
put
(
`groups/move`
,
params
).
then
((
res
)
=>
res
.
data
);
return
axios
.
put
(
`groups/move`
,
params
).
then
((
res
)
=>
res
.
data
);
};
};
...
@@ -278,7 +278,7 @@ export const permissionSort = (params) => {
...
@@ -278,7 +278,7 @@ export const permissionSort = (params) => {
return
axios
.
put
(
`permissions/sort`
,
params
).
then
((
res
)
=>
res
.
data
);
return
axios
.
put
(
`permissions/sort`
,
params
).
then
((
res
)
=>
res
.
data
);
};
};
// 管理员获取
设备
列表
// 管理员获取
重要有害植物
列表
export
const
getAllDevices
=
(
params
)
=>
{
export
const
getAllDevices
=
(
params
)
=>
{
return
axios
.
get
(
`devices/all`
,
{
params
:
params
}).
then
((
res
)
=>
res
.
data
);
return
axios
.
get
(
`devices/all`
,
{
params
:
params
}).
then
((
res
)
=>
res
.
data
);
};
};
...
@@ -348,14 +348,14 @@ export const updatePoi = (params) => {
...
@@ -348,14 +348,14 @@ export const updatePoi = (params) => {
return
axios
.
put
(
`pois`
,
params
).
then
((
res
)
=>
res
.
data
);
return
axios
.
put
(
`pois`
,
params
).
then
((
res
)
=>
res
.
data
);
};
};
// 管理员获取
设备
列表
// 管理员获取
重要有害植物
列表
export
const
getCmdRecords
=
(
params
)
=>
{
export
const
getCmdRecords
=
(
params
)
=>
{
return
axios
return
axios
.
get
(
`command/records`
,
{
params
:
params
})
.
get
(
`command/records`
,
{
params
:
params
})
.
then
((
res
)
=>
res
.
data
);
.
then
((
res
)
=>
res
.
data
);
};
};
// 获取
设备
的媒体信息
// 获取
重要有害植物
的媒体信息
export
const
getMedias
=
(
params
)
=>
{
export
const
getMedias
=
(
params
)
=>
{
return
axios
.
get
(
`medias`
,
{
params
:
params
}).
then
((
res
)
=>
res
.
data
);
return
axios
.
get
(
`medias`
,
{
params
:
params
}).
then
((
res
)
=>
res
.
data
);
};
};
...
@@ -375,7 +375,7 @@ export const installThird = (params) => {
...
@@ -375,7 +375,7 @@ export const installThird = (params) => {
return
axios
.
post
(
`install/third`
,
params
).
then
((
res
)
=>
res
.
data
);
return
axios
.
post
(
`install/third`
,
params
).
then
((
res
)
=>
res
.
data
);
};
};
// 获取
设备
的停留记录
// 获取
重要有害植物
的停留记录
export
const
getStatisticsStops
=
(
params
)
=>
{
export
const
getStatisticsStops
=
(
params
)
=>
{
return
axios
return
axios
.
get
(
`statistics/stop`
,
{
params
:
params
})
.
get
(
`statistics/stop`
,
{
params
:
params
})
...
@@ -387,7 +387,7 @@ export const getConfigGlobal = (params) => {
...
@@ -387,7 +387,7 @@ export const getConfigGlobal = (params) => {
return
axios
.
get
(
`config/global`
,
{
params
:
params
}).
then
((
res
)
=>
res
.
data
);
return
axios
.
get
(
`config/global`
,
{
params
:
params
}).
then
((
res
)
=>
res
.
data
);
};
};
// 获取统计的在线用户和
设备
// 获取统计的在线用户和
重要有害植物
export
const
getStatisticsOnline
=
(
params
)
=>
{
export
const
getStatisticsOnline
=
(
params
)
=>
{
return
axios
.
get
(
`statistics/online`
).
then
((
res
)
=>
res
.
data
);
return
axios
.
get
(
`statistics/online`
).
then
((
res
)
=>
res
.
data
);
};
};
...
@@ -405,7 +405,7 @@ export const getDriving = (params) => {
...
@@ -405,7 +405,7 @@ export const getDriving = (params) => {
return
axios
.
get
(
`api/driving`
,
{
params
:
params
}).
then
((
res
)
=>
res
.
data
);
return
axios
.
get
(
`api/driving`
,
{
params
:
params
}).
then
((
res
)
=>
res
.
data
);
};
};
// 获取所有
设备
的最后位置
// 获取所有
重要有害植物
的最后位置
export
const
getAllPositions
=
(
params
)
=>
{
export
const
getAllPositions
=
(
params
)
=>
{
return
axios
.
get
(
`positions/all`
).
then
((
res
)
=>
res
.
data
);
return
axios
.
get
(
`positions/all`
).
then
((
res
)
=>
res
.
data
);
};
};
...
@@ -437,7 +437,7 @@ export const getVideoSessions = (params) => {
...
@@ -437,7 +437,7 @@ export const getVideoSessions = (params) => {
return
axios
.
get
(
`session/video`
).
then
((
res
)
=>
res
.
data
);
return
axios
.
get
(
`session/video`
).
then
((
res
)
=>
res
.
data
);
};
};
// 添加
设备
类型指令
// 添加
重要有害植物
类型指令
export
const
typeCommandBind
=
(
params
)
=>
{
export
const
typeCommandBind
=
(
params
)
=>
{
return
axios
.
post
(
`devicetypes/bind`
,
params
).
then
((
res
)
=>
res
.
data
);
return
axios
.
post
(
`devicetypes/bind`
,
params
).
then
((
res
)
=>
res
.
data
);
};
};
...
@@ -532,7 +532,7 @@ export const getTaskDetail = (params) => {
...
@@ -532,7 +532,7 @@ export const getTaskDetail = (params) => {
.
then
((
res
)
=>
res
.
data
);
.
then
((
res
)
=>
res
.
data
);
};
};
// 转移
设备
// 转移
重要有害植物
export
const
transferDevices
=
(
params
)
=>
{
export
const
transferDevices
=
(
params
)
=>
{
return
axios
.
put
(
`devices/transfer`
,
params
).
then
((
res
)
=>
res
.
data
);
return
axios
.
put
(
`devices/transfer`
,
params
).
then
((
res
)
=>
res
.
data
);
};
};
...
@@ -564,12 +564,12 @@ export const getChildrens = (params) => {
...
@@ -564,12 +564,12 @@ export const getChildrens = (params) => {
.
then
((
res
)
=>
res
.
data
);
.
then
((
res
)
=>
res
.
data
);
};
};
// 获取
设备
列表
// 获取
重要有害植物
列表
export
const
getDevicesById
=
(
params
)
=>
{
export
const
getDevicesById
=
(
params
)
=>
{
return
axios
.
get
(
`devices/list`
,
{
params
:
params
}).
then
((
res
)
=>
res
.
data
);
return
axios
.
get
(
`devices/list`
,
{
params
:
params
}).
then
((
res
)
=>
res
.
data
);
};
};
// 批量转移
设备
// 批量转移
重要有害植物
export
const
moveDevices
=
(
params
)
=>
{
export
const
moveDevices
=
(
params
)
=>
{
return
axios
.
put
(
`devices/move`
,
params
).
then
((
res
)
=>
res
.
data
);
return
axios
.
put
(
`devices/move`
,
params
).
then
((
res
)
=>
res
.
data
);
};
};
...
@@ -579,7 +579,7 @@ export const moveUser = (params) => {
...
@@ -579,7 +579,7 @@ export const moveUser = (params) => {
return
axios
.
put
(
`users/move`
,
params
).
then
((
res
)
=>
res
.
data
);
return
axios
.
put
(
`users/move`
,
params
).
then
((
res
)
=>
res
.
data
);
};
};
// 搜索
设备
// 搜索
重要有害植物
export
const
searchDevices
=
(
params
)
=>
{
export
const
searchDevices
=
(
params
)
=>
{
return
axios
return
axios
.
get
(
`devices/search`
,
{
params
:
params
})
.
get
(
`devices/search`
,
{
params
:
params
})
...
...
src/assets/images/Main.vue
View file @
84859b65
...
@@ -21,19 +21,19 @@
...
@@ -21,19 +21,19 @@
<li>
<li>
<b
class=
"animation-1"
></b><b
class=
"animation-2"
></b
<b
class=
"animation-1"
></b><b
class=
"animation-2"
></b
><b
class=
"animation-3"
></b>
><b
class=
"animation-3"
></b>
<p>
在线
设备
</p>
<p>
在线
重要有害植物
</p>
<strong>
3174
</strong>
<strong>
3174
</strong>
</li>
</li>
<li>
<li>
<b
class=
"animation-1"
></b><b
class=
"animation-2"
></b
<b
class=
"animation-1"
></b><b
class=
"animation-2"
></b
><b
class=
"animation-3"
></b>
><b
class=
"animation-3"
></b>
<p>
离线
设备
</p>
<p>
离线
重要有害植物
</p>
<strong>
6445
</strong>
<strong>
6445
</strong>
</li>
</li>
<li>
<li>
<b
class=
"animation-1"
></b><b
class=
"animation-2"
></b
<b
class=
"animation-1"
></b><b
class=
"animation-2"
></b
><b
class=
"animation-3"
></b>
><b
class=
"animation-3"
></b>
<p>
报警
设备
</p>
<p>
报警
重要有害植物
</p>
<strong>
6783
</strong>
<strong>
6783
</strong>
</li>
</li>
<li>
<li>
...
...
src/components/FlvPlayer/index.vue
View file @
84859b65
...
@@ -200,7 +200,7 @@ export default {
...
@@ -200,7 +200,7 @@ export default {
<
style
scoped
>
<
style
scoped
>
/**
/**
设备
支持子码流(分辨率 352 * 288)与主码流(分辨率 1280 * 720)
重要有害植物
支持子码流(分辨率 352 * 288)与主码流(分辨率 1280 * 720)
**/
**/
.lbs-video-context
{
.lbs-video-context
{
position
:
sticky
;
position
:
sticky
;
...
...
src/i18n/langs/zh_CN.js
View file @
84859b65
...
@@ -8,12 +8,12 @@ const zh_CN = {
...
@@ -8,12 +8,12 @@ const zh_CN = {
edit
:
"编辑"
,
edit
:
"编辑"
,
delete
:
"删除"
,
delete
:
"删除"
,
clean
:
"清除"
,
clean
:
"清除"
,
device
:
"
设备
"
,
device
:
"
重要有害植物
"
,
type
:
"类型"
,
type
:
"类型"
,
deviceType
:
"
设备
类型"
,
deviceType
:
"
重要有害植物
类型"
,
deviceImei
:
"
设备
IMEI"
,
deviceImei
:
"
重要有害植物
IMEI"
,
deviceName
:
"
设备
名称"
,
deviceName
:
"
重要有害植物
名称"
,
deviceSim
:
"
设备
卡号"
,
deviceSim
:
"
重要有害植物
卡号"
,
time
:
"时间"
,
time
:
"时间"
,
personal
:
"个人用户"
,
personal
:
"个人用户"
,
enterprise
:
"企业用户"
,
enterprise
:
"企业用户"
,
...
@@ -40,11 +40,11 @@ const zh_CN = {
...
@@ -40,11 +40,11 @@ const zh_CN = {
endTime
:
"结束时间"
,
endTime
:
"结束时间"
,
stopTime
:
"停留时间"
,
stopTime
:
"停留时间"
,
address
:
"地址"
,
address
:
"地址"
,
bindDevice
:
"绑定
设备
"
,
bindDevice
:
"绑定
重要有害植物
"
,
bindGeofence
:
"绑定围栏"
,
bindGeofence
:
"绑定围栏"
,
serverPort
:
"地址端口"
,
serverPort
:
"地址端口"
,
mobilePhone
:
"手机号码"
,
mobilePhone
:
"手机号码"
,
searchDevice
:
"搜索
设备
"
,
searchDevice
:
"搜索
重要有害植物
"
,
online
:
"在线"
,
online
:
"在线"
,
inActive
:
"未激活"
,
inActive
:
"未激活"
,
speedLimit
:
"限速"
,
speedLimit
:
"限速"
,
...
@@ -80,9 +80,9 @@ const zh_CN = {
...
@@ -80,9 +80,9 @@ const zh_CN = {
password2
:
"确认密码"
,
password2
:
"确认密码"
,
},
},
map
:
{
map
:
{
menuDeviceList
:
"
设备
列表"
,
menuDeviceList
:
"
重要有害植物
列表"
,
menuDeviceAdd
:
"新增
设备
"
,
menuDeviceAdd
:
"新增
重要有害植物
"
,
menuDeviceEdit
:
"编辑
设备
"
,
menuDeviceEdit
:
"编辑
重要有害植物
"
,
menuOperation
:
"操作"
,
menuOperation
:
"操作"
,
menuOperHistory
:
"历史轨迹"
,
menuOperHistory
:
"历史轨迹"
,
menuOperGeofence
:
"地理围栏"
,
menuOperGeofence
:
"地理围栏"
,
...
@@ -103,7 +103,7 @@ const zh_CN = {
...
@@ -103,7 +103,7 @@ const zh_CN = {
toolMessage
:
"消息"
,
toolMessage
:
"消息"
,
toolFullScreen
:
"全屏"
,
toolFullScreen
:
"全屏"
,
toolExitFullScreen
:
"退出全屏"
,
toolExitFullScreen
:
"退出全屏"
,
userDeviceStatistics
:
"
设备
统计"
,
userDeviceStatistics
:
"
重要有害植物
统计"
,
userGroupManage
:
"分组管理"
,
userGroupManage
:
"分组管理"
,
userUpdatePass
:
"修改密码"
,
userUpdatePass
:
"修改密码"
,
userUserManual
:
"用户手册"
,
userUserManual
:
"用户手册"
,
...
@@ -135,7 +135,7 @@ const zh_CN = {
...
@@ -135,7 +135,7 @@ const zh_CN = {
eventFenceEnter
:
"进入围栏"
,
eventFenceEnter
:
"进入围栏"
,
eventFenceExit
:
"离开围栏"
,
eventFenceExit
:
"离开围栏"
,
eventOverSpeed
:
"超速"
,
eventOverSpeed
:
"超速"
,
eventAlarm
:
"
设备
报警"
,
eventAlarm
:
"
重要有害植物
报警"
,
deviceAlarm
:
{
deviceAlarm
:
{
overspeed
:
"超速报警"
,
overspeed
:
"超速报警"
,
sos
:
"求救"
,
sos
:
"求救"
,
...
@@ -162,9 +162,9 @@ const zh_CN = {
...
@@ -162,9 +162,9 @@ const zh_CN = {
createMainGroup
:
"创建顶级分组"
,
createMainGroup
:
"创建顶级分组"
,
},
},
deviceStatistics
:
{
deviceStatistics
:
{
title
:
"
设备
统计"
,
title
:
"
重要有害植物
统计"
,
selectTime
:
"选择日期"
,
selectTime
:
"选择日期"
,
selectDevices
:
"选择
设备
"
,
selectDevices
:
"选择
重要有害植物
"
,
},
},
},
},
tools
:
{
tools
:
{
...
@@ -182,14 +182,15 @@ const zh_CN = {
...
@@ -182,14 +182,15 @@ const zh_CN = {
tips
:
"提示"
,
tips
:
"提示"
,
signOut
:
"确认退出系统?"
,
signOut
:
"确认退出系统?"
,
roadOperation
:
"道路作业 1"
,
roadOperation
:
"道路作业 1"
,
bind
:
"如果设备所在分组已经绑定此围栏,设备可不用单独绑定。"
,
bind
:
"如果重要有害植物所在分组已经绑定此围栏,重要有害植物可不用单独绑定。"
,
installApp1
:
"1、手机扫码安装定位APP"
,
installApp1
:
"1、手机扫码安装定位APP"
,
installApp2
:
"2、添加手机号码到系统中"
,
installApp2
:
"2、添加手机号码到系统中"
,
installApp3
:
"3、使用手机号码登录App"
,
installApp3
:
"3、使用手机号码登录App"
,
remarks
:
"请输入备注内容"
,
remarks
:
"请输入备注内容"
,
unlimitedSpeed
:
"不限速"
,
unlimitedSpeed
:
"不限速"
,
total
:
"总共 "
,
total
:
"总共 "
,
theDevice
:
" 个
设备
"
,
theDevice
:
" 个
重要有害植物
"
,
content
:
"反馈内容"
,
content
:
"反馈内容"
,
},
},
system
:
{},
system
:
{},
...
...
src/utils/defineSteps.js
View file @
84859b65
...
@@ -2,27 +2,27 @@ const steps = [
...
@@ -2,27 +2,27 @@ const steps = [
{
{
element
:
".steps-addDevice"
,
element
:
".steps-addDevice"
,
popover
:
{
popover
:
{
title
:
"创建
设备
"
,
title
:
"创建
重要有害植物
"
,
description
:
description
:
"在这里添加各种类型
设备
,如果是手机APP定位(GPSBDTracker)<br>1.扫码下载APP<br><img src=http://base.gpsbd.com/down/gpsbd_tracker.png width=120 />,<br>2.将你的手机号码添加到系统中<br>3.使用手机号码登录下载的APP并启动即可定位<br>"
,
"在这里添加各种类型
重要有害植物
,如果是手机APP定位(GPSBDTracker)<br>1.扫码下载APP<br><img src=http://base.gpsbd.com/down/gpsbd_tracker.png width=120 />,<br>2.将你的手机号码添加到系统中<br>3.使用手机号码登录下载的APP并启动即可定位<br>"
,
position
:
"bottom"
,
position
:
"bottom"
,
},
},
},
},
{
{
element
:
".steps-updateDevice"
,
element
:
".steps-updateDevice"
,
popover
:
{
popover
:
{
title
:
"修改
设备
"
,
title
:
"修改
重要有害植物
"
,
description
:
description
:
"在这里修改编辑
设备的基本信息,先需要选中菜单中的设备
然后可激活该按钮"
,
"在这里修改编辑
重要有害植物的基本信息,先需要选中菜单中的重要有害植物
然后可激活该按钮"
,
position
:
"bottom"
,
position
:
"bottom"
,
},
},
},
},
{
{
element
:
".steps-delDevice"
,
element
:
".steps-delDevice"
,
popover
:
{
popover
:
{
title
:
"删除
设备
"
,
title
:
"删除
重要有害植物
"
,
description
:
description
:
"删除
设备,请慎重操作,将一并清理设备
的所有轨迹和其他关联信息"
,
"删除
重要有害植物,请慎重操作,将一并清理重要有害植物
的所有轨迹和其他关联信息"
,
position
:
"bottom"
,
position
:
"bottom"
,
},
},
},
},
...
@@ -39,7 +39,7 @@ const steps = [
...
@@ -39,7 +39,7 @@ const steps = [
popover
:
{
popover
:
{
title
:
"跟踪开关"
,
title
:
"跟踪开关"
,
description
:
description
:
"点击此按钮可对
设备实时跟踪,保持设备
处于地图的中央位置,再次点击可关闭"
,
"点击此按钮可对
重要有害植物实时跟踪,保持重要有害植物
处于地图的中央位置,再次点击可关闭"
,
position
:
"bottom"
,
position
:
"bottom"
,
},
},
},
},
...
@@ -90,7 +90,7 @@ const steps = [
...
@@ -90,7 +90,7 @@ const steps = [
popover
:
{
popover
:
{
title
:
"地理围栏"
,
title
:
"地理围栏"
,
description
:
description
:
"点击展开和在地图上看到围栏的信息,支持围栏多态形式、并可通过这里创建 修改 删除维护,绑定围栏和
设备
的关联关系"
,
"点击展开和在地图上看到围栏的信息,支持围栏多态形式、并可通过这里创建 修改 删除维护,绑定围栏和
重要有害植物
的关联关系"
,
position
:
"bottom"
,
position
:
"bottom"
,
},
},
},
},
...
@@ -99,7 +99,7 @@ const steps = [
...
@@ -99,7 +99,7 @@ const steps = [
popover
:
{
popover
:
{
title
:
"事件消息"
,
title
:
"事件消息"
,
description
:
description
:
"这里展示所有
设备
发生的一些事件和报警信息,并在地图上通过动态圈圈显示发生的地理位置"
,
"这里展示所有
重要有害植物
发生的一些事件和报警信息,并在地图上通过动态圈圈显示发生的地理位置"
,
position
:
"bottom"
,
position
:
"bottom"
,
},
},
},
},
...
...
src/views/distributor/components/TabDevices.vue
View file @
84859b65
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<el-table-column
type=
"selection"
></el-table-column>
<el-table-column
type=
"selection"
></el-table-column>
<el-table-column
<el-table-column
prop=
"name"
prop=
"name"
label=
"
设备
名称"
label=
"
重要有害植物
名称"
width=
"180"
width=
"180"
></el-table-column>
></el-table-column>
<el-table-column
prop=
"imei"
label=
"IMEI"
width=
"180"
></el-table-column>
<el-table-column
prop=
"imei"
label=
"IMEI"
width=
"180"
></el-table-column>
...
@@ -69,13 +69,13 @@
...
@@ -69,13 +69,13 @@
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-button
type=
"success"
@
click=
"goTrack()"
>
监控
</el-button>
<el-button
type=
"success"
@
click=
"goTrack()"
>
监控
</el-button>
<el-button
type=
"primary"
@
click=
"addVisible = true"
<el-button
type=
"primary"
@
click=
"addVisible = true"
>
创建
设备
</el-button
>
创建
重要有害植物
</el-button
>
>
<el-button
<el-button
type=
"primary"
type=
"primary"
@
click=
"moveVisible = true"
@
click=
"moveVisible = true"
:disabled=
"selectDevices.length == 0"
:disabled=
"selectDevices.length == 0"
>
转移
设备
</el-button
>
转移
重要有害植物
</el-button
>
>
<el-pagination
<el-pagination
layout=
"total, sizes, prev, pager, next"
layout=
"total, sizes, prev, pager, next"
...
@@ -90,12 +90,15 @@
...
@@ -90,12 +90,15 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-dialog
title=
"创建
设备
"
width=
"50%"
:visible
.
sync=
"addVisible"
>
<el-dialog
title=
"创建
重要有害植物
"
width=
"50%"
:visible
.
sync=
"addVisible"
>
<el-form
label-width=
"80px"
:model=
"addForm"
ref=
"addForm"
>
<el-form
label-width=
"80px"
:model=
"addForm"
ref=
"addForm"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"设备类型"
prop=
"typeId"
>
<el-form-item
label=
"重要有害植物类型"
prop=
"typeId"
>
<el-select
v-model=
"addForm.typeId"
placeholder=
"设备类型"
>
<el-select
v-model=
"addForm.typeId"
placeholder=
"重要有害植物类型"
>
<el-option
<el-option
v-for=
"item in this.$store.state.user.dict.deviceTypes"
v-for=
"item in this.$store.state.user.dict.deviceTypes"
:key=
"item.id"
:key=
"item.id"
...
@@ -110,7 +113,11 @@
...
@@ -110,7 +113,11 @@
label=
"IMEI"
label=
"IMEI"
prop=
"imei"
prop=
"imei"
:rules=
"[
:rules=
"[
{ required: true, message: '请输入设备号', trigger: 'blur' },
{
required: true,
message: '请输入重要有害植物号',
trigger: 'blur',
},
{
{
min: 10,
min: 10,
max: 16,
max: 16,
...
@@ -125,7 +132,7 @@
...
@@ -125,7 +132,7 @@
auto-complete=
"off"
auto-complete=
"off"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
设备
名称"
prop=
"name"
>
<el-form-item
label=
"
重要有害植物
名称"
prop=
"name"
>
<el-input
<el-input
type=
"text"
type=
"text"
v-model=
"addForm.name"
v-model=
"addForm.name"
...
@@ -148,7 +155,7 @@
...
@@ -148,7 +155,7 @@
</div>
</div>
</el-dialog>
</el-dialog>
<el-dialog
title=
"转移
设备
"
width=
"50%"
:visible
.
sync=
"moveVisible"
>
<el-dialog
title=
"转移
重要有害植物
"
width=
"50%"
:visible
.
sync=
"moveVisible"
>
<UserTree
mode=
"move"
@
onClickUser=
"onClickUser"
></UserTree>
<UserTree
mode=
"move"
@
onClickUser=
"onClickUser"
></UserTree>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click
.
native=
"moveVisible = false"
>
取消
</el-button>
<el-button
@
click
.
native=
"moveVisible = false"
>
取消
</el-button>
...
@@ -156,12 +163,15 @@
...
@@ -156,12 +163,15 @@
</div>
</div>
</el-dialog>
</el-dialog>
<el-dialog
title=
"编辑
设备
"
width=
"50%"
:visible
.
sync=
"editVisible"
>
<el-dialog
title=
"编辑
重要有害植物
"
width=
"50%"
:visible
.
sync=
"editVisible"
>
<el-form
label-width=
"80px"
:model=
"editForm"
ref=
"editForm"
>
<el-form
label-width=
"80px"
:model=
"editForm"
ref=
"editForm"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"设备类型"
prop=
"typeId"
>
<el-form-item
label=
"重要有害植物类型"
prop=
"typeId"
>
<el-select
v-model=
"editForm.typeId"
placeholder=
"设备类型"
>
<el-select
v-model=
"editForm.typeId"
placeholder=
"重要有害植物类型"
>
<el-option
<el-option
v-for=
"item in this.$store.state.user.dict.deviceTypes"
v-for=
"item in this.$store.state.user.dict.deviceTypes"
:key=
"item.id"
:key=
"item.id"
...
@@ -176,7 +186,11 @@
...
@@ -176,7 +186,11 @@
label=
"IMEI"
label=
"IMEI"
prop=
"imei"
prop=
"imei"
:rules=
"[
:rules=
"[
{ required: true, message: '请输入设备号', trigger: 'blur' },
{
required: true,
message: '请输入重要有害植物号',
trigger: 'blur',
},
{
{
min: 10,
min: 10,
max: 16,
max: 16,
...
@@ -191,7 +205,7 @@
...
@@ -191,7 +205,7 @@
auto-complete=
"off"
auto-complete=
"off"
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
设备
名称"
prop=
"name"
>
<el-form-item
label=
"
重要有害植物
名称"
prop=
"name"
>
<el-input
<el-input
type=
"text"
type=
"text"
v-model=
"editForm.name"
v-model=
"editForm.name"
...
@@ -291,7 +305,7 @@ export default {
...
@@ -291,7 +305,7 @@ export default {
});
});
},
},
handleDelete
(
row
)
{
handleDelete
(
row
)
{
this
.
$confirm
(
"你确定要删除该
设备
吗?"
,
"提示"
,
{
this
.
$confirm
(
"你确定要删除该
重要有害植物
吗?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
type
:
"warning"
,
...
...
src/views/distributor/search.vue
View file @
84859b65
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<el-table-column
type=
"selection"
></el-table-column>
<el-table-column
type=
"selection"
></el-table-column>
<el-table-column
<el-table-column
prop=
"name"
prop=
"name"
label=
"
设备
名称"
label=
"
重要有害植物
名称"
width=
"120"
width=
"120"
></el-table-column>
></el-table-column>
<el-table-column
prop=
"imei"
label=
"IMEI"
width=
"180"
></el-table-column>
<el-table-column
prop=
"imei"
label=
"IMEI"
width=
"180"
></el-table-column>
...
...
src/views/distributor/userinfo.vue
View file @
84859b65
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"
设备
"
name=
"devices"
>
<el-tab-pane
label=
"
重要有害植物
"
name=
"devices"
>
<TabDevices
<TabDevices
:visible=
"currentTab == 'devices'"
:visible=
"currentTab == 'devices'"
:user=
"userInfo"
:user=
"userInfo"
...
@@ -77,8 +77,8 @@
...
@@ -77,8 +77,8 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
TabDevices
from
"./components/TabDevices"
;
//用户
设备
import
TabDevices
from
"./components/TabDevices"
;
//用户
重要有害植物
import
TabUsers
from
"./components/TabUsers"
;
//用户
设备
import
TabUsers
from
"./components/TabUsers"
;
//用户
重要有害植物
import
{
getNodeUserInfo
,
updateUser
,
deleteUser
}
from
"@/api/api"
;
import
{
getNodeUserInfo
,
updateUser
,
deleteUser
}
from
"@/api/api"
;
import
util
from
"@/utils/util"
;
import
util
from
"@/utils/util"
;
export
default
{
export
default
{
...
...
src/views/map/components/menu/Device.vue
View file @
84859b65
...
@@ -12,7 +12,10 @@
...
@@ -12,7 +12,10 @@
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('common.deviceType')"
prop=
"typeId"
>
<el-form-item
:label=
"$t('common.deviceType')"
prop=
"typeId"
>
<el-select
v-model=
"addForm.typeId"
placeholder=
"设备类型"
>
<el-select
v-model=
"addForm.typeId"
placeholder=
"重要有害植物类型"
>
<el-option
<el-option
v-for=
"item in this.$store.state.user.dict.deviceTypes"
v-for=
"item in this.$store.state.user.dict.deviceTypes"
:key=
"item.id"
:key=
"item.id"
...
@@ -48,7 +51,11 @@
...
@@ -48,7 +51,11 @@
"
"
prop=
"imei"
prop=
"imei"
:rules=
"[
:rules=
"[
{ required: true, message: '请输入设备号', trigger: 'blur' },
{
required: true,
message: '请输入重要有害植物号',
trigger: 'blur',
},
{
{
min: 10,
min: 10,
max: 16,
max: 16,
...
@@ -76,7 +83,7 @@
...
@@ -76,7 +83,7 @@
filterable
filterable
allow-create
allow-create
default-first-option
default-first-option
placeholder=
"请选择
设备
视频通道"
placeholder=
"请选择
重要有害植物
视频通道"
>
>
<el-option
<el-option
v-for=
"item in options"
v-for=
"item in options"
...
@@ -160,7 +167,7 @@
...
@@ -160,7 +167,7 @@
filterable
filterable
allow-create
allow-create
default-first-option
default-first-option
placeholder=
"请选择
设备
视频通道"
placeholder=
"请选择
重要有害植物
视频通道"
>
>
<el-option
<el-option
v-for=
"item in options"
v-for=
"item in options"
...
@@ -197,7 +204,10 @@
...
@@ -197,7 +204,10 @@
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('common.deviceType')"
prop=
"typeId"
>
<el-form-item
:label=
"$t('common.deviceType')"
prop=
"typeId"
>
<el-select
v-model=
"editForm.typeId"
placeholder=
"设备类型"
>
<el-select
v-model=
"editForm.typeId"
placeholder=
"重要有害植物类型"
>
<el-option
<el-option
v-for=
"item in this.$store.state.user.dict.deviceTypes"
v-for=
"item in this.$store.state.user.dict.deviceTypes"
:key=
"item.id"
:key=
"item.id"
...
@@ -273,7 +283,7 @@
...
@@ -273,7 +283,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
GroupTree
from
"./GroupTree"
;
//
设备
新增
import
GroupTree
from
"./GroupTree"
;
//
重要有害植物
新增
import
{
deviceAdd
,
updateDevice
}
from
"@/api/api"
;
import
{
deviceAdd
,
updateDevice
}
from
"@/api/api"
;
export
default
{
export
default
{
...
@@ -335,7 +345,7 @@ export default {
...
@@ -335,7 +345,7 @@ export default {
{
key
:
"deviceAddForm"
,
value
:
false
},
{
key
:
"deviceAddForm"
,
value
:
false
},
]);
]);
this
.
$refs
.
addForm
.
resetFields
();
this
.
$refs
.
addForm
.
resetFields
();
this
.
$store
.
dispatch
(
"initData"
);
//初始化
设备
数据
this
.
$store
.
dispatch
(
"initData"
);
//初始化
重要有害植物
数据
});
});
}
}
});
});
...
...
src/views/map/components/menu/Menu.vue
View file @
84859b65
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
<template
slot=
"title"
>
用户列表
</
template
>
<template
slot=
"title"
>
用户列表
</
template
>
<UserTree
mode=
"mapUserTree"
@
onClickUser=
"onClickUser"
></UserTree>
<UserTree
mode=
"mapUserTree"
@
onClickUser=
"onClickUser"
></UserTree>
</el-collapse-item>
</el-collapse-item>
<el-collapse-item
title=
"
设备
列表"
name=
"1"
>
<el-collapse-item
title=
"
重要有害植物
列表"
name=
"1"
>
<
template
slot=
"title"
>
<
template
slot=
"title"
>
设备
列表
重要有害植物
列表
<div
class=
"online-state"
>
<div
class=
"online-state"
>
<el-tooltip
<el-tooltip
class=
"item"
class=
"item"
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
<el-tooltip
<el-tooltip
class="item"
class="item"
effect="dark"
effect="dark"
content="
设备
维护"
content="
重要有害植物
维护"
placement="top-start"
placement="top-start"
>
>
<el-button
<el-button
...
@@ -279,7 +279,7 @@
...
@@ -279,7 +279,7 @@
<
script
>
<
script
>
import
"@/styles/gps-menu.scss"
;
import
"@/styles/gps-menu.scss"
;
import
util
from
"@/utils/util"
;
import
util
from
"@/utils/util"
;
import
DeviceBox
from
"./Device"
;
//
设备
新增
import
DeviceBox
from
"./Device"
;
//
重要有害植物
新增
import
Binds
from
"../common/Binds"
;
//绑定围栏
import
Binds
from
"../common/Binds"
;
//绑定围栏
import
CommandView
from
"../command/CommandView"
;
//命令下发发送界面
import
CommandView
from
"../command/CommandView"
;
//命令下发发送界面
import
Records
from
"../command/Records"
;
import
Records
from
"../command/Records"
;
...
@@ -303,7 +303,7 @@ export default {
...
@@ -303,7 +303,7 @@ export default {
activeIndex
:
"1"
,
activeIndex
:
"1"
,
activeName
:
"1"
,
activeName
:
"1"
,
filterDeviceName
:
""
,
filterDeviceName
:
""
,
selectDevice
:
{},
//选中的列表中的
设备
,
selectDevice
:
{},
//选中的列表中的
重要有害植物
,
optionsMenu
:
[
optionsMenu
:
[
{
{
value
:
"history"
,
value
:
"history"
,
...
@@ -409,7 +409,7 @@ export default {
...
@@ -409,7 +409,7 @@ export default {
]);
]);
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
message
:
"请先选择
设备
"
,
message
:
"请先选择
重要有害植物
"
,
type
:
"error"
,
type
:
"error"
,
});
});
}
}
...
@@ -417,12 +417,12 @@ export default {
...
@@ -417,12 +417,12 @@ export default {
case
"del"
:
case
"del"
:
if
(
!
this
.
$store
.
state
.
user
.
devices
.
selectId
)
{
if
(
!
this
.
$store
.
state
.
user
.
devices
.
selectId
)
{
this
.
$message
({
this
.
$message
({
message
:
"请先选择
设备
"
,
message
:
"请先选择
重要有害植物
"
,
type
:
"error"
,
type
:
"error"
,
});
});
return
;
return
;
}
}
this
.
$confirm
(
"你确定要删除该
设备
吗?"
,
"提示"
,
{
this
.
$confirm
(
"你确定要删除该
重要有害植物
吗?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
type
:
"warning"
,
...
@@ -430,7 +430,7 @@ export default {
...
@@ -430,7 +430,7 @@ export default {
})
})
.
then
(()
=>
{
.
then
(()
=>
{
delDevice
(
this
.
$store
.
state
.
user
.
devices
.
selectId
).
then
((
res
)
=>
{
delDevice
(
this
.
$store
.
state
.
user
.
devices
.
selectId
).
then
((
res
)
=>
{
this
.
$store
.
dispatch
(
"initData"
);
//初始化
设备
数据
this
.
$store
.
dispatch
(
"initData"
);
//初始化
重要有害植物
数据
});
});
})
})
.
catch
(()
=>
{});
.
catch
(()
=>
{});
...
@@ -453,7 +453,7 @@ export default {
...
@@ -453,7 +453,7 @@ export default {
onClickButton
(
item
)
{
onClickButton
(
item
)
{
if
(
this
.
$store
.
state
.
user
.
devices
.
selectId
==
0
)
{
if
(
this
.
$store
.
state
.
user
.
devices
.
selectId
==
0
)
{
this
.
$message
({
this
.
$message
({
message
:
"请先选择
设备
"
,
message
:
"请先选择
重要有害植物
"
,
type
:
"error"
,
type
:
"error"
,
});
});
return
;
return
;
...
@@ -740,7 +740,7 @@ export default {
...
@@ -740,7 +740,7 @@ export default {
});
});
}
else
if
(
device
.
status
==
1
)
{
}
else
if
(
device
.
status
==
1
)
{
this
.
$message
({
this
.
$message
({
message
:
"未定位,请尝试将
设备
移至户外空旷区域"
,
message
:
"未定位,请尝试将
重要有害植物
移至户外空旷区域"
,
type
:
"error"
,
type
:
"error"
,
});
});
}
}
...
@@ -823,7 +823,7 @@ export default {
...
@@ -823,7 +823,7 @@ export default {
// generateToken(id).then(data => {
// generateToken(id).then(data => {
// let monitorUser = {account:'anon',token:data}
// let monitorUser = {account:'anon',token:data}
// localStorage.monitorUser = JSON.stringify(monitorUser);
// localStorage.monitorUser = JSON.stringify(monitorUser);
// this.$store.dispatch('initData'); //初始化
设备
数据
// this.$store.dispatch('initData'); //初始化
重要有害植物
数据
//
//
// })
// })
},
},
...
...
src/views/map/components/playback/Control.vue
View file @
84859b65
...
@@ -353,7 +353,7 @@ export default {
...
@@ -353,7 +353,7 @@ export default {
downLoad
()
{
downLoad
()
{
import
(
"@/vendor/Export2Excel"
).
then
((
excel
)
=>
{
import
(
"@/vendor/Export2Excel"
).
then
((
excel
)
=>
{
const
tHeader
=
[
const
tHeader
=
[
"
设备
"
,
"
重要有害植物
"
,
"经度"
,
"经度"
,
"纬度"
,
"纬度"
,
"速度 km/h"
,
"速度 km/h"
,
...
...
src/views/map/components/tools/Geofence.vue
View file @
84859b65
...
@@ -229,7 +229,7 @@ export default {
...
@@ -229,7 +229,7 @@ export default {
deviceMsgData
:
{},
deviceMsgData
:
{},
bindGeoVisible
:
false
,
bindGeoVisible
:
false
,
districtGeoVisible
:
false
,
districtGeoVisible
:
false
,
by
:
0
,
// 0围栏绑定
设备 1设备
绑定围栏
by
:
0
,
// 0围栏绑定
重要有害植物 1重要有害植物
绑定围栏
geofenceList
:
[],
geofenceList
:
[],
page
:
1
,
page
:
1
,
total
:
0
,
total
:
0
,
...
...
src/views/map/components/tools/Message.vue
View file @
84859b65
...
@@ -255,7 +255,7 @@ export default {
...
@@ -255,7 +255,7 @@ export default {
downLoad
()
{
downLoad
()
{
import
(
"@/vendor/Export2Excel"
).
then
((
excel
)
=>
{
import
(
"@/vendor/Export2Excel"
).
then
((
excel
)
=>
{
const
tHeader
=
[
const
tHeader
=
[
"
设备
号"
,
"
重要有害植物
号"
,
"事件"
,
"事件"
,
"地址"
,
"地址"
,
"围栏"
,
"围栏"
,
...
...
src/views/map/components/user/DeviceStatistics.vue
View file @
84859b65
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-input
<el-input
placeholder=
"请输入搜索的
设备
名称"
placeholder=
"请输入搜索的
重要有害植物
名称"
v-model=
"filterDeviceName"
v-model=
"filterDeviceName"
>
>
</el-input>
</el-input>
...
@@ -190,7 +190,7 @@ export default {
...
@@ -190,7 +190,7 @@ export default {
this
.
times
=
util
.
getDayAll
(
start
,
end
);
this
.
times
=
util
.
getDayAll
(
start
,
end
);
if
(
deviceIds
.
length
==
0
)
{
if
(
deviceIds
.
length
==
0
)
{
this
.
$message
({
this
.
$message
({
message
:
"请至少选择一个
设备
"
,
message
:
"请至少选择一个
重要有害植物
"
,
type
:
"warning"
,
type
:
"warning"
,
});
});
return
;
return
;
...
...
src/views/map/components/user/Groups.vue
View file @
84859b65
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
</el-tree>
</el-tree>
</el-dialog>
</el-dialog>
<el-dialog
title=
"分组绑定围栏"
:visible
.
sync=
"dialogVisible"
width=
"40%"
>
<el-dialog
title=
"分组绑定围栏"
:visible
.
sync=
"dialogVisible"
width=
"40%"
>
<el-alert
title=
"等价于分组里所有
设备
绑定此围栏"
type=
"warning"
>
<el-alert
title=
"等价于分组里所有
重要有害植物
绑定此围栏"
type=
"warning"
>
</el-alert
</el-alert
><br
/>
><br
/>
<el-transfer
<el-transfer
...
@@ -252,7 +252,7 @@ export default {
...
@@ -252,7 +252,7 @@ export default {
message
:
"移动成功!"
,
message
:
"移动成功!"
,
type
:
"success"
,
type
:
"success"
,
});
});
this
.
$store
.
dispatch
(
"initData"
);
//初始化
设备
数据
this
.
$store
.
dispatch
(
"initData"
);
//初始化
重要有害植物
数据
});
});
},
},
},
},
...
...
src/views/map/components/user/StopsStatistics.vue
View file @
84859b65
...
@@ -10,7 +10,11 @@
...
@@ -10,7 +10,11 @@
<el-row
type=
"flex"
class=
"row-bg"
>
<el-row
type=
"flex"
class=
"row-bg"
>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-form
:inline=
"true"
>
<el-form
:inline=
"true"
>
<el-select
v-model=
"deviceId"
filterable
placeholder=
"请选择设备"
>
<el-select
v-model=
"deviceId"
filterable
placeholder=
"请选择重要有害植物"
>
<el-option
<el-option
v-for=
"item in $store.state.user.devices.list"
v-for=
"item in $store.state.user.devices.list"
:key=
"item.id"
:key=
"item.id"
...
...
src/views/map/index.vue
View file @
84859b65
...
@@ -470,7 +470,7 @@ export default {
...
@@ -470,7 +470,7 @@ export default {
this
.
$store
.
dispatch
(
"setVisblesFlag"
,
[{
key
:
"login"
,
value
:
true
}]);
this
.
$store
.
dispatch
(
"setVisblesFlag"
,
[{
key
:
"login"
,
value
:
true
}]);
return
;
return
;
}
else
{
}
else
{
this
.
$store
.
dispatch
(
"initData"
);
//初始化
设备
数据
this
.
$store
.
dispatch
(
"initData"
);
//初始化
重要有害植物
数据
this
.
$store
.
dispatch
(
"setVisblesFlag"
,
[
this
.
$store
.
dispatch
(
"setVisblesFlag"
,
[
{
key
:
"deviceMenu"
,
value
:
true
},
{
key
:
"deviceMenu"
,
value
:
true
},
]);
]);
...
@@ -503,7 +503,7 @@ export default {
...
@@ -503,7 +503,7 @@ export default {
visible
:
true
,
visible
:
true
,
});
});
}
else
if
(
nv
==
1
&&
ov
==
2
)
{
}
else
if
(
nv
==
1
&&
ov
==
2
)
{
//轨迹回放-->跟踪
设备
//轨迹回放-->跟踪
重要有害植物
this
.
$store
.
dispatch
(
"removeHistoryPositions"
);
this
.
$store
.
dispatch
(
"removeHistoryPositions"
);
this
.
$store
.
dispatch
(
"setDeviceMarkersVisible"
,
{
this
.
$store
.
dispatch
(
"setDeviceMarkersVisible"
,
{
...
...
src/views/system/components/InDevice.vue
View file @
84859b65
<
template
>
<
template
>
<el-dialog
<el-dialog
title=
"导入
设备
"
title=
"导入
重要有害植物
"
:visible
.
sync=
"visible"
:visible
.
sync=
"visible"
:before-close=
"handleClose"
:before-close=
"handleClose"
:lock-scroll=
"false"
:lock-scroll=
"false"
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-select
<el-select
v-model=
"typeId"
v-model=
"typeId"
placeholder=
"
设备
类型"
placeholder=
"
重要有害植物
类型"
@
change=
"deviceTypeChange"
@
change=
"deviceTypeChange"
>
>
<el-option
<el-option
...
...
src/views/system/components/PanelGroup.vue
View file @
84859b65
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<svg-icon
icon-class=
"device"
class-name=
"card-panel-icon"
/>
<svg-icon
icon-class=
"device"
class-name=
"card-panel-icon"
/>
</div>
</div>
<div
class=
"card-panel-description"
>
<div
class=
"card-panel-description"
>
<div
class=
"card-panel-text"
>
在线/
设备
总数
</div>
<div
class=
"card-panel-text"
>
在线/
重要有害植物
总数
</div>
<count-to
<count-to
class=
"card-panel-num"
class=
"card-panel-num"
:startVal=
"0"
:startVal=
"0"
...
...
src/views/system/components/PieChart.vue
View file @
84859b65
...
@@ -53,7 +53,7 @@ export default {
...
@@ -53,7 +53,7 @@ export default {
formatter
:
"{a} <br/>{b} : {c} ({d}%)"
,
formatter
:
"{a} <br/>{b} : {c} ({d}%)"
,
},
},
title
:
{
title
:
{
text
:
"
设备
统计"
,
text
:
"
重要有害植物
统计"
,
textStyle
:
{
textStyle
:
{
color
:
"#000"
,
color
:
"#000"
,
},
},
...
...
src/views/system/components/TransferDevice.vue
View file @
84859b65
<
template
>
<
template
>
<el-dialog
<el-dialog
title=
"转移
设备
"
title=
"转移
重要有害植物
"
:visible
.
sync=
"visible"
:visible
.
sync=
"visible"
:before-close=
"handleClose"
:before-close=
"handleClose"
:lock-scroll=
"false"
:lock-scroll=
"false"
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<el-table-column
type=
"index"
width=
"40"
>
</el-table-column>
<el-table-column
type=
"index"
width=
"40"
>
</el-table-column>
<el-table-column
prop=
"imei"
label=
"IMEI"
width=
"160"
>
<el-table-column
prop=
"imei"
label=
"IMEI"
width=
"160"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"name"
label=
"
设备
名称"
width=
"120"
>
<el-table-column
prop=
"name"
label=
"
重要有害植物
名称"
width=
"120"
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</el-col>
</el-col>
...
...
src/views/system/dashboard.vue
View file @
84859b65
...
@@ -40,7 +40,7 @@ import {
...
@@ -40,7 +40,7 @@ import {
import
moment
from
"moment"
;
import
moment
from
"moment"
;
const
lineChartData
=
{
const
lineChartData
=
{
online
:
{
online
:
{
legendData
:
[
"在线
设备
"
,
"在线用户"
],
legendData
:
[
"在线
重要有害植物
"
,
"在线用户"
],
xAxisData
:
[
"7:00"
,
"8:00"
,
"9:00"
,
"10:00"
,
"11:00"
,
"12:00"
,
"13:00"
],
xAxisData
:
[
"7:00"
,
"8:00"
,
"9:00"
,
"10:00"
,
"11:00"
,
"12:00"
,
"13:00"
],
greenData
:
[
100
,
120
,
161
,
134
,
105
,
160
,
165
],
greenData
:
[
100
,
120
,
161
,
134
,
105
,
160
,
165
],
redData
:
[
120
,
82
,
91
,
154
,
162
,
140
,
145
],
redData
:
[
120
,
82
,
91
,
154
,
162
,
140
,
145
],
...
...
src/views/system/devices.vue
View file @
84859b65
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-table
:data=
"data.list"
@
selection-change=
"selectionRowsChange"
element-loading-text=
"Loading"
fit
highlight-current-row
>
<el-table
:data=
"data.list"
@
selection-change=
"selectionRowsChange"
element-loading-text=
"Loading"
fit
highlight-current-row
>
<el-table-column
type=
"selection"
width=
"55"
></el-table-column>
<el-table-column
type=
"selection"
width=
"55"
></el-table-column>
<el-table-column
label=
"
设备名称"
prop=
"name"
>
<el-table-column
label=
"
重要有害植物名称"
prop=
"name"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"IMEI"
width=
"160"
prop=
"imei"
>
<el-table-column
label=
"IMEI"
width=
"160"
prop=
"imei"
>
</el-table-column>
</el-table-column>
...
@@ -119,7 +119,7 @@ export default {
...
@@ -119,7 +119,7 @@ export default {
},
},
options
:
[{
options
:
[{
value
:
'name'
,
value
:
'name'
,
label
:
'
设备名称'
label
:
'
重要有害植物名称'
},
{
},
{
value
:
'imei'
,
value
:
'imei'
,
label
:
'IMEI号'
label
:
'IMEI号'
...
@@ -194,7 +194,7 @@ export default {
...
@@ -194,7 +194,7 @@ export default {
if
(
this
.
selectDevices
.
length
==
0
){
if
(
this
.
selectDevices
.
length
==
0
){
this
.
$message
({
this
.
$message
({
type
:
'warning'
,
type
:
'warning'
,
message
:
'请选择需要转移的
设备'
message
:
'请选择需要转移的
重要有害植物'
});
});
return
;
return
;
}
}
...
@@ -212,19 +212,19 @@ export default {
...
@@ -212,19 +212,19 @@ export default {
if
(
this
.
selectDevices
.
length
==
0
){
if
(
this
.
selectDevices
.
length
==
0
){
this
.
$message
({
this
.
$message
({
type
:
'warning'
,
type
:
'warning'
,
message
:
'请选择需要导出的
设备'
message
:
'请选择需要导出的
重要有害植物'
});
});
return
;
return
;
}
}
import
(
'@/vendor/Export2Excel'
).
then
(
excel
=>
{
import
(
'@/vendor/Export2Excel'
).
then
(
excel
=>
{
const
tHeader
=
[
'IMEI'
,
'名称'
,
'SIM'
,
'备注'
,
'
设备类型'
,
'分组'
,
'添加时间'
]
const
tHeader
=
[
'IMEI'
,
'名称'
,
'SIM'
,
'备注'
,
'
重要有害植物类型'
,
'分组'
,
'添加时间'
]
const
filterVal
=
[
'imei'
,
'name'
,
'sim'
,
'remarks'
,
'typeId'
,
'groupId'
,
'time'
]
const
filterVal
=
[
'imei'
,
'name'
,
'sim'
,
'remarks'
,
'typeId'
,
'groupId'
,
'time'
]
const
list
=
this
.
selectDevices
const
list
=
this
.
selectDevices
const
data
=
this
.
formatJson
(
filterVal
,
list
)
const
data
=
this
.
formatJson
(
filterVal
,
list
)
excel
.
export_json_to_excel
({
excel
.
export_json_to_excel
({
header
:
tHeader
,
header
:
tHeader
,
data
,
data
,
filename
:
'
设备'
,
filename
:
'
重要有害植物'
,
autoWidth
:
true
,
autoWidth
:
true
,
bookType
:
'xlsx'
bookType
:
'xlsx'
})
})
...
...
src/views/system/system/devicetypes.vue
View file @
84859b65
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
</el-row>
</el-row>
<el-dialog
<el-dialog
title=
"创建
设备
类型"
title=
"创建
重要有害植物
类型"
:visible
.
sync=
"addDialogVisible"
:visible
.
sync=
"addDialogVisible"
width=
"30%"
width=
"30%"
>
>
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
</el-dialog>
</el-dialog>
<el-dialog
<el-dialog
title=
"修改
设备
类型"
title=
"修改
重要有害植物
类型"
:visible
.
sync=
"editDialogVisible"
:visible
.
sync=
"editDialogVisible"
width=
"30%"
width=
"30%"
>
>
...
...
src/views/system/system/session.vue
View file @
84859b65
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
>
>
<el-table-column
label=
"序号"
width=
"95"
type=
"index"
>
<el-table-column
label=
"序号"
width=
"95"
type=
"index"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"
设备
通道"
prop=
"video"
>
<el-table-column
label=
"
重要有害植物
通道"
prop=
"video"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"Token"
prop=
"token"
>
<el-table-column
label=
"Token"
prop=
"token"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
...
src/views/system/users.vue
View file @
84859b65
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
{{
scope
.
row
.
time
/
1000
|
moment
(
"YYYY-MM-DD HH:mm:ss"
)
}}
{{
scope
.
row
.
time
/
1000
|
moment
(
"YYYY-MM-DD HH:mm:ss"
)
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"
设备"
prop=
"deviceCount"
width=
"80"
sortable=
"custom"
>
<el-table-column
label=
"
重要有害植物"
prop=
"deviceCount"
width=
"80"
sortable=
"custom"
>
<!-- <template slot-scope="scope">
<!-- <template slot-scope="scope">
<el-switch disabled v-model="scope.row.disabled" active-color="#ff4949" inactive-color="#13ce66"> </el-switch>
<el-switch disabled v-model="scope.row.disabled" active-color="#ff4949" inactive-color="#13ce66"> </el-switch>
</template> -->
</template> -->
...
...
src/vuex/actions.js
View file @
84859b65
...
@@ -205,7 +205,7 @@ export default {
...
@@ -205,7 +205,7 @@ export default {
offline
:
0
,
offline
:
0
,
notactive
:
0
,
notactive
:
0
,
};
};
//获取所有
设备
//获取所有
重要有害植物
getDevices
().
then
((
data
)
=>
{
getDevices
().
then
((
data
)
=>
{
var
devices
=
{
var
devices
=
{
selectId
:
0
,
selectId
:
0
,
...
@@ -240,7 +240,7 @@ export default {
...
@@ -240,7 +240,7 @@ export default {
devices
:
devices
,
devices
:
devices
,
onlineState
:
onlineState
,
onlineState
:
onlineState
,
});
});
// 获取
设备
位置
// 获取
重要有害植物
位置
getLastPosition
().
then
((
res
)
=>
{
getLastPosition
().
then
((
res
)
=>
{
if
(
res
.
length
>
0
)
{
if
(
res
.
length
>
0
)
{
let
position
=
res
[
0
];
let
position
=
res
[
0
];
...
@@ -253,7 +253,7 @@ export default {
...
@@ -253,7 +253,7 @@ export default {
commit
(
types
.
USER_UPDATE_DEVICE_POSITION
,
res
);
commit
(
types
.
USER_UPDATE_DEVICE_POSITION
,
res
);
});
});
//初始化
设备
树形菜单
//初始化
重要有害植物
树形菜单
getDevicesTree
().
then
((
data
)
=>
{
getDevicesTree
().
then
((
data
)
=>
{
let
checkedKeys
=
[];
let
checkedKeys
=
[];
// if(localStorage.checkedKeys){
// if(localStorage.checkedKeys){
...
...
src/vuex/modules/user.js
View file @
84859b65
...
@@ -3,11 +3,11 @@
...
@@ -3,11 +3,11 @@
**/
**/
export
const
moduleUser
=
{
export
const
moduleUser
=
{
state
:
{
state
:
{
selectId
:
0
,
//选中的
设备
ID
selectId
:
0
,
//选中的
重要有害植物
ID
devices
:
{
devices
:
{
selectId
:
0
,
//选中的
设备
ID
selectId
:
0
,
//选中的
重要有害植物
ID
index
:
{},
//索引
index
:
{},
//索引
list
:
[],
//
设备
数组
list
:
[],
//
重要有害植物
数组
},
},
bubble
:
{
bubble
:
{
//气泡内容
//气泡内容
...
@@ -36,9 +36,9 @@ export const moduleUser = {
...
@@ -36,9 +36,9 @@ export const moduleUser = {
},
},
},
},
visibles
:
{
visibles
:
{
deviceMenu
:
false
,
//
设备
列表
deviceMenu
:
false
,
//
重要有害植物
列表
deviceAddForm
:
false
,
//添加
设备
deviceAddForm
:
false
,
//添加
重要有害植物
deviceEditForm
:
false
,
//编辑
设备
deviceEditForm
:
false
,
//编辑
重要有害植物
updatePassDialog
:
false
,
//密码修改
updatePassDialog
:
false
,
//密码修改
districtGeoDialog
:
false
,
//行政区域围栏
districtGeoDialog
:
false
,
//行政区域围栏
groupAddForm
:
false
,
//添加分组
groupAddForm
:
false
,
//添加分组
...
@@ -54,7 +54,7 @@ export const moduleUser = {
...
@@ -54,7 +54,7 @@ export const moduleUser = {
videoPlayBackDialog
:
false
,
//视频回放对话框
videoPlayBackDialog
:
false
,
//视频回放对话框
intercomDialog
:
false
,
//对讲机对话框
intercomDialog
:
false
,
//对讲机对话框
},
},
//selectDeviceId:0,//选中的
设备
ID
//selectDeviceId:0,//选中的
重要有害植物
ID
map
:
{
map
:
{
type
:
localStorage
.
map
?
JSON
.
parse
(
localStorage
.
map
).
type
:
"google"
,
type
:
localStorage
.
map
?
JSON
.
parse
(
localStorage
.
map
).
type
:
"google"
,
types
:
[],
types
:
[],
...
@@ -94,7 +94,7 @@ export const moduleUser = {
...
@@ -94,7 +94,7 @@ export const moduleUser = {
removing
:
"拆除报警"
,
removing
:
"拆除报警"
,
fault
:
"fault"
,
fault
:
"fault"
,
},
//报警字典
},
//报警字典
deviceStates
:
{
stop
:
"停"
,
clockwise
:
"顺"
,
inverse
:
"反"
},
//
设备
运转状态
deviceStates
:
{
stop
:
"停"
,
clockwise
:
"顺"
,
inverse
:
"反"
},
//
重要有害植物
运转状态
playAlarmSound
:
false
,
//播放报警声音
playAlarmSound
:
false
,
//播放报警声音
control
:
{
control
:
{
begin
:
false
,
begin
:
false
,
...
@@ -122,12 +122,12 @@ export const moduleUser = {
...
@@ -122,12 +122,12 @@ export const moduleUser = {
editable
:
false
,
editable
:
false
,
},
},
message
:
{
message
:
{
eventCount
:
0
,
//未读
设备
消息
eventCount
:
0
,
//未读
重要有害植物
消息
},
},
dict
:
{
dict
:
{
commandViews
:
{},
//命令格式视图数据
commandViews
:
{},
//命令格式视图数据
commandIdsByType
:
{},
//
设备
类型对应的命令
commandIdsByType
:
{},
//
重要有害植物
类型对应的命令
deviceTypes
:
[],
//
设备
类型字典
deviceTypes
:
[],
//
重要有害植物
类型字典
deviceType
:
{},
deviceType
:
{},
},
},
onlineState
:
{
onlineState
:
{
...
@@ -139,7 +139,7 @@ export const moduleUser = {
...
@@ -139,7 +139,7 @@ export const moduleUser = {
menuTreeData
:
{
menuTreeData
:
{
nodes
:
[],
//节点数据
nodes
:
[],
//节点数据
checkedKeys
:
[],
//选中的节点
checkedKeys
:
[],
//选中的节点
},
//分组
设备
树形菜单
},
//分组
重要有害植物
树形菜单
events
:
[],
events
:
[],
customLayers
:
{
customLayers
:
{
...
@@ -204,13 +204,13 @@ export const moduleUser = {
...
@@ -204,13 +204,13 @@ export const moduleUser = {
],
],
videoRes
:
[],
//视频历史资源
videoRes
:
[],
//视频历史资源
currentPlayBack
:
{
currentPlayBack
:
{
//当前正在播放历史视频的
设备
//当前正在播放历史视频的
重要有害植物
device
:
{},
device
:
{},
channel
:
0
,
channel
:
0
,
loading
:
false
,
loading
:
false
,
},
},
currentIntercom
:
{
currentIntercom
:
{
//当前正在播对讲的
设备
//当前正在播对讲的
重要有害植物
device
:
{},
device
:
{},
channel
:
0
,
channel
:
0
,
},
},
...
...
src/vuex/mutation-types.js
View file @
84859b65
...
@@ -8,19 +8,19 @@ export const COMMON_INIT_SYSTEM = "COMMON_INIT_SYSTEM"; //初始化系统版本
...
@@ -8,19 +8,19 @@ export const COMMON_INIT_SYSTEM = "COMMON_INIT_SYSTEM"; //初始化系统版本
export
const
COMMON_INIT_CONFIG
=
"COMMON_INIT_CONFIG"
;
//初始化系统配置
export
const
COMMON_INIT_CONFIG
=
"COMMON_INIT_CONFIG"
;
//初始化系统配置
//前端用户存储方法
//前端用户存储方法
export
const
USER_UPDATE_DEVICE_STATUS
=
"USER_UPDATE_DEVICE_STATUS"
;
//更新
设备
状态
export
const
USER_UPDATE_DEVICE_STATUS
=
"USER_UPDATE_DEVICE_STATUS"
;
//更新
重要有害植物
状态
export
const
USER_UPDATE_DEVICE_POSITION
=
"USER_UPDATE_DEVICE_POSITION"
;
//更新
设备
位置
export
const
USER_UPDATE_DEVICE_POSITION
=
"USER_UPDATE_DEVICE_POSITION"
;
//更新
重要有害植物
位置
export
const
USER_RESPONSE_DEVICE_COMMAND
=
"USER_RESPONSE_DEVICE_COMMAND"
;
//响应
设备
命令
export
const
USER_RESPONSE_DEVICE_COMMAND
=
"USER_RESPONSE_DEVICE_COMMAND"
;
//响应
重要有害植物
命令
export
const
USER_INIT_DEVICES
=
"USER_INIT_DEVICES"
;
//初始化
设备
状态和位置
export
const
USER_INIT_DEVICES
=
"USER_INIT_DEVICES"
;
//初始化
重要有害植物
状态和位置
export
const
USER_IS_SHOW_BUBBLE
=
"USER_IS_SHOW_BUBBLE"
;
//是否显示气泡
export
const
USER_IS_SHOW_BUBBLE
=
"USER_IS_SHOW_BUBBLE"
;
//是否显示气泡
export
const
USER_SET_VISIBLES_FLAG
=
"USER_SET_VISIBLES_FLAG"
;
//设置隐藏显示属性
export
const
USER_SET_VISIBLES_FLAG
=
"USER_SET_VISIBLES_FLAG"
;
//设置隐藏显示属性
export
const
USER_SET_SELECT_DEVICE_ID
=
"USER_SET_SELECT_DEVICE_ID"
;
//设置选中的
设备
ID
export
const
USER_SET_SELECT_DEVICE_ID
=
"USER_SET_SELECT_DEVICE_ID"
;
//设置选中的
重要有害植物
ID
export
const
USER_IS_TRACK_CENTER
=
"USER_IS_TRACK_CENTER"
;
//是否画面跟随
export
const
USER_IS_TRACK_CENTER
=
"USER_IS_TRACK_CENTER"
;
//是否画面跟随
export
const
USER_ADD_DEVICE
=
"USER_ADD_DEVICE"
;
//添加
设备
export
const
USER_ADD_DEVICE
=
"USER_ADD_DEVICE"
;
//添加
重要有害植物
export
const
USER_SET_PLAY_ALARM_SOUND
=
"USER_SET_PLAY_ALARM_SOUND"
;
//设置播放报警声音
export
const
USER_SET_PLAY_ALARM_SOUND
=
"USER_SET_PLAY_ALARM_SOUND"
;
//设置播放报警声音
export
const
USER_SET_MAP_VALUES
=
"USER_SET_MAP_VALUES"
;
//设置map地图属性值
export
const
USER_SET_MAP_VALUES
=
"USER_SET_MAP_VALUES"
;
//设置map地图属性值
export
const
USER_SET_DEVICE_MARKERS_VISIBLE
=
export
const
USER_SET_DEVICE_MARKERS_VISIBLE
=
"USER_SET_DEVICE_MARKERS_VISIBLE"
;
//设置
设备
maker是否可见
"USER_SET_DEVICE_MARKERS_VISIBLE"
;
//设置
重要有害植物
maker是否可见
export
const
USER_SET_CONTROL_VALUE
=
"USER_SET_CONTROL_VALUE"
;
//设置轨迹回放控制按钮属性
export
const
USER_SET_CONTROL_VALUE
=
"USER_SET_CONTROL_VALUE"
;
//设置轨迹回放控制按钮属性
export
const
USER_REMOVE_HISTORY_POSITIONS
=
"USER_REMOVE_HISTORY_POSITIONS"
;
//清理历史轨迹
export
const
USER_REMOVE_HISTORY_POSITIONS
=
"USER_REMOVE_HISTORY_POSITIONS"
;
//清理历史轨迹
export
const
USER_GET_HISTORY_POSITIONS
=
"USER_GET_HISTORY_POSITIONS"
;
//获取历史轨迹
export
const
USER_GET_HISTORY_POSITIONS
=
"USER_GET_HISTORY_POSITIONS"
;
//获取历史轨迹
...
@@ -38,12 +38,12 @@ export const USER_DELETE_SELECT_GEOFENCE = "USER_DELETE_SELECT_GEOFENCE"; //删
...
@@ -38,12 +38,12 @@ export const USER_DELETE_SELECT_GEOFENCE = "USER_DELETE_SELECT_GEOFENCE"; //删
export
const
USER_SET_MEASURE_ENABLE
=
"USER_SET_MEASURE_ENABLE"
;
//设置开启 关闭绘制围栏事件
export
const
USER_SET_MEASURE_ENABLE
=
"USER_SET_MEASURE_ENABLE"
;
//设置开启 关闭绘制围栏事件
export
const
USER_SET_MESSAGE_VALUE
=
"USER_SET_MESSAGE_VALUE"
;
//设置消息的条数
export
const
USER_SET_MESSAGE_VALUE
=
"USER_SET_MESSAGE_VALUE"
;
//设置消息的条数
//export const USER_UPDATE_DEVICE_STATE='USER_UPDATE_DEVICE_STATE';//更新
设备
状态属性
//export const USER_UPDATE_DEVICE_STATE='USER_UPDATE_DEVICE_STATE';//更新
重要有害植物
状态属性
export
const
USER_INIT_STATIC_DATA
=
"USER_INIT_STATIC_DATA"
;
//初始化静态数据
export
const
USER_INIT_STATIC_DATA
=
"USER_INIT_STATIC_DATA"
;
//初始化静态数据
export
const
USER_SET_MARKER_VISIBLE
=
"USER_SET_MARKER_VISIBLE"
;
//设置
设备
marker是否可见
export
const
USER_SET_MARKER_VISIBLE
=
"USER_SET_MARKER_VISIBLE"
;
//设置
重要有害植物
marker是否可见
export
const
USER_INIT_GROUPS
=
"USER_INIT_GROUPS"
;
//初始化分组数据
export
const
USER_INIT_GROUPS
=
"USER_INIT_GROUPS"
;
//初始化分组数据
export
const
USER_INIT_TREE_DATA
=
"USER_INIT_TREE_DATA"
;
//初始化分组
设备
属性数据
export
const
USER_INIT_TREE_DATA
=
"USER_INIT_TREE_DATA"
;
//初始化分组
重要有害植物
属性数据
export
const
USER_LOOK_DEVICES_MOTION_STATE
=
"USER_LOOK_DEVICES_MOTION_STATE"
;
////定时检查
设备
运动状态
export
const
USER_LOOK_DEVICES_MOTION_STATE
=
"USER_LOOK_DEVICES_MOTION_STATE"
;
////定时检查
重要有害植物
运动状态
export
const
USER_GET_EVENTS
=
"USER_GET_EVENTS"
;
//获取事件
export
const
USER_GET_EVENTS
=
"USER_GET_EVENTS"
;
//获取事件
export
const
USER_INIT_CUSTOMLAYERS
=
"USER_INIT_CUSTOMLAYERS"
;
//初始化自定义图层
export
const
USER_INIT_CUSTOMLAYERS
=
"USER_INIT_CUSTOMLAYERS"
;
//初始化自定义图层
export
const
USER_SET_CUSTOMLAYER_VALUE
=
"USER_SET_CUSTOMLAYER_VALUE"
;
//设置图层值
export
const
USER_SET_CUSTOMLAYER_VALUE
=
"USER_SET_CUSTOMLAYER_VALUE"
;
//设置图层值
...
@@ -61,7 +61,7 @@ export const USER_CLOSE_VIDEO = "USER_CLOSE_VIDEO"; //关闭视频
...
@@ -61,7 +61,7 @@ export const USER_CLOSE_VIDEO = "USER_CLOSE_VIDEO"; //关闭视频
export
const
USER_ADD_VIDEO
=
"USER_ADD_VIDEO"
;
//添加视频
export
const
USER_ADD_VIDEO
=
"USER_ADD_VIDEO"
;
//添加视频
export
const
USER_INIT_LAYERS
=
"USER_INIT_LAYERS"
;
//初始化自定义GIS图层
export
const
USER_INIT_LAYERS
=
"USER_INIT_LAYERS"
;
//初始化自定义GIS图层
export
const
USER_SET_LAYER_VALUE
=
"USER_SET_LAYER_VALUE"
;
//设置GIS图层值
export
const
USER_SET_LAYER_VALUE
=
"USER_SET_LAYER_VALUE"
;
//设置GIS图层值
export
const
USER_SET_CURRENT_PLASYBACK
=
"USER_SET_CURRENT_PLASYBACK"
;
//设置当前回放的视频
设备
通道
export
const
USER_SET_CURRENT_PLASYBACK
=
"USER_SET_CURRENT_PLASYBACK"
;
//设置当前回放的视频
重要有害植物
通道
export
const
USER_DELETE_VIDEO_RES
=
"USER_DELETE_VIDEO_RES"
;
//清除历史视频记录
export
const
USER_DELETE_VIDEO_RES
=
"USER_DELETE_VIDEO_RES"
;
//清除历史视频记录
export
const
USER_SET_CURRENT_INTERCOM
=
"USER_SET_CURRENT_INTERCOM"
;
//设置当前对讲备通道
export
const
USER_SET_CURRENT_INTERCOM
=
"USER_SET_CURRENT_INTERCOM"
;
//设置当前对讲备通道
...
...
src/vuex/mutations.js
View file @
84859b65
...
@@ -29,7 +29,7 @@ export default {
...
@@ -29,7 +29,7 @@ export default {
});
});
},
},
[
types
.
USER_INIT_DEVICES
](
state
,
vals
)
{
[
types
.
USER_INIT_DEVICES
](
state
,
vals
)
{
console
.
log
(
"初始化
设备
"
);
console
.
log
(
"初始化
重要有害植物
"
);
state
.
user
.
devices
=
vals
.
devices
;
state
.
user
.
devices
=
vals
.
devices
;
state
.
user
.
onlineState
=
vals
.
onlineState
;
state
.
user
.
onlineState
=
vals
.
onlineState
;
// state.user.deviceIndexHash = vals.deviceIndexHash;
// state.user.deviceIndexHash = vals.deviceIndexHash;
...
@@ -113,7 +113,7 @@ export default {
...
@@ -113,7 +113,7 @@ export default {
}
else
{
}
else
{
state
.
user
.
devices
.
list
[
index
].
motion
=
1
;
state
.
user
.
devices
.
list
[
index
].
motion
=
1
;
}
}
//更新跟踪
设备
的气泡信息
//更新跟踪
重要有害植物
的气泡信息
if
(
state
.
user
.
devices
.
selectId
==
devstatus
.
id
)
{
if
(
state
.
user
.
devices
.
selectId
==
devstatus
.
id
)
{
state
.
user
.
popup
.
content
=
util
.
popupContent
(
state
.
user
.
popup
.
content
=
util
.
popupContent
(
state
.
user
.
devices
.
list
[
index
]
state
.
user
.
devices
.
list
[
index
]
...
...
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