更新
This commit is contained in:
parent
5b57692ef4
commit
c514742d4e
22
src/views/inspection/banner/InspectionBanner.vue
Normal file
22
src/views/inspection/banner/InspectionBanner.vue
Normal file
@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<BannerManager type="jiance" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import BannerManager from "@/views/base/banner/BannerManager.vue";
|
||||
|
||||
export default {
|
||||
name: "InspectionBanner",
|
||||
components: {BannerManager},
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
</style>
|
||||
43
src/views/inspection/notice/InspectionNotice.vue
Normal file
43
src/views/inspection/notice/InspectionNotice.vue
Normal file
@ -0,0 +1,43 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-tabs v-model="activeName">
|
||||
<el-tab-pane v-for="server in serverList" :label="server.name" :name="server.code">
|
||||
<BaseNotice :server="server.code" :parent-server="parentServer" />
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import BaseNotice from "@/views/base/notice/BaseNotice.vue";
|
||||
import {listCategory} from "@/api/system/category";
|
||||
import {DICT_TYPE} from "@/utils/dict";
|
||||
|
||||
export default {
|
||||
name: "InspectionNotice",
|
||||
components: {BaseNotice},
|
||||
data(){
|
||||
return{
|
||||
parentServer: DICT_TYPE.INS_NOTICE_SERVER,
|
||||
serverList: [],
|
||||
activeName: null
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getServerList()
|
||||
},
|
||||
methods:{
|
||||
async getServerList(){
|
||||
const res = await listCategory()
|
||||
this.serverList = this.handleTree(res.data, 'id', 'pid', 'children', '0')
|
||||
.find(item => item.code === DICT_TYPE.NOTICE_SERVER).children
|
||||
.find(item => item.code === DICT_TYPE.INS_NOTICE_SERVER).children
|
||||
this.activeName = this.serverList[0].code
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user