Commit 84859b65 authored by yangkaiyi's avatar yangkaiyi

把“设备”替换成 “重要有害植物”,格式化代码,无其他改动

parent 753ab675
...@@ -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 })
......
...@@ -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>
......
...@@ -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;
......
...@@ -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: {},
......
...@@ -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",
}, },
}, },
......
...@@ -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",
......
...@@ -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>
......
...@@ -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 {
......
...@@ -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"); //初始化重要有害植物数据
}); });
} }
}); });
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<template slot="title"> &nbsp;&nbsp;&nbsp;&nbsp; 用户列表 </template> <template slot="title"> &nbsp;&nbsp;&nbsp;&nbsp; 用户列表 </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">
&nbsp;&nbsp;&nbsp;&nbsp; 设备列表 &nbsp;&nbsp;&nbsp;&nbsp; 重要有害植物列表
<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'); //初始化重要有害植物数据
// //
// }) // })
}, },
......
...@@ -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",
......
...@@ -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,
......
...@@ -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 = [
"设备号", "重要有害植物号",
"事件", "事件",
"地址", "地址",
"围栏", "围栏",
......
...@@ -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;
......
...@@ -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"); //初始化重要有害植物数据
}); });
}, },
}, },
......
...@@ -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"
......
...@@ -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", {
......
<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
......
...@@ -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"
......
...@@ -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",
}, },
......
<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>
......
...@@ -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],
......
This diff is collapsed.
...@@ -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%"
> >
......
...@@ -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">
......
This diff is collapsed.
...@@ -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){
......
...@@ -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,
}, },
......
...@@ -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"; //设置当前对讲备通道
......
...@@ -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]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment