Commit a744fb8e authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents d1b876a5 84b063f6
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
"file-saver": "^2.0.2", "file-saver": "^2.0.2",
"moment": "^2.29.4", "moment": "^2.29.4",
"npm": "^6.13.7", "npm": "^6.13.7",
"secure-ls": "^1.2.6",
"voca": "^1.4.0", "voca": "^1.4.0",
"vue": "^2.6.14", "vue": "^2.6.14",
"vue-barcode": "^1.3.0", "vue-barcode": "^1.3.0",
...@@ -32,7 +33,8 @@ ...@@ -32,7 +33,8 @@
"vue-seamless-scroll": "^1.1.23", "vue-seamless-scroll": "^1.1.23",
"vue-text-format": "^1.2.6", "vue-text-format": "^1.2.6",
"vuedraggable": "^2.24.3", "vuedraggable": "^2.24.3",
"vuex": "^3.6.2" "vuex": "^3.6.2",
"vuex-persistedstate": "^4.1.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.12.16", "@babel/core": "^7.12.16",
......
...@@ -60,6 +60,7 @@ export default { ...@@ -60,6 +60,7 @@ export default {
homeUrl: "http://192.168.0.24:8080/#/", homeUrl: "http://192.168.0.24:8080/#/",
serverUrl: "http://192.168.0.98:11078/", serverUrl: "http://192.168.0.98:11078/",
}, },
devicenum: "B8-13-32-86-9F-04",
}; };
this.WebSocketMq(obj); this.WebSocketMq(obj);
} }
......
...@@ -19,25 +19,45 @@ export const getHomeInfo = (data) => { ...@@ -19,25 +19,45 @@ export const getHomeInfo = (data) => {
export const getdeptList = (data) => { export const getdeptList = (data) => {
let baseUrl = local.getLocal("serverUrl"); let baseUrl = local.getLocal("serverUrl");
let siteId = local.getLocal("siteId"); let siteId = local.getLocal("siteId");
let deviceCode = local.getLocal("devicenum");
return request({ return request({
url: `${baseUrl}sampleform/home/depts`, url: `${baseUrl}sampleform/home/depts`,
method: "post", method: "post",
data: { data: {
siteId, siteId,
deviceCode,
...data, ...data,
}, },
}); });
}; };
// 查询事项列表 // 查询事项列表
// export const getWriteMatterList = (data) => {
// let baseUrl = local.getLocal("serverUrl");
// let siteId = local.getLocal("siteId");
// let devicenum = local.getLocal("devicenum");
// return request({
// url: `${baseUrl}sampleform/matter/list`,
// method: "post",
// data: {
// siteId,
// devicenum,
// ...data,
// },
// });
// };
// 查询设备关联事项列表
export const getWriteMatterList = (data) => { export const getWriteMatterList = (data) => {
let baseUrl = local.getLocal("serverUrl"); let baseUrl = local.getLocal("serverUrl");
let siteId = local.getLocal("siteId"); let siteId = local.getLocal("siteId");
let deviceCode = local.getLocal("devicenum");
return request({ return request({
url: `${baseUrl}sampleform/matter/list`, url: `${baseUrl}sampleform/device/matter/datum/list`,
method: "post", method: "post",
data: { data: {
siteId, siteId,
deviceCode,
...data, ...data,
}, },
}); });
......
...@@ -361,7 +361,7 @@ ...@@ -361,7 +361,7 @@
} }
.matter-fullName { .matter-fullName {
display: inline-block; display: inline-block;
width: 86px; width: 100px;
height: 30px; height: 30px;
text-align: center; text-align: center;
line-height: 30px; line-height: 30px;
......
...@@ -131,14 +131,12 @@ export default { ...@@ -131,14 +131,12 @@ export default {
} }
.title { .title {
font-size: 28px; font-size: 28px;
font-family: Source Han Sans CN;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
.matter-name { .matter-name {
display: inline-block; display: inline-block;
// width: 1000px; // width: 1000px;
font-size: 20px; font-size: 24px;
font-family: Source Han Sans CN;
line-height: 34px; line-height: 34px;
color: #777777; color: #777777;
// overflow: hidden; // overflow: hidden;
...@@ -185,8 +183,7 @@ export default { ...@@ -185,8 +183,7 @@ export default {
width: 100%; width: 100%;
margin-top: 18px; margin-top: 18px;
margin-bottom: 8px; margin-bottom: 8px;
font-size: 24px; font-size: 28px;
font-family: Source Han Sans CN;
color: #333333; color: #333333;
letter-spacing: 1px; letter-spacing: 1px;
overflow: hidden; overflow: hidden;
...@@ -196,8 +193,7 @@ export default { ...@@ -196,8 +193,7 @@ export default {
} }
.matterDatumList-name { .matterDatumList-name {
width: 100%; width: 100%;
font-size: 18px; font-size: 22px;
font-family: Source Han Sans CN;
color: #777777; color: #777777;
line-height: 30px; line-height: 30px;
letter-spacing: 1px; letter-spacing: 1px;
...@@ -214,7 +210,6 @@ export default { ...@@ -214,7 +210,6 @@ export default {
background-color: #e6effd; background-color: #e6effd;
border-radius: 8px; border-radius: 8px;
font-size: 20px; font-size: 20px;
font-family: Source Han Sans CN;
color: var(--main-theme-color); color: var(--main-theme-color);
text-align: center; text-align: center;
line-height: 50px; line-height: 50px;
......
...@@ -20,7 +20,7 @@ export default {}; ...@@ -20,7 +20,7 @@ export default {};
margin-top: 20px; margin-top: 20px;
margin-bottom: 40px; margin-bottom: 40px;
.count { .count {
font-size: 26px; font-size: 30px;
font-family: Source Han Sans CN; font-family: Source Han Sans CN;
color: #333333; color: #333333;
} }
......
...@@ -476,26 +476,6 @@ export default { ...@@ -476,26 +476,6 @@ export default {
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
.tab-box {
width: 340px;
height: 50px;
padding: 3px;
margin-top: 10px;
background: #efe6e6;
border-radius: 8px;
.tab-item {
width: 50%;
height: 100%;
border-radius: 8px;
text-align: center;
font-size: 22px;
color: #333;
cursor: pointer;
}
.active {
background-color: #fff;
}
}
.ranking-list { .ranking-list {
padding: 0px 14px; padding: 0px 14px;
.ranking-item { .ranking-item {
...@@ -503,9 +483,10 @@ export default { ...@@ -503,9 +483,10 @@ export default {
margin-bottom: 10px; margin-bottom: 10px;
line-height: 56px; line-height: 56px;
border-radius: 8px; border-radius: 8px;
font-size: 22px; font-size: 28px;
color: var(--main-theme-color); color: var(--main-theme-color);
letter-spacing: 2px; letter-spacing: 2px;
cursor: pointer;
&:nth-child(2n-1) { &:nth-child(2n-1) {
background-color: #fff; background-color: #fff;
} }
...@@ -596,9 +577,10 @@ export default { ...@@ -596,9 +577,10 @@ export default {
margin-bottom: 4px; margin-bottom: 4px;
line-height: 45px; line-height: 45px;
border-radius: 8px; border-radius: 8px;
font-size: 20px; font-size: 26px;
color: var(--main-theme-color); color: var(--main-theme-color);
letter-spacing: 2px; letter-spacing: 2px;
cursor: pointer;
&:nth-child(2n) { &:nth-child(2n) {
background-color: #f6f9fe; background-color: #f6f9fe;
} }
......
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
startTimer() { startTimer() {
let that = this; let that = this;
clearInterval(that.timeOut); clearInterval(that.timeOut);
this.timeOut = setInterval(function () { this.timeOut = setTimeout(function () {
that.$router.push({ path: "/" }); that.$router.push({ path: "/" });
}, 1000 * 60 * 2); }, 1000 * 60 * 2);
}, },
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
document.body.removeEventListener("keyup", this.startTimer); document.body.removeEventListener("keyup", this.startTimer);
document.body.removeEventListener("click", this.startTimer); document.body.removeEventListener("click", this.startTimer);
document.body.removeEventListener("touchend", this.startTimer); document.body.removeEventListener("touchend", this.startTimer);
clearInterval(this.timeOut); clearTimeout(this.timeOut);
}, },
}; };
</script> </script>
......
...@@ -238,7 +238,7 @@ export default { ...@@ -238,7 +238,7 @@ export default {
} }
.for-short { .for-short {
margin-bottom: 10px; margin-bottom: 10px;
font-size: 24px; font-size: 28px;
font-weight: 500; font-weight: 500;
line-height: 36px; line-height: 36px;
color: #333333; color: #333333;
...@@ -253,10 +253,10 @@ export default { ...@@ -253,10 +253,10 @@ export default {
} }
.name { .name {
margin-bottom: 10px; margin-bottom: 10px;
font-size: 18px; font-size: 22px;
font-family: Source Han Sans CN; font-family: Source Han Sans CN;
color: #888888; color: #888888;
line-height: 24px; line-height: 30px;
letter-spacing: 1px; letter-spacing: 1px;
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
...@@ -265,7 +265,7 @@ export default { ...@@ -265,7 +265,7 @@ export default {
} }
.materials { .materials {
font-size: 18px; font-size: 20px;
font-family: Source Han Sans CN; font-family: Source Han Sans CN;
color: #333333; color: #333333;
line-height: 30px; line-height: 30px;
......
...@@ -253,11 +253,11 @@ export default { ...@@ -253,11 +253,11 @@ export default {
color: var(--main-theme-color); color: var(--main-theme-color);
position: absolute; position: absolute;
right: 28px; right: 28px;
cursor: pointer;
} }
.apply-num { .apply-num {
margin-bottom: 20px; margin-bottom: 20px;
font-size: 18px; font-size: 18px;
font-family: Source Han Sans CN;
color: #666666; color: #666666;
} }
.matter-name { .matter-name {
...@@ -267,13 +267,14 @@ export default { ...@@ -267,13 +267,14 @@ export default {
background: #f2f6fe; background: #f2f6fe;
border-radius: 4px; border-radius: 4px;
line-height: 38px; line-height: 38px;
font-size: 22px;
color: var(--main-theme-color); color: var(--main-theme-color);
} }
.materails-item { .materails-item {
height: 42px; height: 42px;
line-height: 40px; line-height: 40px;
font-size: 18px; font-size: 22px;
font-family: Source Han Sans CN; cursor: pointer;
color: #333333; color: #333333;
} }
.line { .line {
...@@ -311,7 +312,6 @@ export default { ...@@ -311,7 +312,6 @@ export default {
box-shadow: 6px -1px 10px 0px rgba(11, 92, 233, 0.11); box-shadow: 6px -1px 10px 0px rgba(11, 92, 233, 0.11);
border-radius: 0px 38px 8px 0px; border-radius: 0px 38px 8px 0px;
font-size: 24px; font-size: 24px;
font-family: Source Han Sans CN;
color: #ffffff; color: #ffffff;
cursor: pointer; cursor: pointer;
position: absolute; position: absolute;
...@@ -335,15 +335,13 @@ export default { ...@@ -335,15 +335,13 @@ export default {
// } // }
} }
.short { .short {
font-size: 26px; font-size: 34px;
font-family: Source Han Sans CN;
color: var(--main-theme-color); color: var(--main-theme-color);
} }
.full-name { .full-name {
margin-top: 10px; margin-top: 10px;
margin-bottom: 24px; margin-bottom: 24px;
font-size: 20px; font-size: 30px;
font-family: Source Han Sans CN;
color: #888888; color: #888888;
} }
// .preview-img { // .preview-img {
......
...@@ -68,7 +68,7 @@ export default { ...@@ -68,7 +68,7 @@ export default {
} }
.dept-item { .dept-item {
text-align: center; text-align: center;
font-size: 26px; font-size: 30px;
color: #333333; color: #333333;
cursor: pointer; cursor: pointer;
.dept-name { .dept-name {
......
import Vue from "vue"; import Vue from "vue";
import Vuex from "vuex"; import Vuex from "vuex";
import createPersistedState from "vuex-persistedstate";
import SecureLS from "secure-ls";
var ls = new SecureLS({ isCompression: false });
Vue.use(Vuex); Vue.use(Vuex);
export default new Vuex.Store({ export default new Vuex.Store({
...@@ -27,4 +29,18 @@ export default new Vuex.Store({ ...@@ -27,4 +29,18 @@ export default new Vuex.Store({
}, },
actions: {}, actions: {},
modules: {}, modules: {},
// 持久化插件
plugins: [
// createPersistedState({
// storage: window.sessionStorage,
// }),
createPersistedState({
key: "info",
storage: {
getItem: (key) => ls.get(key),
setItem: (key, value) => ls.set(key, value),
removeItem: (key) => ls.remove(key),
},
}),
],
}); });
...@@ -3124,6 +3124,11 @@ cross-spawn@^7.0.2, cross-spawn@^7.0.3: ...@@ -3124,6 +3124,11 @@ cross-spawn@^7.0.2, cross-spawn@^7.0.3:
shebang-command "^2.0.0" shebang-command "^2.0.0"
which "^2.0.1" which "^2.0.1"
crypto-js@^3.1.6:
version "3.3.0"
resolved "https://registry.npmmirror.com/crypto-js/-/crypto-js-3.3.0.tgz#846dd1cce2f68aacfa156c8578f926a609b7976b"
integrity sha512-DIT51nX0dCfKltpRiXV+/TVZq+Qq2NgF4644+K7Ttnla7zEzqc+kjJyiB96BHNyUTBxyjzRcZYpUdZa+QAqi6Q==
crypto-random-string@^1.0.0: crypto-random-string@^1.0.0:
version "1.0.0" version "1.0.0"
resolved "https://registry.npmmirror.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e" resolved "https://registry.npmmirror.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e"
...@@ -3361,6 +3366,11 @@ deepmerge@^1.2.0, deepmerge@^1.5.2: ...@@ -3361,6 +3366,11 @@ deepmerge@^1.2.0, deepmerge@^1.5.2:
resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-1.5.2.tgz#10499d868844cdad4fee0842df8c7f6f0c95a753" resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-1.5.2.tgz#10499d868844cdad4fee0842df8c7f6f0c95a753"
integrity sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ== integrity sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ==
deepmerge@^4.2.2:
version "4.3.1"
resolved "https://registry.npmmirror.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a"
integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==
default-gateway@^6.0.3: default-gateway@^6.0.3:
version "6.0.3" version "6.0.3"
resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-6.0.3.tgz#819494c888053bdb743edbf343d6cdf7f2943a71" resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-6.0.3.tgz#819494c888053bdb743edbf343d6cdf7f2943a71"
...@@ -6214,6 +6224,11 @@ lru-cache@^6.0.0: ...@@ -6214,6 +6224,11 @@ lru-cache@^6.0.0:
dependencies: dependencies:
yallist "^4.0.0" yallist "^4.0.0"
lz-string@^1.4.4:
version "1.5.0"
resolved "https://registry.npmmirror.com/lz-string/-/lz-string-1.5.0.tgz#c1ab50f77887b712621201ba9fd4e3a6ed099941"
integrity sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==
make-dir@^1.0.0: make-dir@^1.0.0:
version "1.3.0" version "1.3.0"
resolved "https://registry.npmmirror.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" resolved "https://registry.npmmirror.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c"
...@@ -8503,6 +8518,14 @@ schema-utils@^4.0.0: ...@@ -8503,6 +8518,14 @@ schema-utils@^4.0.0:
ajv-formats "^2.1.1" ajv-formats "^2.1.1"
ajv-keywords "^5.0.0" ajv-keywords "^5.0.0"
secure-ls@^1.2.6:
version "1.2.6"
resolved "https://registry.npmmirror.com/secure-ls/-/secure-ls-1.2.6.tgz#0c54a4c7fa8317c3c101accbf6bb38d8d2072e46"
integrity sha512-g8vUSKl6elSfyAUHodybnNkuZW+mUYEOWj4SZIDg+xoQ1dq5ddktBoOFrtxQBUl88ZyAJOtGWQ1PRaOxkTAuZQ==
dependencies:
crypto-js "^3.1.6"
lz-string "^1.4.4"
select-hose@^2.0.0: select-hose@^2.0.0:
version "2.0.0" version "2.0.0"
resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca" resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca"
...@@ -8661,6 +8684,11 @@ shell-quote@^1.7.3: ...@@ -8661,6 +8684,11 @@ shell-quote@^1.7.3:
resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.3.tgz#aa40edac170445b9a431e17bb62c0b881b9c4123" resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.3.tgz#aa40edac170445b9a431e17bb62c0b881b9c4123"
integrity sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw== integrity sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==
shvl@^2.0.3:
version "2.0.3"
resolved "https://registry.npmmirror.com/shvl/-/shvl-2.0.3.tgz#eb4bd37644f5684bba1fc52c3010c96fb5e6afd1"
integrity sha512-V7C6S9Hlol6SzOJPnQ7qzOVEWUQImt3BNmmzh40wObhla3XOYMe4gGiYzLrJd5TFa+cI2f9LKIRJTTKZSTbWgw==
side-channel@^1.0.4: side-channel@^1.0.4:
version "1.0.4" version "1.0.4"
resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf"
...@@ -9843,6 +9871,14 @@ vuedraggable@^2.24.3: ...@@ -9843,6 +9871,14 @@ vuedraggable@^2.24.3:
dependencies: dependencies:
sortablejs "1.10.2" sortablejs "1.10.2"
vuex-persistedstate@^4.1.0:
version "4.1.0"
resolved "https://registry.npmmirror.com/vuex-persistedstate/-/vuex-persistedstate-4.1.0.tgz#127165f85f5b4534fb3170a5d3a8be9811bd2a53"
integrity sha512-3SkEj4NqwM69ikJdFVw6gObeB0NHyspRYMYkR/EbhR0hbvAKyR5gksVhtAfY1UYuWUOCCA0QNGwv9pOwdj+XUQ==
dependencies:
deepmerge "^4.2.2"
shvl "^2.0.3"
vuex@^3.6.2: vuex@^3.6.2:
version "3.6.2" version "3.6.2"
resolved "https://registry.yarnpkg.com/vuex/-/vuex-3.6.2.tgz#236bc086a870c3ae79946f107f16de59d5895e71" resolved "https://registry.yarnpkg.com/vuex/-/vuex-3.6.2.tgz#236bc086a870c3ae79946f107f16de59d5895e71"
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
"file-saver": "^2.0.2", "file-saver": "^2.0.2",
"moment": "^2.29.4", "moment": "^2.29.4",
"npm": "^6.13.7", "npm": "^6.13.7",
"secure-ls": "^1.2.6",
"voca": "^1.4.0", "voca": "^1.4.0",
"vue": "^2.6.14", "vue": "^2.6.14",
"vue-barcode": "^1.3.0", "vue-barcode": "^1.3.0",
...@@ -30,7 +31,8 @@ ...@@ -30,7 +31,8 @@
"vue-quill-editor": "^3.0.6", "vue-quill-editor": "^3.0.6",
"vue-router": "^3.5.1", "vue-router": "^3.5.1",
"vuedraggable": "^2.24.3", "vuedraggable": "^2.24.3",
"vuex": "^3.6.2" "vuex": "^3.6.2",
"vuex-persistedstate": "^4.1.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.12.16", "@babel/core": "^7.12.16",
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>智慧政务一体化综合管理平台</title> <title>样表管理系统</title>
</head> </head>
<body> <body>
<noscript> <noscript>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="left"> <div class="left">
<div class="header mb20"> <div class="header mb20">
已选择事项<span class="header-count primary" 已选择事项<span class="header-count primary"
>(已选择:事项{{ devMatterList.length }} | 材料12个</span >(已选择:事项{{ devMatterList.length }}个)</span
> >
</div> </div>
<!-- 列表 --> <!-- 列表 -->
......
import Vue from 'vue' import Vue from "vue";
import Vuex from 'vuex' import Vuex from "vuex";
import createPersistedState from "vuex-persistedstate";
Vue.use(Vuex) import SecureLS from "secure-ls";
var ls = new SecureLS({ isCompression: false });
Vue.use(Vuex);
export default new Vuex.Store({ export default new Vuex.Store({
state: { state: {
menus: [], // 菜单 menus: [], // 菜单
siteId:'', // 站点id siteId: "", // 站点id
deptList:[], // 部门列表 deptList: [], // 部门列表
}, },
getters: { getters: {
siteId(state){ siteId(state) {
return state.siteId return state.siteId;
},
deptList(state) {
return state.deptList;
}, },
deptList(state){
return state.deptList
}
}, },
mutations: { mutations: {
SET_MENUS(state, menus) { SET_MENUS(state, menus) {
state.menus = menus state.menus = menus;
}, },
SET_SITEID(state,siteId){ SET_SITEID(state, siteId) {
state.siteId = siteId state.siteId = siteId;
},
SET_deptList(state, deptList) {
state.deptList = deptList;
}, },
SET_deptList(state,deptList){
state.deptList = deptList
}
},
actions: {
}, },
modules: { actions: {},
} modules: {},
}) // 持久化插件
plugins: [
// createPersistedState({
// storage: window.sessionStorage,
// }),
createPersistedState({
key: "info",
storage: {
getItem: (key) => ls.get(key),
setItem: (key, value) => ls.set(key, value),
removeItem: (key) => ls.remove(key),
},
}),
],
});
...@@ -3111,6 +3111,11 @@ cross-spawn@^7.0.2, cross-spawn@^7.0.3: ...@@ -3111,6 +3111,11 @@ cross-spawn@^7.0.2, cross-spawn@^7.0.3:
shebang-command "^2.0.0" shebang-command "^2.0.0"
which "^2.0.1" which "^2.0.1"
crypto-js@^3.1.6:
version "3.3.0"
resolved "https://registry.npmmirror.com/crypto-js/-/crypto-js-3.3.0.tgz#846dd1cce2f68aacfa156c8578f926a609b7976b"
integrity sha512-DIT51nX0dCfKltpRiXV+/TVZq+Qq2NgF4644+K7Ttnla7zEzqc+kjJyiB96BHNyUTBxyjzRcZYpUdZa+QAqi6Q==
crypto-random-string@^1.0.0: crypto-random-string@^1.0.0:
version "1.0.0" version "1.0.0"
resolved "https://registry.npmmirror.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e" resolved "https://registry.npmmirror.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e"
...@@ -3348,6 +3353,11 @@ deepmerge@^1.2.0, deepmerge@^1.5.2: ...@@ -3348,6 +3353,11 @@ deepmerge@^1.2.0, deepmerge@^1.5.2:
resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-1.5.2.tgz#10499d868844cdad4fee0842df8c7f6f0c95a753" resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-1.5.2.tgz#10499d868844cdad4fee0842df8c7f6f0c95a753"
integrity sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ== integrity sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ==
deepmerge@^4.2.2:
version "4.3.1"
resolved "https://registry.npmmirror.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a"
integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==
default-gateway@^6.0.3: default-gateway@^6.0.3:
version "6.0.3" version "6.0.3"
resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-6.0.3.tgz#819494c888053bdb743edbf343d6cdf7f2943a71" resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-6.0.3.tgz#819494c888053bdb743edbf343d6cdf7f2943a71"
...@@ -6201,6 +6211,11 @@ lru-cache@^6.0.0: ...@@ -6201,6 +6211,11 @@ lru-cache@^6.0.0:
dependencies: dependencies:
yallist "^4.0.0" yallist "^4.0.0"
lz-string@^1.4.4:
version "1.5.0"
resolved "https://registry.npmmirror.com/lz-string/-/lz-string-1.5.0.tgz#c1ab50f77887b712621201ba9fd4e3a6ed099941"
integrity sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==
make-dir@^1.0.0: make-dir@^1.0.0:
version "1.3.0" version "1.3.0"
resolved "https://registry.npmmirror.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" resolved "https://registry.npmmirror.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c"
...@@ -8490,6 +8505,14 @@ schema-utils@^4.0.0: ...@@ -8490,6 +8505,14 @@ schema-utils@^4.0.0:
ajv-formats "^2.1.1" ajv-formats "^2.1.1"
ajv-keywords "^5.0.0" ajv-keywords "^5.0.0"
secure-ls@^1.2.6:
version "1.2.6"
resolved "https://registry.npmmirror.com/secure-ls/-/secure-ls-1.2.6.tgz#0c54a4c7fa8317c3c101accbf6bb38d8d2072e46"
integrity sha512-g8vUSKl6elSfyAUHodybnNkuZW+mUYEOWj4SZIDg+xoQ1dq5ddktBoOFrtxQBUl88ZyAJOtGWQ1PRaOxkTAuZQ==
dependencies:
crypto-js "^3.1.6"
lz-string "^1.4.4"
select-hose@^2.0.0: select-hose@^2.0.0:
version "2.0.0" version "2.0.0"
resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca" resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca"
...@@ -8648,6 +8671,11 @@ shell-quote@^1.7.3: ...@@ -8648,6 +8671,11 @@ shell-quote@^1.7.3:
resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.3.tgz#aa40edac170445b9a431e17bb62c0b881b9c4123" resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.3.tgz#aa40edac170445b9a431e17bb62c0b881b9c4123"
integrity sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw== integrity sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==
shvl@^2.0.3:
version "2.0.3"
resolved "https://registry.npmmirror.com/shvl/-/shvl-2.0.3.tgz#eb4bd37644f5684bba1fc52c3010c96fb5e6afd1"
integrity sha512-V7C6S9Hlol6SzOJPnQ7qzOVEWUQImt3BNmmzh40wObhla3XOYMe4gGiYzLrJd5TFa+cI2f9LKIRJTTKZSTbWgw==
side-channel@^1.0.4: side-channel@^1.0.4:
version "1.0.4" version "1.0.4"
resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf"
...@@ -9811,6 +9839,14 @@ vuedraggable@^2.24.3: ...@@ -9811,6 +9839,14 @@ vuedraggable@^2.24.3:
dependencies: dependencies:
sortablejs "1.10.2" sortablejs "1.10.2"
vuex-persistedstate@^4.1.0:
version "4.1.0"
resolved "https://registry.npmmirror.com/vuex-persistedstate/-/vuex-persistedstate-4.1.0.tgz#127165f85f5b4534fb3170a5d3a8be9811bd2a53"
integrity sha512-3SkEj4NqwM69ikJdFVw6gObeB0NHyspRYMYkR/EbhR0hbvAKyR5gksVhtAfY1UYuWUOCCA0QNGwv9pOwdj+XUQ==
dependencies:
deepmerge "^4.2.2"
shvl "^2.0.3"
vuex@^3.6.2: vuex@^3.6.2:
version "3.6.2" version "3.6.2"
resolved "https://registry.yarnpkg.com/vuex/-/vuex-3.6.2.tgz#236bc086a870c3ae79946f107f16de59d5895e71" resolved "https://registry.yarnpkg.com/vuex/-/vuex-3.6.2.tgz#236bc086a870c3ae79946f107f16de59d5895e71"
......
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