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AAvCH,EAAAA,EAAAA,IAAOpE,GAAOsE,MAAMC,WAAW3C,OAC5D,CACE4C,KAAM,MACNC,IAAI/F,EAAAA,EAAAA,KAAS,IAAM,EACjBH,EAAAA,EAAAA,IAAasB,EAAoB,CAC/BX,QAAQ,EACRnC,MAAO,oBACN,CACDgB,SAASW,EAAAA,EAAAA,KAAS,IAAM,EACtBH,EAAAA,EAAAA,IAAaqB,EAAyB,CACpCc,MAAO,SACPlD,MAAO,CAAC,gBAAgB,MACvB,CACDO,SAASW,EAAAA,EAAAA,KAAS,IAAM,EACtBH,EAAAA,EAAAA,IAAa8E,EAAqB,CAChCO,WAAY1D,EAAME,OAAOC,SACzB,sBAAuBlC,EAAO,KAAOA,EAAO,GAAM0F,GAAkB3D,EAAME,OAAOC,SAAYwD,GAC7FC,YAAa,YACbC,UAAW,GACXvG,MAAO,CAAC,MAAQ,UACf,KAAM,EAAG,CAAC,kBAEfuB,EAAG,KAELR,EAAAA,EAAAA,IAAaqB,EAAyB,CAAEpC,MAAO,CAAC,eAAe,OAAO,gBAAgB,MAAQ,CAC5FO,SAASW,EAAAA,EAAAA,KAAS,IAAM,EACtBH,EAAAA,EAAAA,IAAaoB,EAAsB,CACjC9B,KAAM,UACNiC,QAASsB,GACR,CACDrD,SAASW,EAAAA,EAAAA,KAAS,IAAM,EACtBG,EAAAA,EAAAA,IAAiB,SAEnBE,EAAG,OAGPA,EAAG,OAGPA,EAAG,OAGP2F,IAAK,UAEPC,IACF,OACJ,CAEJ,IErRA,MAAMrH,EAAc,EAEpB,O","sources":["webpack://baozhidao-putoutstorage/./src/components/mark-green.vue","webpack://baozhidao-putoutstorage/./src/components/mark-green.vue?d9fe","webpack://baozhidao-putoutstorage/./src/components/bg.vue?5ef6","webpack://baozhidao-putoutstorage/./src/components/bg.vue","webpack://baozhidao-putoutstorage/./src/components/bg.vue?4c61","webpack://baozhidao-putoutstorage/./src/components/searchAdd.vue?c0f0","webpack://baozhidao-putoutstorage/./src/components/searchAdd.vue","webpack://baozhidao-putoutstorage/./src/components/searchAdd.vue?592b","webpack://baozhidao-putoutstorage/./src/views/usermanagement/company/index.vue?dde8","webpack://baozhidao-putoutstorage/./src/views/usermanagement/company/index.vue","webpack://baozhidao-putoutstorage/./src/views/usermanagement/company/index.vue?6ccb"],"sourcesContent":["\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n","import { render } from \"./mark-green.vue?vue&type=template&id=84d97b9e\"\nconst script = {}\n\nimport \"./mark-green.vue?vue&type=style&index=0&id=84d97b9e&lang=scss\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"bg\" }\nconst _hoisted_2 = { class: \"bg-tit\" }\nconst _hoisted_3 = { style: {\"display\":\"flex\",\"align-items\":\"center\",\"flex\":\"1\",\"flex-shrink\":\"0\",\"min-width\":\"200px\"} }\n\nimport markGreen from \"@/components/mark-green.vue\";\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'bg',\n props: {\r\n istitle: {\r\n type: String,\r\n default: () => '',\r\n },\r\n},\n setup(__props) {\n\r\nconst props = __props\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_text = _resolveComponent(\"el-text\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(markGreen),\n _createVNode(_component_el_text, {\n style: {\"margin-left\":\"20px\"},\n tag: \"b\"\n }, {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"tit\", {}, () => [\n _createTextVNode(_toDisplayString(props.istitle), 1)\n ])\n ]),\n _: 3\n })\n ]),\n _renderSlot(_ctx.$slots, \"btn\")\n ]),\n _renderSlot(_ctx.$slots, \"bg\")\n ]))\n}\n}\n\n})","\r\n \r\n \r\n \r\n \r\n \r\n {{props.istitle}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n","import script from \"./bg.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./bg.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./bg.vue?vue&type=style&index=0&id=24052afe&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"searchAdd\" }\nconst _hoisted_2 = { class: \"searchAdd-left\" }\nconst _hoisted_3 = { class: \"searchAdd-right\" }\n\nimport marks from \"@/components/mark.vue\";\r\nimport { reactive } from \"vue\";\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'searchAdd',\n props: {\r\n isButtom: {\r\n type: String,\r\n default: () => '',\r\n },\r\n labelWidth: {\r\n type: String,\r\n default: () => '100',\r\n },\r\n inline: {\r\n type: Boolean,\r\n default: () => true,\r\n },\r\n // isPlaceholder: {\r\n // type: String,\r\n // default: () => '',\r\n // },\r\n},\n emits: [\"event\"],\n setup(__props, { emit: __emit }) {\n\r\nconst props = __props\r\nconst data = reactive({\r\n input: ''\r\n})\r\nconst emit = __emit\r\nconst subClick = () => {\r\n emit('event', data.input)\r\n}\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_button = _resolveComponent(\"el-button\")!\n const _component_el_form_item = _resolveComponent(\"el-form-item\")!\n const _component_el_form = _resolveComponent(\"el-form\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_el_form, {\n inline: props.inline\n }, {\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"searchConter\"),\n _createVNode(_component_el_form_item, null, {\n default: _withCtx(() => [\n _createVNode(_component_el_button, {\n type: \"primary\",\n onClick: subClick\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(props.isButtom), 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n })\n ]),\n _: 3\n }, 8, [\"inline\"])\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _renderSlot(_ctx.$slots, \"searchBtn\")\n ])\n ]))\n}\n}\n\n})","\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ props.isButtom }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n","import script from \"./searchAdd.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./searchAdd.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./searchAdd.vue?vue&type=style&index=0&id=ad1965bc&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, unref as _unref, createTextVNode as _createTextVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, withModifiers as _withModifiers, createSlots as _createSlots, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"company\" }\nconst _hoisted_2 = { class: \"custom-tree-node\" }\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"span\", null, null, -1)\nconst _hoisted_4 = { style: {\"padding-right\":\"20px\",\"display\":\"flex\",\"align-items\":\"center\"} }\n\nimport bg from '@/components/bg.vue'\r\nimport { ElMessage, ElMessageBox, ElNotification } from 'element-plus'\r\nimport searchAdd from \"@/components/searchAdd.vue\";\r\nimport { reactive,onMounted} from \"vue\";\r\nimport { companyDept, postTree,deleteTree,putTree,lateInit,userInfo } from \"@/api\";\r\nimport {enterCompanyFun} from '@/router';\r\n\r\nimport { useStore } from \"vuex\";\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n setup(__props) {\n\r\nconst store = useStore()\r\nconst datas = reactive({\r\n search: '',//搜索\r\n params: {//添加目录参数\r\n deptName: '',\r\n parentId: 0,\r\n },\r\n dataTree: []\r\n})\r\nconst defaultProps = {\r\n children: 'children',\r\n label: 'deptName',\r\n}\r\n// 公司列表\r\nconst getDeptApi = async () => {\r\n const result:any = await companyDept({ deptName: datas.search })\r\n if (result.code == 200) datas.dataTree = result.data\r\n}\r\ngetDeptApi()\r\n\r\n//获取用户信息\r\nconst getuserInfoApi = async () => {\r\n const result: any = await userInfo({})\r\n if (result.code == 200) store.commit('setIsUserInfo', result?.data) //存储用户个人信息\r\n}\r\n\r\nonMounted(() => {\r\n getuserInfoApi()\r\n})\r\n\r\n\r\n//添加一级目录\r\nconst firstOrder = async () => {\r\n if (!datas.params.deptName) {\r\n ElNotification({\r\n title: '格式错误',\r\n message: '哎呀,目录名称输入好像不正确哦',\r\n type: 'error',\r\n })\r\n return\r\n }\r\n datas.params.parentId = 0\r\n posTreeApi()\r\n}\r\n//添加目录Api\r\nconst posTreeApi = async () => {\r\n const result:any = await postTree(datas.params)\r\n if (result.code == 200 && result.msg == '创建成功') lateInit({deptId:result.data});getDeptApi()\r\n}\r\n/**\r\n * 新增字节\r\n */\r\nconst addFun = (node: any, data: any) => {\r\n ElMessageBox.prompt('请输入目录名称', '提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n inputPattern: /\\S/,\r\n inputErrorMessage: '目录不允许为空',\r\n draggable: true,\r\n }).then(({ value }) => {\r\n datas.params.parentId = data.id\r\n datas.params.deptName = value\r\n posTreeApi()\r\n }).catch(() => {\r\n ElMessage.info('取消新增目录')\r\n })\r\n}\r\n/**\r\n * 编辑字节\r\n */\r\nconst editFun = (node: any, data: any) => {\r\n ElMessageBox.prompt('请输入目录名称', '提示', {\r\n draggable: true,\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n inputPattern: /\\S/,\r\n inputErrorMessage: '目录不允许为空',\r\n inputValue: data.deptName ? data.deptName : ''\r\n }).then(async ({ value }) => {\r\n const params = {\r\n id: data.id,\r\n deptName:value\r\n }\r\n const result:any = await putTree(params)\r\n console.log('编辑成功',result)\r\n if (result.code == 200 && result.msg == '更新成功') getDeptApi()\r\n }).catch(() => {\r\n ElMessage.info('取消编辑目录')\r\n })\r\n}\r\n\r\n\r\n\r\n/**\r\n * 删除\r\n */\r\nconst delFun = (node: any, data: any) => {\r\n ElMessageBox.confirm('删除目录操作,是否继续执行删除?', '提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n draggable: true,\r\n type: 'warning',\r\n center: true,\r\n }).then(async () => {\r\n const result:any = await deleteTree({id:data.id})\r\n if (result.code == 200 && result.msg == '删除成功') getDeptApi()\r\n }).catch(() => {\r\n ElMessage.info('取消删除')\r\n })\r\n}\r\n\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_input = _resolveComponent(\"el-input\")!\n const _component_el_form_item = _resolveComponent(\"el-form-item\")!\n const _component_el_button = _resolveComponent(\"el-button\")!\n const _component_el_form = _resolveComponent(\"el-form\")!\n const _component_FolderOpened = _resolveComponent(\"FolderOpened\")!\n const _component_el_icon = _resolveComponent(\"el-icon\")!\n const _component_el_tree = _resolveComponent(\"el-tree\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(searchAdd, {\n isButtom: \"查询\",\n onEvent: getDeptApi\n }, {\n searchConter: _withCtx(() => [\n _createVNode(_component_el_form_item, { label: \"公司名称\" }, {\n default: _withCtx(() => [\n _createVNode(_component_el_input, {\n modelValue: datas.search,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((datas.search) = $event)),\n placeholder: \"请输入公司名称\",\n clearable: \"\",\n style: {\"width\":\"200px\"}\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(bg, { istitle: \"公司列表\" }, _createSlots({\n bg: _withCtx(() => [\n _createVNode(_component_el_tree, {\n data: datas.dataTree,\n props: defaultProps\n }, {\n default: _withCtx(({ node, data }) => [\n _createElementVNode(\"span\", _hoisted_2, [\n _createElementVNode(\"span\", null, [\n _createVNode(_component_el_icon, {\n style: {\"margin\":\"0 6px 0 2px\"},\n size: \"16\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_FolderOpened)\n ]),\n _: 1\n }),\n _createTextVNode(\" \" + _toDisplayString(node.label), 1)\n ]),\n _hoisted_3,\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(_component_el_button, {\n onClick: _withModifiers(($event: any) => (addFun(node, data)), [\"stop\"]),\n type: \"primary\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"新增子级\")\n ]),\n _: 2\n }, 1032, [\"onClick\"]),\n _createVNode(_component_el_button, {\n onClick: _withModifiers(($event: any) => (editFun(node, data)), [\"stop\"]),\n style: {\"margin-left\":\"20px\"},\n type: \"success\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"编辑\")\n ]),\n _: 2\n }, 1032, [\"onClick\"]),\n _createVNode(_component_el_button, {\n onClick: _withModifiers(($event: any) => (_unref(enterCompanyFun)(data)), [\"stop\"]),\n style: {\"margin-left\":\"20px\"},\n type: \"warning\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"进入\")\n ]),\n _: 2\n }, 1032, [\"onClick\"]),\n _createVNode(_component_el_button, {\n onClick: _withModifiers(($event: any) => (delFun(node, data)), [\"stop\"]),\n style: {\"margin-left\":\"20px\"},\n type: \"danger\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"删除\")\n ]),\n _: 2\n }, 1032, [\"onClick\"])\n ])\n ])\n ]),\n _: 1\n }, 8, [\"data\"])\n ]),\n _: 2\n }, [\n (_unref(store).state.isuserInfo&&_unref(store).state.isuserInfo.deptId==0)\n ? {\n name: \"btn\",\n fn: _withCtx(() => [\n _createVNode(_component_el_form, {\n inline: true,\n class: \"demo-form-inline\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_form_item, {\n label: \"添加一级目录\",\n style: {\"margin-bottom\":\"0\"}\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_input, {\n modelValue: datas.params.deptName,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((datas.params.deptName) = $event)),\n placeholder: \"请输入添加一级目录\",\n clearable: \"\",\n style: {\"width\":\"150px\"}\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_el_form_item, { style: {\"margin-right\":\"20px\",\"margin-bottom\":\"0\"} }, {\n default: _withCtx(() => [\n _createVNode(_component_el_button, {\n type: \"primary\",\n onClick: firstOrder\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"添加\")\n ]),\n _: 1\n })\n ]),\n _: 1\n })\n ]),\n _: 1\n })\n ]),\n key: \"0\"\n }\n : undefined\n ]), 1024)\n ]))\n}\n}\n\n})","\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n 添加\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ node.label }}\r\n \r\n \r\n \r\n 新增子级\r\n 编辑\r\n 进入\r\n 删除\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n\r\n","import script from \"./index.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./index.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./index.vue?vue&type=style&index=0&id=16c5736a&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__"],"names":["class","_createElementVNode","_hoisted_2","_createElementBlock","_hoisted_1","_hoisted_3","script","__exports__","render","style","_defineComponent","__name","props","istitle","type","String","default","setup","__props","_ctx","_cache","_component_el_text","_resolveComponent","_openBlock","_createVNode","markGreen","tag","_withCtx","_renderSlot","$slots","_createTextVNode","_toDisplayString","_","isButtom","labelWidth","inline","Boolean","emits","emit","__emit","data","reactive","input","subClick","_component_el_button","_component_el_form_item","_component_el_form","onClick","_hoisted_4","store","useStore","datas","search","params","deptName","parentId","dataTree","defaultProps","children","label","getDeptApi","async","result","companyDept","code","getuserInfoApi","userInfo","commit","onMounted","firstOrder","posTreeApi","ElNotification","title","message","postTree","msg","lateInit","deptId","addFun","node","ElMessageBox","prompt","confirmButtonText","cancelButtonText","inputPattern","inputErrorMessage","draggable","then","value","id","catch","ElMessage","info","editFun","inputValue","putTree","console","log","delFun","confirm","center","deleteTree","_component_el_input","_component_FolderOpened","_component_el_icon","_component_el_tree","searchAdd","onEvent","searchConter","modelValue","$event","placeholder","clearable","bg","_createSlots","size","_withModifiers","_unref","enterCompanyFun","state","isuserInfo","name","fn","key","undefined"],"sourceRoot":""}