{"remainingRequest":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\basicInfo\\OverseasPersonnelInfo.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\basicInfo\\OverseasPersonnelInfo.vue","mtime":1677132741570},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/cqlt-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/web.dom.iterable\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 tree from '@/components/tree';\nimport pagination from '@/components/pagination';\nimport req from '@/request.js';\nimport utils from '@/utils.js';\nvar portal = window.context.portal;\nexport default {\n name: 'OverseasPersonnelInfo',\n components: {\n tree: tree,\n pagination: pagination\n },\n data: function data() {\n return {\n tableMaxHeight: 400,\n treeData: [],\n searchForm: {\n name: ''\n },\n tableData: [],\n params: {\n pageBean: {\n page: 1,\n pageSize: 10\n }\n },\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n deleteIds: '',\n dialog: {\n visible: false,\n title: this.$t('common.add')\n },\n dialogForm: {\n sex: 0,\n status: 0,\n isImportant: 1\n },\n dialogRules: {\n name: {\n required: true,\n message: this.$t('overseasPersonnelInfo.input') + this.$t('overseasPersonnelInfo.name'),\n trigger: 'blur'\n },\n leaveDate: {\n required: true,\n message: this.$t('overseasPersonnelInfo.select') + this.$t('overseasPersonnelInfo.leaveDate'),\n trigger: 'blur'\n },\n status: {\n required: true,\n message: this.$t('overseasPersonnelInfo.select') + this.$t('overseasPersonnelInfo.status'),\n trigger: 'blur'\n }\n }\n };\n },\n mounted: function mounted() {\n var _this = this;\n\n this.calcTableHeight();\n this.$root.$on('resize', function () {\n _this.calcTableHeight(500);\n });\n },\n created: function created() {\n this.loadData(this.params);\n this.loadDataTree();\n },\n methods: {\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n handleNodeClick: function handleNodeClick(data) {\n this.dialogForm.enterpriseId = data.id;\n this.searchForm.enterpriseId = data.id;\n this.handleSearch();\n },\n submit: function submit() {\n var _this2 = this;\n\n var api;\n\n if (this.dialog.title == this.$t('common.add')) {\n api = '/qfEnterpriseUsersInfo/v1/insertInfo';\n } else {\n api = '/qfEnterpriseUsersInfo/v1/updateInfoById';\n }\n\n req.post(portal + api, this.dialogForm).then(function (res) {\n if (!res.data.state) return;\n _this2.dialog.visible = false;\n\n _this2.loadData(_this2.params);\n\n _this2.loadDataTree();\n });\n },\n handleAdd: function handleAdd() {\n if (typeof this.dialogForm.enterpriseId == 'undefined') return this.$message.info(this.$t('common.selectcompany'));\n this.dialogForm = {\n sex: 0,\n status: 0,\n isImportant: 1,\n enterpriseId: this.dialogForm.enterpriseId\n };\n this.dialog = {\n title: this.$t('common.add'),\n visible: true\n };\n },\n handleDbClick: function handleDbClick(row) {\n this.dialog = {\n title: this.$t('common.modify'),\n visible: true\n };\n this.dialogForm = row;\n },\n handleDialogClose: function handleDialogClose() {\n this.dialog.visible = false;\n },\n handleSelectionChange: function handleSelectionChange(currentData) {\n if (currentData.length === 0) return this.deleteIds = '';\n var ids = [];\n currentData.forEach(function (item) {\n ids.push(item.id);\n });\n this.deleteIds = ids.join(',');\n },\n handleDelete: function handleDelete() {\n var _this3 = this;\n\n this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n req.remove(portal + '/qfEnterpriseUsersInfo/v1/?ids=' + _this3.deleteIds).then(function (res) {\n _this3.loadData(_this3.params);\n\n _this3.loadDataTree();\n });\n });\n },\n handleSearch: function handleSearch() {\n var obj = this.searchForm;\n var querys = [];\n\n for (var i in obj) {\n if (obj[i]) {\n querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: obj[i]\n });\n }\n }\n\n this.params.querys = querys;\n this.loadData(this.params);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n pageSize: pageSize\n });\n this.loadData(this.params);\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n page: page\n });\n this.loadData(this.params);\n },\n loadDataTree: function loadDataTree() {\n var _this4 = this;\n\n req.post(portal + '/qfEnterpriseInfo/v1/getTree').then(function (res) {\n _this4.treeData = res && res.data && res.data.value || [];\n });\n },\n loadData: function loadData(params) {\n var _this5 = this;\n\n req.post(portal + '/qfEnterpriseUsersInfo/v1/getList', params).then(function (res) {\n _this5.tableData = res && res.data && res.data.value && res.data.value.rows || [];\n _this5.pageResult = {\n page: res && res.data && res.data.value && res.data.value.page || 1,\n pageSize: res && res.data && res.data.value && res.data.value.pageSize || 20,\n total: res && res.data && res.data.value && res.data.value.total || 0\n };\n });\n },\n calcTableHeight: function calcTableHeight(delay) {\n var _this6 = this;\n\n // 动态计算表格的高度,自适应当前容器,168是计算得出的margin和padding的距离\n setTimeout(function () {\n var tablePanelHeight = _this6.$refs.tablePanel.parentNode.clientHeight;\n var headSearchHeight = _this6.$refs.headSearch.clientHeight;\n var operationBtnHeight = _this6.$refs.operationBtn.clientHeight;\n var containerPaginationHeight = _this6.$refs.containerPagination.clientHeight;\n _this6.tableMaxHeight = tablePanelHeight - headSearchHeight - operationBtnHeight - containerPaginationHeight - 25;\n }, delay || 0);\n }\n }\n};",null]}