修改bug 52565 政策相关功能模块独立

This commit is contained in:
zhangyichen
2022-04-13 16:42:02 +08:00
parent f322e88482
commit 223622650c
10 changed files with 355 additions and 15 deletions
+33 -5
View File
@@ -161,11 +161,11 @@
// path: '/dataStatisComments',
// menuId: ''
// },
{
title: '国内外政策',
path: '/foreignRegulationsDatabase',
menuId: 'ef02a3b0af9a4b3ede460456a9591ebc'
},
// {
// title: '国内外政策',
// path: '/foreignRegulationsDatabase',
// menuId: 'ef02a3b0af9a4b3ede460456a9591ebc'
// },
// // // {
// // // title: '标准制修订管理',
// // // path: '/demo2One'
@@ -208,6 +208,34 @@
// }
]
},
{
title: '政策法规库',
path: '/policyRegulation',
'icon-class': 'el-icon-s-management',
menuId: 'asdzcfgk',
children: [
{
title: '问题项管控',
path: '/problemControl',
menuId: '50d7a0c0af4740c486100c257ae6068e'
},
{
title: '国内外政策',
path: '/nationalPolicy',
menuId: '6557e9c4ce672af71be5807052da126b'
},
{
title: '标准跟踪清单',
path: '/standardTrackingList',
menuId: 'a26b92e156f68dbfe0d73b0dc068ebe4'
},
{
title: '政策工作组',
path: '/policyWorkGroup',
menuId: 'f1a4b33a498e58a8a87c954ce5ce6ad6'
}
]
},
{
title: '工作中心',
path: '/processCenter',
+23
View File
@@ -0,0 +1,23 @@
<template>
<div class="policyRegulation">
<router-view />
</div>
</template>
<script>
export default {
name: 'PolicyRegulation',
data() {
return {
}
},
methods: {
}
}
</script>
<style lang="less" scoped>
.policyRegulation{
height: 100%;
}
</style>
@@ -0,0 +1,27 @@
<template>
<div class="nationalPolicy">
<foreignRegulationsDatabase></foreignRegulationsDatabase>
</div>
</template>
<script>
import foreignRegulationsDatabase from '@/pages/regulatoryRepository/foreignRegulationsDatabase/index'
export default {
name: 'NationalPolicy',
components: {
foreignRegulationsDatabase
},
data() {
return {
}
},
methods: {
}
}
</script>
<style lang="less" scoped>
.nationalPolicy{
height: 100%;
}
</style>
@@ -0,0 +1,74 @@
<template>
<div class="policyWorkGroup">
<el-tabs
v-model="activeName"
class="home-tabs"
>
<!-- <el-tab-pane name="workingGroup1">-->
<!-- <span slot="label"><i class="el-icon-s-order"></i> 标准法规工作组</span>-->
<!-- <workingGroup1 v-if="activeName === 'workingGroup1'"></workingGroup1>-->
<!-- </el-tab-pane>-->
<el-tab-pane name="workingGroup2">
<span slot="label"><i class="el-icon-s-promotion"></i> 政策工作组</span>
<workingGroup2 v-if="activeName === 'workingGroup2'"></workingGroup2>
</el-tab-pane>
</el-tabs>
<el-button size="mini" type="primary" @click="statisticsBtn" v-btn-permission="'2331baafd7d298b87ab3c0b5430d608d'" class="statistics">工作组统计</el-button>
</div>
</template>
<script>
import workingGroup1 from '@/pages/regulatoryRepository/workingGroup/components/workingGroup1'
import workingGroup2 from '@/pages/regulatoryRepository/workingGroup/components/workingGroup2'
export default {
name: 'PolicyWorkGroup',
components: {
workingGroup1,
workingGroup2
},
data() {
return {
activeName: 'workingGroup2',
}
},
methods: {
statisticsBtn(){
this.$router.push({
name: 'dataStatisComments'
})
}
}
}
</script>
<style lang="less" scoped>
.policyWorkGroup{
position: relative;
height: 100%;
.statistics{
position: absolute;
top: 0;
right: 0;
margin: 5px;
}
.home-tabs {
height: 100%;
/deep/.el-tabs__content {
height: calc(~'100% - 55px');
margin: 0 10px;
}
::v-deep.el-tabs__header{
margin: 0 10px 15px 10px;
border-bottom: 1px solid #F4F4F4;
}
::v-deep {
.el-tabs__item {
font-size: 16px;
font-weight: 600;
}
}
.el-tab-pane {
height: 100%;
}
}
}
</style>
@@ -0,0 +1,100 @@
<template>
<div class="problemControl">
<div class="non-content">
<el-tabs v-model="tabValue" @tab-click="handleClick" style="height: 100%">
<!-- <el-tab-pane label="未符合项整改数据库" name="database" v-if="database">-->
<!-- <rectification-database></rectification-database>-->
<!-- </el-tab-pane>-->
<el-tab-pane label="重点问题项管控" name="keynote" v-if="keynote">
<key-issues :keynoteActiveName="keynoteActiveName"></key-issues>
</el-tab-pane>
</el-tabs>
</div>
</div>
</template>
<script>
import keyIssues from "@/pages/regulatoryRepository/nonConfomity/pages/keyIssues";
import rectificationDatabase from "@/pages/regulatoryRepository/nonConfomity/pages/rectificationDatabase";
export default {
name: 'ProblemControl',
components: {
keyIssues,
rectificationDatabase,
},
data() {
return {
keynote: false,
database: false,
menuName: ["未符合项整改数据库", "重点问题项管控"],
tabValue: 'keynote',
keynoteActiveName: 'cause'
}
},
methods: {
handleClick(tab, event) {
},
// getActiveName() {
// if (this.$route.query.activeName) {
// this.activeName = this.$route.query.activeName
// }
// if (this.$route.query.keynoteActiveName) {
// this.keynoteActiveName = this.$route.query.keynoteActiveName
// }
// console.log('35', this.keynoteActiveName)
// }
},
created() {
// this.getActiveName()
},
mounted () {
var list = [];
const menuList = this.$store.getters.getMenuList;
let menuData = [];
let menuID = ["ff7bc984c8115204bba04090f350b19c", "e02897e9ab6b1a72f49c47c07b5be9a5"];
this.menuName.forEach(item => {
for (let i = 0; i < menuList.length; i++) {
let entity = menuList[i];
if (item !== entity.menuName) continue;
if (menuID.indexOf(entity.id) >= 0 && menuData.indexOf(entity.id) === -1) {
menuData.push(entity.id);
if (entity.id === "ff7bc984c8115204bba04090f350b19c") {
this.database = true
} else if (entity.id === "e02897e9ab6b1a72f49c47c07b5be9a5") {
this.keynote = true
}
}
}
});
// this.tabValue = this.database ? 'database' : (this.keynote ? 'keynote' : (this.tracking ? 'listTracking' : (this.other ? 'listOther' : (this.library ? 'localProductsOrProjectLibrary' : ''))))
},
watch: {},
}
</script>
<style lang="less" scoped>
.problemControl {
height: inherit;
display: flex;
flex-direction: column;
background-color: #FFFFFF;
.non-content {
padding: 0 10px;
height: 100%;
/deep/ .el-tabs {
display: flex;
flex-direction: column;
height: 100%;
.el-tabs__content {
flex: 1;
overflow: hidden;
.el-tab-pane {
height: 100%;
}
}
}
}
.el-tabs__nav {
margin-left:20px;
}
}
</style>
@@ -0,0 +1,27 @@
<template>
<div class="standardTrackingList">
<listTracking></listTracking>
</div>
</template>
<script>
import listTracking from "@/pages/regulatoryRepository/accessStandardsAndRegulations/page/listTracking";
export default {
name: 'StandardTrackingList',
components: {
listTracking
},
data() {
return {
}
},
methods: {
}
}
</script>
<style lang="less" scoped>
.standardTrackingList {
height: 100%;
}
</style>
@@ -8,9 +8,9 @@
<el-tab-pane label="车型类别清单" name="listProject" v-if="project">
<list-project></list-project>
</el-tab-pane>
<el-tab-pane label="重点标准跟踪清单" name="listTracking" v-if="tracking">
<list-tracking></list-tracking>
</el-tab-pane>
<!-- <el-tab-pane label="重点标准跟踪清单" name="listTracking" v-if="tracking">-->
<!-- <list-tracking></list-tracking>-->
<!-- </el-tab-pane>-->
<el-tab-pane label="其他清单" name="listOther" v-if="other">
<list-other></list-other>
</el-tab-pane>
@@ -6,9 +6,9 @@
<el-tab-pane label="未符合项整改数据库" name="database" v-if="database">
<rectification-database></rectification-database>
</el-tab-pane>
<el-tab-pane label="重点问题项管控" name="keynote" v-if="keynote">
<key-issues :keynoteActiveName="keynoteActiveName"></key-issues>
</el-tab-pane>
<!-- <el-tab-pane label="重点问题项管控" name="keynote" v-if="keynote">-->
<!-- <key-issues :keynoteActiveName="keynoteActiveName"></key-issues>-->
<!-- </el-tab-pane>-->
</el-tabs>
</div>
</div>
@@ -9,10 +9,10 @@
<span slot="label"><i class="el-icon-s-order"></i> 标准法规工作组</span>
<workingGroup1 v-if="activeName === 'workingGroup1'"></workingGroup1>
</el-tab-pane>
<el-tab-pane name="workingGroup2">
<span slot="label"><i class="el-icon-s-promotion"></i> 政策工作组</span>
<workingGroup2 v-if="activeName === 'workingGroup2'"></workingGroup2>
</el-tab-pane>
<!-- <el-tab-pane name="workingGroup2">-->
<!-- <span slot="label"><i class="el-icon-s-promotion"></i> 政策工作组</span>-->
<!-- <workingGroup2 v-if="activeName === 'workingGroup2'"></workingGroup2>-->
<!-- </el-tab-pane>-->
</el-tabs>
<el-button size="mini" type="primary" @click="statisticsBtn" v-btn-permission="'2331baafd7d298b87ab3c0b5430d608d'" class="statistics">工作组统计</el-button>
</div>
+61
View File
@@ -3542,6 +3542,67 @@ const routes = [
}
]
},
// 政策法规库
{
path: '/policyRegulation',
name: 'PolicyRegulation',
redirect: () => {
return 'problemControl'
},
component: () =>
import('@/pages/policyRegulation/index'),
meta: {
requireAuth: true,
title: '政策法规库',
menuId: 'asdzcfgk'
},
children: [
{
path: '/problemControl',
name: 'ProblemControl',
component: () =>
import('@/pages/policyRegulation/problemControl/index'),
meta: {
requireAuth: true,
title: '问题项管控',
menuId: '50d7a0c0af4740c486100c257ae6068e'
}
},
{
path: '/nationalPolicy',
name: 'NationalPolicy',
component: () =>
import('@/pages/policyRegulation/nationalPolicy'),
meta: {
requireAuth: true,
title: '国内外政策',
menuId: '6557e9c4ce672af71be5807052da126b'
}
},
{
path: '/standardTrackingList',
name: 'StandardTrackingList',
component: () =>
import('@/pages/policyRegulation/standardTrackingList'),
meta: {
requireAuth: true,
title: '标准跟踪清单',
menuId: 'a26b92e156f68dbfe0d73b0dc068ebe4'
}
},
{
path: '/policyWorkGroup',
name: 'PolicyWorkGroup',
component: () =>
import('@/pages/policyRegulation/policyWorkGroup'),
meta: {
requireAuth: true,
title: '政策工作组',
menuId: 'f1a4b33a498e58a8a87c954ce5ce6ad6'
}
}
]
},
// 配置管理
{
path: '/config',