<template>
|
<div>
|
<el-container>
|
<el-header>企业管理</el-header>
|
<el-container>
|
<el-aside width="180px">
|
<el-menu :default-active="$route.path" v-if="enterpriseParams.clickType === 1">
|
<el-menu-item-group>
|
<el-menu-item> <router-link to="/area/enterprise/index"><el-button round size="mini">返回列表</el-button> </router-link></el-menu-item>
|
</el-menu-item-group>
|
<el-menu-item index="/area/enterprise/details/enterpriseBaseInfo">
|
<span slot="title" @click="handleGoD('enterpriseBaseInfo')">企业信息</span>
|
</el-menu-item>
|
<el-menu-item index="/area/enterprise/details/applyInfo">
|
<span slot="title" @click="handleGoD('applyInfo')">申请信息</span>
|
</el-menu-item>
|
<el-menu-item index="/area/enterprise/details/approveOpinion">
|
<span slot="title" @click="handleGoD('approveOpinion')">审批意见</span>
|
</el-menu-item>
|
<el-menu-item index="/area/enterprise/details/approveHistory">
|
<span slot="title" @click="handleGoD('approveHistory')">历史审批意见</span>
|
</el-menu-item>
|
<el-menu-item index="/area/enterprise/details/flowRecord">
|
<span slot="title" @click="handleGoD('flowRecord')">流程流转记录</span>
|
</el-menu-item>
|
<el-menu-item index="/area/enterprise/details/imageInfo">
|
<span slot="title" @click="handleGoD('imageInfo')">影像资料</span>
|
</el-menu-item>
|
<el-menu-item index="/area/enterprise/details/changeHistory">
|
<span slot="title" @click="handleGoD('changeHistory')">维护记录</span>
|
</el-menu-item>
|
</el-menu>
|
<el-menu :default-active="$route.path" v-if="enterpriseParams.clickType === 0">
|
<el-menu-item-group>
|
<el-menu-item> <router-link to="/area/enterprise/index"><el-button round size="mini">返回列表</el-button> </router-link></el-menu-item>
|
</el-menu-item-group>
|
<el-menu-item index="/area/enterprise/update/enterpriseBaseInfo">
|
<span slot="title" @click="handleGo('enterpriseBaseInfo')">企业信息</span>
|
</el-menu-item>
|
<el-menu-item index="/area/enterprise/update/applyInfo">
|
<span slot="title" @click="handleGo('applyInfo')">申请信息</span>
|
</el-menu-item>
|
<el-menu-item index="/area/enterprise/update/imageInfo">
|
<span slot="title" @click="handleGo('imageInfo')">影像资料</span>
|
</el-menu-item>
|
<el-menu-item index="/area/enterprise/update/approveOpinion">
|
<span slot="title" @click="handleGo('approveOpinion')">审批意见</span>
|
</el-menu-item>
|
<el-menu-item index="/area/enterprise/update/approveHistory">
|
<span slot="title" @click="handleGo('approveOpinion')">历史审批意见</span>
|
</el-menu-item>
|
<el-menu-item index="/area/enterprise/update/flowRecord">
|
<span slot="title" @click="handleGo('flowRecord')">流程流转记录</span>
|
</el-menu-item>
|
<el-menu-item index="/area/enterprise/update/changeHistory">
|
<span slot="title" @click="handleGo('changeHistory')">维护记录</span>
|
</el-menu-item>
|
</el-menu>
|
</el-aside>
|
<el-container>
|
<el-main>
|
<router-view id="area"></router-view>
|
</el-main>
|
<!-- <el-footer>-->
|
<!-- <el-row :gutter="20" type="flex" justify="space-around">-->
|
<!-- <el-col :span="8">-->
|
<!-- <el-button size="mini" v-if="prevPageBtn" @click="handlePrevPage">上一页</el-button>-->
|
<!-- <el-button size="mini" type="primary" v-if="nextPageBtn" @click="handleNextPage">下一页</el-button>-->
|
<!-- </el-col>-->
|
<!-- </el-row>-->
|
<!-- </el-footer>-->
|
</el-container>
|
</el-container>
|
</el-container>
|
</div>
|
</template>
|
|
<script>
|
import '../../area/style/areaBuilding.styl'
|
import { mapState } from 'vuex'
|
export default {
|
data: function() {
|
return {}
|
},
|
computed: {
|
...mapState({
|
enterpriseParams: state => state.risk.enterpriseParams
|
})
|
},
|
methods: {
|
handleGo(value) {
|
this.$router.push({ path: '/area/enterprise/update/' + value })
|
},
|
handleGoD(value) {
|
this.$router.push({ path: '/area/enterprise/details/' + value })
|
}
|
}
|
}
|
// import { queryTabAttrs } from '@/api/area'
|
// import { mapState } from 'vuex'
|
// export default {
|
// data: function () {
|
// return {
|
// menu: [],
|
// swithMenu: [],
|
// nextPageBtn: false,
|
// prevPageBtn: false,
|
// currentIndex: 0,
|
// tabName: 'projectBasicInformation'
|
// }
|
// },
|
// created () {
|
// this.initMenu()
|
// },
|
// computed: {
|
// ...mapState({
|
// detailsParams: state => state.risk.detailsParams
|
// })
|
// },
|
// methods: {
|
// initMenu () {
|
// let params = {
|
// isManage: true,
|
// modify: false,
|
// objectType: this.detailsParams.objectType,
|
// serialno: this.detailsParams.serialno
|
// }
|
// queryTabAttrs(params).then(res => {
|
// this.menu = res.result
|
// this.swithMenu = this.menu.filter(item => item.isClick === true)
|
// this.currentIndex = this.menu.findIndex((item) => {
|
// return item.tabName === this.tabName
|
// })
|
// this.prevPageBtn = Boolean(this.swithMenu[this.currentIndex - 1])
|
// this.nextPageBtn = Boolean(this.swithMenu[this.currentIndex + 1])
|
// })
|
// },
|
// handleSwith (value) {
|
// this.tabName = value
|
// this.$router.push({ path: '/area/projectManagement/details/' + value })
|
// this.initMenu()
|
// },
|
// handleNextPage () {
|
// this.tabName = this.swithMenu[this.currentIndex + 1].tabName
|
// this.goDetails(this.tabName)
|
// this.initMenu()
|
// },
|
// handlePrevPage () {
|
// this.tabName = this.swithMenu[this.currentIndex - 1].tabName
|
// this.goDetails(this.tabName)
|
// this.initMenu()
|
// },
|
// goDetails (value) {
|
// this.$router.push({ path: '/area/projectManagement/details/' + value })
|
// }
|
// }
|
// }
|
</script>
|
|
<style lang="stylus" scoped>
|
// .el-header{
|
// padding-left: 20px;
|
// height: 46px !important;
|
// line-height: 46px;
|
// font-size: 14px;
|
// background-color: #F9F9F9;
|
// }
|
.el-aside{
|
border-right 1px solid #eee
|
}
|
// .el-footer{
|
// position: fixed
|
// width 100%
|
// bottom 0
|
// background-color white
|
// height 100px !important
|
// padding-top 20px
|
// }
|
</style>
|