{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\infoManagement\\headOrgManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\infoManagement\\headOrgManager.vue","mtime":1684458239231},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { mapState } from 'vuex';\nimport orgPerson from '@/api/orgPerson.js';\nimport FormDialog from \"./components/personForm-dialog.vue\";\nimport OrfForm from \"./components/orgForm-dialog.vue\";\nimport upDateOrgFormdialog from \"./components/updateOrgForm-dialog\";\nimport req from '@/request.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nexport default {\n name: 'headOrgManager',\n components: {\n FormDialog: FormDialog,\n OrfForm: OrfForm,\n upDateOrgFormdialog: upDateOrgFormdialog //修改组织弹框\n\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n loading: false,\n multipleSelection: [],\n // 复选框\n queryParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {\n orgId: null,\n mobilePhone: null,\n //移动电话\n name: null //组织名称\n\n }\n },\n total: 0,\n title: '',\n titles: '',\n titleUp: '',\n showFormDia: false,\n showFormDias: false,\n showFormDiaUp: false,\n //修改组织\n tableData: [],\n pId: '',\n addId: '',\n basAdNames: [],\n //行政区\n parentIds: [],\n //组织树\n defaultProps: {\n value: 'id',\n label: 'name'\n },\n data: [],\n filterText: '',\n trees: false\n };\n },\n watch: {\n filterText: function filterText(val) {\n console.log(val);\n this.$refs.tree.filter(val);\n }\n },\n created: function created() {\n var _this = this;\n\n this.getDateList(); // 行政区查询\n\n orgPerson.getbasAdName({}, function (res) {\n _this.basAdNames = res.value;\n });\n this.getTreen();\n },\n methods: {\n // 组织树查询\n getTreen: function getTreen() {\n var _this2 = this;\n\n orgPerson.getPerson({}, function (res) {\n _this2.parentIds = res.value;\n\n if (_this2.trees) {\n _this2.$nextTick(function () {\n _this2.$refs.tree.setCurrentKey(JSON.parse(sessionStorage.getItem(\"streeId\")));\n });\n }\n });\n },\n renderContent: function renderContent(h, _ref) {\n var _this3 = this;\n\n var node = _ref.node,\n data = _ref.data,\n store = _ref.store;\n return h(\"span\", {\n \"class\": \"custom-tree-node\",\n \"on\": {\n \"mouseover\": function mouseover() {\n _this3.show = true;\n },\n \"mouseout\": function mouseout() {\n _this3.show = false;\n }\n }\n }, [h(\"span\", [node.label]), h(\"span\", [h(\"el-popover\", {\n \"attrs\": {\n \"placement\": \"bottom\",\n \"width\": \"55\",\n \"trigger\": \"hover\"\n }\n }, [h(\"el-button\", {\n \"style\": \"width:100%;border:0;margin:0;color:#606266;\",\n \"attrs\": {\n \"size\": \"mini\",\n \"type\": \"text\",\n \"icon\": \"el-icon-plus\"\n },\n \"on\": {\n \"click\": function click() {\n return _this3.append(data, 'son');\n }\n }\n }, [\"\\u65B0\\u589E\"]), h(\"el-button\", {\n \"directives\": [{\n name: \"show\",\n value: data.parentId\n }],\n \"style\": \"width:100%;border:0;margin:0;color:#606266;\",\n \"attrs\": {\n \"size\": \"mini\",\n \"type\": \"text\",\n \"icon\": \"el-icon-edit\"\n },\n \"on\": {\n \"click\": function click() {\n return _this3.upDateinfo(data, '');\n }\n }\n }, [\"\\u4FEE\\u6539\"]), h(\"el-button\", {\n \"directives\": [{\n name: \"show\",\n value: data.parentId\n }],\n \"style\": \"width:100%;border:0;margin:0;color:#606266;\",\n \"attrs\": {\n \"size\": \"mini\",\n \"icon\": \"el-icon-delete\",\n \"type\": \"text\"\n },\n \"on\": {\n \"click\": function click() {\n return _this3.remove(data);\n }\n }\n }, [\"\\u5220\\u9664\"]), h(\"i\", {\n \"slot\": \"reference\",\n \"class\": \"el-icon-more-outline\",\n \"style\": \"font-size: 15px;\"\n })])])]);\n },\n remove: function remove(data) {\n var _this4 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n orgPerson.removeS(data.id, function (res) {\n if (res.state) {\n _this4.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000 // offset: 80\n\n });\n\n _this4.queryParam.pageBean.page = 1;\n\n _this4.getDateList();\n\n _this4.getTreen();\n\n _this4.$set(_this4.parentIds, _this4.parentIds, _this4.parentIds);\n }\n }).catch(function (res) {\n _this4.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n });\n }).catch(function () {});\n },\n upDateinfo: function upDateinfo(data, type) {\n this.titleUp = '修改';\n this.showFormDiaUp = true;\n this.pId = data.id;\n },\n append: function append(data, type) {\n if (type != 'father') {\n this.titles = '新增组织';\n this.showFormDias = true;\n this.pId = data.id;\n\n if (data.parentId) {}\n } else {\n this.titles = '新增一级组织';\n this.showFormDias = true;\n }\n },\n filterNode: function filterNode(value, data) {\n if (!value) return true;\n return data.name.indexOf(value) !== -1;\n },\n getDateList: function getDateList() {\n var _this5 = this;\n\n this.loading = true;\n this.tableData = [];\n orgPerson.ListGet(this.queryParam, function (res) {\n if (res.state) {\n _this5.tableData = res.value.rows;\n _this5.total = res.value.total;\n _this5.loading = false;\n }\n });\n },\n openFormDiao: function openFormDiao() {\n if (this.addId) {\n this.title = '新增';\n this.showFormDia = true;\n } else {}\n },\n changeNode: function changeNode(val) {\n sessionStorage.setItem(\"streeId\", JSON.stringify(val.id));\n this.trees = true;\n this.addId = val.id;\n this.queryParam.params.orgId = val.id;\n this.queryParam.params.name = null;\n this.queryParam.params.mobilePhone = null;\n this.getDateList();\n },\n closeFormDiao: function closeFormDiao() {\n this.showFormDia = false;\n this.getDateList();\n this.getTreen();\n },\n closeFormDiaos: function closeFormDiaos() {\n this.showFormDias = false;\n this.getDateList();\n this.getTreen();\n },\n // 修改组织\n closeFormDiaoUp: function closeFormDiaoUp() {\n this.showFormDiaUp = false;\n this.getDateList();\n this.getTreen();\n },\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.getDateList();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.getDateList();\n },\n // // 修改\n handleUpdate: function handleUpdate(row) {\n this.title = '修改';\n this.pId = row.id;\n this.showFormDia = true;\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val.map(function (item) {\n return item.id;\n });\n },\n // // // 指定一个key标识这一行的数据\n getRowKey: function getRowKey(row) {\n return row.id;\n },\n // // // 批量删除\n deleteSelect: function deleteSelect() {\n var _this6 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n orgPerson.remove(_this6.multipleSelection, function (res) {\n if (res.state) {\n _this6.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000 // offset: 80\n\n }); // this.multipleSelection = [];\n\n\n _this6.$refs.multipleSelection.clearSelection();\n\n _this6.queryParam.pageBean.page = 1;\n\n _this6.getDateList();\n }\n }).catch(function (res) {\n _this6.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n\n _this6.getDateList();\n });\n }).catch(function () {});\n },\n // /** 删除按钮操作 */\n handleDelete: function handleDelete(row) {\n var _this7 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n orgPerson.remove(row.id, function (res) {\n if (res.state) {\n _this7.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000 // offset: 80\n\n });\n\n _this7.queryParam.pageBean.page = 1;\n\n _this7.getDateList();\n }\n }).catch(function (res) {\n _this7.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n\n _this7.getDateList();\n });\n }).catch(function () {});\n },\n handleSelect: function handleSelect(val) {\n console.log(val);\n },\n // // 点击查询\n onClickSearch: function onClickSearch() {\n this.queryParam.pageBean.page = 1;\n this.getDateList();\n },\n // 重置\n resetQuery: function resetQuery() {\n this.queryParam.params = {};\n this.onClickSearch();\n }\n }\n};",null]}