代码格式化
This commit is contained in:
parent
bbbfd5b259
commit
2f8c20cec4
|
@ -97,17 +97,14 @@ export default {
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
var permissionList = this.$store.getters.permissionList
|
var permissionList = this.$store.getters.permissionList
|
||||||
console.log('permissionList', permissionList)
|
|
||||||
permissionList.forEach((f) => {
|
permissionList.forEach((f) => {
|
||||||
if (f.name === 'abnormal-alarm') {
|
if (f.name === 'abnormal-alarm') {
|
||||||
this.menus = f.children
|
this.menus = f.children
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
console.log('路由信息', this.menus)
|
|
||||||
// this.initDefaultKeys(this.menus[0])
|
// this.initDefaultKeys(this.menus[0])
|
||||||
// 将从缓存中取出openKeys
|
// 将从缓存中取出openKeys
|
||||||
// const openKeys = window.sessionStorage.getItem('openKeys')
|
// const openKeys = window.sessionStorage.getItem('openKeys')
|
||||||
// console.log(openKeys);
|
|
||||||
const selectedKeys = window.sessionStorage.getItem('currMenu_alarm')
|
const selectedKeys = window.sessionStorage.getItem('currMenu_alarm')
|
||||||
if (selectedKeys) {
|
if (selectedKeys) {
|
||||||
// this.defaultSelectedKeys.push(selectedKeys)
|
// this.defaultSelectedKeys.push(selectedKeys)
|
||||||
|
@ -143,7 +140,6 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
// 点击菜单,路由跳转,注意的是当点击MenuItem才会触发此函数
|
// 点击菜单,路由跳转,注意的是当点击MenuItem才会触发此函数
|
||||||
menuClick({ item, key, keyPath }) {
|
menuClick({ item, key, keyPath }) {
|
||||||
console.log(item, key, keyPath)
|
|
||||||
this.currSlecteKey = []
|
this.currSlecteKey = []
|
||||||
window.sessionStorage.setItem('currMenu_alarm', key)
|
window.sessionStorage.setItem('currMenu_alarm', key)
|
||||||
// var parentPath = item._props.parentMenu._props.eventKey;
|
// var parentPath = item._props.parentMenu._props.eventKey;
|
||||||
|
@ -157,7 +153,6 @@ export default {
|
||||||
},
|
},
|
||||||
initDefaultKeys(data) {
|
initDefaultKeys(data) {
|
||||||
this.currSlecteKey = []
|
this.currSlecteKey = []
|
||||||
console.log('datadefaultOpenKeys', data)
|
|
||||||
this.defaultOpenKeys.push(data.path)
|
this.defaultOpenKeys.push(data.path)
|
||||||
data.children.some((f) => {
|
data.children.some((f) => {
|
||||||
if (f.children) {
|
if (f.children) {
|
||||||
|
|
|
@ -248,11 +248,7 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// setGroupName(e) {
|
|
||||||
// this.groupName = e.target.value
|
|
||||||
// },
|
|
||||||
handleChange(targetKeys, direction, moveKeys) {
|
handleChange(targetKeys, direction, moveKeys) {
|
||||||
console.log(targetKeys, direction, moveKeys)
|
|
||||||
this.targetKeys = targetKeys
|
this.targetKeys = targetKeys
|
||||||
},
|
},
|
||||||
handleOk() {
|
handleOk() {
|
||||||
|
|
|
@ -268,8 +268,6 @@ export default {
|
||||||
let params = {
|
let params = {
|
||||||
startDate: obj.startDate,
|
startDate: obj.startDate,
|
||||||
endDate: obj.endDate,
|
endDate: obj.endDate,
|
||||||
// startDate:"2023-07-15",
|
|
||||||
// endDate:"2023-07-21"
|
|
||||||
}
|
}
|
||||||
postAction('/alarmLog/typeAlarms', params).then((res) => {
|
postAction('/alarmLog/typeAlarms', params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
@ -292,7 +290,6 @@ export default {
|
||||||
this.getAlarmLogTable(this.paramsArg)
|
this.getAlarmLogTable(this.paramsArg)
|
||||||
},
|
},
|
||||||
handleTabChange(key) {
|
handleTabChange(key) {
|
||||||
console.log(key)
|
|
||||||
if (key == 'alarmAnalysis') {
|
if (key == 'alarmAnalysis') {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.drawAlarmChart_pie()
|
this.drawAlarmChart_pie()
|
||||||
|
@ -374,7 +371,6 @@ export default {
|
||||||
type: obj.types,
|
type: obj.types,
|
||||||
}
|
}
|
||||||
postAction('/alarmLog/ruleTop', params).then((res) => {
|
postAction('/alarmLog/ruleTop', params).then((res) => {
|
||||||
console.log(res)
|
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.xData_top = res.result.yData
|
this.xData_top = res.result.yData
|
||||||
this.yData_top = res.result.xData
|
this.yData_top = res.result.xData
|
||||||
|
|
|
@ -285,7 +285,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onSourceChange(val) {
|
onSourceChange(val) {
|
||||||
console.log(val)
|
|
||||||
this.queryParams.sources = val
|
this.queryParams.sources = val
|
||||||
let length = this.sourceOptions.length
|
let length = this.sourceOptions.length
|
||||||
if (val.length === length) {
|
if (val.length === length) {
|
||||||
|
|
|
@ -159,7 +159,6 @@ export default {
|
||||||
}
|
}
|
||||||
getAction('/sysDatabase/dbNames', params).then((res) => {
|
getAction('/sysDatabase/dbNames', params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
console.log(res)
|
|
||||||
this.dbName = res.result[0]
|
this.dbName = res.result[0]
|
||||||
this.ondbNameChange(this.dbName)
|
this.ondbNameChange(this.dbName)
|
||||||
this.dbNameOptions = res.result.map((item) => {
|
this.dbNameOptions = res.result.map((item) => {
|
||||||
|
|
|
@ -143,7 +143,6 @@ export default {
|
||||||
}
|
}
|
||||||
getAction('/sysDatabase/spaceInfo', params).then((res) => {
|
getAction('/sysDatabase/spaceInfo', params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
console.log(res)
|
|
||||||
this.dataSource = res.result
|
this.dataSource = res.result
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('This operation fails. Contact your system administrator')
|
this.$message.warning('This operation fails. Contact your system administrator')
|
||||||
|
|
|
@ -497,7 +497,6 @@ export default {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
},
|
},
|
||||||
onRowDbclick(record) {
|
onRowDbclick(record) {
|
||||||
console.log(record)
|
|
||||||
let query = {
|
let query = {
|
||||||
id: record.id,
|
id: record.id,
|
||||||
}
|
}
|
||||||
|
|
|
@ -388,7 +388,6 @@ export default {
|
||||||
onSave() {
|
onSave() {
|
||||||
this.form.validateFields((err, values) => {
|
this.form.validateFields((err, values) => {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
console.log('Received values of form: ', values)
|
|
||||||
if (this.isAdd) {
|
if (this.isAdd) {
|
||||||
postAction('/sysEmail/create', values).then((res) => {
|
postAction('/sysEmail/create', values).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|
|
@ -216,7 +216,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.currServer)
|
|
||||||
this.sourceOptions = this.serverList
|
this.sourceOptions = this.serverList
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
|
@ -589,7 +589,6 @@ export default {
|
||||||
xAxis: {
|
xAxis: {
|
||||||
label: {
|
label: {
|
||||||
formatter: (params) => {
|
formatter: (params) => {
|
||||||
// console.log(params)
|
|
||||||
const percentage = params / 100,
|
const percentage = params / 100,
|
||||||
index = parseInt((data.length - 1) * percentage)
|
index = parseInt((data.length - 1) * percentage)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user