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