{"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\\PendingDisposal\\components\\TodoEventsDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\PendingDisposal\\components\\TodoEventsDialog.vue","mtime":1704795127227},{"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/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\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\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 utils from '@/utils.js';\nimport TodoEvents from '@/api/PendingDisposal/TodoEvents';\nimport Team from '@/api/basicConfiguration/Team';\nimport PlazaLocation from '@/api/basicConfiguration/PlazaLocation';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport Personal from '@/api/basicConfiguration/Personal';\nimport IntelligentDevice from '@/api/basicConfiguration/IntelligentDevice';\nimport bigScreenAPI from '@/api/BigScreen/index.js';\nexport default {\n props: {},\n mixins: [TableMixin],\n name: 'TodoEventsDialog',\n data: function data() {\n var _ref;\n\n return _ref = {\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 activeSubTab: 'sub-tab-1',\n visible: false,\n loading: false,\n type: '新增',\n rules: {\n personList: [{\n required: true,\n message: '请选择处置人',\n trigger: 'blur'\n }],\n // processPersonId: [\n // {\n // required: true,\n // message: '请选择处置人',\n // trigger: 'blur',\n // },\n // ],\n disposedObjects: [{\n required: true,\n message: '请选择被处置对象',\n trigger: 'blur'\n }],\n result: [{\n required: true,\n message: '请输入处理结果',\n trigger: 'blur'\n }],\n address: [{\n type: 'date',\n required: true,\n message: '请选择地址',\n trigger: 'blur'\n }]\n },\n formData: {\n // taskStatus: '',//办结状态\n id: null,\n processType: '1',\n //\n result: '',\n //处置结果\n filePath: [],\n //文件路径\n //处理人信息\n personList: [{\n processDeptId: '',\n //处置人单位ID\n processDeptName: '',\n //处置人单位名称\n processOrgCode: '',\n //上级处置单位编码\n processOrgId: '',\n //处置单位ID\n processOrgName: '',\n //处置单位名称\n processPersonAccount: '',\n //处置人员账号\n processPersonId: '',\n //处置人员ID\n processPersonName: '' //处置人姓名\n // processType: '',//处置方式\n\n }],\n disposedObjects: [{\n type: '1',\n // toggle: '1',\n disposedObjectId: '',\n disposedObjectName: ''\n }]\n },\n //协同\n synergyData: {\n result: '',\n //处置结果\n filePath: [],\n //文件路径\n personList: [{\n processDeptId: '',\n //处置人单位ID\n processDeptName: '',\n //处置人单位名称\n processOrgCode: '',\n //上级处置单位编码\n processOrgId: '',\n //处置单位ID\n processOrgName: '',\n //处置单位名称\n processPersonAccount: '',\n //处置人员账号\n processPersonId: '',\n //处置人员ID\n processPersonName: '' //处置人姓名\n // processType: '',//处置方式\n\n }]\n },\n // 处理单位\n processDeptId: [],\n processPersonId: [],\n //处理人\n taskList: [],\n xboptions: [],\n options: [],\n //行政区划\n basicsData: {},\n noise: [],\n areaCode: [],\n noiseOptions: [],\n dxlxList: [],\n //被处置对象类型\n processList: [],\n //被处置\n processDepLsit: [],\n //处置单位\n rocessPersonList: [],\n //处置人\n bjztList: [],\n //办结状态\n personageList: [],\n //个人\n teamList: []\n }, _defineProperty(_ref, \"taskList\", []), _defineProperty(_ref, \"squareList\", []), _defineProperty(_ref, \"arrList\", []), _defineProperty(_ref, \"btnLoading\", false), _defineProperty(_ref, \"url\", ''), _defineProperty(_ref, \"srcList\", []), _ref;\n },\n created: function created() {\n this.dxlxList = dictUtils.getDictItemsFromCache('dxlx');\n this.bjztList = dictUtils.getDictItemsFromCache('bj_bjzt');\n this.getOrgTree();\n this.getTownTree();\n this.getNoiseTree();\n this.getMember();\n this.getFilling();\n this.getPlazaLocation();\n },\n computed: mapState({\n header: function header(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n },\n currentUserDetail: function currentUserDetail(state) {\n return state.user.currentUserDetail;\n }\n }),\n methods: {\n open: function open(data) {\n var _this = this;\n\n this.getTaskList(data.id);\n\n if (data) {\n this.formData.taskId = data.tasKId;\n TodoEvents.detailId(data.id, function (res) {\n _this.basicsData = res;\n _this.formData.id = res.id;\n _this.areaCode = res.areaFullCode ? res.areaFullCode.split('/').splice(1) : [];\n\n if (res.noiseLevelId && res.noiseTypeId) {\n _this.noise = [res.noiseTypeId, res.noiseLevelId];\n } else if (res.noiseTypeId) {\n _this.noise = [res.noiseTypeId];\n } else {\n _this.noise = [];\n }\n });\n }\n\n this.visible = true;\n },\n //获取广场舞地点\n getPlazaLocation: function getPlazaLocation() {\n var _this2 = this;\n\n IntelligentDevice.plazaQuery({\n pageBean: {\n page: 1,\n pageSize: -1\n }\n }, function (res) {\n _this2.squareList = res.rows;\n });\n },\n //流程\n getTaskList: function getTaskList(id) {\n var _this3 = this;\n\n TodoEvents.taskList(id, function (res) {\n _this3.taskList = res;\n });\n },\n //组织树\n getOrgTree: function getOrgTree() {\n var _this4 = this;\n\n TodoEvents.orgTree(function (res) {\n _this4.processDepLsit = res;\n });\n },\n //用户\n getOrgUserQuery: function getOrgUserQuery(val) {\n //当前选中数据\n var nodesObj = this.$refs['cascader'].getCheckedNodes()[0].data;\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 this.formData.personList[0].processFullId = JSON.stringify(val);\n this.formData.personList[0].processDeptId = '';\n this.formData.personList[0].processDeptName = '';\n this.formData.personList[0].processOrgCode = dept.code;\n this.formData.personList[0].processOrgId = dept.id;\n this.formData.personList[0].processOrgName = dept.name;\n } else if (dept.orgKind == 'dept') {\n ogn = this.findObjectById(this.processDepLsit, val[val.length - 3]);\n this.formData.personList[0].processFullId = JSON.stringify(val);\n this.formData.personList[0].processDeptId = dept.id;\n this.formData.personList[0].processDeptName = dept.name;\n this.formData.personList[0].processOrgCode = ogn.code;\n this.formData.personList[0].processOrgId = ogn.id;\n this.formData.personList[0].processOrgName = ogn.name;\n }\n\n this.formData.personList[0].processPersonAccount = nodesObj.code;\n this.formData.personList[0].processPersonId = nodesObj.id;\n this.formData.personList[0].processPersonName = nodesObj.name;\n } else if (nodesObj.orgKind === 'dept') {\n ogn = this.findObjectById(this.processDepLsit, val[val.length - 2]);\n this.formData.personList[0].processFullId = JSON.stringify(val);\n this.formData.personList[0].processDeptId = nodesObj.id;\n this.formData.personList[0].processDeptName = nodesObj.name;\n this.formData.personList[0].processOrgCode = ogn.code;\n this.formData.personList[0].processOrgId = ogn.id;\n this.formData.personList[0].processOrgName = ogn.name;\n } else if (nodesObj.orgKind === 'ogn') {\n this.formData.personList[0].processFullId = JSON.stringify(val);\n this.formData.personList[0].processOrgCode = nodesObj.code;\n this.formData.personList[0].processOrgId = nodesObj.id;\n this.formData.personList[0].processOrgName = nodesObj.name;\n }\n },\n //处置人\n handleProcess: function handleProcess(val) {\n var _this5 = this;\n\n this.rocessPersonList.forEach(function (e) {\n if (e.id === val) {\n _this5.formData.personList[0].processPersonAccount = e.account;\n _this5.formData.personList[0].processPersonId = e.userId;\n _this5.formData.personList[0].processPersonName = e.fullname;\n }\n });\n },\n //递归查询\n findObjectById: function findObjectById(data, id) {\n // 遍历数据中的每个对象\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.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 _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return null;\n },\n //行政区划\n getTownTree: function getTownTree() {\n var _this6 = this;\n\n TodoEvents.getbaseAreaTree({}, function (res) {\n if (res.state) {\n _this6.options = res.value;\n }\n });\n },\n //噪音标准\n getNoiseTree: function getNoiseTree() {\n var _this7 = this;\n\n PlazaLocation.getNoise({}, function (res) {\n if (res.state) {\n _this7.noiseOptions = res.value;\n }\n });\n },\n //切换选取还是录入\n handleToggle: function handleToggle(row) {\n console.log(row);\n console.log(this.formData.disposedObjects);\n row.toggle = row.toggle == '1' ? '2' : '1';\n var obj = {\n toggle: row.toggle,\n type: row.type,\n disposedObjectName: row.disposedObjectName\n };\n row = {};\n console.log(row);\n },\n //个人 \n getMember: function getMember() {\n var _this8 = this;\n\n Personal.dataQuery({\n pageBean: {\n page: 1,\n pageSize: -1\n }\n }, function (res) {\n if (res.rows) {\n _this8.personageList = res.rows;\n }\n });\n },\n //团队 \n getFilling: function getFilling() {\n var _this9 = this;\n\n Team.dataQuery({\n pageBean: {\n page: 1,\n pageSize: -1\n }\n }, function (res) {\n if (res.rows) {\n _this9.teamList = res.rows;\n }\n });\n },\n //切花tab\n handleTab: function handleTab(val) {\n if (val.name == 2) {\n this.processDeptId = [];\n this.formData = {\n taskId: this.formData.taskId,\n id: this.formData.id,\n // taskStatus: '',//办结状态\n processType: val.name,\n //\n result: '',\n //处置结果\n filePath: [],\n //文件路径\n //处理人信息\n personList: [{\n processDeptId: '',\n //处置人单位ID\n processDeptName: '',\n //处置人单位名称\n processOrgCode: '',\n //上级处置单位编码\n processOrgId: '',\n //处置单位ID\n processOrgName: '',\n //处置单位名称\n processPersonAccount: '',\n //处置人员账号\n processPersonId: '',\n //处置人员ID\n processPersonName: '' //处置人姓名\n\n }]\n };\n } else if (val.name == 3) {\n this.formData = {\n taskId: this.formData.taskId,\n id: this.formData.id,\n // taskStatus: '',//办结状态\n processType: val.name,\n //\n result: '',\n //处置结果\n filePath: [],\n //文件路径\n //处理人信息\n personList: [{\n processDeptId: '',\n //处置人单位ID\n processDeptName: '',\n //处置人单位名称\n processOrgCode: '',\n //上级处置单位编码\n processOrgId: '',\n //处置单位ID\n processOrgName: '',\n //处置单位名称\n processPersonAccount: '',\n //处置人员账号\n processPersonId: '',\n //处置人员ID\n processPersonName: '' //处置人姓名\n // processType: '',//处置方式\n\n }]\n };\n } else {\n this.formData = {\n taskId: this.formData.taskId,\n id: this.formData.id,\n // taskStatus: '',//办结状态\n processType: val.name,\n //\n result: '',\n //处置结果\n filePath: [],\n //文件路径\n //处理人信息\n personList: [{\n processDeptId: '',\n //处置人单位ID\n processDeptName: '',\n //处置人单位名称\n processOrgCode: '',\n //上级处置单位编码\n processOrgId: '',\n //处置单位ID\n processOrgName: '',\n //处置单位名称\n processPersonAccount: '',\n //处置人员账号\n processPersonId: '',\n //处置人员ID\n processPersonName: '' //处置人姓名\n // processType: '',//处置方式\n\n }],\n disposedObjects: [{\n type: '1',\n // toggle: '1',\n disposedObjectId: '',\n disposedObjectName: ''\n }]\n };\n }\n },\n processingData: function processingData(data) {\n var _iterator2 = _createForOfIteratorHelper(data),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var obj = _step2.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 _iterator3 = _createForOfIteratorHelper(obj.children),\n _step3;\n\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var item = _step3.value;\n\n if (item.data.orgKind !== \"user\") {\n this.processingData(obj.children);\n }\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.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 _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n\n return null;\n },\n // 协同处理\n getProcessPersons: function getProcessPersons(val) {\n var _this10 = this;\n\n //当前选中数据\n this.formData.personList = [];\n this.arrList = [];\n var nodesObj = this.$refs['cascaders'].getCheckedNodes();\n this.processingData(nodesObj);\n this.arrList.forEach(function (e) {\n if (e.orgKind === 'user') {\n var dept = _this10.findObjectById(_this10.processDepLsit, e.parentId);\n\n if (dept.orgKind === 'ogn') {\n _this10.formData.personList.push({\n processFullId: JSON.stringify(val),\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 });\n } else {\n var ogn = _this10.findObjectById(_this10.processDepLsit, dept.parentId);\n\n _this10.formData.personList.push({\n processFullId: JSON.stringify(val),\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 });\n }\n } else if (e.orgKind === 'dept') {\n var _ogn = _this10.findObjectById(_this10.processDepLsit, e.parentId);\n\n _this10.formData.personList.push({\n processFullId: JSON.stringify(val),\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 });\n } else if (e.orgKind === 'ogn') {\n _this10.formData.personList.push({\n processFullId: JSON.stringify(val),\n processDeptId: '',\n processDeptName: '',\n processOrgCode: e.code,\n processOrgId: e.id,\n processOrgName: e.name,\n processPersonAccount: '',\n processPersonId: '',\n processPersonName: ''\n });\n }\n });\n },\n uploadSuccess: function uploadSuccess(res) {\n if (res) {\n this.formData.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 _this11 = this;\n\n this.formData.filePath.forEach(function (e, index) {\n if (e.fileId == file.response.fileId) {\n _this11.formData.filePath.splice(index, 1);\n }\n });\n },\n //\n handleType: function handleType(val) {\n val.disposedObjectId = '';\n },\n //个人选中\n handlePersonage: function handlePersonage(val, e) {\n var _this12 = this;\n\n val.disposedObjectName = e;\n val.disposedObjectName = e;\n val.age = '';\n val.areaCode = '';\n val.detailAddress = '';\n val.idcard = '';\n val.phone = '';\n val.sex = '';\n val.eventId = this.formData.id;\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 = _this12.formData.id;\n }\n });\n },\n //团队选中\n handleTeam: function handleTeam(val, e) {\n var _this13 = this;\n\n val.disposedObjectName = e;\n val.disposedObjectCode = '';\n val.areaCode = '';\n val.detailAddress = '';\n val.phone = '';\n val.teamSize = '';\n val.eventId = this.formData.id;\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 = _this13.formData.id;\n }\n });\n },\n handleCancel: function handleCancel() {\n this.processDeptId = [];\n this.formData = {\n id: null,\n processType: '1',\n //\n result: '',\n //处置结果\n filePath: [],\n //文件路径\n //处理人信息\n personList: [{\n processDeptId: '',\n //处置人单位ID\n processDeptName: '',\n //处置人单位名称\n processOrgCode: '',\n //上级处置单位编码\n processOrgId: '',\n //处置单位ID\n processOrgName: '',\n //处置单位名称\n processPersonAccount: '',\n //处置人员账号\n processPersonId: '',\n //处置人员ID\n processPersonName: '' //处置人姓名\n // processType: '',//处置方式\n\n }],\n disposedObjects: [{\n type: '1',\n // toggle: '1',\n disposedObjectId: '',\n disposedObjectName: ''\n }]\n };\n this.visible = false;\n },\n handleSubmit: function handleSubmit() {\n var _this14 = this;\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this14.btnLoading = true;\n\n if (_this14.formData.processType === '1') {\n _this14.formData.personList[0].processOrgName = _this14.currentUserDetail.org[0].orgName;\n _this14.formData.personList[0].processOrgId = _this14.currentUserDetail.org[0].orgId;\n _this14.formData.personList[0].processOrgCode = _this14.currentUserDetail.org[0].orgCode;\n }\n\n _this14.formData.filePath = JSON.stringify(_this14.formData.filePath);\n TodoEvents.processEvent(_this14.formData, function (res) {\n if (res.state) {\n _this14.$notify({\n type: 'success',\n message: '处置成功',\n duration: 2000\n });\n\n _this14.handleCancel();\n\n _this14.$emit('getData');\n } else {\n _this14.$message.warning(res.message);\n }\n\n _this14.btnLoading = false;\n });\n }\n });\n },\n //添加被处置\n handleAdd: function handleAdd(row, index) {\n this.formData.disposedObjects.push({\n type: '1',\n // toggle: '1',\n disposedObjectId: '',\n disposedObjectName: ''\n });\n },\n //删除被处置\n handleDelete: function handleDelete(row, index) {\n this.formData.disposedObjects.splice(index, 1);\n },\n // 打开预警图片\n openImg: function openImg() {\n var _this15 = this;\n\n // console.log(this.$refs.warningImg);\n if (this.basicsData.imgUrl) {\n bigScreenAPI.getImgByUrl(this.basicsData.imgUrl).then(function (res) {\n _this15.srcList = res;\n\n _this15.$refs.warningImg.clickHandler();\n });\n } else {\n this.$message({\n message: '暂无图片!',\n type: 'warning'\n });\n }\n }\n }\n};",null]}