Commit 9f65342f by liimin

合并修改

1 parent a804e4d6
......@@ -69,7 +69,7 @@ export default {
curBtns = $store.filter(btn => {
if (category === 'operation') {
return (btn.category === 'operation' || !btn.category) && filter(btn)
}else if(category){ //未指定类别
}else if(!category){ //未指定类别
return !btn.category && filter(btn)
}
return (btn.category === category) && filter(btn)
......
......@@ -195,7 +195,7 @@ export default {
methods: {
async loadBaseData () {
const data = await this.$store.dispatch('d2admin/base/get', BaseData.STATION.KEY)
this.baseData.station = data.confes
this.baseData.station = data
},
loadingGetList () {
......
......@@ -308,7 +308,7 @@ export default {
if (data) {
for (var item in modelToOptions) {
let pos = this.searchFormArr.findIndex(arrItem => arrItem.model == item)
this.searchFormArr[pos].options = data[modelToOptions[item]].confes
this.searchFormArr[pos].options = data[modelToOptions[item]]
}
}
// this.load().then(res => {
......
......@@ -135,7 +135,7 @@ export default {
methods: {
async loadBaseData() {
const data = await this.$store.dispatch('d2admin/base/get', BaseData.STATION.KEY)
this.baseData.station = data.confes
this.baseData.station = data
},
loadingGetList () {
......
......@@ -192,7 +192,7 @@ export default {
async loadBaseData() {
const data = await this.$store.dispatch('d2admin/base/get', BaseData.SUBSYS.KEY)
this.baseData.subsys = data.confes
this.baseData.subsys = data
},
loadingGetList () {
......
......@@ -120,6 +120,7 @@
import { getListApi, reportApi, exportApi } from '@api/systemMonitor'
import notice from '@/common/notice'
import { mapActions } from 'vuex'
import { cloneDeep } from 'lodash'
// import { BaseData } from '@/common/constants'
// require('echarts/lib/chart/pie')
// require('echarts/lib/component/tooltip')
......@@ -266,8 +267,8 @@ export default {
async loadBaseData () {
// this.baseData.station = await this.$store.dispatch('d2admin/base/get', BaseData.STATION.KEY)
const { station, subsys } = await this.load()
this.baseData.station = station.confes
this.baseData.subsys = JSON.parse(JSON.stringify(subsys.confes))
this.baseData.station = cloneDeep(station)
this.baseData.subsys = cloneDeep(subsys)
this.baseData.subsys.unshift({ confCode: '', confValue: '全部'})
// console.log(this.baseData)
},
......
......@@ -186,7 +186,7 @@ export default {
methods: {
async loadBaseData() {
const data = await this.$store.dispatch('d2admin/base/get', BaseData.STATION.KEY)
this.baseData.station = data.confes
this.baseData.station = data
},
loadingGetList () {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!