{"remainingRequest":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\FeedbackArchiving\\components\\EventCenterDialogEdit.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\FeedbackArchiving\\components\\EventCenterDialogEdit.vue","mtime":1701739983622},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.symbol.async-iterator\";\nimport \"core-js/modules/es6.symbol\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.array.from\";\nimport \"core-js/modules/es6.regexp.to-string\";\nimport \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _defineProperty from \"D:/jenkins/workspace/damDance-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 EventResolution from '@/api/PendingDisposal/EventResolution';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport PlazaLocation from '@/api/basicConfiguration/PlazaLocation';\nimport IntelligentDevice from '@/api/basicConfiguration/IntelligentDevice';\nimport Personal from '@/api/basicConfiguration/Personal';\nimport Team from '@/api/basicConfiguration/Team';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport TodoEvents from '@/api/PendingDisposal/TodoEvents';\nimport EventCenter from '@/api/FeedbackArchiving/EventCenter.js';\nexport default {\n mixins: [TableMixin],\n props: {},\n name: 'EventCenterDialog',\n components: {},\n data: function data() {\n return {\n uploadUrl: window.context.portal + '/file/v1/fileUpload',\n // 服务器上传地址\n accept: '.xls,.docx,.docm,.doc,.dotx,.pptx,.pptm,.ppt,.pdf,.xps,.potx,.txt,.xls,.xlsx,.xps,.zip,.rar,.7z',\n fileList: [],\n activeName: 'first',\n visible: false,\n loading: false,\n openType: '编辑信息',\n rules: {// eventArchivingOrgId: [\n // {\n // required: true,\n // message: '请选择归档部门',\n // trigger: 'blur'\n // }\n // ],\n // processResult: [\n // {\n // required: true,\n // message: '请输入处理结果',\n // trigger: 'blur'\n // }\n // ]\n },\n basicsData: {},\n // 表单数据\n options: [],\n // 行政区划列表\n noiseOptions: [],\n // 噪音列表\n noise: [],\n // 噪音选择数据\n areaCode: [],\n // 行政区划选择数据\n taskList: [],\n // 流程数据\n orgTreeList: [],\n // 归档部门列表\n eventArchiving: [],\n // 归档部门已选择\n squareList: [],\n // 广场舞地点列表\n dxlxList: [],\n personageList: [],\n teamList: [],\n processDepLsit: [],\n processDeptId: [],\n btnLoading: false\n };\n },\n created: function created() {\n this.getNoiseTree();\n this.getTownTree();\n this.getOrgTreeList();\n this.getPlazaLocation();\n this.getOrgTree();\n this.dxlxList = dictUtils.getDictItemsFromCache('dxlx');\n this.getFilling();\n this.getMember();\n },\n methods: {\n //获取广场舞地点\n getPlazaLocation: function getPlazaLocation() {\n var _this = this;\n\n IntelligentDevice.plazaQuery({\n pageBean: {\n page: 1,\n pageSize: -1\n }\n }, function (res) {\n _this.squareList = res.rows;\n });\n },\n open: function open(data, type) {\n var _this2 = this;\n\n this.visible = true;\n this.activeName = 'first';\n\n if (data) {\n this.getTaskList(data.id);\n EventResolution.detailId(data.id, function (res) {\n _this2.basicsData = res; // 处理部门\n\n if (res.archiving) {\n _this2.eventArchiving = JSON.parse(res.archiving.archivingOrgFullId);\n res.archiving.filePath = JSON.parse(res.archiving.filePath);\n _this2.fileList = res.archiving.filePath.map(function (it) {\n return _objectSpread({\n name: it.fileName\n }, it);\n });\n } // 处理处置信息文件列表\n\n\n res.processDetails.forEach(function (it) {\n it.filePath = JSON.parse(it.filePath);\n it.fileList = it.filePath.map(function (it) {\n return _objectSpread({\n name: it.fileName\n }, it);\n }); // 处理处置信息时处置人列表\n\n if (it.processType === '2' || it.processType === '3') {\n console.log(it);\n console.log(it.processType);\n console.log(JSON.parse(it.personList[0].processFullId));\n it.processDeptId = JSON.parse(it.personList[it.personList.length - 1].processFullId);\n }\n }); // 处理基础信息行政区划\n\n _this2.areaCode = res.areaFullCode ? res.areaFullCode.split('/').splice(1) : [];\n\n if (res.noiseLevelId && res.noiseTypeId) {\n _this2.noise = [res.noiseTypeId, res.noiseLevelId];\n } else if (res.noiseTypeId) {\n _this2.noise = [res.noiseTypeId];\n } else {\n _this2.noise = [];\n }\n });\n }\n\n if (type == 'detail') {\n this.openType = '详细信息';\n } else if (type == 'edit') {\n this.openType = '信息编辑';\n }\n },\n //噪音标准\n getNoiseTree: function getNoiseTree() {\n var _this3 = this;\n\n PlazaLocation.getNoise({}, function (res) {\n if (res.state) {\n _this3.noiseOptions = res.value;\n }\n });\n },\n //归档部门\n getOrgTreeList: function getOrgTreeList() {\n var _this4 = this;\n\n EventResolution.orgTreeList({}, function (res) {\n _this4.orgTreeList = res;\n });\n },\n //行政区划\n getTownTree: function getTownTree() {\n var _this5 = this;\n\n EventResolution.getbaseAreaTree({}, function (res) {\n if (res.state) {\n _this5.options = res.value;\n }\n });\n },\n //流程\n getTaskList: function getTaskList(id) {\n var _this6 = this;\n\n EventResolution.taskList(id, function (res) {\n _this6.taskList = res;\n });\n },\n handleArea: function handleArea() {\n var nodesObj = this.$refs['eventArchiving'].getCheckedNodes()[0].data;\n this.basicsData.archiving.eventArchivingOrgName = nodesObj.name;\n this.basicsData.archiving.eventArchivingOrgId = nodesObj.id;\n },\n uploadSuccess: function uploadSuccess(res) {\n if (res) {\n this.basicsData.archiving.filePath.push({\n fileId: res.fileId,\n fileName: res.fileName\n });\n } else {\n this.$message.error('上传失败!');\n }\n },\n uploadSuccessRow: function uploadSuccessRow(res, index) {\n console.log(index);\n\n if (res) {\n this.basicsData.processDetails[index].filePath.push({\n fileId: res.fileId,\n fileName: res.fileName\n });\n } else {\n this.$message.error('上传失败!');\n }\n },\n beforeUpload: function beforeUpload(file) {\n return true;\n },\n beforeRemove: function beforeRemove(file, fileList) {\n var _this7 = this;\n\n console.log(file);\n this.basicsData.archiving.filePath.forEach(function (e, index) {\n if (e.fileId == file.fileId) {\n _this7.basicsData.archiving.filePath.splice(index, 1);\n }\n });\n },\n beforeRemoveRow: function beforeRemoveRow(file, ind) {\n var _this8 = this;\n\n this.basicsData.processDetails[ind].filePath.forEach(function (e, index) {\n if (e.fileId == file.fileId) {\n _this8.basicsData.processDetails[ind].filePath.splice(index, 1);\n }\n });\n },\n handleCancel: function handleCancel() {\n this.fileList = [];\n this.basicsData = {};\n this.visible = false;\n },\n handleSubmit: function handleSubmit() {\n var _this9 = this;\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this9.btnLoading = true;\n _this9.basicsData.filePath = JSON.stringify(_this9.basicsData.filePath);\n\n _this9.basicsData.processDetails.forEach(function (it) {\n it.filePath = JSON.stringify(it.filePath);\n });\n\n if (_this9.basicsData.archiving) {\n _this9.basicsData.archiving.filePath = JSON.stringify(_this9.basicsData.archiving.filePath);\n }\n\n EventCenter.eventCenterEdit(_this9.basicsData, function (res) {\n if (res.state) {\n _this9.$notify({\n type: 'success',\n message: '修改成功',\n duration: 2000\n });\n\n _this9.handleCancel();\n\n _this9.$emit('getData');\n } else {\n _this9.$message.warning(res.message);\n }\n\n _this9.btnLoading = false;\n });\n }\n });\n },\n //组织树\n getOrgTree: function getOrgTree() {\n var _this10 = this;\n\n TodoEvents.orgTree(function (res) {\n _this10.processDepLsit = res;\n });\n },\n // 文件下载\n downloadFile: function downloadFile(id) {\n window.open(window.context.portal + \"/file/v1/downloadFile?fileId=\".concat(id), '_blank');\n },\n changeArea: function changeArea() {\n var _this11 = this;\n\n this.$nextTick(function () {\n var nodesObj = _this11.$refs['cascader'].getCheckedNodes();\n\n console.log(nodesObj);\n\n if (nodesObj.length) {\n _this11.basicsData.areaCode = nodesObj[0].data.code;\n _this11.basicsData.areaFullCode = nodesObj[0].data.fullCode;\n } else {\n _this11.basicsData.areaCode = '';\n _this11.basicsData.areaFullCode = '';\n }\n });\n },\n //处理噪音标准数据\n handleNoise: function handleNoise(val) {\n var arr = JSON.parse(JSON.stringify(val));\n this.basicsData.noiseTypeId = arr[0] ? arr[0] : '';\n this.basicsData.noiseLevelId = arr[1] ? arr[1] : '';\n },\n //处理广场舞地点\n handleSelect: function handleSelect(val) {\n var _this12 = this;\n\n this.squareList.forEach(function (e) {\n if (e.id === val) {\n _this12.areaCode = e.areaFullCode ? e.areaFullCode.split('/').splice(1) : [];\n _this12.basicsData.areaFullCode = e.areaFullCode;\n _this12.basicsData.areaCode = e.areaCode;\n _this12.basicsData.detailAddress = e.detailAddress;\n }\n });\n },\n //用户\n getOrgUserQuery: function getOrgUserQuery(item, index) {\n //当前选中数据\n console.log(22222222);\n var nodesObj = this.$refs['cascaderThree' + index].getCheckedNodes()[0].data;\n console.log(1111111111);\n var ogn;\n var dept;\n\n if (nodesObj.orgKind === 'user') {\n //父级数据\n dept = this.findObjectById(this.processDepLsit, val[val.length - 2]);\n\n if (dept.orgKind == 'ogn') {\n item.processFullId = JSON.stringify(val);\n item.processDeptId = '';\n item.processDeptName = '';\n item.processOrgCode = dept.code;\n item.processOrgId = dept.id;\n item.processOrgName = dept.name;\n item.eventId = this.basicsData.id;\n } else if (dept.orgKind == 'dept') {\n ogn = this.findObjectById(this.processDepLsit, val[val.length - 3]);\n item.processFullId = JSON.stringify(val);\n item.processDeptId = dept.id;\n item.processDeptName = dept.name;\n item.processOrgCode = ogn.code;\n item.processOrgId = ogn.id;\n item.processOrgName = ogn.name;\n item.eventId = this.basicsData.id;\n }\n\n item.processPersonAccount = nodesObj.code;\n item.processPersonId = nodesObj.id;\n item.processPersonName = nodesObj.name;\n } else if (nodesObj.orgKind === 'dept') {\n ogn = this.findObjectById(this.processDepLsit, val[val.length - 2]);\n item.processFullId = JSON.stringify(val);\n item.processDeptId = nodesObj.id;\n item.processDeptName = nodesObj.name;\n item.processOrgCode = ogn.code;\n item.processOrgId = ogn.id;\n item.processOrgName = ogn.name;\n item.eventId = this.basicsData.id;\n } else if (nodesObj.orgKind === 'ogn') {\n item.processFullId = JSON.stringify(val);\n item.processOrgCode = nodesObj.code;\n item.processOrgId = nodesObj.id;\n item.processOrgName = nodesObj.name;\n item.eventId = this.basicsData.id;\n }\n },\n handleType: function handleType(val) {\n val.disposedObjectId = '';\n },\n //个人\n getMember: function getMember() {\n var _this13 = this;\n\n Personal.dataQuery({\n pageBean: {\n page: 1,\n pageSize: -1\n }\n }, function (res) {\n if (res.rows) {\n _this13.personageList = res.rows;\n }\n });\n },\n //团队\n getFilling: function getFilling() {\n var _this14 = this;\n\n Team.dataQuery({\n pageBean: {\n page: 1,\n pageSize: -1\n }\n }, function (res) {\n if (res.rows) {\n _this14.teamList = res.rows;\n }\n });\n },\n //个人选中\n handlePersonage: function handlePersonage(val, e) {\n var _this15 = this;\n\n val.disposedObjectName = e;\n this.personageList.forEach(function (e) {\n if (e.id === val.disposedObjectId) {\n val.disposedObjectName = e.name;\n val.age = e.age;\n val.areaCode = e.areaCode;\n val.detailAddress = e.detailAddress;\n val.idcard = e.idcard;\n val.phone = e.phone;\n val.sex = e.sex;\n val.eventId = _this15.basicsData.id;\n }\n });\n },\n //团队选中\n handleTeam: function handleTeam(val, e) {\n var _this16 = this;\n\n val.disposedObjectName = e;\n this.teamList.forEach(function (e) {\n if (e.id === val.disposedObjectId) {\n val.disposedObjectName = e.name;\n val.disposedObjectCode = e.filingNumber;\n val.areaCode = e.areaCode;\n val.detailAddress = e.address;\n val.phone = e.phone;\n val.teamSize = e.number;\n val.eventId = _this16.basicsData.id;\n }\n });\n },\n //添加被处置\n handleAdd: function handleAdd(row, index) {\n this.basicsData.processDetails[0].disposedObjects.push({\n type: '',\n disposedObjectId: ''\n });\n },\n //删除被处置\n handleDelete: function handleDelete(row, index) {\n this.basicsData.processDetails[0].disposedObjects.splice(index, 1);\n },\n //切换选取还是录入\n handleToggle: function handleToggle(row) {\n console.log(row);\n row.toggle = row.toggle === '1' ? '2' : '1';\n console.log(row);\n },\n // 协同处理\n getProcessPersons: function getProcessPersons(item, index) {\n var _this17 = this;\n\n console.log(item); //当前选中数据\n\n item.personList = [];\n this.arrList = [];\n console.log(this.$refs['cascaders' + index]);\n var nodesObj = this.$refs['cascaders' + index][0].getCheckedNodes();\n this.processingData(nodesObj);\n this.arrList.forEach(function (e) {\n if (e.orgKind === 'user') {\n var dept = _this17.findObjectById(_this17.processDepLsit, e.parentId);\n\n if (dept.orgKind === 'ogn') {\n item.personList.push({\n processFullId: JSON.stringify(item.processDeptId),\n processDeptId: '',\n processDeptName: '',\n processOrgCode: dept.code,\n processOrgId: dept.id,\n processOrgName: dept.name,\n processPersonAccount: e.code,\n processPersonId: e.id,\n processPersonName: e.name,\n eventId: _this17.basicsData.id\n });\n } else {\n var ogn = _this17.findObjectById(_this17.processDepLsit, dept.parentId);\n\n item.personList.push({\n processFullId: JSON.stringify(item.processDeptId),\n processDeptId: dept.id,\n processDeptName: dept.name,\n processOrgCode: ogn.code,\n processOrgId: ogn.id,\n processOrgName: ogn.name,\n processPersonAccount: e.code,\n processPersonId: e.id,\n processPersonName: e.name,\n eventId: _this17.basicsData.id\n });\n }\n } else if (e.orgKind === 'dept') {\n var _ogn = _this17.findObjectById(_this17.processDepLsit, e.parentId);\n\n item.personList.push({\n processFullId: JSON.stringify(item.processDeptId),\n processDeptId: e.id,\n processDeptName: e.name,\n processOrgCode: _ogn.code,\n processOrgId: _ogn.id,\n processOrgName: _ogn.name,\n processPersonAccount: '',\n processPersonId: '',\n processPersonName: '',\n eventId: _this17.basicsData.id\n });\n } else if (e.orgKind === 'ogn') {\n item.personList.push({\n processFullId: JSON.stringify(item.processDeptId),\n processDeptId: '',\n processDeptName: '',\n processOrgCode: e.code,\n processOrgId: e.id,\n processOrgName: e.name,\n processPersonAccount: '',\n processPersonId: '',\n processPersonName: '',\n eventId: _this17.basicsData.id\n });\n }\n });\n },\n processingData: function processingData(data) {\n var _iterator = _createForOfIteratorHelper(data),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var obj = _step.value;\n\n // 如果当前对象的id匹配目标id,则返回该对象\n if (obj.data.orgKind === 'user') {\n this.arrList.push(obj.data);\n } else {\n if (obj.children && obj.children.length > 0) {\n var _iterator2 = _createForOfIteratorHelper(obj.children),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var item = _step2.value;\n\n if (item.data.orgKind !== 'user') {\n this.processingData(obj.children);\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n } else if (obj.children.length === 0 && obj.data.orgKind !== 'user') {\n this.arrList.push(obj.data);\n }\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return null;\n },\n //递归查询\n findObjectById: function findObjectById(data, id) {\n // 遍历数据中的每个对象\n var _iterator3 = _createForOfIteratorHelper(data),\n _step3;\n\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var obj = _step3.value;\n\n // 如果当前对象的id匹配目标id,则返回该对象\n if (obj.id === id) {\n return obj;\n } // 如果当前对象有子对象,则递归调用findObjectById进行子树搜索\n\n\n if (obj.children && obj.children.length > 0) {\n var result = this.findObjectById(obj.children, id); // 如果在子树中找到了匹配的对象,则返回该对象\n\n if (result) {\n return result;\n }\n }\n } // 如果整个树都搜索完毕都没有找到匹配的对象,则返回null\n\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n\n return null;\n }\n }\n};",null]}