chunk-84a1a18e.7c3cc2ab.js.map 9.2 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/choiceSpace/choiceProject.vue?5f50","webpack:///./src/views/choiceSpace/choiceProject.vue?e7ce","webpack:///./src/apis/user.ts","webpack:///./src/views/choiceSpace/choiceProject.vue?a652","webpack:///./src/views/choiceSpace/choiceProject.vue?f6bf","webpack:///./src/views/choiceSpace/choiceProject.vue","webpack:///./src/views/choiceSpace/choiceProject.vue?9605"],"names":["module","exports","getUsersInfo","request","GET","undefined","json","login","data","POST","_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","setup","route","proxyData","transitionName","showHeader","store","commit","SET_PROJECT_ID","id","router","push","path","query","cloneProjects","then","res","resData","JSON","parse","stringify","fuzzyQuery","fiflterName","list","keyWord","arr","i","length","name","match","val","__exports__"],"mappings":"2IAAA,W,uBCCAA,EAAOC,QAAU,CAAC,OAAS,OAAO,SAAW,UAAU,eAAiB,Y,oCCAxE,gGASaC,EAAe,WAC1B,OAAO,iBAAQC,QAAR,mBAAoC,OAAOC,SAAKC,EAAW,OAAYC,OAcnEC,EAAQ,SAACC,GACpB,OAAO,iBAAQL,QAAR,eAAgC,OAAOM,KAAMD,EAAM,OAAYF,Q,2DCvBlEI,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,SAAU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B,EAAUmB,YAAYG,EAAKK,GAE3BL,KAO3B,OAHA,wBAAU,WACRtB,EAAUrC,kBAEZ,kBACK,oBAAOqC,O,2CCvDhB,MAAM4B,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASrD,GAAQ,CAAC,YAAY,qBAE1E,gB,kCCVf","file":"static/js/chunk-84a1a18e.7c3cc2ab.js","sourcesContent":["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=596bae32&lang=scss\"","// extracted by mini-css-extract-plugin\nmodule.exports = {\"menuBg\":\"#fff\",\"menuText\":\"#162b64\",\"menuActiveText\":\"#435ebe\"};","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(`server1/userInfo`, Method.GET, undefined, ContentType.json)\n}\n/**\n * 获取企业用户列表\n */\nexport const getCompanyUsers = () => {\n return https().request('/api/user/companyUsers', 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","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-596bae32\"),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 } from \"vant\";\nimport router from \"@/router\";\nimport { getUsersInfo } from \"@/apis/user\";\nimport { store } from \"@/store\";\nimport { UserMutationTypes } from \"@/store/modules/user/mutation-types\";\n\nexport default defineComponent({\n components: {\n vanSearch: Search,\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 let projects: any = resData?.projects ?? [];\n proxyData.cloneProjects = JSON.parse(JSON.stringify(projects));\n proxyData.projects = projects;\n });\n },\n searchVal: \"\",\n onSearch() {\n // console.log(proxyData.searchVal);\n proxyData.fuzzyQuery(proxyData.searchVal);\n },\n onCancel() {},\n fiflterName(list: any, keyWord: any) {\n var arr = [];\n for (var i = 0; i < list.length; i++) {\n if (list[i].name.match(keyWord) != null) {\n arr.push(list[i]);\n }\n }\n return arr;\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=596bae32&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=596bae32&lang=scss&scoped=true\"\nimport \"./choiceProject.vue?vue&type=style&index=1&id=596bae32&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-596bae32\"]])\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=596bae32&lang=scss&scoped=true\""],"sourceRoot":""}