1 |
- {"version":3,"sources":["webpack:///./src/apis/user.ts","webpack:///./src/views/choiceSpace/choiceProject.vue?bc6b","webpack:///./src/views/choiceSpace/choiceProject.vue?2abf","webpack:///./src/views/choiceSpace/choiceProject.vue?f6bf","webpack:///./src/views/choiceSpace/choiceProject.vue","webpack:///./src/views/choiceSpace/choiceProject.vue?2d46","webpack:///./src/views/choiceSpace/choiceProject.vue?749a"],"names":["getUsersInfo","request","GET","undefined","json","login","data","POST","module","exports","_hoisted_1","class","_hoisted_2","_hoisted_3","render","_ctx","_cache","$props","$setup","$data","$options","_component_van_search","placeholder","modelValue","searchVal","$event","onSearch","onCancel","projects","item","index","key","onClick","goCheckSpace","localName","components","vanSearch","beforeRouteLeave","to","from","next","name","mac","fullPath","query","setup","route","proxyData","transitionName","showHeader","store","commit","SET_PROJECT_ID","id","router","push","path","cloneProjects","then","res","resData","result","JSON","parse","stringify","fuzzyQuery","fiflterName","list","keyWord","reg","RegExp","arr","i","length","test","val","__exports__"],"mappings":"yIACA,gGASaA,EAAe,WAC1B,OAAO,iBAAQC,QAAR,sBAAuC,OAAOC,SAAKC,EAAW,OAAYC,OAQtEC,EAAQ,SAACC,GACpB,OAAO,iBAAQL,QAAR,gBAAiC,OAAOM,KAAMD,EAAM,OAAYF,Q,uBCnBzEI,EAAOC,QAAU,CAAC,OAAS,OAAO,SAAW,UAAU,eAAiB,Y,2DCElEC,EAAa,CAAEC,MAAO,6BACtBC,EAAa,CAAED,MAAO,kBACtBE,EAAa,CAAC,WAEd,SAAUC,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAAwB,8BAAkB,cAEhD,OAAQ,yBAAc,gCAAoB,MAAOX,EAAY,CAC3D,yBAAaW,EAAuB,CAClCC,YAAa,WACbC,WAAYR,EAAKS,UACjB,sBAAuB,CACrBR,EAAO,KAAOA,EAAO,GAAK,SAACS,GAAD,OAAmBV,EAAKS,UAAaC,IAC/DV,EAAKW,UAEPC,SAAUZ,EA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+BbC,EAAWC,GACrB,GAAe,IAAXA,EAAe,CAGjB,IAFA,IAAIC,EAAW,IAAIC,OAAOF,GACtBG,EAAW,GACNC,EAAI,EAAGA,EAAIL,EAAKM,OAAQD,IAC3BH,EAAIK,KAAKP,EAAKK,GAAGtC,YAEnBqC,EAAIhB,KAAKY,EAAKK,IAGlB,OAAOD,EAEP,OAAOJ,GAIXF,WA/CyB,SA+CdU,GACT,IAAIJ,EAAWT,KAAKC,MAAMD,KAAKE,UAAUjB,EAAUU,gBAEjDV,EAAUnB,SADR+C,EACmB5B,EAAUmB,YAAYK,EAAKI,GAE3BJ,KAO3B,OAHA,wBAAU,WACRxB,EAAU/C,kBAEZ,kBACK,oBAAO+C,O,2CCjFhB,MAAM6B,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAS9D,GAAQ,CAAC,YAAY,qBAE1E,gB,kCCVf,W,kCCAA","file":"static/js/chunk-bd36926a.101bad5c.js","sourcesContent":["import { RootObject } from '@/model/rootObject'\nimport { https } from '@/utils/https'\nimport { ContentType, Method } from 'axios-mapper'\nimport { setupService, testApi } from '@/config'\n\n/**\n * \n * @param data 获取用户信息\n * @returns \n */\nexport const getUsersInfo = () => {\n return https().request(`/mngserver/userInfo`, Method.GET, undefined, ContentType.json)\n}\n\n/**\n * \n * @param data 登录\n * @returns \n */\nexport const login = (data: any) => {\n return https().request(`/server/login`, Method.POST, data, ContentType.json)\n}\n\n/**\n * \n * @returns 获取当前版本更新的时间\n */\nexport const getPadVersionTimer = () => {\n return https().request(`/pad_mtime`, Method.GET, undefined, ContentType.json)\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"menuBg\":\"#fff\",\"menuText\":\"#162b64\",\"menuActiveText\":\"#435ebe\"};","import { resolveComponent as _resolveComponent, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-4e0e902b\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"choice-project com-search\" }\nconst _hoisted_2 = { class: \"choice-content\" }\nconst _hoisted_3 = [\"onClick\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_van_search = _resolveComponent(\"van-search\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_van_search, {\n placeholder: \"请输入搜索关键词\",\n modelValue: _ctx.searchVal,\n \"onUpdate:modelValue\": [\n _cache[0] || (_cache[0] = ($event: any) => ((_ctx.searchVal) = $event)),\n _ctx.onSearch\n ],\n onCancel: _ctx.onCancel\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\", \"onCancel\"]),\n _createElementVNode(\"div\", _hoisted_2, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.projects, (item, index) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"choice-item\",\n key: index,\n onClick: ($event: any) => (_ctx.goCheckSpace(item))\n }, _toDisplayString(item.localName), 9, _hoisted_3))\n }), 128))\n ])\n ]))\n}","\nimport { defineComponent, nextTick, onMounted, reactive, toRefs } from \"vue\";\nimport { useRoute, onBeforeRouteUpdate } from \"vue-router\";\nimport { Search, Toast } from \"vant\";\nimport router from \"@/router\";\nimport { getUsersInfo } from \"@/apis/user\";\nimport { store } from \"@/store\";\nimport { UserMutationTypes } from \"@/store/modules/user/mutation-types\";\nimport { getCookieMac } from \"@/utils/cookies\";\n\nexport default defineComponent({\n components: {\n vanSearch: Search,\n },\n beforeRouteLeave(to, from, next) {\n console.log(\"导航\");\n console.log(to);\n console.log(from);\n console.log(\"=====\");\n if (to.name === \"home\") {\n let mac: any = getCookieMac();\n to.fullPath = to.fullPath + `?mac=${mac}`;\n to.query.mac = mac;\n }\n next();\n },\n setup() {\n const route: any = useRoute();\n const projects: any = [];\n const proxyData = reactive({\n route: route,\n transitionName: \"slide-right\",\n showHeader: false,\n // 去选择空间\n goCheckSpace(item: any) {\n store.commit(UserMutationTypes.SET_PROJECT_ID, item.id);\n router.push({ path: \"/choice-space\", query: { id: item.id } });\n },\n projects: projects,\n cloneProjects: projects,\n getUsersInfo() {\n getUsersInfo().then((res) => {\n let resData: any = res;\n if (resData.result === \"success\") {\n let projects: any = resData?.projects ?? [];\n proxyData.cloneProjects = JSON.parse(JSON.stringify(projects));\n proxyData.projects = projects;\n } else {\n Toast(\"登录过期,请重新扫码进入!\");\n router.push({ name: \"home\" });\n }\n });\n },\n searchVal: \"\",\n onSearch() {\n // console.log(proxyData.searchVal);\n proxyData.fuzzyQuery(proxyData.searchVal);\n },\n onCancel() {},\n // 搜索\n fiflterName(list: any, keyWord: any) {\n if (keyWord != \"\") {\n let reg: any = new RegExp(keyWord);\n let arr: any = [];\n for (let i = 0; i < list.length; i++) {\n if (reg.test(list[i].localName)) {\n //这里匹配的是数组中微信号名称以及公众号id,可根据业务需求自行修改!\n arr.push(list[i]);\n }\n }\n return arr; //返回符合条件的数组\n } else {\n return list;\n }\n },\n // 模糊匹配\n fuzzyQuery(val: any) {\n let arr: any = JSON.parse(JSON.stringify(proxyData.cloneProjects));\n if (val) {\n proxyData.projects = proxyData.fiflterName(arr, val);\n } else {\n proxyData.projects = arr;\n }\n },\n });\n onMounted(() => {\n proxyData.getUsersInfo();\n });\n return {\n ...toRefs(proxyData),\n };\n },\n});\n","import { render } from \"./choiceProject.vue?vue&type=template&id=4e0e902b&scoped=true&ts=true\"\nimport script from \"./choiceProject.vue?vue&type=script&lang=ts\"\nexport * from \"./choiceProject.vue?vue&type=script&lang=ts\"\n\nimport \"./choiceProject.vue?vue&type=style&index=0&id=4e0e902b&lang=scss&scoped=true\"\nimport \"./choiceProject.vue?vue&type=style&index=1&id=4e0e902b&lang=scss\"\n\nimport exportComponent from \"/Users/wangyong/shanggeyun/code/sagacloud-sagacare-ipad/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4e0e902b\"]])\n\nexport default __exports__","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./choiceProject.vue?vue&type=style&index=0&id=4e0e902b&lang=scss&scoped=true\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./choiceProject.vue?vue&type=style&index=1&id=4e0e902b&lang=scss\""],"sourceRoot":""}
|