Commit 888f1316 authored by FE-安焕焕's avatar FE-安焕焕 👣

修改登录重复提示,浏览器回退高亮菜单,

parent 284f851f
......@@ -383,7 +383,7 @@
},
"asap": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz",
"resolved": "http://npmprivate.quantgroups.com/asap/-/asap-2.0.6.tgz",
"integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=",
"optional": true
},
......@@ -436,7 +436,7 @@
},
"assert-plus": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/assert-plus/-/assert-plus-1.0.0.tgz",
"integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
"optional": true
},
......@@ -469,7 +469,7 @@
},
"async-validator": {
"version": "1.11.3",
"resolved": "https://registry.npmjs.org/async-validator/-/async-validator-1.11.3.tgz",
"resolved": "http://npmprivate.quantgroups.com/async-validator/-/async-validator-1.11.3.tgz",
"integrity": "sha512-Xeyt+fpqTSYeC++J/M/KkBq8UEGiAkjjKTirKhvkR9M9q+iZNCsv6ffVWNySllAuNPZ+SqzKMgBuvWHILjHatg==",
"requires": {
"babel-runtime": "6.x"
......@@ -477,7 +477,7 @@
},
"asynckit": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/asynckit/-/asynckit-0.4.0.tgz",
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=",
"optional": true
},
......@@ -503,7 +503,7 @@
},
"aws-sign2": {
"version": "0.7.0",
"resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/aws-sign2/-/aws-sign2-0.7.0.tgz",
"integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=",
"optional": true
},
......@@ -515,7 +515,7 @@
},
"axios": {
"version": "0.19.0",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.19.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/axios/-/axios-0.19.0.tgz",
"integrity": "sha512-1uvKqKQta3KBxIz14F2v06AEHZ/dIoeKfbTRkK1E5oqjDnuEerLmYTgJB5AiQZHJcljpg1TuRzdjDR06qNk0DQ==",
"requires": {
"follow-redirects": "1.5.10",
......@@ -524,7 +524,7 @@
"dependencies": {
"debug": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/debug/-/debug-3.1.0.tgz",
"integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
"requires": {
"ms": "2.0.0"
......@@ -532,7 +532,7 @@
},
"follow-redirects": {
"version": "1.5.10",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz",
"resolved": "http://npmprivate.quantgroups.com/follow-redirects/-/follow-redirects-1.5.10.tgz",
"integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==",
"requires": {
"debug": "=3.1.0"
......@@ -540,7 +540,7 @@
},
"is-buffer": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.3.tgz",
"resolved": "http://npmprivate.quantgroups.com/is-buffer/-/is-buffer-2.0.3.tgz",
"integrity": "sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw=="
}
}
......@@ -1480,12 +1480,12 @@
},
"batch-processor": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/batch-processor/-/batch-processor-1.0.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/batch-processor/-/batch-processor-1.0.0.tgz",
"integrity": "sha1-dclcMrdI4IUNEMKxaPa9vpiRrOg="
},
"bcrypt-pbkdf": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
"resolved": "http://npmprivate.quantgroups.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
"integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
"optional": true,
"requires": {
......@@ -1857,7 +1857,7 @@
},
"caseless": {
"version": "0.12.0",
"resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/caseless/-/caseless-0.12.0.tgz",
"integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=",
"optional": true
},
......@@ -2945,7 +2945,7 @@
},
"dashdash": {
"version": "1.14.1",
"resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
"resolved": "http://npmprivate.quantgroups.com/dashdash/-/dashdash-1.14.1.tgz",
"integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
"optional": true,
"requires": {
......@@ -2999,7 +2999,7 @@
},
"deepmerge": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-2.2.1.tgz",
"resolved": "http://npmprivate.quantgroups.com/deepmerge/-/deepmerge-2.2.1.tgz",
"integrity": "sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA=="
},
"define-properties": {
......@@ -3103,7 +3103,7 @@
},
"delayed-stream": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/delayed-stream/-/delayed-stream-1.0.0.tgz",
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",
"optional": true
},
......@@ -3268,7 +3268,7 @@
},
"ecc-jsbn": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
"resolved": "http://npmprivate.quantgroups.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
"integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
"optional": true,
"requires": {
......@@ -3296,7 +3296,7 @@
},
"element-resize-detector": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/element-resize-detector/-/element-resize-detector-1.2.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/element-resize-detector/-/element-resize-detector-1.2.0.tgz",
"integrity": "sha512-UmhNB8sIJVZeg56gEjgmMd6p37sCg8j8trVW0LZM7Wzv+kxQ5CnRHcgRKBTB/kFUSn3e7UP59kl2V2U8Du1hmg==",
"requires": {
"batch-processor": "1.0.0"
......@@ -3443,7 +3443,7 @@
},
"es6-promise": {
"version": "4.2.8",
"resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz",
"resolved": "http://npmprivate.quantgroups.com/es6-promise/-/es6-promise-4.2.8.tgz",
"integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w=="
},
"es6-set": {
......@@ -4077,7 +4077,7 @@
},
"extsprintf": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/extsprintf/-/extsprintf-1.3.0.tgz",
"integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=",
"optional": true
},
......@@ -4316,7 +4316,7 @@
},
"forever-agent": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
"resolved": "http://npmprivate.quantgroups.com/forever-agent/-/forever-agent-0.6.1.tgz",
"integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=",
"optional": true
},
......@@ -5004,7 +5004,7 @@
},
"getpass": {
"version": "0.1.7",
"resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
"resolved": "http://npmprivate.quantgroups.com/getpass/-/getpass-0.1.7.tgz",
"integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
"optional": true,
"requires": {
......@@ -5095,7 +5095,7 @@
},
"har-schema": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/har-schema/-/har-schema-2.0.0.tgz",
"integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=",
"optional": true
},
......@@ -5414,7 +5414,7 @@
},
"http-signature": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/http-signature/-/http-signature-1.2.0.tgz",
"integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
"optional": true,
"requires": {
......@@ -5473,7 +5473,7 @@
},
"image-size": {
"version": "0.5.5",
"resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz",
"resolved": "http://npmprivate.quantgroups.com/image-size/-/image-size-0.5.5.tgz",
"integrity": "sha1-Cd/Uq50g4p6xw+gLiZA3jfnjy5w=",
"optional": true
},
......@@ -5881,7 +5881,7 @@
},
"is-typedarray": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/is-typedarray/-/is-typedarray-1.0.0.tgz",
"integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=",
"optional": true
},
......@@ -5932,13 +5932,13 @@
},
"isstream": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
"resolved": "http://npmprivate.quantgroups.com/isstream/-/isstream-0.1.2.tgz",
"integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=",
"optional": true
},
"iview": {
"version": "3.4.2",
"resolved": "https://registry.npmjs.org/iview/-/iview-3.4.2.tgz",
"resolved": "http://npmprivate.quantgroups.com/iview/-/iview-3.4.2.tgz",
"integrity": "sha512-02GK6ew+ufywSk3bGJYQZJxnPzyqfolVIfeJOZPFjf671SUPDMQJ/NTDbTAFJVF/jHJJHFaVdqtvStTKf95xpA==",
"requires": {
"async-validator": "^1.10.0",
......@@ -5959,7 +5959,7 @@
},
"js-calendar": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/js-calendar/-/js-calendar-1.2.3.tgz",
"resolved": "http://npmprivate.quantgroups.com/js-calendar/-/js-calendar-1.2.3.tgz",
"integrity": "sha512-dAA1/Zbp4+c5E+ARCVTIuKepXsNLzSYfzvOimiYD4S5eeP9QuplSHLcdhfqFSwyM1o1u6ku6RRRCyaZ0YAjiBw=="
},
"js-cookie": {
......@@ -5985,7 +5985,7 @@
},
"jsbn": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
"resolved": "http://npmprivate.quantgroups.com/jsbn/-/jsbn-0.1.1.tgz",
"integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
"optional": true
},
......@@ -6009,7 +6009,7 @@
},
"json-schema": {
"version": "0.2.3",
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
"resolved": "http://npmprivate.quantgroups.com/json-schema/-/json-schema-0.2.3.tgz",
"integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=",
"optional": true
},
......@@ -6027,7 +6027,7 @@
},
"json-stringify-safe": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
"resolved": "http://npmprivate.quantgroups.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
"integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=",
"optional": true
},
......@@ -6045,7 +6045,7 @@
},
"jsprim": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
"resolved": "http://npmprivate.quantgroups.com/jsprim/-/jsprim-1.4.1.tgz",
"integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
"optional": true,
"requires": {
......@@ -6120,7 +6120,7 @@
},
"less-loader": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/less-loader/-/less-loader-5.0.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/less-loader/-/less-loader-5.0.0.tgz",
"integrity": "sha512-bquCU89mO/yWLaUq0Clk7qCsKhsF/TZpJUzETRvJa9KSVEL9SO3ovCvdEHISBhrC81OwC8QSVX7E0bzElZj9cg==",
"requires": {
"clone": "^2.1.1",
......@@ -6130,12 +6130,12 @@
"dependencies": {
"clone": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz",
"resolved": "http://npmprivate.quantgroups.com/clone/-/clone-2.1.2.tgz",
"integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18="
},
"pify": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz",
"resolved": "http://npmprivate.quantgroups.com/pify/-/pify-4.0.1.tgz",
"integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g=="
}
}
......@@ -6313,7 +6313,7 @@
},
"lodash.throttle": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz",
"resolved": "http://npmprivate.quantgroups.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz",
"integrity": "sha1-wj6RtxAkKscMN/HhzaknTMOb8vQ="
},
"lodash.uniq": {
......@@ -7685,7 +7685,7 @@
},
"performance-now": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/performance-now/-/performance-now-2.1.0.tgz",
"integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=",
"optional": true
},
......@@ -7727,7 +7727,7 @@
},
"popper.js": {
"version": "1.15.0",
"resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.15.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/popper.js/-/popper.js-1.15.0.tgz",
"integrity": "sha512-w010cY1oCUmI+9KwwlWki+r5jxKfTFDVoadl7MSrIujHU5MJ5OR6HTDj6Xo8aoR/QsA56x8jKjA59qGH4ELtrA=="
},
"portfinder": {
......@@ -9808,7 +9808,7 @@
},
"tinycolor2": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.4.1.tgz",
"resolved": "http://npmprivate.quantgroups.com/tinycolor2/-/tinycolor2-1.4.1.tgz",
"integrity": "sha1-9PrTM0R7wLB9TcjpIJ2POaisd+g="
},
"tmp": {
......@@ -9911,7 +9911,7 @@
},
"tunnel-agent": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
"integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
"optional": true,
"requires": {
......@@ -9920,7 +9920,7 @@
},
"tweetnacl": {
"version": "0.14.5",
"resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
"resolved": "http://npmprivate.quantgroups.com/tweetnacl/-/tweetnacl-0.14.5.tgz",
"integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=",
"optional": true
},
......@@ -10275,7 +10275,7 @@
},
"v-click-outside-x": {
"version": "3.7.1",
"resolved": "https://registry.npmjs.org/v-click-outside-x/-/v-click-outside-x-3.7.1.tgz",
"resolved": "http://npmprivate.quantgroups.com/v-click-outside-x/-/v-click-outside-x-3.7.1.tgz",
"integrity": "sha512-WmUgmcIXr9clVpm1AYS/FgHtcDicfnfoxgQCNg4O6vfk9GVnxA0vSqO321ogUo0b7czYTidj7fQENvWFMWOkUg=="
},
"validate-npm-package-license": {
......@@ -10302,7 +10302,7 @@
},
"verror": {
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/verror/-/verror-1.10.0.tgz",
"integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
"optional": true,
"requires": {
......@@ -10355,7 +10355,7 @@
},
"vue-happy-scroll": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/vue-happy-scroll/-/vue-happy-scroll-2.1.0.tgz",
"resolved": "http://npmprivate.quantgroups.com/vue-happy-scroll/-/vue-happy-scroll-2.1.0.tgz",
"integrity": "sha512-BY7/Ce4VtBfpinLQZiE6wE3/OV+9yJueM3Ti/OY3Bfdx1wqkJ6X3babi1gV6sj6x5j6rObm+GIVJ0cxC0W8Zcg==",
"dev": true,
"requires": {
......@@ -10458,9 +10458,14 @@
},
"vue-upload-component": {
"version": "2.8.20",
"resolved": "https://registry.npmjs.org/vue-upload-component/-/vue-upload-component-2.8.20.tgz",
"resolved": "http://npmprivate.quantgroups.com/vue-upload-component/-/vue-upload-component-2.8.20.tgz",
"integrity": "sha512-zrnJvULu4rnZe36Ib2/AZrI/h/mmNbUJZ+acZD652PyumzbvjCOQeYHe00sGifTdYjzzS66CwhTT+ubZ2D0Aow=="
},
"vuex": {
"version": "3.1.1",
"resolved": "https://registry.npm.taobao.org/vuex/download/vuex-3.1.1.tgz",
"integrity": "sha1-DCZL/jDNvM+Wq52zF30hGCilkQ4="
},
"watchpack": {
"version": "1.6.0",
"resolved": "http://npmprivate.quantgroups.com/watchpack/-/watchpack-1.6.0.tgz",
......
......@@ -21,7 +21,8 @@
"qs": "^6.7.0",
"vue": "^2.5.2",
"vue-router": "^3.0.1",
"vue-upload-component": "^2.8.20"
"vue-upload-component": "^2.8.20",
"vuex": "^3.1.1"
},
"devDependencies": {
"autoprefixer": "^7.1.2",
......
......@@ -2,14 +2,14 @@
<Row id="home" class="home">
<Col span="3" class="aside" style="width:17%;height:100%">
<img src="https://o7oe0d6qz.qnssl.com/image/homelogo.png" alt="" style="height:60px">
<Menu style="width: 100%;" ref='subMenu' :active-name="vSubName" :open-names="vName" @on-select="go">
<Menu style="width: 100%;" ref='subMenu' :active-name="levelThreeName" :open-names="levelTwoName" @on-select="go">
<template v-for="(menu) in childMenu" >
<Submenu :name="menu.name" :key="menu.name" v-show='!(isAdmin==false&&menu.item=="账户管理")'>
<template slot="title">
<Icon :type="menu.icon" style="font-size:20px;font-weight:bold"/>
{{menu.item}}
</template>
<MenuItem v-for="child in menu.child" :key="child.name" :name="child.name" @click="go" :active-name="vSubName">{{child.item}}</MenuItem>
<MenuItem v-for="child in menu.child" :key="child.name" :name="child.name" @click="go" :active-name="levelThreeName">{{child.item}}</MenuItem>
</Submenu>
</template>
</Menu>
......@@ -17,7 +17,7 @@
<Col span="21" class="content" style="width:83%;height:100%">
<Row class="header" style="height:6%">
<Col span="20">
<Menu mode="horizontal" :active-name="hName" @on-select="selectMenu">
<Menu mode="horizontal" :active-name="levelOneName" @on-select="selectMenu">
<MenuItem v-for="menu in menuList" :name="menu.name" :key="menu.name" >
{{menu.item}}
</MenuItem>
......@@ -54,12 +54,13 @@ import localstorage from '../service/localstorage.service.js'
xiabiao:'',
itemSelect:'',
type:'',
hName: '',
vName: ['1-1', '2-1', '3-1', '4-1'],
vSubName: '1-1-1',
levelOneName: '',
levelTwoName: ['1-1', '2-1', '3-1', '4-1'],
levelThreeName: '1-1-1',
menuList: [
{ name: '1',
item: '简历管理',
loadMenu: true,
child: [
{
name: '1-1',
......@@ -106,15 +107,17 @@ import localstorage from '../service/localstorage.service.js'
}]
},
{ name: '4',
item: '系统管理',
item: '系统管理',
isAdmin: true,
child: [{
name: '4-1',
item: '账户管理',
icon: 'ios-contact-outline',
show: true,
child: [{
name: '4-1-1',
item:'账户管理',
route: '/account'
route: '/account'
}]
},
{ name: '4-2',
......@@ -136,8 +139,7 @@ import localstorage from '../service/localstorage.service.js'
] },
],
childMenu: [{ name: '1-1', item: '全部管理', child: [{ name: '1-1-1', item:'全部简历', route: '/allResume' }] },
{ name: '1-2', item: '渠道简历', child: [] }]
childMenu: []
}
},
watch:{
......@@ -150,7 +152,7 @@ import localstorage from '../service/localstorage.service.js'
},
methods: {
go(name) {
this.vSubName = name
this.levelThreeName = name
this.childMenu.map(par => {
par.child.map(child => {
if (child.name == name) {
......@@ -159,32 +161,33 @@ import localstorage from '../service/localstorage.service.js'
})
})
},
selectMenu(name, type) {
// type是否为刷新页面
this.hName = name
const menus = this.menuList.filter(v => name === v.name)
this.childMenu = menus.length > 0 ? menus[0].child : [{ name: '1-1', item: '全部管理', child: [{ name: '1-1-1', item:'全部简历', route: '/allResume' }] },{ name: '1-2', item: '渠道简历', child: [] }]
if (!type) { // 点击菜单默认展示第一个菜单
this.vName = []
this.vName[0] = ((name == '4') && this.isAdmin && this.childMenu[0].name) || ((name == '4') && !this.isAdmin && this.childMenu[1].name) || this.childMenu[0].name
this.vSubName = ((name == '4') && this.isAdmin && this.childMenu[0].child[0].name) || ((name == '4') && !this.isAdmin && this.childMenu[1].child[0].name) || this.childMenu[0].child[0].name
selectMenu(name, refesh) {
// // refesh是否为刷新页面
this.levelOneName = name
const menus = this.menuList.filter(v => name === v.name)[0]
this.childMenu = menus.child ? menus.child : this.menuList[0].child
if (!refesh) { // 点击菜单默认展示第一个菜单
this.levelTwoName = []
let initName = this.getInitName(name, menus)
this.levelTwoName.push(initName.levelTwoName)
this.levelThreeName = initName.levelThreeName
}
if (name == '1') { // 简历管理模块需要加载渠道简历
if (menus.loadMenu) { // 简历管理模块需要加载渠道简历
this.getChannelMenu()
}
if (type&&this.$route.path.indexOf('channel') > -1) {
this.vSubName = this.$route.path.split('/')[2]
if (refesh&&this.$route.path.indexOf('channel') > -1) {
this.levelThreeName = this.$route.path.split('/')[2]
}
this.$nextTick(() => {
this.$refs.subMenu.updateOpened();
this.$refs.subMenu.updateActiveName();
})
this.go(this.vSubName)
this.go(this.levelThreeName)
},
// 获取个人信息
getmassage(){
getpersonMassage().then(res=>{
this.massage=res.data.body.userName
this.massage=res.data.body&&res.data.body.userName || ''
})
},
// 用户退出
......@@ -193,19 +196,22 @@ import localstorage from '../service/localstorage.service.js'
if(res.data.success==true){
localstorage.remove('token')
localstorage.remove('isADMIN')
this.$router.push('/login')
this.$router.replace('/login')
}
})
},
getChannelMenu(){
this.menuList[0].child[1].child = []
getChannelMassage().then(res=>{
this.channelARR=res.data.body
if (!res.data.status) {
return
}
this.channelARR=res.data.body || []
this.channelARR.map((item,index) => {
var obj = {
name: `${item.sourceName}`,
item: item.sourceName,
route: `/channel/${item.sourceCode}`
name: `${item.sourceName}`,
item: item.sourceName,
route: `/channel/${item.sourceCode}`
}
this.menuList[0].child[1].child.push(obj)
})
......@@ -214,39 +220,66 @@ import localstorage from '../service/localstorage.service.js'
getActiveName (change) {
let pathName = this.$route.path
if (pathName.indexOf('channel') > -1) {
this.hName = '1'
this.vSubName = pathName.split('/')[2]
this.vName = []
this.vName.push('1-2')
this.selectMenu(this.hName, 'refresh')
this.levelOneName = '1'
this.levelThreeName = pathName.split('/')[2]
this.levelTwoName = []
this.levelTwoName.push('1-2')
this.selectMenu(this.levelOneName, 'refresh')
return
}
this.menuList.map(parent => {
parent.child.map(child => {
child.child.map(grandson => {
if (grandson.route == pathName) {
this.vSubName = grandson.name
this.hName = parent.name
this.vName = []
this.vName.push(child.name)
this.levelThreeName = grandson.name
this.levelOneName = parent.name
this.levelTwoName = []
this.levelTwoName.push(child.name)
}
})
})
})
this.selectMenu(this.hName, 'refresh')
this.selectMenu(this.levelOneName, 'refresh')
},
getInitName (name, menu, child) {
// 超级管理员
let isAdmin = menu.isAdmin
let hightMenu = {
levelTwoName: '',
levelThreeName: ''
}
if (isAdmin || isAdmin == undefined) { // 默认展示一级菜单
hightMenu.levelTwoName = menu.child[0].name
hightMenu.levelThreeName = menu.child[0].child[0].name
} else if(isAdmin == false){ //展示二级菜单
hightMenu.levelTwoName = menu.child[1].name
hightMenu.levelThreeName = menu.child[1].child[0].name
}
return hightMenu
},
// 判断是否为超级管理员
judgeadmin(){
judeAdmin().then(res=>{
this.isAdmin=res.data.body
this.isAdmin = res.data.body
this.menuList[3].isAdmin = this.isAdmin
})
},
goBack () {
this.getActiveName()
}
},
mounted() {
this.getmassage()
this.getActiveName()
this.judgeadmin()
if (window.history && window.history.pushState) {
history.pushState(null, null, document.URL);
window.addEventListener('popstate', this.goBack, false);
}
},
destroyed(){
window.removeEventListener('popstate', this.goBack, false);
}
}
</script>
......
......@@ -444,6 +444,9 @@ export default {
// 面试官查询
Serchlistinterview(){
Serchinterviewor().then(res=>{
if (!res.data.status) {
return
}
this.Interviewer=res.data.body
this.Interviewer.unshift('不限')
})
......@@ -451,6 +454,9 @@ export default {
// 邀约人查询
SerchInvitation(){
SerchInvitationOwer().then(res=>{
if (!res.data.status) {
return
}
this.Inviter=res.data.body
this.Inviter.unshift('不限')
})
......
......@@ -30,7 +30,11 @@ export default new Router({
}, {
path: '/login',
name: 'login',
component: login,},
component: login,
meta: {
allowBack: false
}
},
{
path:'/update',
name:'update',
......
......@@ -3,7 +3,8 @@ import Promise from './promise.service.js'
import {Notice} from 'iview'
import Vue from 'vue'
import router from '../router/index.js'
// axios.defaults.withCredentials = true
import store from '../store'
var instance = axios.create({});
instance.defaults.timeout = 3600000;
instance.defaults.withCredentials = true;
......@@ -22,27 +23,31 @@ instance.interceptors.request.use(function (config) {
});
instance.interceptors.response.use(function (response) {
// 在发送请求之前做些什么
let errorInfo = {
'900': '您的账号已在其他地方登录,如不是您个人操作,请及时修改密码',
'901': '',
'902': 'cookie已失效,请重新登录'
}
if(response.status >= 200 && response.status < 300){
if (response.data.body.code == '900'){
Notice.error({render:(h) => {return h('div', {style: {
paddingRight: '10px',
fontSize: '14px',
color: '#17233d'
}}, '您的账号已在其他地方登录,如不是您个人操作,请及时修改密码')}})
router.replace({name: 'login'})
}
if (response.data.body.code == '901'){
router.replace({name: 'login'})
}
if (response.data.body.code == '902'){
Notice.error({title:'cookie已失效,请重新登录'})
router.replace({name: 'login'})
let code = response.data&&response.data.body&&response.data.body.code || ''
if (code == '900' || code == '901' || code == '902'){
if (!store.state.cookieTips && code != '901') {
store.dispatch('cookieTipsShow', true)
Notice.error({render:(h) => {return h('div', {style: {
paddingRight: '5px',
fontSize: '14px',
lineHeight: '20px',
color: '#17233d'
}}, errorInfo[code])}})
setTimeout(() => {
store.dispatch('cookieTipsHide', false)
}, 2000)
}
// router.replace({name: 'login'})
}
if(response.data.success){
return Promise.resolve(response)
}
else {
return Promise.resolve(response);
}
......
......@@ -3,14 +3,17 @@ export default{
init: function (router) {
router.beforeEach((to, form, next) => {
let token = localstorage.get('token')
// if (to.name =='login' || to.name =='update' || to.name =='sweepCode'){
// next()
// return
// }
// if(!token){
// window.location.href = `${window.location.origin}/login`
// return
// }
if (to.meta && !to.meta.allowBack && window.history && window.history.pushState) { //登录页面不能后退
history.pushState(null, null, document.URL)
}
if (to.name =='login' || to.name =='update' || to.name =='sweepCode'){
next()
return
}
if(!token){
window.location.href = `${window.location.origin}/login`
return
}
next()
})
}
......
action.js
\ No newline at end of file
// // action.js
import * as types from './muationsType'
let action = {
cookieTipsShow({commit}, value) {
commit(types.COOKIE_SHOW, value)
},
cookieTipsHide ({commit}, value) {
commit(types.COOKIE_HIDE, value)
}
}
export default action
\ No newline at end of file
index.js
\ No newline at end of file
import Vuex from 'vuex'
import Vue from 'vue'
import mutations from './mutations.js'
import actions from './actions.js'
Vue.use(Vuex)
const state = {
cookieTips: false
}
export default new Vuex.Store({
mutations,
actions,
state
})
\ No newline at end of file
export const COOKIE_SHOW = 'COOKIE_SHOW'
export const COOKIE_HIDE = 'COOKIE_HIDE'
mutations.js
\ No newline at end of file
import {COOKIE_SHOW, COOKIE_HIDE} from './muationsType'
export default {
[COOKIE_SHOW] (state, value) {
state.cookieTips = value || true
},
[COOKIE_HIDE](state, value) {
state.cookieTips = value || false
}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.toolbarGroups = [
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'styles', groups: [ 'styles' ] },
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'forms', groups: [ 'forms' ] },
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
{ name: 'links', groups: [ 'links' ] },
{ name: 'insert', groups: [ 'insert' ] },
{ name: 'colors', groups: [ 'colors' ] },
{ name: 'tools', groups: [ 'tools' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
{ name: 'others', groups: [ 'others' ] },
{ name: 'about', groups: [ 'about' ] }
];
config.removeDialogTabs = 'image:advanced;link:advanced';
config.removePlugins = 'elementspath,resize'; // 移除编辑器底部状态栏显示的元素路径和调整编辑器大小的按钮
config.image_previewText = ' '; // 图片信息面板预览区内容的文字内容,默认显示CKEditor自带的内容
config.removeDialogTabs = 'image:advanced;image:Link'; // 移除图片上传页面的'高级','链接'页签
config.removeButtons = 'Cut,Copy,Paste,PasteText,PasteFromWord,Source,Save,Templates,NewPage,Preview,Print,About,ShowBlocks,Flash,PageBreak,Iframe,Anchor,SelectAll,BidiLtr,BidiRtl,Language,CreateDiv,Superscript,Subscript,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,Find,Replace';
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment