修改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
+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>