Merge branch 'develop' of http://101.36.229.190:90/LAWS/laws-system-front-FOTON into develop
This commit is contained in:
@@ -189,7 +189,6 @@ export default {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
title: '本地工具',
|
title: '本地工具',
|
||||||
path: '/localTool',
|
path: '/localTool',
|
||||||
@@ -383,11 +382,11 @@ export default {
|
|||||||
// path: '/questionsAndAnswers',
|
// path: '/questionsAndAnswers',
|
||||||
// menuId: '8VKLZATQQG4NQHXV9UDS'
|
// menuId: '8VKLZATQQG4NQHXV9UDS'
|
||||||
// },
|
// },
|
||||||
// {
|
{
|
||||||
// title: '我的板块',
|
title: '我的板块',
|
||||||
// path: '/plate',
|
path: '/plate',
|
||||||
// menuId: 'TUYHX8JBWV'
|
menuId: '971d576ef9bce3bddd6f0d6bcc55d184'
|
||||||
// }
|
}
|
||||||
// {
|
// {
|
||||||
// title: '个人信息',
|
// title: '个人信息',
|
||||||
// path: '/info',
|
// path: '/info',
|
||||||
|
|||||||
@@ -80,9 +80,9 @@
|
|||||||
<el-dropdown trigger="click" @command="handleCommand">
|
<el-dropdown trigger="click" @command="handleCommand">
|
||||||
<i class="iconfont"></i>
|
<i class="iconfont"></i>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
<el-dropdown-item v-if="scope.row.disableFlag === '1'" :command="[scope.row, '启用']">启用</el-dropdown-item>
|
<el-dropdown-item v-btn-permission="'30db3b395deb5004266cd65d302c2776'" v-if="scope.row.disableFlag === '1'" :command="[scope.row, '启用']">启用</el-dropdown-item>
|
||||||
<el-dropdown-item v-if="scope.row.disableFlag === '0'" :command="[scope.row, '禁用']">禁用</el-dropdown-item>
|
<el-dropdown-item v-btn-permission="'30db3b395deb5004266cd65d302c2776'" v-if="scope.row.disableFlag === '0'" :command="[scope.row, '禁用']">禁用</el-dropdown-item>
|
||||||
<el-dropdown-item :command="[scope.row, '配置岗位']">配置岗位</el-dropdown-item>
|
<el-dropdown-item v-btn-permission="'ce2d2b9bb8004e0d9efcabc42a9f354d'" :command="[scope.row, '配置岗位']">配置岗位</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -19,6 +19,10 @@
|
|||||||
class="common-button-primary add-button"
|
class="common-button-primary add-button"
|
||||||
@click="Add"
|
@click="Add"
|
||||||
size="mini">新增</el-button>
|
size="mini">新增</el-button>
|
||||||
|
<el-button type="primary"
|
||||||
|
class="common-button-primary add-button"
|
||||||
|
@click="deleteList"
|
||||||
|
size="mini">删除</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
@@ -92,6 +96,16 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
deleteList () {
|
||||||
|
this.$http.delete('lawss/sarMenu', {
|
||||||
|
menuId: this.form.id
|
||||||
|
}, {}, res=> {
|
||||||
|
if (res.ok) {
|
||||||
|
this.getTree()
|
||||||
|
this.$message.success('删除成功')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
confirmDialog () {
|
confirmDialog () {
|
||||||
var form = {}
|
var form = {}
|
||||||
form.parentId = this.form.id
|
form.parentId = this.form.id
|
||||||
|
|||||||
@@ -5,10 +5,12 @@
|
|||||||
<el-button type="primary"
|
<el-button type="primary"
|
||||||
class="common-button-primary add-button"
|
class="common-button-primary add-button"
|
||||||
@click="addModal"
|
@click="addModal"
|
||||||
|
v-btn-permission="'980cb239683de9e29ee5335cec98e5b4'"
|
||||||
size="mini">新增</el-button>
|
size="mini">新增</el-button>
|
||||||
<el-button type="primary"
|
<el-button type="primary"
|
||||||
class="common-button-primary add-button"
|
class="common-button-primary add-button"
|
||||||
@click="addRole"
|
@click="addRole"
|
||||||
|
v-btn-permission="'779665b2e4bb20fc480cf9372a100f69'"
|
||||||
size="mini">配置角色</el-button>
|
size="mini">配置角色</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
@@ -55,8 +57,8 @@
|
|||||||
<el-dropdown trigger="click" @command="handleCommand">
|
<el-dropdown trigger="click" @command="handleCommand">
|
||||||
<i class="iconfont"></i>
|
<i class="iconfont"></i>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
<el-dropdown-item :command="[scope.row, '删除']">删除</el-dropdown-item>
|
<el-dropdown-item v-btn-permission="'0fbb849e244e07433a90180fb314ad10'" :command="[scope.row, '删除']">删除</el-dropdown-item>
|
||||||
<el-dropdown-item :command="[scope.row, '编辑']">编辑</el-dropdown-item>
|
<el-dropdown-item v-btn-permission="'fa0846d977aeef07e9cb7faf648f8f7f'" :command="[scope.row, '编辑']">编辑</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</div>
|
</div>
|
||||||
@@ -296,6 +298,12 @@
|
|||||||
mounted () {
|
mounted () {
|
||||||
this.getData()
|
this.getData()
|
||||||
this.getRole()
|
this.getRole()
|
||||||
|
const menuList = this.$store.getters.getMenuList
|
||||||
|
menuList.forEach(item => {
|
||||||
|
if (item.id === '980cb239683de9e29ee5335cec98e5b4') {
|
||||||
|
console.log('有')
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
<el-button type="primary"
|
<el-button type="primary"
|
||||||
class="common-button-primary add-button"
|
class="common-button-primary add-button"
|
||||||
@click="roleAdd"
|
@click="roleAdd"
|
||||||
|
v-btn-permission="'93e75b6ec0b2b6b0b40d2b11adeba88a'"
|
||||||
size="mini">配置角色资源</el-button>
|
size="mini">配置角色资源</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
@@ -92,6 +93,7 @@
|
|||||||
:default-checked-keys="nodeList"
|
:default-checked-keys="nodeList"
|
||||||
default-expand-all
|
default-expand-all
|
||||||
show-checkbox
|
show-checkbox
|
||||||
|
check-strictly
|
||||||
ref="tree2">
|
ref="tree2">
|
||||||
</el-tree>
|
</el-tree>
|
||||||
</div>
|
</div>
|
||||||
@@ -130,7 +132,6 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeDialog () {
|
closeDialog () {
|
||||||
this.nodeList = []
|
|
||||||
this.modalshowflag = false
|
this.modalshowflag = false
|
||||||
},
|
},
|
||||||
confirmDialog () {
|
confirmDialog () {
|
||||||
@@ -138,7 +139,6 @@ export default {
|
|||||||
menuIds: this.$refs.tree2.getCheckedKeys().concat(this.$refs.tree2.getHalfCheckedKeys()),
|
menuIds: this.$refs.tree2.getCheckedKeys().concat(this.$refs.tree2.getHalfCheckedKeys()),
|
||||||
roleId: this.id
|
roleId: this.id
|
||||||
}, {}, res=> {
|
}, {}, res=> {
|
||||||
console.log(res);
|
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
this.$message.success('设置权限成功')
|
this.$message.success('设置权限成功')
|
||||||
this.modalshowflag = false
|
this.modalshowflag = false
|
||||||
@@ -157,8 +157,8 @@ export default {
|
|||||||
roleId: this.id
|
roleId: this.id
|
||||||
}, {}, res=> {
|
}, {}, res=> {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
this.nodeList = res.data
|
|
||||||
this.modalshowflag = true
|
this.modalshowflag = true
|
||||||
|
this.nodeList = res.data
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
<el-col :span="4" :offset="3">创建时间:{{getDate(item.createTime)}}</el-col>
|
<el-col :span="4" :offset="3">创建时间:{{getDate(item.createTime)}}</el-col>
|
||||||
</div>
|
</div>
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-button size="mini" @click="cancelStandard(item.id)" style="margin-top: -5px; border: 1px dashed #dcdee2" v-btn-permission="'GSMRLL6A4Y'">取消收藏</el-button>
|
<el-button size="mini" @click="cancelStandard(item.id)" style="margin-top: -5px; border: 1px dashed #dcdee2">取消收藏</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -110,8 +110,7 @@ export default {
|
|||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
bzfggllc() {
|
bzfggllc() {
|
||||||
const idArray = ['HXHHBXSBQ9P48K6X6DCJ', '4UUKE8XMZ65BFMSYWWCD', '97MZM7HL57HUJTRBLKLE', '927P4TCCMQ4MT8ZYR8A2']
|
return true
|
||||||
return this.checkPermission(idArray)
|
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 政策管理流程
|
* 政策管理流程
|
||||||
|
|||||||
@@ -2,24 +2,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="accessStandardsAndRegulations" class="v-class">
|
<div id="accessStandardsAndRegulations" class="v-class">
|
||||||
<el-tabs v-model="tabValue" style="height: 100%;">
|
<el-tabs v-model="tabValue" style="height: 100%;">
|
||||||
<el-tab-pane label="国家/地区清单" name="listOfCountries">
|
<el-tab-pane v-for="(item,index) in list" :key="index" :label="item.label" :name="item.name">
|
||||||
<div style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
|
<div v-if="tabValue === 'listOfCountries'" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
|
||||||
<list-of-countries v-if="tabValue === 'listOfCountries'"></list-of-countries>
|
<list-of-countries></list-of-countries>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
<div v-else-if="tabValue === 'listProject'" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
|
||||||
<el-tab-pane label="项目类清单" name="listProject">
|
<list-project></list-project>
|
||||||
<div style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
|
|
||||||
<list-project v-if="tabValue === 'listProject'"></list-project>
|
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
<div v-else-if="tabValue === 'listTracking'" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
|
||||||
<!-- <el-tab-pane label="重点标准跟踪清单" name="listTracking">-->
|
<list-tracking></list-tracking>
|
||||||
<!-- <div style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">-->
|
</div>
|
||||||
<!-- <list-tracking v-if="tabValue === 'listTracking'"></list-tracking>-->
|
<div v-else-if="tabValue === 'listOther'" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
|
||||||
<!-- </div>-->
|
<list-other></list-other>
|
||||||
<!-- </el-tab-pane>-->
|
|
||||||
<el-tab-pane label="其他清单" name="listOther">
|
|
||||||
<div style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
|
|
||||||
<list-other v-if="tabValue === 'listOther'"></list-other>
|
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
@@ -27,90 +21,113 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import listOfCountries from "../accessStandardsAndRegulations/page/listOfCountries";
|
import listOfCountries from "../accessStandardsAndRegulations/page/listOfCountries";
|
||||||
import listProject from "../accessStandardsAndRegulations/page/listProject";
|
import listProject from "../accessStandardsAndRegulations/page/listProject";
|
||||||
import listTracking from "../accessStandardsAndRegulations/page/listTracking";
|
import listTracking from "../accessStandardsAndRegulations/page/listTracking";
|
||||||
import listOther from "../accessStandardsAndRegulations/page/listOther";
|
import listOther from "../accessStandardsAndRegulations/page/listOther";
|
||||||
|
export default {
|
||||||
export default {
|
name: "AccessStandardsAndRegulations",
|
||||||
name: "AccessStandardsAndRegulations",
|
data() {
|
||||||
data() {
|
return {
|
||||||
return {
|
list: [],
|
||||||
tabValue: "listOfCountries"
|
tabValue: ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {},
|
methods: {},
|
||||||
components: {
|
components: {
|
||||||
listOfCountries,
|
listOfCountries,
|
||||||
listProject,
|
listProject,
|
||||||
listTracking,
|
listTracking,
|
||||||
listOther
|
listOther
|
||||||
},
|
},
|
||||||
|
props: {},
|
||||||
props: {},
|
computed: {},
|
||||||
|
watch: {},
|
||||||
computed: {},
|
mounted() {
|
||||||
|
var list = []
|
||||||
watch: {},
|
const menuList = this.$store.getters.getMenuList
|
||||||
|
menuList.forEach(item => {
|
||||||
mounted() {
|
if (item.id === '8e3894cbd5507008aaf949394b7d198b') {
|
||||||
},
|
list.push({
|
||||||
beforeRouteLeave(to, from, next) {
|
label: '国家/地区清单',
|
||||||
const toName = ['ListOfStandardsAndRegulationsDetails', 'Details', 'ProjectAddEit', 'OtherAddEit']
|
name: 'listOfCountries'
|
||||||
// 离开此页面之前,记录tabName以便返回使用,如果将要访问的页面不是这两个,则清空tabName
|
})
|
||||||
if (toName.includes(to.name)) {
|
} else if (item.id === 'f4f95a8b9a02845c8dc0331dbe41e80c') {
|
||||||
this.$store.commit('SET_ACCESS_STANDARD_REG_TABS', this.tabValue)
|
list.push({
|
||||||
} else {
|
label: '项目类清单',
|
||||||
this.$store.commit('SET_ACCESS_STANDARD_REG_TABS')
|
name: 'listProject'
|
||||||
}
|
})
|
||||||
setTimeout(() => {
|
} else if (item.id === 'df227899442db20b31b7cb0b2ac6f5e7') {
|
||||||
next()
|
list.push({
|
||||||
}, 100)
|
label: '重点标准跟踪清单',
|
||||||
},
|
name: 'listTracking'
|
||||||
beforeRouteEnter(to, from, next) {
|
})
|
||||||
next(vm => {
|
} else if (item.id === 'f19255f8e94f04fd85a33a23f4d1fc85') {
|
||||||
if (vm.$store.state.accessStandRegTabName !== '') {
|
list.push({
|
||||||
vm.tabValue = vm.$store.state.accessStandRegTabName
|
label: '其他清单',
|
||||||
|
name: 'listOther'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.list = list
|
||||||
|
this.tabValue = this.list[0].name
|
||||||
|
},
|
||||||
|
beforeRouteLeave(to, from, next) {
|
||||||
|
const toName = ['ListOfStandardsAndRegulationsDetails', 'Details', 'ProjectAddEit', 'OtherAddEit']
|
||||||
|
// 离开此页面之前,记录tabName以便返回使用,如果将要访问的页面不是这两个,则清空tabName
|
||||||
|
if (toName.includes(to.name)) {
|
||||||
|
this.$store.commit('SET_ACCESS_STANDARD_REG_TABS', this.tabValue)
|
||||||
|
} else {
|
||||||
|
this.$store.commit('SET_ACCESS_STANDARD_REG_TABS')
|
||||||
}
|
}
|
||||||
})
|
setTimeout(() => {
|
||||||
}
|
next()
|
||||||
};
|
}, 100)
|
||||||
|
},
|
||||||
|
beforeRouteEnter(to, from, next) {
|
||||||
|
next(vm => {
|
||||||
|
if (vm.$store.state.accessStandRegTabName !== '') {
|
||||||
|
vm.tabValue = vm.$store.state.accessStandRegTabName
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@import '~@/assets/styles/style';
|
@import '~@/assets/styles/style';
|
||||||
@import '~@/assets/styles/mixins';
|
@import '~@/assets/styles/mixins';
|
||||||
|
|
||||||
#accessStandardsAndRegulations {
|
#accessStandardsAndRegulations {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
|
|
||||||
/deep/ .el-tabs {
|
|
||||||
flex: auto;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
/deep/ .el-tabs__header {
|
/deep/ .el-tabs {
|
||||||
margin: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-tabs__content {
|
|
||||||
height: 100% !important;
|
|
||||||
flex: auto;
|
flex: auto;
|
||||||
position: relative;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
.el-tab-pane {
|
/deep/ .el-tabs__header {
|
||||||
height: 100%;
|
margin: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-tabs__content {
|
||||||
|
height: 100% !important;
|
||||||
flex: auto;
|
flex: auto;
|
||||||
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
|
.el-tab-pane {
|
||||||
|
height: 100%;
|
||||||
|
flex: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user