feat(groupConfiguration): topBar更换
This commit is contained in:
parent
0d468e4b61
commit
ad773e2c02
|
@ -122,8 +122,9 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import topBar from '@/components/topBar'
|
import topBar from '@/components/topBar/checked.vue'
|
||||||
import { topList } from './mixins'
|
import { topList } from './mixins'
|
||||||
|
import { getRouters } from '@/api/settle'
|
||||||
import { getGroupConfigurationList, addGroupConfiguration, updateGroupConfiguration, deleteGroupConfiguration } from '@/api/systemconfiguration'
|
import { getGroupConfigurationList, addGroupConfiguration, updateGroupConfiguration, deleteGroupConfiguration } from '@/api/systemconfiguration'
|
||||||
export default {
|
export default {
|
||||||
name: 'Txpz',
|
name: 'Txpz',
|
||||||
|
@ -156,8 +157,21 @@ export default {
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getGroupConfigurationList()
|
this.getGroupConfigurationList()
|
||||||
|
this.getUserRoute()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getUserRoute() {
|
||||||
|
getRouters().then((res) => {
|
||||||
|
console.log(res.data, 'res.data', this.topList)
|
||||||
|
res.data.forEach((item) => {
|
||||||
|
this.topList.forEach((items) => {
|
||||||
|
if (item.routeName == items.url) {
|
||||||
|
this.$set(items, 'changed', true)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
reset() {
|
reset() {
|
||||||
this.queryParams.pageNum = 1
|
this.queryParams.pageNum = 1
|
||||||
this.queryParams.name = ''
|
this.queryParams.name = ''
|
||||||
|
|
|
@ -232,7 +232,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import topBar from '@/components/topBar'
|
import topBar from '@/components/topBar/checked.vue'
|
||||||
import {
|
import {
|
||||||
getvertexList,
|
getvertexList,
|
||||||
deleteVertex,
|
deleteVertex,
|
||||||
|
@ -244,6 +244,7 @@ import {
|
||||||
getGroupConfigurationList
|
getGroupConfigurationList
|
||||||
} from '@/api/systemconfiguration'
|
} from '@/api/systemconfiguration'
|
||||||
import { updateVertexs } from '@/api/settle'
|
import { updateVertexs } from '@/api/settle'
|
||||||
|
import { getRouters } from '@/api/settle'
|
||||||
import { topList } from './mixins'
|
import { topList } from './mixins'
|
||||||
export default {
|
export default {
|
||||||
name: 'Txpz',
|
name: 'Txpz',
|
||||||
|
@ -294,8 +295,21 @@ export default {
|
||||||
this.getvertexList()
|
this.getvertexList()
|
||||||
this.getData()
|
this.getData()
|
||||||
this.getGroupList()
|
this.getGroupList()
|
||||||
|
this.getUserRoute()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getUserRoute() {
|
||||||
|
getRouters().then((res) => {
|
||||||
|
console.log(res.data, 'res.data', this.topList)
|
||||||
|
res.data.forEach((item) => {
|
||||||
|
this.topList.forEach((items) => {
|
||||||
|
if (item.routeName == items.url) {
|
||||||
|
this.$set(items, 'changed', true)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
getData() {
|
getData() {
|
||||||
findVertex().then((res) => {
|
findVertex().then((res) => {
|
||||||
this.vertexList = res.data
|
this.vertexList = res.data
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
export const topList = [
|
export const topList = [
|
||||||
{
|
{
|
||||||
name: '体系配置',
|
name: '体系配置',
|
||||||
path: 'txpz'
|
path: 'txpz',
|
||||||
|
url: 'Systemconfiguration'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '区域体系分组',
|
name: '区域体系分组',
|
||||||
path: 'groupConfiguration'
|
path: 'groupConfiguration',
|
||||||
|
url: 'GroupConfigurationList'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue