diff --git a/common/js/config.js b/common/js/config.js index 0f3935a..f4ed095 100644 --- a/common/js/config.js +++ b/common/js/config.js @@ -1,4 +1,4 @@ -const debug = false // true 是连地服务端本地,false 是连接线上 +const debug = true // true 是连地服务端本地,false 是连接线上 const development = { domain: 'http://192.168.1.115:10215', diff --git a/components/Cn-htmlToImg/Cn-htmlToImg.vue b/components/Cn-htmlToImg/Cn-htmlToImg.vue index aa603a6..65163af 100644 --- a/components/Cn-htmlToImg/Cn-htmlToImg.vue +++ b/components/Cn-htmlToImg/Cn-htmlToImg.vue @@ -36,8 +36,6 @@ export default { html2canvas(dom, { scale: 2, useCORS: true, - width: dom.offsetWidth, - height: dom.offsetHeight, dpi: 300, taintTest: true, }).then((canvas) => { @@ -49,7 +47,7 @@ export default { }).catch((err) => { console.log(err) }) - }, 1000); + }, 3000); } } } diff --git a/pages.json b/pages.json index 656f5ab..b86eeac 100644 --- a/pages.json +++ b/pages.json @@ -13,7 +13,7 @@ "padding-right": "20rpx", "buttons": [ { - "text": "请选择工程", + "text": "请先创建工程", "fontSize": "28rpx", "select": true, "width": "auto" diff --git a/pages/device/APF/comp/basic.vue b/pages/device/APF/comp/basic.vue index 1163783..119c49e 100644 --- a/pages/device/APF/comp/basic.vue +++ b/pages/device/APF/comp/basic.vue @@ -118,6 +118,7 @@ export default { position: '26eae70fb5ff1c090d2dc7c3a0743948', }, ] + console.log(this.deviceInfo) this.deviceInfo.appsLineTopologyDiagramPO.forEach((item1) => { if (item1.value.length === 0) { return diff --git a/pages/device/APF/detail.vue b/pages/device/APF/detail.vue index 08a72a1..c6c028d 100644 --- a/pages/device/APF/detail.vue +++ b/pages/device/APF/detail.vue @@ -32,14 +32,14 @@ 模块一 - 15 - °C + 15 + °C 模块二 - 0 - °C + 0 + °C @@ -57,7 +57,7 @@ v-for="(item, index) in navMenuList" :key="index" @click="navMenuClick(index)" - >{{ item.text }} + >{{ item.text }} @@ -101,10 +101,11 @@ import xieBo from './comp/xieBo.vue' import power from './comp/power.vue' import oscillogram from './comp/oscillogram.vue' import IO from './comp/IO.vue' -import { queryTopologyDiagram, deleteDevice } from '@/common/api/device' -import { MQTT_IP, MQTT_OPTIONS } from '@/common/js/mqtt.js' +import {queryTopologyDiagram, deleteDevice} from '@/common/api/device' +import {MQTT_IP, MQTT_OPTIONS} from '@/common/js/mqtt.js' import mqtt from 'mqtt/dist/mqtt.js' -import { base64ToPath, pathToBase64 } from 'image-tools' +import {base64ToPath, pathToBase64} from 'image-tools' + export default { components: { basic, @@ -203,17 +204,17 @@ export default { } else if (e.item.text === '下载') { this.$util.toast('下载成功') } else if (e.item.text === '记录') { - uni.navigateTo({ url: '/pages/device/APF/record' }) + uni.navigateTo({url: '/pages/device/APF/record'}) } else if (e.item.text === '告警') { - uni.navigateTo({ url: '/pages/device/APF/report' }) + uni.navigateTo({url: '/pages/device/APF/report'}) } else if (e.item.text === '关于') { - uni.navigateTo({ url: '/pages/device/APF/about?id=' + this.devId }) + uni.navigateTo({url: '/pages/device/APF/about?id=' + this.devId}) } else if (e.item.text === '移交') { - uni.navigateTo({ url: '/pages/device/transfer?id=' + this.devId }) + uni.navigateTo({url: '/pages/device/transfer?id=' + this.devId}) } else if (e.item.text === '反馈') { - uni.navigateTo({ url: '/pages/device/feedback' }) + uni.navigateTo({url: '/pages/device/feedback'}) } else if (e.item.text === '用户') { - uni.navigateTo({ url: '/pages/device/user' }) + uni.navigateTo({url: '/pages/device/user'}) } else if (e.item.text === '报表') { this.$util.toast('效果是直接打开报表') } else if (e.item.text === '版本') { @@ -221,15 +222,19 @@ export default { } else if (e.item.text === '模版') { this.$util.toast('效果是功能暂未开放直接打开报表') } else if (e.item.text === '编辑') { + let data = JSON.parse(JSON.stringify(this.deviceInfo)) + data.appsLineTopologyDiagramPO.forEach((item) => { + delete item.value + }) uni.navigateTo({ - url: '/pages/device/edit?deviceInfo=' + encodeURIComponent(JSON.stringify(this.deviceInfo)), + url: '/pages/device/edit?deviceInfo=' + encodeURIComponent(JSON.stringify(data)), }) } this.$refs.fab.close() }, navMenuClick(idx) { this.navMenuActive = idx - uni.pageScrollTo({ scrollTop: 0, duration: 0 }) + uni.pageScrollTo({scrollTop: 0, duration: 0}) }, init() { if (this.isPrimaryUser == 1) { @@ -358,7 +363,7 @@ export default { this.init() queryTopologyDiagram(options.id).then((res) => { this.deviceInfo = res.data - uni.setNavigationBarTitle({ title: this.deviceInfo.devName || '设备详情' }) + uni.setNavigationBarTitle({title: this.deviceInfo.devName || '设备详情'}) this.dictData.forEach((item) => { if (item.code == 'Line_Position') { item.children.forEach((item2) => { @@ -387,6 +392,7 @@ export default { height: 100%; background-size: 100% 100%; } + .header { position: relative; width: 375px; @@ -399,6 +405,7 @@ export default { image-rendering: crisp-edges; -ms-interpolation-mode: nearest-neighbor; } + .point { position: absolute; color: #111; diff --git a/pages/device/new.vue b/pages/device/new.vue index 7c54a3c..9122144 100644 --- a/pages/device/new.vue +++ b/pages/device/new.vue @@ -5,7 +5,7 @@ - + - 发起注册 + 发起注册