This commit is contained in:
zhutianqi
2021-06-30 18:56:20 +08:00
parent d8022a0c61
commit e8167776ea
8 changed files with 138 additions and 101 deletions
+5 -6
View File
@@ -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">&#xe61e;</i> <i class="iconfont">&#xe61e;</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
+10 -2
View File
@@ -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">&#xe61e;</i> <i class="iconfont">&#xe61e;</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>
+3 -3
View File
@@ -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>
@@ -105,8 +105,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>
@@ -31,12 +25,12 @@ import listOfCountries from "../accessStandardsAndRegulations/page/listOfCountri
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 {
tabValue: "listOfCountries" list: [],
tabValue: ''
}; };
}, },
methods: {}, methods: {},
@@ -46,14 +40,37 @@ export default {
listTracking, listTracking,
listOther listOther
}, },
props: {}, props: {},
computed: {}, computed: {},
watch: {}, watch: {},
mounted() { mounted() {
var list = []
const menuList = this.$store.getters.getMenuList
menuList.forEach(item => {
if (item.id === '8e3894cbd5507008aaf949394b7d198b') {
list.push({
label: '国家/地区清单',
name: 'listOfCountries'
})
} else if (item.id === 'f4f95a8b9a02845c8dc0331dbe41e80c') {
list.push({
label: '项目类清单',
name: 'listProject'
})
} else if (item.id === 'df227899442db20b31b7cb0b2ac6f5e7') {
list.push({
label: '重点标准跟踪清单',
name: 'listTracking'
})
} else if (item.id === 'f19255f8e94f04fd85a33a23f4d1fc85') {
list.push({
label: '其他清单',
name: 'listOther'
})
}
})
this.list = list
this.tabValue = this.list[0].name
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {
const toName = ['ListOfStandardsAndRegulationsDetails', 'Details', 'ProjectAddEit', 'OtherAddEit'] const toName = ['ListOfStandardsAndRegulationsDetails', 'Details', 'ProjectAddEit', 'OtherAddEit']