{"remainingRequest":"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\\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":["//\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\r\nimport {mapState} from 'vuex'\r\nimport orgPerson from '@/api/orgPerson.js'\r\nimport FormDialog from './components/personForm-dialog.vue'\r\nimport OrfForm from './components/orgForm-dialog.vue'\r\nimport upDateOrgFormdialog from './components/updateOrgForm-dialog'\r\nimport req from '@/request.js'\r\nimport {TableMixin} from '@/mixins/tableMixin'\r\nexport default {\r\n name: 'headOrgManager',\r\n components: {\r\n FormDialog,\r\n OrfForm,\r\n upDateOrgFormdialog //修改组织弹框\r\n },\r\n mixins: [TableMixin],\r\n data() {\r\n return {\r\n loading: false,\r\n multipleSelection: [], // 复选框\r\n queryParam: {\r\n pageBean: {\r\n pageSize: 20,\r\n page: 1\r\n },\r\n params: {\r\n orgId: null,\r\n mobilePhone: null, //移动电话\r\n name: null //组织名称\r\n }\r\n },\r\n total: 0,\r\n title: '',\r\n titles: '',\r\n titleUp: '',\r\n showFormDia: false,\r\n showFormDias: false,\r\n showFormDiaUp: false, //修改组织\r\n tableData: [],\r\n pId: '',\r\n addId: '',\r\n basAdNames: [], //行政区\r\n parentIds: [], //组织树\r\n defaultProps: {\r\n value: 'id',\r\n label: 'name'\r\n },\r\n data: [],\r\n filterText: '',\r\n\t trees:false\r\n }\r\n },\r\n watch: {\r\n filterText(val) {\r\n\t\tconsole.log(val);\r\n this.$refs.tree.filter(val)\r\n }\r\n },\r\n created() {\r\n this.getDateList()\r\n // 行政区查询\r\n orgPerson.getbasAdName({}, res => {\r\n this.basAdNames = res.value\r\n })\r\n this.getTreen()\r\n\t\r\n },\r\n methods: {\r\n // 组织树查询\r\n getTreen() {\r\n\t\torgPerson.getPerson({}, res => {\r\n\t\t this.parentIds = res.value\r\n\t\t if(this.trees){\r\n\t\t \tthis.$nextTick(()=>{\r\n\t\t \t this.$refs.tree.setCurrentKey(JSON.parse(sessionStorage.getItem(\"streeId\")))\r\n\t\t \t })\r\n\t\t }\r\n\t\t})\r\n \r\n },\r\n renderContent(h, {node, data, store}) {\r\n return (\r\n {\r\n this.show = true\r\n }}\r\n on-mouseout={() => {\r\n this.show = false\r\n }}\r\n >\r\n {node.label}\r\n \r\n \r\n this.append(data, 'son')}\r\n >\r\n 新增\r\n \r\n this.upDateinfo(data, '')}\r\n >\r\n 修改\r\n \r\n this.remove(data)}\r\n >\r\n 删除\r\n \r\n \r\n \r\n \r\n \r\n )\r\n },\r\n remove(data) {\r\n this.$confirm('确定删除选中数据?', '提示', {\r\n confirmButtonText: '确 定',\r\n cancelButtonText: '取 消',\r\n type: 'warning'\r\n }).then(() => {\r\n orgPerson\r\n .removeS(data.id, res => {\r\n if (res.state) {\r\n this.$notify({\r\n type: 'success',\r\n message: '删除成功',\r\n duration: 2000\r\n // offset: 80\r\n })\r\n this.queryParam.pageBean.page = 1\r\n this.getDateList()\r\n this.getTreen()\r\n this.$set(this.parentIds, this.parentIds, this.parentIds)\r\n }\r\n })\r\n .catch(res => {\r\n this.$notify({\r\n type: 'error',\r\n message: res.message,\r\n duration: 2000,\r\n offset: 80\r\n })\r\n })\r\n })\r\n .catch(() => {})\r\n },\r\n upDateinfo(data, type) {\r\n this.titleUp = '修改'\r\n this.showFormDiaUp = true\r\n this.pId = data.id\r\n },\r\n append(data, type) {\r\n if (type != 'father') {\r\n this.titles = '新增组织'\r\n this.showFormDias = true\r\n this.pId = data.id\r\n if (data.parentId) {\r\n }\r\n } else {\r\n this.titles = '新增一级组织'\r\n this.showFormDias = true\r\n }\r\n },\r\n filterNode(value, data) {\r\n if (!value) return true\r\n return data.name.indexOf(value) !== -1\r\n },\r\n getDateList() {\r\n this.loading = true\r\n this.tableData = []\r\n orgPerson.ListGet(this.queryParam, res => {\r\n if (res.state) {\r\n this.tableData = res.value.rows\r\n this.total = res.value.total\r\n this.loading = false\r\n }\r\n })\r\n },\r\n openFormDiao() {\r\n if (this.addId) {\r\n this.title = '新增'\r\n this.showFormDia = true\r\n } else {\r\n }\r\n },\r\n changeNode(val) {\r\n\t\t sessionStorage.setItem(\"streeId\", JSON.stringify(val.id));\r\n\t\t this.trees=true\r\n this.addId = val.id\r\n this.queryParam.params.orgId = val.id\r\n this.queryParam.params.name = null\r\n this.queryParam.params.mobilePhone = null\r\n this.getDateList()\r\n },\r\n closeFormDiao() {\r\n this.showFormDia = false\r\n this.getDateList()\r\n this.getTreen()\r\n },\r\n closeFormDiaos() {\r\n this.showFormDias = false\r\n this.getDateList()\r\n this.getTreen()\r\n },\r\n // 修改组织\r\n closeFormDiaoUp() {\r\n this.showFormDiaUp = false\r\n this.getDateList()\r\n this.getTreen()\r\n },\r\n handleSizeChange(val) {\r\n this.queryParam.pageBean.pageSize = val\r\n this.getDateList()\r\n },\r\n handleCurrentChange(val) {\r\n this.queryParam.pageBean.page = val\r\n this.getDateList()\r\n },\r\n // // 修改\r\n handleUpdate(row) {\r\n this.title = '修改'\r\n this.pId = row.id\r\n this.showFormDia = true\r\n },\r\n handleSelectionChange(val) {\r\n this.multipleSelection = val.map(item => {\r\n return item.id\r\n })\r\n },\r\n // // // 指定一个key标识这一行的数据\r\n getRowKey(row) {\r\n return row.id\r\n },\r\n // // // 批量删除\r\n deleteSelect() {\r\n this.$confirm('确定删除选中数据?', '提示', {\r\n confirmButtonText: '确 定',\r\n cancelButtonText: '取 消',\r\n type: 'warning'\r\n })\r\n .then(() => {\r\n orgPerson\r\n .remove(this.multipleSelection, res => {\r\n if (res.state) {\r\n this.$notify({\r\n type: 'success',\r\n message: '删除成功',\r\n duration: 2000\r\n // offset: 80\r\n })\r\n // this.multipleSelection = [];\r\n this.$refs.multipleSelection.clearSelection()\r\n this.queryParam.pageBean.page = 1\r\n this.getDateList()\r\n }\r\n })\r\n .catch(res => {\r\n this.$notify({\r\n type: 'error',\r\n message: res.message,\r\n duration: 2000,\r\n offset: 80\r\n })\r\n this.getDateList()\r\n })\r\n })\r\n .catch(() => {})\r\n },\r\n // /** 删除按钮操作 */\r\n handleDelete(row) {\r\n this.$confirm('确定删除选中数据?', '提示', {\r\n confirmButtonText: '确 定',\r\n cancelButtonText: '取 消',\r\n type: 'warning'\r\n })\r\n .then(() => {\r\n orgPerson\r\n .remove(row.id, res => {\r\n if (res.state) {\r\n this.$notify({\r\n type: 'success',\r\n message: '删除成功',\r\n duration: 2000\r\n // offset: 80\r\n })\r\n this.queryParam.pageBean.page = 1\r\n this.getDateList()\r\n }\r\n })\r\n .catch(res => {\r\n this.$notify({\r\n type: 'error',\r\n message: res.message,\r\n duration: 2000,\r\n offset: 80\r\n })\r\n this.getDateList()\r\n })\r\n })\r\n .catch(() => {})\r\n },\r\n handleSelect(val) {\r\n console.log(val)\r\n },\r\n // // 点击查询\r\n onClickSearch() {\r\n this.queryParam.pageBean.page = 1\r\n this.getDateList()\r\n },\r\n // 重置\r\n resetQuery() {\r\n this.queryParam.params = {}\r\n this.onClickSearch()\r\n }\r\n }\r\n}\r\n",null]}