iot定位页面代码优化

This commit is contained in:
BianLzhaoMin 2024-08-13 15:34:24 +08:00
parent 958f71cef3
commit dfdcb2783c
4 changed files with 9 additions and 7 deletions

View File

@ -279,7 +279,7 @@ export default {
const isType = this.typeList.some((e) => e == this.IOTForm.iotType) const isType = this.typeList.some((e) => e == this.IOTForm.iotType)
if (isType) { if (isType) {
this.$message.error( this.$message.error(
'当前机具已绑定IOT类型设备不可重复绑定', '当前机具已绑定IOT类型设备不可重复绑定',
) )
return return
} }
@ -327,7 +327,7 @@ export default {
const isType = this.typeList.some((e) => e == iotTypeId) const isType = this.typeList.some((e) => e == iotTypeId)
if (isType) { if (isType) {
this.$message.error( this.$message.error(
'当前机具已绑定IOT类型设备不可重复绑定', '当前机具已绑定IOT类型设备不可重复绑定',
) )
this.codeOptions = [] this.codeOptions = []
return return

View File

@ -95,7 +95,9 @@
</div> </div>
</template> </template>
<template v-else> <template v-else>
{{ loadingData ? '数据加载中...' : 暂无数据 }} {{
loadingData ? '数据加载中...' : '暂无数据 '
}}
</template> </template>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="停留点"> <el-tab-pane label="停留点">
@ -267,8 +269,8 @@ export default {
iotId: this.iotCode, iotId: this.iotCode,
}) })
// //
this.calLon = res.callon this.calLon = res.callon || 116.404
this.calLat = res.callat this.calLat = res.callat || 39.915
} }
}, },
/** 查询按钮 */ /** 查询按钮 */

View File

@ -833,7 +833,7 @@ export default {
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download( this.download(
'/material/basemachine/export', '/material/base/machine/export',
{ {
...this.queryParams, ...this.queryParams,
dataCondition: this.ids, dataCondition: this.ids,

View File

@ -46,7 +46,7 @@ module.exports = {
// target: `http://10.40.92.81:8080`, //韩/ // target: `http://10.40.92.81:8080`, //韩/
// target: `http://192.168.2.81:28080`,//旭/ // target: `http://192.168.2.81:28080`,//旭/
// target: `http://192.168.2.248:28080`, //帅 // target: `http://192.168.2.248:28080`, //帅
// target: `http://192.168.2.225:49080`, //福 target: `http://192.168.2.216:49080`, //福
//******** 注意事项 ********* */ //******** 注意事项 ********* */
//1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址target; //1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址target;