{"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\\components\\updateOrgForm-dialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\infoManagement\\components\\updateOrgForm-dialog.vue","mtime":1684458239215},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 req from '@/request.js';\nexport default {\n name: 'FormDialog',\n props: {\n showFormDiaUp: {\n type: Boolean,\n default: false\n },\n titleUp: {\n type: String,\n default: ''\n },\n pId: {\n type: String,\n default: ''\n }\n },\n data: function data() {\n return {\n params: {\n areaCode: '',\n //组织所属行政区划代码\n code: '',\n //组织编码\n name: '',\n //组织名称\n note: '',\n parentId: '',\n //父级_ID\n responsibilities: '',\n //部门职责\n areaName: ''\n },\n orgName: '',\n shows: true,\n showParentId: true,\n parentIds: [],\n //组织树数组\n basAdNames: [],\n //行政下拉\n parentIdAll: null,\n //接受每次选中的值\n AdName: null,\n //接受每次选中的值\n rules: {\n name: [{\n required: true,\n message: '请输入组织名称',\n trigger: 'blur'\n }],\n code: [{\n required: true,\n message: '请输入组织代码',\n trigger: 'blur'\n }]\n }\n };\n },\n created: function created() {\n this.getDetailInfo();\n },\n methods: {\n // 根据ID查询\n getDetailInfo: function getDetailInfo() {\n var _this = this;\n\n orgPerson.getPerson({}, function (res) {\n _this.parentIds = res.value;\n }); // 行政区查询\n\n orgPerson.getbasAdName({}, function (res) {\n _this.basAdNames = res.value;\n });\n orgPerson.detailId(this.pId, function (res) {\n if (res.value.parentId) {\n _this.shows = true;\n } else {\n _this.shows = false;\n }\n\n _this.params = res.value;\n });\n },\n onparentIds: function onparentIds(val) {\n if (val) {\n this.params.parentId = val[val.length - 1];\n }\n },\n onhouChange: function onhouChange(val) {\n if (val) {\n this.params.areaCode = val[val.length - 1];\n var arr = this.basAdNames.filter(function (ite) {\n return ite.code === val[0];\n });\n this.calleArr(arr, val[val.length - 1]);\n }\n },\n calleArr: function calleArr(array, val) {\n for (var i in array) {\n var item = array[i];\n\n if (item.children) {\n this.calleArr(item.children, val); //自己调用自己\n } else {\n if (item.code === val) {\n this.params.areaName = item.fullName;\n }\n }\n }\n },\n handleClose: function handleClose() {\n this.params = {\n areaCode: '',\n //组织所属行政区划代码\n code: '',\n //组织编码\n name: '',\n //组织名称\n note: '',\n parentId: '',\n //父级_ID\n responsibilities: '' //部门职责\n\n };\n this.$emit('closeFormDiaoUp');\n this.$emit('refList');\n },\n goInfo: function goInfo(e) {\n var _this2 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n if (_this2.titleUp === '修改') {\n orgPerson.upData(_this2.params, function (response) {\n if (response.state) {\n _this2.$notify({\n type: 'success',\n message: '修改成功',\n duration: 2000 // offset: 80\n\n });\n\n _this2.$emit('closeFormDiaoUp');\n\n _this2.$emit('refList');\n } else {\n _this2.$message.success(response.message);\n }\n });\n }\n } else {\n return false;\n }\n });\n }\n }\n};",null]}