|
@@ -556,6 +556,8 @@ import * as shop_API from "@/api/ncs_shop";
|
|
|
import {getDevicesByUuid} from "@/api/initialize"
|
|
|
import myMapHtml from '@/views/customer/myMapHtml'
|
|
|
import {getRelativeList, removeRelative} from "@/api/ncs_relative";
|
|
|
+import { getWatchFootprint } from '@/api/ncs_device'
|
|
|
+import {DEVICE_TYPE} from '@/utils/enum/DeviceTypeEnum'
|
|
|
const serverUrl = domain.serverUrl
|
|
|
export default {
|
|
|
name: 'CustomerManager',
|
|
@@ -1137,7 +1139,7 @@ export default {
|
|
|
},
|
|
|
handleClick() {
|
|
|
if (this.activeName === 'footprint') {
|
|
|
- this.$router.push({path:'/myMapHtml', query: {mapUrl: this.mapUrl}})
|
|
|
+ this.$router.push({path:'/device/myMapHtml', query: {mapUrl: this.mapUrl}})
|
|
|
}
|
|
|
},
|
|
|
/** 生日选择变化,修改年龄字段 */
|
|
@@ -1317,15 +1319,15 @@ export default {
|
|
|
this.getQrCode()
|
|
|
this.getRemarks()
|
|
|
this.getRelatives()
|
|
|
- if (this.isCloud) {
|
|
|
- const _this = this
|
|
|
- getDevicesByUuid(row.uuid).then(res => {
|
|
|
- if (res) {
|
|
|
- _this.boolDevice = true
|
|
|
- _this.mapUrl = res
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ // 获取该用户的胸牌/手环
|
|
|
+ const _this = this
|
|
|
+ getWatchFootprint(row.member_id, DEVICE_TYPE.BREASTPLATE).then(res => {
|
|
|
+ if (res) {
|
|
|
+ _this.boolDevice = true
|
|
|
+ _this.mapUrl = res
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
/** 出院 退床 **/
|
|
|
handleOut(row) {
|