|
@@ -409,6 +409,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
+ <el-tab-pane v-if="formmodel.id && boolDevice" :label="this.$t('customerManage.footprint')" name="footprint">
|
|
|
+ <my-map-html :map-url="mapUrl" style="width: 100%; height: 670px;"></my-map-html>
|
|
|
+ </el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</el-dialog>
|
|
|
<!-- 用户信息 -->
|
|
@@ -545,10 +548,12 @@ import * as API_SystemConfig from '@/api/ncs_systemconfig'
|
|
|
import {RELATIVE_NAME_TYPE} from "@/utils/enum/RelativeNameTypeEnum";
|
|
|
import {CHILDBIRTH_TYPE} from "@/utils/enum/ChildbirthTypeEnum";
|
|
|
import * as shop_API from "@/api/ncs_shop";
|
|
|
+import {getDevicesByUuid} from "@/api/initialize"
|
|
|
+import myMapHtml from '@/views/customer/myMapHtml'
|
|
|
const serverUrl = domain.serverUrl
|
|
|
export default {
|
|
|
name: 'CustomerManager',
|
|
|
- components: { ButtonCellRenderList, ButtonCellRender, ListFilter, RadioFilter, vitalSignLog, vueQr },
|
|
|
+ components: { ButtonCellRenderList, ButtonCellRender, ListFilter, RadioFilter, vitalSignLog, vueQr, myMapHtml },
|
|
|
filters: {
|
|
|
unixDateFilter(val) {
|
|
|
return unixToDate(val)
|
|
@@ -718,7 +723,9 @@ export default {
|
|
|
relativeNameTypeEnum: RELATIVE_NAME_TYPE.getValueList(),
|
|
|
childbirthTypeEnum: CHILDBIRTH_TYPE.getValueList(),
|
|
|
isChild: false,
|
|
|
- shop: {}
|
|
|
+ shop: {},
|
|
|
+ boolDevice: false,
|
|
|
+ mapUrl: null
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -1104,7 +1111,9 @@ export default {
|
|
|
return date
|
|
|
},
|
|
|
handleClick() {
|
|
|
-
|
|
|
+ if (this.activeName === 'footprint') {
|
|
|
+ this.$router.push({path:'/myMapHtml', query: {mapUrl: this.mapUrl}})
|
|
|
+ }
|
|
|
},
|
|
|
/** 生日选择变化,修改年龄字段 */
|
|
|
birthdayChange(val) {
|
|
@@ -1258,6 +1267,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
handleEdit(row) {
|
|
|
+ this.boolDevice = false
|
|
|
this.relativeRules.mobile[0].required = this.isCloud
|
|
|
this.formmodel = {
|
|
|
...row
|
|
@@ -1283,6 +1293,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
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
/** 出院 退床 **/
|
|
|
handleOut(row) {
|