人员定位,园区环境配置

main
zhangqun 2 years ago
parent 159bbcaa6d
commit 0f2b250ffd
  1. 2
      src/api/wirelessintrusion/wirelessintrusion.js
  2. 67
      src/views/alarmcenter/peopleposition/list.vue
  3. 4
      vocalldemo/index.html
  4. 4
      vue.config.js

@ -1,6 +1,6 @@
import request from '@/router/axios'; import request from '@/router/axios';
const baseUrl = process.env.NODE_ENV === 'production' ? 'http://182.139.182.190:60032/prod-api' : 'http://182.139.182.190:60032/prod-api'; const baseUrl = process.env.NODE_ENV === 'production' ? 'http://171.16.8.58:8080/prod-api' : 'http://182.139.182.190:60032/prod-api';
//物联网登录 //物联网登录
export const bizLogin = (data) => { export const bizLogin = (data) => {
return request({ return request({

@ -6,7 +6,7 @@
<template #menu="{ row, index }"> <template #menu="{ row, index }">
<el-button type="text" icon="el-icon-view" size="small" @click="rowView(row, index)">详情 <el-button type="text" icon="el-icon-view" size="small" @click="rowView(row, index)">详情
</el-button> </el-button>
<el-button type="text" icon="el-icon-map-location" :disabled="row.x == null" size="small" <el-button type="text" icon="el-icon-map-location" size="small"
@click="rowMap(row, index)">地图定位 @click="rowMap(row, index)">地图定位
</el-button> </el-button>
</template> </template>
@ -51,22 +51,22 @@ export default {
dialogClickModal: false, dialogClickModal: false,
menuWidth: 180, menuWidth: 180,
column: [ column: [
{
label: "设备名称",
prop: "name",
},
{ {
label: "sn编号", label: "sn编号",
prop: "sn", prop: "sn",
search: true,
}, },
{ {
label: "姓名", label: "姓名",
prop: "patientName", prop: "patientName",
search: true,
}, },
{ {
label: "性别", label: "性别",
prop: "sex", prop: "sex",
type: "select",
dicData: [
{ value: "1", label: "男" }, { value: '0', label: "女" }
],
}, },
{ {
label: "科室", label: "科室",
@ -74,48 +74,21 @@ export default {
}, },
{ {
label: "状态", label: "状态",
type: "status", type: "select",
dicData: [ dicData: [
{ value: 0, label: "在线" }, { value: 1, label: "线" } { value: 'alarm', label: "报警" }, { value: 'offLine', label: "离线" }, { value: 'onLine', label: "线" }
], ],
prop: "communicateStatus", prop: "status",
}, search: true,
{
label: "最后一次通信时间",
labelWidth: 150,
prop: "lastCommunicateTime",
span: 24,
formatter: (data, value) => {
return dateFormat(new Date(data.lastCommunicateTime))
},
hide: true
}, },
{ {
label: "最后一次配置时间", label: "年龄",
labelWidth: 150, prop: "age",
prop: "lastConfigTime",
span: 24,
formatter: (data, value) => {
return dateFormat(new Date(data.lastConfigTime))
},
hide: true
}, },
{ {
label: "入场时间", label: "手机号",
labelWidth: 150, prop: "phone",
prop: "admissionTime",
span: 24, span: 24,
formatter: (data, value) => {
return dateFormat(new Date(data.lastLocateTime))
},
hide: true
},
{
label: "出科室时间",
prop: "outDepartmentTime",
formatter: (data, value) => {
return dateFormat(new Date(data.createTime))
}
}, },
] ]
}, },
@ -152,7 +125,7 @@ export default {
if (token == 'undefined' || !token) { if (token == 'undefined' || !token) {
bizLogin({ appKey: 'Arf7bd4f26', appSecret: 'kb207044c8' }).then(res => { bizLogin({ appKey: 'Arf7bd4f26', appSecret: 'kb207044c8' }).then(res => {
window.sessionStorage.setItem('bizToken', res.data.data.token); window.sessionStorage.setItem('bizToken', res.data.data.token);
terminalList(res.data.data.token, Object.assign(params, this.query, { page: page.currentPage, size: page.pageSize, buildingIds: this.buildingId, sn: row.sn })).then(res2 => { terminalList(res.data.data.token, { page: 1, size: 1, buildingIds: this.buildingId, sn: row.sn }).then(res2 => {
if (res2.data.code == 401) { if (res2.data.code == 401) {
window.sessionStorage.removeItem('bizToken'); window.sessionStorage.removeItem('bizToken');
this.rowMap(row, index) this.rowMap(row, index)
@ -174,7 +147,7 @@ export default {
}) })
} }
else { else {
terminalList(token, Object.assign(params, this.query, { page: page.currentPage, size: page.pageSize, buildingIds: this.buildingId, sn: row.sn })).then(res2 => { terminalList(token, { page: 1, size: 1, buildingIds: this.buildingId, sn: row.sn }).then(res2 => {
if (res2.data.code == 401) { if (res2.data.code == 401) {
window.sessionStorage.removeItem('bizToken'); window.sessionStorage.removeItem('bizToken');
this.rowMap(row, index); this.rowMap(row, index);
@ -236,8 +209,8 @@ export default {
} }
else if (res2.data.code == 0) { else if (res2.data.code == 0) {
const data = res2.data.data; const data = res2.data.data;
this.page.total = data.totalElements; this.page.total = data.total;
this.data = data.content; this.data = data.records;
} }
}, err => { }, err => {
this.loading = false; this.loading = false;
@ -254,8 +227,8 @@ export default {
} }
else if (res2.data.code == 0) { else if (res2.data.code == 0) {
const data = res2.data.data; const data = res2.data.data;
this.page.total = data.totalElements; this.page.total = data.total;
this.data = data.content; this.data = data.records;
} }
}, err => { }, err => {
this.loading = false; this.loading = false;

@ -253,8 +253,8 @@
</div> </div>
<script> <script>
// const baseUrl = "http://152.136.119.150:81";//外网测试环境 // const baseUrl = "http://152.136.119.150:81";//外网测试环境
const baseUrl = "http://192.168.1.102:81";//本地测试环境 const baseUrl = "http://171.16.8.51:81";//"http://192.168.1.102:81";//本地测试环境
const iotBaseUrl = "http://182.139.182.190:60032";//物联网平台外网测试环境 const iotBaseUrl = "http://171.16.8.58:8080"//"http://182.139.182.190:60032";//物联网平台外网测试环境
if (!('speechSynthesis' in window)) { if (!('speechSynthesis' in window)) {
throw alert("对不起,您的浏览器不支持") throw alert("对不起,您的浏览器不支持")
} }

@ -39,9 +39,9 @@ module.exports = {
proxy: { proxy: {
"/api": { "/api": {
//本地服务接口地址 //本地服务接口地址
// target: 'http://192.168.1.34:8008', target: 'http://192.168.1.34:81',
// target: 'http://192.168.3.32:81', // target: 'http://192.168.3.32:81',
target: 'http://192.168.1.102:81', // target: 'http://192.168.1.102:81',
ws: true, ws: true,
pathRewrite: { pathRewrite: {
"^/api": "/", "^/api": "/",

Loading…
Cancel
Save