{"remainingRequest":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\cssc-fvue\\src\\components\\eipControl\\selector\\EipPostSelector.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cssc-fvue\\src\\components\\eipControl\\selector\\EipPostSelector.vue","mtime":1667804639118},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cssc-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\nimport \"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//\nimport utils from \"@/hotent-ui-util.js\";\nimport sub_pio_mixin from \"@/sub-permission-mixin.js\";\nexport default {\n name: \"my-post-selector\",\n props: {\n validate: [String, Object],\n value: String,\n name: String,\n placeholder: String,\n permission: String,\n single: Boolean,\n config: Object,\n appendToBody: {\n type: Boolean,\n default: false\n },\n selectCurrent: Boolean\n },\n mixins: [sub_pio_mixin],\n //混入方式引入表单组件中公共属性,处理子表、孙表行内联动(切面修改permission)\n data: function data() {\n return {\n data: [],\n demensions: [],\n defaultDemension: null,\n orgs: [],\n tableColumns: [{\n prop: \"name\",\n label: \"名称\"\n }, {\n prop: \"code\",\n label: \"编码\"\n }, {\n prop: \"orgName\",\n label: \"所属组织\"\n }],\n pagination: {\n page: 1,\n pageSize: 50,\n total: 0\n },\n orgLength: 0\n };\n },\n computed: {\n inputName: function inputName() {\n var labeldesc = \"\";\n\n if (this.$slots && this.$slots.labeldesc && this.$slots.labeldesc[0].children && this.$slots.labeldesc[0].children[0].text) {\n labeldesc = this.$slots.labeldesc[0].children[0].text;\n return this.name ? this.name : utils.getName() + \"-\" + labeldesc;\n } else {\n return this.name ? this.name : utils.getName();\n }\n }\n },\n mounted: function mounted() {\n var _this2 = this;\n\n if (!this.value && this.selectCurrent) {\n var post = [];\n\n if (this.$store.state.user.currentUserDetail == null) {\n this.$store.dispatch(\"user/loadCurrentUserDetail\").then(function (postCharge) {\n for (var key in postCharge.post) {\n post = postCharge.post[key];\n }\n }).then(function () {\n _this2.initCurrentPost(post);\n });\n } else {\n post = this.$store.state.user.postCharge.post.name;\n this.initCurrentPost(post);\n }\n }\n },\n methods: {\n initCurrentPost: function initCurrentPost(post) {\n this.$emit(\"input\", post.postName);\n\n if (post && this.config) {\n // 配置了id的绑定关系,则回填到指定属性上\n if (this.config.hasOwnProperty(\"id\")) {\n utils.setValueByConfigKey(this, this.config, \"id\", post.postId);\n } // 配置了code的绑定关系,则回填到指定的属性上\n\n\n if (this.config.hasOwnProperty(\"code\")) {\n utils.setValueByConfigKey(this, this.config, \"code\", post.postCode);\n } // 配置了name的绑定关系,则回填到指定的属性上\n\n\n if (this.config.hasOwnProperty(\"name\")) {\n utils.setValueByConfigKey(this, this.config, \"name\", post.postName);\n }\n }\n },\n loadDemensions: function loadDemensions() {\n if (this.demensions.length == 0) {\n var _this = this;\n\n this.$http.get('${uc}/api/demension/v1/dems/getAll').then(function (rep) {\n var data = rep.data;\n _this.demensions = data;\n data.forEach(function (element) {\n if (element.isDefault == 1) {\n _this.defaultDemension = element.id;\n }\n });\n\n if (!_this.defaultDemension) {\n _this.defaultDemension = data[0].id;\n }\n }).catch(function (error) {});\n }\n },\n handleLoad: function handleLoad(param, cb) {\n var _this = this;\n\n this.$http.post(\"${uc}/api/org/v1/orgPosts/getOrgPostPage\", param).then(function (res) {\n var response = res.data;\n _this.data = response.rows;\n _this.pagination.page = response.page;\n _this.pagination.pageSize = response.pageSize;\n _this.pagination.total = response.total;\n cb();\n }), function (error) {\n cb();\n };\n },\n valueChange: function valueChange(value) {\n this.$emit(\"input\", value);\n },\n loadOrgTree: function loadOrgTree(node, resolve) {\n if (node && node.data && node.data.isParent) {\n if (node.data.children) {\n resolve(node.data.children);\n } else {\n this.$http.post(\"${uc}/api/org/v1/orgs/getByParentAndDem\", {\n demId: node.data.demId,\n parentId: node.data.id\n }).then(function (rep) {\n resolve(rep.data);\n }).catch(function (error) {});\n }\n } else {\n resolve([]);\n }\n },\n changeDemension: function changeDemension(currentDemensionId) {\n // 维度改变 重新获取组织\n var _this = this;\n\n this.$http.post(\"${uc}/api/org/v1/orgs/getByParentAndDem\", {\n demId: currentDemensionId\n }).then(function (rep) {\n _this.orgs = utils.tile2nest(rep.data);\n }).catch(function (error) {});\n },\n loadPosts: function loadPosts(org) {\n // 获取当前组织下的岗位\n var queryFilter = {\n pageBean: this.pagination,\n querys: []\n };\n var query = {\n property: \"orgId\",\n value: org.id,\n group: \"main\",\n operation: \"EQUAL\",\n relation: \"AND\"\n };\n queryFilter.querys.push(query);\n this.handleLoad(queryFilter, function () {});\n }\n }\n};",null]}