| | |
| | | <system-monitoring v-if="setMenuFlag == 'systemMonitoring'"></system-monitoring> |
| | | <parameter-configuration v-if="setMenuFlag == 'parameterConfiguration'"></parameter-configuration> |
| | | <downlog v-if="setMenuFlag == 'downlog'"></downlog> |
| | | <template-manage v-if="setMenuFlag == 'templateManage'"></template-manage> |
| | | <template-manage v-if="setMenuFlag == 'templateManage'"></template-manage> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | import parameterConfiguration from '@/views/maintenance/parameterConfiguration.vue'; //系统配置 |
| | | import downlog from '@/views/maintenance/downlog.vue'; //下载日志 |
| | | import templateManage from '@/views/userManage/templateManage.vue'//模板管理 |
| | | import { selectMenuRecursive, queryMenuTree, getPerms } from '../../api/api'; |
| | | import { selectMenuRecursive, queryMenuTree, getPerms, sign_insertOpLog } from '../../api/api'; |
| | | import customElMenu from '../../components/customElMenu.vue'; |
| | | |
| | | export default { |
| | |
| | | parameterConfiguration, |
| | | customElMenu, |
| | | downlog, |
| | | templateManage |
| | | templateManage, |
| | | |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | editUnit: false, |
| | | itemdetail: {}, |
| | | formLabelWidth: '70px', |
| | | m1: null, |
| | | }; |
| | | }, |
| | | created() { }, |
| | |
| | | this.$store.state.permsEntity = data.result; |
| | | } |
| | | var store = this.menuList[0]; |
| | | this.m1 = store.cnName; |
| | | this.setViewController(store); |
| | | }, |
| | | getTimeCookies() { |
| | |
| | | this.getCookies(); |
| | | const hanleselectmochaitmo = sessionStorage.getItem('hanleselectmochaitmo') |
| | | if (hanleselectmochaitmo) { |
| | | this.$nextTick(function (){ |
| | | this.$nextTick(function () { |
| | | this.handleselecttwo(JSON.parse(hanleselectmochaitmo).url, JSON.parse(hanleselectmochaitmo)) |
| | | this.setViewController(JSON.parse(hanleselectmochaitmo)) |
| | | this.setViewController(JSON.parse(hanleselectmochaitmo)) |
| | | }) |
| | | } |
| | | // |
| | |
| | | |
| | | // this.treeList = this.treeData(data.result); |
| | | }, |
| | | async signInsertOpLog(m1, m2) { |
| | | var obj = { |
| | | m1: m1, |
| | | m2: m2, |
| | | } |
| | | const data = await sign_insertOpLog(obj); |
| | | |
| | | |
| | | }, |
| | | setViewController(res) { |
| | | if (res == null) { |
| | | return; |
| | | } |
| | | |
| | | if (res.children != null) { |
| | | |
| | | |
| | | this.setViewController(res.children[0]); |
| | | } else { |
| | | |
| | | this.$store.state.currentPerms = res.perms; |
| | | |
| | | this.signInsertOpLog(this.m1, res.cnName) |
| | | this.setMenuFlag = res.url; |
| | | this.activeIndex = res.url; |
| | | } |
| | |
| | | handleselect(index, indexPath, e) { |
| | | this.getTimeCookies(); |
| | | |
| | | this.signInsertOpLog(this.m1, e.$attrs.perms.cnName) |
| | | const a = JSON.stringify(e.$attrs.perms) |
| | | sessionStorage.setItem('hanleselectmochaitmo', a) |
| | | |
| | |
| | | index = 'dataIfream'; |
| | | } |
| | | } |
| | | |
| | | |
| | | this.setMenuFlag = index; |
| | | |
| | | }, |