{"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\\EventResolutionDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\PendingDisposal\\components\\EventResolutionDialog.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\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 EventResolution from '@/api/PendingDisposal/EventResolution';\nimport TreatedEventListDialog from \"./TreatedEventListDialog\";\nimport { TableMixin } from '@/mixins/tableMixin';\nimport PlazaLocation from '@/api/basicConfiguration/PlazaLocation';\nimport IntelligentDevice from '@/api/basicConfiguration/IntelligentDevice';\nimport bigScreenAPI from '@/api/BigScreen/index.js';\nimport Team from '@/api/basicConfiguration/Team';\nimport Personal from '@/api/basicConfiguration/Personal';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport TodoEvents from '@/api/PendingDisposal/TodoEvents';\nexport default {\n mixins: [TableMixin],\n props: {},\n name: 'EventResolutionDialog',\n components: {\n TreatedEventListDialog: TreatedEventListDialog\n },\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 activeSubTab: 'sub-tab-1',\n visible: false,\n loading: false,\n openType: '详细信息',\n rules: {\n eventArchivingOrgId: [{\n required: true,\n message: '请选择归档部门',\n trigger: 'blur'\n }],\n processResult: [{\n required: true,\n message: '请输入处理结果',\n trigger: 'blur'\n }]\n },\n basicsData: {},\n options: [],\n noiseOptions: [],\n noise: [],\n areaCode: [],\n taskList: [],\n handleType: '1',\n orgTreeList: [],\n eventArchiving: [],\n historyDataTemp: [],\n formData: {\n filePath: [],\n eventArchivingOrgId: null,\n eventId: null,\n processResult: ''\n },\n activities: [],\n squareList: [],\n xboptions: [],\n btnLoading: false,\n url: '',\n srcList: [],\n dxlxList: [],\n //被处置对象类型\n teamList: [],\n //团队\n personageList: [],\n //个人\n formDataNew: {\n disposedObjects: [{\n type: '1',\n // toggle: '1',\n disposedObjectId: '',\n disposedObjectName: ''\n }]\n }\n };\n },\n created: function created() {\n this.getNoiseTree();\n this.getTownTree();\n this.getOrgTreeList();\n this.getPlazaLocation();\n this.dxlxList = dictUtils.getDictItemsFromCache('dxlx');\n this.getFilling();\n this.getMember();\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 //个人\n getMember: function getMember() {\n var _this = this;\n\n Personal.dataQuery({\n pageBean: {\n page: 1,\n pageSize: -1\n }\n }, function (res) {\n if (res.rows) {\n _this.personageList = res.rows;\n }\n });\n },\n getFilling: function getFilling() {\n var _this2 = this;\n\n Team.dataQuery({\n pageBean: {\n page: 1,\n pageSize: -1\n }\n }, function (res) {\n if (res.rows) {\n _this2.teamList = res.rows;\n }\n });\n },\n open: function open(data, type) {\n var _this3 = 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 _this3.basicsData = res;\n _this3.formData.eventId = data.id;\n _this3.formDataNew.eventId = data.id;\n _this3.areaCode = res.areaFullCode ? res.areaFullCode.split('/').splice(1) : [];\n\n if (res.noiseLevelId && res.noiseTypeId) {\n _this3.noise = [res.noiseTypeId, res.noiseLevelId];\n } else if (res.noiseTypeId) {\n _this3.noise = [res.noiseTypeId];\n } else {\n _this3.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 _this4 = this;\n\n PlazaLocation.getNoise({}, function (res) {\n if (res.state) {\n _this4.noiseOptions = res.value;\n }\n });\n },\n //归档部门\n getOrgTreeList: function getOrgTreeList() {\n var _this5 = this;\n\n EventResolution.orgTreeList({}, function (res) {\n _this5.orgTreeList = res;\n });\n },\n //行政区划\n getTownTree: function getTownTree() {\n var _this6 = this;\n\n EventResolution.getbaseAreaTree({}, function (res) {\n if (res.state) {\n _this6.options = res.value;\n }\n });\n },\n //流程\n getTaskList: function getTaskList(id) {\n var _this7 = this;\n\n EventResolution.taskList(id, function (res) {\n _this7.taskList = res;\n });\n },\n findDispose: function findDispose(data, value) {\n var arr = [];\n\n if (data && data.length > 0) {\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 if (value === 'processDeptName') {\n if (obj[value] != '') {\n arr.push(obj[value]);\n } else {\n arr.push(obj.processOrgName);\n }\n } else {\n arr.push(obj[value]);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n\n return arr.join(',');\n },\n handleArea: function handleArea(val) {\n var nodesObj = this.$refs['eventArchiving'].getCheckedNodes()[0].data;\n this.formData.eventArchivingOrgName = nodesObj.name;\n this.formData.eventArchivingOrgId = nodesObj.id;\n this.formData.archivingOrgFullId = JSON.stringify(val);\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 _this8 = this;\n\n this.formData.filePath.forEach(function (e, index) {\n if (e.fileId == file.response.fileId) {\n _this8.formData.filePath.splice(index, 1);\n }\n });\n },\n addressBlacklist: function addressBlacklist() {\n var _this9 = this;\n\n this.$confirm(\"\\u8FD1\\u4E00\\u5E74\\u51FA\\u73B0\".concat(this.basicsData.blackAddCount ? this.basicsData.blackAddCount : 0, \"\\u6B21, \\u5EFA\\u8BAE\\u7EB3\\u5165\\u9AD8\\u9891\\u5730\\u70B9\\uFF0C\\u662F\\u5426\\u7EB3\\u5165\"), '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n var data = _this9.$refs['addressCasader'].getCheckedNodes()[0].data;\n\n var parmas = {\n addressFullName: data.name + (_this9.basicsData.address ? _this9.basicsData.address : ''),\n areaName: data.name,\n areaCode: _this9.basicsData.areaCode,\n eventId: _this9.basicsData.id,\n squareLocationId: _this9.basicsData.squareLocationId ? _this9.basicsData.squareLocationId : '',\n areaFullCode: data.areaFullCode ? data.areaFullCode : ''\n };\n EventResolution.address(parmas, function (res) {\n if (res.state) {\n _this9.basicsData.addressStatus = true;\n\n _this9.$message({\n type: 'success',\n message: '纳入成功!'\n });\n }\n });\n }).catch(function () {});\n },\n personnelBlacklist: function personnelBlacklist(val) {\n var _this10 = this;\n\n this.$confirm(\"\\u8FD1\\u4E00\\u5E74\\u51FA\\u73B0\".concat(val.blackUserCount ? val.blackUserCount : 0, \"\\u6B21, \\u5EFA\\u8BAE\\u7EB3\\u5165\\u9ED1\\u540D\\u5355\\uFF0C\\u662F\\u5426\\u7EB3\\u5165\"), '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n EventResolution.eventBlack({\n objectId: [val.disposedObjectName],\n eventId: val.eventId,\n type: val.type\n }, function (res) {\n if (res.state) {\n val.blackUserStatus = true;\n\n _this10.$message({\n type: 'success',\n message: '纳入成功!'\n });\n }\n }); // let parmas\n });\n },\n handleCancel: function handleCancel() {\n this.fileList = [];\n this.formData = {\n filePath: [],\n eventArchivingOrgId: null,\n eventId: null,\n processResult: ''\n };\n this.visible = false;\n },\n handleSubmit: function handleSubmit() {\n var _this11 = this;\n\n if (this.handleType == 1) {\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this11.btnLoading = true;\n _this11.formData.filePath = JSON.stringify(_this11.formData.filePath);\n EventResolution.archiving(_this11.formData, function (res) {\n if (res.state) {\n _this11.$notify({\n type: 'success',\n message: '办结归档成功',\n duration: 2000\n });\n\n _this11.handleCancel();\n\n _this11.$emit('getData');\n } else {\n _this11.$message.warning(res.message);\n }\n\n _this11.btnLoading = false;\n });\n }\n });\n } else if (this.handleType == 2) {\n this.btnLoading = true;\n EventResolution.survivingOp({\n id: this.formData.eventId\n }, function (res) {\n if (res.state) {\n _this11.$notify({\n type: 'success',\n message: '转存续事件成功',\n duration: 2000\n });\n\n _this11.handleCancel();\n\n _this11.$emit('getData');\n } else {\n _this11.$message.warning(res.message);\n }\n\n _this11.btnLoading = false;\n });\n }\n },\n //获取广场舞地点\n getPlazaLocation: function getPlazaLocation() {\n var _this12 = this;\n\n IntelligentDevice.plazaQuery({\n pageBean: {\n page: 1,\n pageSize: -1\n }\n }, function (res) {\n _this12.squareList = res.rows;\n });\n },\n downloadFile: function downloadFile(id) {\n window.open(window.context.portal + \"/file/v1/downloadFile?fileId=\".concat(id), '_blank');\n },\n handleMore: function handleMore() {\n this.$refs.treatedListDialog.open();\n },\n // 打开预警图片\n openImg: function openImg() {\n var _this13 = this;\n\n // console.log(this.$refs.warningImg);\n if (this.basicsData.imgUrl) {\n bigScreenAPI.getImgByUrl(this.basicsData.imgUrl).then(function (res) {\n _this13.srcList = res;\n\n _this13.$refs.warningImg.clickHandler();\n });\n } else {\n this.$message({\n message: '暂无图片!',\n type: 'warning'\n });\n }\n },\n //个人选中\n handlePersonage: function handlePersonage(val, e) {\n var _this14 = 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.formDataNew.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 = _this14.formDataNew.id;\n }\n });\n },\n //团队选中\n handleTeam: function handleTeam(val, e) {\n var _this15 = 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.formDataNew.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 = _this15.formDataNew.id;\n }\n });\n },\n //添加被处置\n handleAdd: function handleAdd(row, index) {\n this.formDataNew.disposedObjects.push({\n type: '1',\n // toggle: '1',\n disposedObjectId: '',\n disposedObjectName: ''\n });\n },\n //删除被处置\n handleDelete: function handleDelete(row, index) {\n this.formDataNew.disposedObjects.splice(index, 1);\n },\n changeType: function changeType(val) {\n val.disposedObjectId = '';\n },\n subHandel: function subHandel() {\n var _this16 = this;\n\n TodoEvents.processEvent(this.formDataNew, function (res) {\n if (res.state) {\n _this16.$notify({\n type: 'success',\n message: '处置成功',\n duration: 2000\n });\n\n _this16.handleCancel();\n\n _this16.$emit('getData');\n } else {\n _this16.$message.warning(res.message);\n }\n\n _this16.btnLoading = false;\n });\n }\n }\n};",null]}