stye: 删除 console
This commit is contained in:
@@ -616,7 +616,6 @@ export default {
|
|||||||
})
|
})
|
||||||
Promise.all(promiseArr).then((res) => {
|
Promise.all(promiseArr).then((res) => {
|
||||||
getTopology(this.topologyIndex).open(data)
|
getTopology(this.topologyIndex).open(data)
|
||||||
// console.log(data)
|
|
||||||
getTopology(this.topologyIndex).lock(1)
|
getTopology(this.topologyIndex).lock(1)
|
||||||
this.objChange = false
|
this.objChange = false
|
||||||
let flag = false
|
let flag = false
|
||||||
@@ -772,7 +771,6 @@ export default {
|
|||||||
}
|
}
|
||||||
data.pens.forEach(item => {
|
data.pens.forEach(item => {
|
||||||
if (item.type === 0 && item.data.imageId) {
|
if (item.type === 0 && item.data.imageId) {
|
||||||
// console.log(item,item.data.imageId,this.iconArray.find(item1 => item1.id == 44))
|
|
||||||
const img = this.iconArray.find(item1 => item1.id == item.data.imageId)
|
const img = this.iconArray.find(item1 => item1.id == item.data.imageId)
|
||||||
item.image = img ? img.image : imgDefault
|
item.image = img ? img.image : imgDefault
|
||||||
}
|
}
|
||||||
@@ -1041,7 +1039,6 @@ export default {
|
|||||||
|
|
||||||
onMessage (event, data, e) {
|
onMessage (event, data, e) {
|
||||||
// console.log('onMessage', event, data)
|
// console.log('onMessage', event, data)
|
||||||
// console.log(getTopology(this.topologyIndex))
|
|
||||||
// this.notModuleIDArr=[];
|
// this.notModuleIDArr=[];
|
||||||
// this.toolShow.attr = false
|
// this.toolShow.attr = false
|
||||||
// this.toolShow.topTool = false
|
// this.toolShow.topTool = false
|
||||||
@@ -1152,7 +1149,6 @@ export default {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.tooltipPosition.show = true
|
this.tooltipPosition.show = true
|
||||||
const ePosition = window.ePosition
|
const ePosition = window.ePosition
|
||||||
console.log(ePosition)
|
|
||||||
const boxWidth = document.getElementsByClassName('page')[0].offsetWidth
|
const boxWidth = document.getElementsByClassName('page')[0].offsetWidth
|
||||||
const boxHeight = document.getElementsByClassName('page')[0].offsetHeight
|
const boxHeight = document.getElementsByClassName('page')[0].offsetHeight
|
||||||
this.tooltipPosition.left = ePosition.layerX + 20
|
this.tooltipPosition.left = ePosition.layerX + 20
|
||||||
@@ -1748,8 +1744,6 @@ export default {
|
|||||||
this.previewData = ''
|
this.previewData = ''
|
||||||
this.isPreview = false
|
this.isPreview = false
|
||||||
const topologyData = getTopology(this.topologyIndex).pureData()
|
const topologyData = getTopology(this.topologyIndex).pureData()
|
||||||
// console.log(JSON.stringify(topologyData))
|
|
||||||
|
|
||||||
this.editTopologyFlag = false
|
this.editTopologyFlag = false
|
||||||
topologyData.rule = false
|
topologyData.rule = false
|
||||||
topologyData.grid = false
|
topologyData.grid = false
|
||||||
|
|||||||
@@ -296,7 +296,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
// console.log(this.legend, this.chartDatas)
|
|
||||||
this.$refs.messageChart.setRandomColors(this.chartDatas.length)
|
this.$refs.messageChart.setRandomColors(this.chartDatas.length)
|
||||||
this.$refs.messageChart.setLegend(this.legend)
|
this.$refs.messageChart.setLegend(this.legend)
|
||||||
this.$refs.messageChart.setSeries(this.chartDatas)
|
this.$refs.messageChart.setSeries(this.chartDatas)
|
||||||
|
|||||||
@@ -287,7 +287,6 @@ export function stringTimeParseToUnix (stringTime) {
|
|||||||
offset = moment.tz(offset).format('Z')
|
offset = moment.tz(offset).format('Z')
|
||||||
offset = Number.parseInt(offset)
|
offset = Number.parseInt(offset)
|
||||||
const localOffset = new Date().getTimezoneOffset() * 60 * 1000 * -1 // 默认 一分钟显示时区偏移的结果
|
const localOffset = new Date().getTimezoneOffset() * 60 * 1000 * -1 // 默认 一分钟显示时区偏移的结果
|
||||||
// console.log(offset,localOffset, time)
|
|
||||||
time = time + localOffset - offset * 60 * 60 * 1000
|
time = time + localOffset - offset * 60 * 60 * 1000
|
||||||
return parseInt(time / 1000)
|
return parseInt(time / 1000)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -320,7 +320,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
// console.log(this.searchTime, 'this.searchTime')
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
dateChange (val) {
|
dateChange (val) {
|
||||||
|
|||||||
@@ -243,9 +243,9 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</template>
|
</template>
|
||||||
</el-row>
|
</el-row>
|
||||||
<div class="nz-icon-minus-position">
|
<div class="nz-icon-minus-position" style="box-sizing: border-box;
|
||||||
<span class="nz-icon-minus-medium" style="box-sizing: border-box;
|
|
||||||
padding: 10px;">
|
padding: 10px;">
|
||||||
|
<span class="nz-icon-minus-medium">
|
||||||
<i @click="removeExpression(index)" class="nz-icon nz-icon-minus"></i>
|
<i @click="removeExpression(index)" class="nz-icon nz-icon-minus"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="nz-icon-copy">
|
<span class="nz-icon-copy">
|
||||||
|
|||||||
@@ -647,7 +647,6 @@ export default {
|
|||||||
data.pens && data.pens.forEach((item, index) => {
|
data.pens && data.pens.forEach((item, index) => {
|
||||||
this.chartGetData.push({ id: item.id, res: [] })
|
this.chartGetData.push({ id: item.id, res: [] })
|
||||||
let arr = []
|
let arr = []
|
||||||
// console.log(item.data.valueMappingShow)
|
|
||||||
if (item.data.valueMappingShow) {
|
if (item.data.valueMappingShow) {
|
||||||
arr = item.data.expressArr.map((ele) => {
|
arr = item.data.expressArr.map((ele) => {
|
||||||
let query = ele
|
let query = ele
|
||||||
@@ -813,7 +812,6 @@ export default {
|
|||||||
}
|
}
|
||||||
data.pens.forEach(item => {
|
data.pens.forEach(item => {
|
||||||
if (item.type === 0 && item.data.imageId) {
|
if (item.type === 0 && item.data.imageId) {
|
||||||
// console.log(item,item.data.imageId,this.iconArray.find(item1 => item1.id == 44))
|
|
||||||
const img = this.iconArray.find(item1 => item1.id == item.data.imageId)
|
const img = this.iconArray.find(item1 => item1.id == item.data.imageId)
|
||||||
item.image = img ? img.image : imgDefault
|
item.image = img ? img.image : imgDefault
|
||||||
}
|
}
|
||||||
@@ -846,7 +844,6 @@ export default {
|
|||||||
data.bkImage = undefined
|
data.bkImage = undefined
|
||||||
}
|
}
|
||||||
Promise.all(promiseArr).then(res => {
|
Promise.all(promiseArr).then(res => {
|
||||||
// console.log(res)
|
|
||||||
res.forEach((response, index) => {
|
res.forEach((response, index) => {
|
||||||
const item = data.pens[index]
|
const item = data.pens[index]
|
||||||
if (item.type === 0) {
|
if (item.type === 0) {
|
||||||
@@ -1838,7 +1835,6 @@ export default {
|
|||||||
this.previewData = ''
|
this.previewData = ''
|
||||||
this.isPreview = false
|
this.isPreview = false
|
||||||
const topologyData = getTopology(this.topologyIndex).pureData()
|
const topologyData = getTopology(this.topologyIndex).pureData()
|
||||||
// console.log(JSON.stringify(topologyData))
|
|
||||||
let flag = true
|
let flag = true
|
||||||
const arr = []
|
const arr = []
|
||||||
this.notModuleIDArr = []
|
this.notModuleIDArr = []
|
||||||
|
|||||||
@@ -818,7 +818,6 @@ export default {
|
|||||||
}
|
}
|
||||||
data.pens.forEach(item => {
|
data.pens.forEach(item => {
|
||||||
if (item.type === 0 && item.data.imageId) {
|
if (item.type === 0 && item.data.imageId) {
|
||||||
// console.log(item,item.data.imageId,this.iconArray.find(item1 => item1.id == 44))
|
|
||||||
const img = this.iconArray.find(item1 => item1.id == item.data.imageId)
|
const img = this.iconArray.find(item1 => item1.id == item.data.imageId)
|
||||||
item.image = img ? img.image : imgDefault
|
item.image = img ? img.image : imgDefault
|
||||||
}
|
}
|
||||||
@@ -851,7 +850,6 @@ export default {
|
|||||||
data.bkImage = undefined
|
data.bkImage = undefined
|
||||||
}
|
}
|
||||||
Promise.all(promiseArr).then(res => {
|
Promise.all(promiseArr).then(res => {
|
||||||
// console.log(res)
|
|
||||||
res.forEach((response, index) => {
|
res.forEach((response, index) => {
|
||||||
const item = data.pens[index]
|
const item = data.pens[index]
|
||||||
if (item.type === 0) {
|
if (item.type === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user