df82a27748e2485747fbb74381d0e16e.json 28 KB

1
  1. {"remainingRequest":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\src\\store\\store.js","dependencies":[{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\src\\store\\store.js","mtime":1663828782930},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\babel.config.js","mtime":1663828782900},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"C:/Users/100zone/Desktop/baizong/community/SmartCommunity/videoSurveillance/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nimport Vue from 'vue';\nimport Vuex from 'vuex';\nimport http from '@utils/http.js';\nVue.use(Vuex);\nvar store = new Vuex.Store({\n state: {\n token: '',\n collapse: false,\n //控制面板是否显示\n tagsList: [],\n //标签页所显示的内容\n // 新弹窗\n modalParams: {},\n // 权限列表\n permissionList: [],\n //菜单列表\n menuList: [],\n // 当前登录用户信息\n cruUserInfo: {},\n thisDetai: {},\n //查询是否有未读消息\n messageNumber: false,\n //最近消息列表集合\n messageList: [],\n //记录消息的状态\n messageStatus: 2,\n // 弹窗集合\n popups: '',\n theme: 'light',\n //控制界面的颜色,\n // 查询的点的坐标\n searchPointInfo: {},\n //所有社区下拉\n areaSelect: [],\n //所有民族\n nationArray: [],\n //所有籍贯\n nativeArray: [],\n //公司部门\n companyArray: [],\n departmentArray: [],\n communityArray: []\n },\n getters: {\n getTheme: function getTheme(state) {\n return state.theme;\n },\n getPopups: function getPopups(state) {\n return state.popups || [];\n },\n getToken: function getToken(state) {\n return state.token;\n },\n getSearchPointInfo: function getSearchPointInfo(state) {\n return state.searchPointInfo;\n },\n getCollapse: function getCollapse(state) {\n return state.collapse;\n },\n getTagsList: function getTagsList(state) {\n return state.tagsList;\n },\n getModalParams: function getModalParams(state) {\n return state.modalParams;\n },\n // 判断按钮是否有权限\n hasPermission: function hasPermission(state) {\n return function (role) {\n if (state.permissionList.size) {\n return state.permissionList.has(role);\n } else {\n return false;\n }\n };\n },\n //获取菜单列表\n getMenuList: function getMenuList(state) {\n return state.menuList;\n },\n // 获取当前登录用户信息\n getCruUserInfo: function getCruUserInfo(state) {\n return state.cruUserInfo;\n },\n getThisDetai: function getThisDetai(state) {\n return state.thisDetai;\n },\n getAreaSelect: function getAreaSelect(state) {\n return state.areaSelect;\n },\n getNationArray: function getNationArray(state) {\n return state.nationArray;\n },\n getNativeArray: function getNativeArray(state) {\n return state.nativeArray;\n },\n getCompanyArray: function getCompanyArray(state) {\n return state.companyArray;\n },\n getDepartmentArray: function getDepartmentArray(state) {\n return state.departmentArray;\n },\n getCommunityArray: function getCommunityArray(state) {\n return state.communityArray;\n }\n },\n mutations: {\n setSearchPointInfo: function setSearchPointInfo(state, data) {\n state.searchPointInfo = data;\n },\n setPopups: function setPopups(state, data) {\n state.popups = data;\n },\n setToken: function setToken(state, data) {\n state.token = data;\n },\n setCollapse: function setCollapse(state, data) {\n state.collapse = data;\n },\n setTagList: function setTagList(state, data) {\n state.tagsList = data;\n },\n setModalParams: function setModalParams(state, data) {\n state.modalParams = data;\n },\n setPermissionList: function setPermissionList(state, data) {\n state.permissionList = data;\n },\n setMenuList: function setMenuList(state, data) {\n state.menuList = data;\n },\n setcCruUserInfo: function setcCruUserInfo(state, data) {\n state.cruUserInfo = data;\n },\n setThisDetai: function setThisDetai(state, data) {\n state.thisDetai = data;\n },\n setmessageNumber: function setmessageNumber(state, data) {\n state.messageNumber = data;\n },\n setmessageList: function setmessageList(state, data) {\n state.messageList = data;\n },\n setmessageStatus: function setmessageStatus(state, data) {\n state.messageStatus = data;\n },\n setTheme: function setTheme(state, data) {\n state.theme = data;\n },\n setAreaSelect: function setAreaSelect(state, data) {\n state.areaSelect = data;\n },\n setNationArray: function setNationArray(state, data) {\n state.nationArray = data;\n },\n setNativeArray: function setNativeArray(state, data) {\n state.nativeArray = data;\n },\n setCompanyArray: function setCompanyArray(state, data) {\n state.companyArray = data;\n },\n setDepartmentArray: function setDepartmentArray(state, data) {\n state.departmentArray = data;\n },\n setCommunityArray: function setCommunityArray(state, data) {\n state.communityArray = data;\n }\n },\n actions: {\n tags: function tags(ctx, data) {\n ctx.commit('setTagList', data);\n },\n\n /**\r\n * @description: 打开弹窗\r\n * @param {type} ctx vuex的上下文\r\n * @param {object} args {\r\n * id: 唯一标识,必须\r\n * url: 打开的组件url地址,必须\r\n * params: 传递给弹出组件的参数,\r\n * notip: 是否显示*为填项必内容,为true时不显示\r\n * backgroud: 是否强制显示底部透明背景色,默认第二个弹出层时不显示透明底色,为true时一定显示\r\n * full: 是否为全屏展示,true为全屏\r\n * }\r\n * @return {null} null:\r\n */\n addPopup: function addPopup(ctx, args) {\n var params = _objectSpread({}, args);\n\n var list = ctx.getters.getPopups;\n params.id = 'modal_' + +new Date();\n import(\n /* webpackChunkName: \"[request]\" */\n \"@/views\".concat(params.url)).then(function (res) {\n params.component = res.default;\n params.show = true;\n list.push(params);\n ctx.commit('setPopups', list); // ctx.commit('setalertModalParams', params);\n }).catch(function (err) {\n if (err.message.indexOf('Loading chunk') == 0) {\n ELEMENT.Message.info('版本已更新,请刷新页面重试');\n } else {\n ELEMENT.Message.info(err.message);\n }\n });\n },\n delPopup: function delPopup(ctx, id) {\n // let id=id;\n // ctx.commit('setalertModalParams', { show: false});\n var list = ctx.getters.getPopups;\n list.every(function (item, index) {\n if (item.id === id) {\n list.splice(index, 1);\n ctx.commit('setPopups', list); // 解决弹窗关闭,滚动条没有关闭的情况\n // const $bar = document.querySelector('.dmp-scroll-bar')\n // if ($bar) {\n // document.body.removeChild(document.querySelector('.dmp-scroll-bar'))\n // }\n\n return false;\n }\n\n return true;\n });\n },\n collapse: function collapse(ctx, data) {\n ctx.commit('setCollapse', data);\n },\n openModal: function openModal(ctx, args) {\n var params = _objectSpread({}, args);\n\n params.id = 'modal_' + +new Date();\n import(\n /* webpackChunkName: \"[request]\" */\n \"@/views\".concat(params.url)).then(function (res) {\n params.component = res.default;\n params.show = true;\n ctx.commit('setModalParams', params);\n }).catch(function (err) {\n ELEMENT.Message.error(\"\".concat(err.message, \"\\uFF0C\\u8BF7\\u5237\\u65B0\\u9875\\u9762\\u91CD\\u8BD5\"));\n });\n },\n closeModal: function closeModal(ctx) {\n ctx.commit('setModalParams', {\n show: false\n });\n },\n SET_MENU_LIST: function SET_MENU_LIST(ctx) {\n var _this = this;\n\n var value = ctx.getters['getMenuList'] || [];\n\n if (!value.length) {\n http.get('/sc-user-center/user/findUserMenu', {\n appId: '1013'\n }).then(function (_ref) {\n var status = _ref.status,\n data = _ref.data,\n msg = _ref.msg;\n\n if (0 === status) {\n ctx.commit('setMenuList', data[0].children);\n ctx.commit('setThisDetai', data[0]);\n window.localStorage.setItem('SC_listMuen', JSON.stringify(data[0].children));\n window.sessionStorage.setItem('setThisDetai', JSON.stringify(data[0]));\n } else {\n _this.$message.error(msg);\n }\n });\n }\n }\n }\n});\nexport default store;",{"version":3,"sources":["C:/Users/100zone/Desktop/baizong/community/SmartCommunity/videoSurveillance/src/store/store.js"],"names":["Vue","Vuex","http","use","store","Store","state","token","collapse","tagsList","modalParams","permissionList","menuList","cruUserInfo","thisDetai","messageNumber","messageList","messageStatus","popups","theme","searchPointInfo","areaSelect","nationArray","nativeArray","companyArray","departmentArray","communityArray","getters","getTheme","getPopups","getToken","getSearchPointInfo","getCollapse","getTagsList","getModalParams","hasPermission","role","size","has","getMenuList","getCruUserInfo","getThisDetai","getAreaSelect","getNationArray","getNativeArray","getCompanyArray","getDepartmentArray","getCommunityArray","mutations","setSearchPointInfo","data","setPopups","setToken","setCollapse","setTagList","setModalParams","setPermissionList","setMenuList","setcCruUserInfo","setThisDetai","setmessageNumber","setmessageList","setmessageStatus","setTheme","setAreaSelect","setNationArray","setNativeArray","setCompanyArray","setDepartmentArray","setCommunityArray","actions","tags","ctx","commit","addPopup","args","params","list","id","Date","url","then","res","component","default","show","push","catch","err","message","indexOf","ELEMENT","Message","info","delPopup","every","item","index","splice","openModal","error","closeModal","SET_MENU_LIST","value","length","get","appId","status","msg","children","window","localStorage","setItem","JSON","stringify","sessionStorage","$message"],"mappings":";;;;;;;;;AAAA,OAAOA,GAAP,MAAgB,KAAhB;AACA,OAAOC,IAAP,MAAiB,MAAjB;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AAEAF,GAAG,CAACG,GAAJ,CAAQF,IAAR;AAEA,IAAMG,KAAK,GAAG,IAAIH,IAAI,CAACI,KAAT,CAAe;AACzBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,KAAK,EAAE,EADJ;AAEHC,IAAAA,QAAQ,EAAE,KAFP;AAEc;AACjBC,IAAAA,QAAQ,EAAE,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AI,EAAE;AAAR,OAA7B;AACH,KA1EI;AA2ELiB,IAAAA,aA3EK,yBA2ES9B,GA3ET,EA2Ec;AAAA;;AACf,UAAI+B,KAAK,GAAG/B,GAAG,CAAC7C,OAAJ,CAAY,aAAZ,KAA8B,EAA1C;;AACA,UAAI,CAAC4E,KAAK,CAACC,MAAX,EAAmB;AACftG,QAAAA,IAAI,CAACuG,GAAL,CAAS,mCAAT,EAA8C;AAAEC,UAAAA,KAAK,EAAE;AAAT,SAA9C,EAAiEzB,IAAjE,CAAsE,gBAA2B;AAAA,cAAxB0B,MAAwB,QAAxBA,MAAwB;AAAA,cAAhBzD,IAAgB,QAAhBA,IAAgB;AAAA,cAAV0D,GAAU,QAAVA,GAAU;;AAC7F,cAAI,MAAMD,MAAV,EAAkB;AACdnC,YAAAA,GAAG,CAACC,MAAJ,CAAW,aAAX,EAA0BvB,IAAI,CAAC,CAAD,CAAJ,CAAQ2D,QAAlC;AACArC,YAAAA,GAAG,CAACC,MAAJ,CAAW,cAAX,EAA2BvB,IAAI,CAAC,CAAD,CAA/B;AACA4D,YAAAA,MAAM,CAACC,YAAP,CAAoBC,OAApB,CAA4B,aAA5B,EAA2CC,IAAI,CAACC,SAAL,CAAehE,IAAI,CAAC,CAAD,CAAJ,CAAQ2D,QAAvB,CAA3C;AACAC,YAAAA,MAAM,CAACK,cAAP,CAAsBH,OAAtB,CAA8B,cAA9B,EAA8CC,IAAI,CAACC,SAAL,CAAehE,IAAI,CAAC,CAAD,CAAnB,CAA9C;AACH,WALD,MAKO;AACH,YAAA,KAAI,CAACkE,QAAL,CAAchB,KAAd,CAAoBQ,GAApB;AACH;AACJ,SATD;AAUH;AACJ;AAzFI;AA9JgB,CAAf,CAAd;AA0PA,eAAexG,KAAf","sourcesContent":["import Vue from 'vue';\r\nimport Vuex from 'vuex';\r\nimport http from '@utils/http.js';\r\n\r\nVue.use(Vuex);\r\n\r\nconst store = new Vuex.Store({\r\n state: {\r\n token: '',\r\n collapse: false, //控制面板是否显示\r\n tagsList: [], //标签页所显示的内容\r\n // 新弹窗\r\n modalParams: {},\r\n // 权限列表\r\n permissionList: [],\r\n //菜单列表\r\n menuList: [],\r\n // 当前登录用户信息\r\n cruUserInfo: {},\r\n thisDetai: {},\r\n //查询是否有未读消息\r\n messageNumber: false,\r\n //最近消息列表集合\r\n messageList: [],\r\n //记录消息的状态\r\n messageStatus: 2,\r\n // 弹窗集合\r\n popups: '',\r\n theme: 'light', //控制界面的颜色,\r\n // 查询的点的坐标\r\n searchPointInfo: {},\r\n //所有社区下拉\r\n areaSelect: [],\r\n //所有民族\r\n nationArray: [],\r\n //所有籍贯\r\n nativeArray: [],\r\n //公司部门\r\n companyArray: [],\r\n departmentArray: [],\r\n communityArray: []\r\n },\r\n getters: {\r\n getTheme(state) {\r\n return state.theme;\r\n },\r\n getPopups(state) {\r\n return state.popups || [];\r\n },\r\n getToken(state) {\r\n return state.token;\r\n },\r\n getSearchPointInfo(state) {\r\n return state.searchPointInfo;\r\n },\r\n getCollapse(state) {\r\n return state.collapse;\r\n },\r\n getTagsList(state) {\r\n return state.tagsList;\r\n },\r\n getModalParams(state) {\r\n return state.modalParams;\r\n },\r\n // 判断按钮是否有权限\r\n hasPermission: (state) => (role) => {\r\n if (state.permissionList.size) {\r\n return state.permissionList.has(role);\r\n } else {\r\n return false;\r\n }\r\n },\r\n //获取菜单列表\r\n getMenuList(state) {\r\n return state.menuList;\r\n },\r\n // 获取当前登录用户信息\r\n getCruUserInfo(state) {\r\n return state.cruUserInfo;\r\n },\r\n getThisDetai(state) {\r\n return state.thisDetai;\r\n },\r\n getAreaSelect(state) {\r\n return state.areaSelect;\r\n },\r\n getNationArray(state) {\r\n return state.nationArray;\r\n },\r\n getNativeArray(state) {\r\n return state.nativeArray;\r\n },\r\n getCompanyArray(state) {\r\n return state.companyArray;\r\n },\r\n getDepartmentArray(state) {\r\n return state.departmentArray;\r\n },\r\n getCommunityArray(state) {\r\n return state.communityArray;\r\n }\r\n },\r\n mutations: {\r\n setSearchPointInfo(state, data) {\r\n state.searchPointInfo = data;\r\n },\r\n setPopups(state, data) {\r\n state.popups = data;\r\n },\r\n setToken(state, data) {\r\n state.token = data;\r\n },\r\n setCollapse(state, data) {\r\n state.collapse = data;\r\n },\r\n setTagList(state, data) {\r\n state.tagsList = data;\r\n },\r\n setModalParams(state, data) {\r\n state.modalParams = data;\r\n },\r\n setPermissionList(state, data) {\r\n state.permissionList = data;\r\n },\r\n setMenuList(state, data) {\r\n state.menuList = data;\r\n },\r\n setcCruUserInfo(state, data) {\r\n state.cruUserInfo = data;\r\n },\r\n setThisDetai(state, data) {\r\n state.thisDetai = data;\r\n },\r\n setmessageNumber(state, data) {\r\n state.messageNumber = data;\r\n },\r\n setmessageList(state, data) {\r\n state.messageList = data;\r\n },\r\n setmessageStatus(state, data) {\r\n state.messageStatus = data;\r\n },\r\n setTheme(state, data) {\r\n state.theme = data;\r\n },\r\n setAreaSelect(state, data) {\r\n state.areaSelect = data;\r\n },\r\n setNationArray(state, data) {\r\n state.nationArray = data;\r\n },\r\n setNativeArray(state, data) {\r\n state.nativeArray = data;\r\n },\r\n setCompanyArray(state, data) {\r\n state.companyArray = data;\r\n },\r\n setDepartmentArray(state, data) {\r\n state.departmentArray = data;\r\n },\r\n setCommunityArray(state, data) {\r\n state.communityArray = data;\r\n }\r\n },\r\n actions: {\r\n tags(ctx, data) {\r\n ctx.commit('setTagList', data);\r\n },\r\n /**\r\n * @description: 打开弹窗\r\n * @param {type} ctx vuex的上下文\r\n * @param {object} args {\r\n * id: 唯一标识,必须\r\n * url: 打开的组件url地址,必须\r\n * params: 传递给弹出组件的参数,\r\n * notip: 是否显示*为填项必内容,为true时不显示\r\n * backgroud: 是否强制显示底部透明背景色,默认第二个弹出层时不显示透明底色,为true时一定显示\r\n * full: 是否为全屏展示,true为全屏\r\n * }\r\n * @return {null} null:\r\n */\r\n addPopup(ctx, args) {\r\n const params = { ...args };\r\n const list = ctx.getters.getPopups;\r\n params.id = 'modal_' + +new Date();\r\n import(/* webpackChunkName: \"[request]\" */ `@/views${params.url}`)\r\n .then((res) => {\r\n params.component = res.default;\r\n params.show = true;\r\n list.push(params);\r\n ctx.commit('setPopups', list);\r\n\r\n // ctx.commit('setalertModalParams', params);\r\n })\r\n .catch((err) => {\r\n if (err.message.indexOf('Loading chunk') == 0) {\r\n ELEMENT.Message.info('版本已更新,请刷新页面重试');\r\n } else {\r\n ELEMENT.Message.info(err.message);\r\n }\r\n });\r\n },\r\n delPopup(ctx, id) {\r\n // let id=id;\r\n // ctx.commit('setalertModalParams', { show: false});\r\n const list = ctx.getters.getPopups;\r\n list.every((item, index) => {\r\n if (item.id === id) {\r\n list.splice(index, 1);\r\n ctx.commit('setPopups', list);\r\n // 解决弹窗关闭,滚动条没有关闭的情况\r\n // const $bar = document.querySelector('.dmp-scroll-bar')\r\n // if ($bar) {\r\n // document.body.removeChild(document.querySelector('.dmp-scroll-bar'))\r\n // }\r\n return false;\r\n }\r\n return true;\r\n });\r\n },\r\n collapse(ctx, data) {\r\n ctx.commit('setCollapse', data);\r\n },\r\n openModal(ctx, args) {\r\n const params = { ...args };\r\n params.id = 'modal_' + +new Date();\r\n import(/* webpackChunkName: \"[request]\" */ `@/views${params.url}`)\r\n .then((res) => {\r\n params.component = res.default;\r\n params.show = true;\r\n ctx.commit('setModalParams', params);\r\n })\r\n .catch((err) => {\r\n ELEMENT.Message.error(`${err.message},请刷新页面重试`);\r\n });\r\n },\r\n closeModal(ctx) {\r\n ctx.commit('setModalParams', { show: false });\r\n },\r\n SET_MENU_LIST(ctx) {\r\n let value = ctx.getters['getMenuList'] || [];\r\n if (!value.length) {\r\n http.get('/sc-user-center/user/findUserMenu', { appId: '1013' }).then(({ status, data, msg }) => {\r\n if (0 === status) {\r\n ctx.commit('setMenuList', data[0].children);\r\n ctx.commit('setThisDetai', data[0]);\r\n window.localStorage.setItem('SC_listMuen', JSON.stringify(data[0].children))\r\n window.sessionStorage.setItem('setThisDetai', JSON.stringify(data[0]))\r\n } else {\r\n this.$message.error(msg)\r\n }\r\n });\r\n }\r\n }\r\n }\r\n});\r\nexport default store;\r\n"]}]}