{"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\\EventArchivingDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\FeedbackArchiving\\components\\EventArchivingDialog.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/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\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//\nimport { mapState } from 'vuex';\nimport utils from '@/utils.js';\nimport EventResolution from '@/api/PendingDisposal/EventResolution';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport PlazaLocation from '@/api/basicConfiguration/PlazaLocation';\nimport IntelligentDevice from '@/api/basicConfiguration/IntelligentDevice';\nimport bigScreenAPI from '@/api/BigScreen/index.js';\nexport default {\n mixins: [TableMixin],\n props: {},\n name: 'EventArchivingDialog',\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: {\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 orgTreeList: [],\n eventArchiving: [],\n historyDataTemp: [],\n formData: {\n filePath: [],\n eventArchivingOrgId: null,\n eventId: null,\n processResult: ''\n },\n activities: [],\n xboptions: [],\n squareList: [],\n btnLoading: false,\n url: '',\n srcList: []\n };\n },\n created: function created() {\n this.getNoiseTree();\n this.getTownTree();\n this.getOrgTreeList();\n this.getPlazaLocation();\n },\n // computed: mapState({\n // header: state => {\n // return {\n // Authorization: `Bearer ${state.login.currentUser.token}`\n // }\n // }\n // }),\n methods: {\n open: function open(data, type) {\n var _this = 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 _this.basicsData = res;\n _this.formData = res.archiving;\n _this.eventArchiving = JSON.parse(res.archiving.archivingOrgFullId);\n res.archiving.filePath = JSON.parse(res.archiving.filePath);\n _this.fileList = res.archiving.filePath.map(function (it) {\n return _objectSpread({\n name: it.fileName\n }, it);\n });\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 if (type == 'detail') {\n this.openType = '详细信息';\n } else if (type == 'edit') {\n this.openType = '信息编辑';\n }\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 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 findDispose: function findDispose(data, value) {\n console.log(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() {\n var nodesObj = this.$refs['eventArchiving'].getCheckedNodes()[0].data;\n this.formData.eventArchivingOrgName = nodesObj.name;\n this.formData.eventArchivingOrgId = nodesObj.id;\n },\n uploadSuccess: function uploadSuccess(res) {\n console.log(res);\n\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 _this7 = this;\n\n console.log(file);\n this.formData.filePath.forEach(function (e, index) {\n if (e.fileId == file.fileId) {\n _this7.formData.filePath.splice(index, 1);\n }\n });\n },\n addressBlacklist: function addressBlacklist() {\n var _this8 = 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 = _this8.$refs['addressCasader'].getCheckedNodes()[0].data;\n\n var parmas = {\n addressFullName: data.name + (_this8.basicsData.address ? _this8.basicsData.address : ''),\n areaName: data.name,\n areaCode: _this8.basicsData.areaCode,\n eventId: _this8.basicsData.id,\n squareLocationId: _this8.basicsData.squareLocationId ? _this8.basicsData.squareLocationId : '',\n areaFullCode: data.areaFullCode ? data.areaFullCode : ''\n };\n EventResolution.address(parmas, function (res) {\n if (res.state) {\n _this8.basicsData.addressStatus = true;\n\n _this8.$message({\n type: 'success',\n message: '纳入成功!'\n });\n }\n });\n }).catch(function () {});\n },\n personnelBlacklist: function personnelBlacklist(val) {\n var _this9 = 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 _this9.$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 _this10 = this;\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this10.btnLoading = true;\n _this10.formData.filePath = JSON.stringify(_this10.formData.filePath);\n EventResolution.archivingUpdate(_this10.formData, function (res) {\n if (res.state) {\n _this10.$notify({\n type: 'success',\n message: '修改成功',\n duration: 2000\n });\n\n _this10.handleCancel();\n\n _this10.$emit('getData');\n } else {\n _this10.$message.warning(res.message);\n }\n\n _this10.btnLoading = true;\n });\n }\n });\n },\n // 文件下载\n downloadFile: function downloadFile(id) {\n window.open(window.context.portal + \"/file/v1/downloadFile?fileId=\".concat(id), '_blank');\n },\n // 打开预警图片\n openImg: function openImg() {\n var _this11 = this;\n\n // console.log(this.$refs.warningImg);\n if (this.basicsData.imgUrl) {\n bigScreenAPI.getImgByUrl(this.basicsData.imgUrl).then(function (res) {\n _this11.srcList = res;\n\n _this11.$refs.warningImg.clickHandler();\n });\n } else {\n this.$message({\n message: '暂无图片!',\n type: 'warning'\n });\n }\n }\n }\n};",null]}