Commit 9f65342f by liimin

合并修改

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