feat:alertMessage 上滑框 state 暂时默认给1
This commit is contained in:
@@ -61,7 +61,6 @@ export default {
|
||||
obj: {
|
||||
immediate: true,
|
||||
handler (n) {
|
||||
console.log(n)
|
||||
if (n) {
|
||||
this.getTableData()
|
||||
}
|
||||
@@ -294,7 +293,6 @@ export default {
|
||||
delete this.searchLabel.endAt
|
||||
}
|
||||
this.tools.loading = true
|
||||
console.log(this.obj,123123123123)
|
||||
if (this.from === fromRoute.module) {
|
||||
this.searchLabel.moduleIds = this.obj.id
|
||||
} else if (this.from === fromRoute.endpoint) {
|
||||
@@ -304,6 +302,8 @@ export default {
|
||||
} else if (this.from === fromRoute.alertRule) {
|
||||
this.searchLabel.ruleIds = this.obj.id
|
||||
}
|
||||
// state 暂时默认1
|
||||
this.searchLabel.state = 1
|
||||
this.$get(this.url, this.searchLabel).then(response => {
|
||||
this.tools.loading = false
|
||||
if (response.code === 200) {
|
||||
|
||||
@@ -84,7 +84,6 @@ export default {
|
||||
immediate: true,
|
||||
handler (n) {
|
||||
this.formatTime = new Date(bus.computeTimezoneTime(new Date()))
|
||||
console.log(n)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -64,7 +64,6 @@ export default {
|
||||
this.$emit('showBottomBox', targetTab, JSON.parse(JSON.stringify(row)))
|
||||
},
|
||||
tableDataSort (item) {
|
||||
console.log(item)
|
||||
let orderBy = ''
|
||||
if (item.order === 'ascending') {
|
||||
orderBy = item.prop
|
||||
@@ -72,7 +71,6 @@ export default {
|
||||
if (item.order === 'descending') {
|
||||
orderBy = '-' + item.prop
|
||||
}
|
||||
console.log(orderBy)
|
||||
this.$emit('orderBy', orderBy)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,7 +99,6 @@ export default {
|
||||
this.visible = false
|
||||
this.interval = val.value
|
||||
this.interLabel = val.label
|
||||
console.info(this.interval, val)
|
||||
if (!this.showTimePicker && val && val.value != -1) {
|
||||
this.intervalTimer = setInterval(() => {
|
||||
this.$emit('change', this.searchTime)
|
||||
|
||||
@@ -104,7 +104,6 @@ export default {
|
||||
this.popBox.show = true
|
||||
},
|
||||
hideDetail (data, num) {
|
||||
console.log(data, num)
|
||||
this.tempWalk.detailShow = false
|
||||
},
|
||||
showDetail (data, e) {
|
||||
|
||||
@@ -626,7 +626,6 @@ export default {
|
||||
arr.push(obj)
|
||||
})
|
||||
this.$put('monitor/endpoint/render', arr).then(res => {
|
||||
console.log(res)
|
||||
if (res.code === 200) {
|
||||
res.data.list.forEach((item, index) => {
|
||||
const obj = item
|
||||
@@ -652,7 +651,6 @@ export default {
|
||||
...obj
|
||||
})
|
||||
})
|
||||
console.log(this.endpointTableData)
|
||||
}
|
||||
})
|
||||
this.assetTableData = [...this.assetTableData]
|
||||
|
||||
@@ -292,13 +292,11 @@ export default {
|
||||
})
|
||||
},
|
||||
receiverShowChange (val) {
|
||||
console.log(val)
|
||||
if (!val.length) {
|
||||
this.$refs.alertRuleForm.validateField('method')
|
||||
}
|
||||
},
|
||||
validateNotify (rule, value, callback) {
|
||||
console.log(value)
|
||||
if (this.editAlertRule.receiverShow.length && value.length === 0) {
|
||||
callback(new Error(this.$t('validate.required')))
|
||||
} else {
|
||||
|
||||
@@ -551,7 +551,6 @@ export default {
|
||||
item.assetName = item.asset.name
|
||||
item.type = item.module.type
|
||||
})
|
||||
console.log(this.endpointTableData)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -699,7 +699,6 @@ export default {
|
||||
deep: true,
|
||||
immediate: true,
|
||||
handler (n) {
|
||||
console.log(n)
|
||||
if (n && n.configs) {
|
||||
const params = Object.assign({}, n.configs)
|
||||
params.params = this.paramToJson(this.editEndpoint.paramObj)
|
||||
|
||||
@@ -201,7 +201,6 @@ export default {
|
||||
result2.push(item)
|
||||
}
|
||||
})
|
||||
console.log([...result, ...result2])
|
||||
return [...result, ...result2]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -336,7 +336,6 @@ export default {
|
||||
this.isCustom = true
|
||||
this.$refs.calendar.focus()
|
||||
this.$refs.calendar.pickerVisible = true
|
||||
console.log(this.$refs.calendar)
|
||||
}
|
||||
} else {
|
||||
this.isCustom = false
|
||||
|
||||
@@ -260,7 +260,6 @@ export default {
|
||||
} else {
|
||||
localStorage.removeItem('endpointProjectId')
|
||||
}
|
||||
console.log()
|
||||
this.tools.loading = true
|
||||
this.$get(this.url, params).then(response => {
|
||||
this.tools.loading = false
|
||||
@@ -286,12 +285,10 @@ export default {
|
||||
}
|
||||
this.searchCheckBox[key] = obj[key].join(',')
|
||||
})
|
||||
console.log(obj, this.searchCheckBox)
|
||||
this.getTableData()
|
||||
},
|
||||
getTitleSearch () {
|
||||
this.$get('monitor/project', { pageSize: -1 }).then(res => {
|
||||
console.log(res)
|
||||
if (res.code === 200) {
|
||||
res.data.list.forEach((item) => {
|
||||
this.titleSearchList.project.children.push(
|
||||
@@ -301,7 +298,6 @@ export default {
|
||||
}
|
||||
})
|
||||
this.$get('monitor/module', { pageSize: -1 }).then(res => {
|
||||
console.log(res)
|
||||
if (res.code === 200) {
|
||||
res.data.list.forEach((item) => {
|
||||
this.titleSearchList.module.children.push(
|
||||
|
||||
Reference in New Issue
Block a user