{"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\\RegistrationManage\\components\\EventManageDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\RegistrationManage\\components\\EventManageDialog.vue","mtime":1704784154959},{"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/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.split\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 utils from '@/utils.js';\nimport EventManage from '@/api/RegistrationManage/EventManage';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport PlazaLocation from '@/api/basicConfiguration/PlazaLocation';\nimport IntelligentDevice from '@/api/basicConfiguration/IntelligentDevice';\nimport Team from '@/api/basicConfiguration/Team';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport bigScreenAPI from '@/api/BigScreen/index.js';\nexport default {\n props: {},\n mixins: [TableMixin],\n name: 'EventManageDialog',\n data: function data() {\n var _this = this;\n\n var validateOrg = function validateOrg(rule, value, callback) {\n if (_this.basicsData.orgInfo) {\n callback();\n } else {\n callback(new Error('请选择处置单位'));\n }\n };\n\n return {\n activeName: 'first',\n visible: false,\n loading: false,\n type: '新增',\n rules: {\n noiseTypeId: [{\n required: true,\n message: '请选择噪音标准',\n trigger: 'blur'\n }],\n eventType: [{\n required: true,\n message: '请选择事件分类',\n trigger: 'blur'\n }],\n areaCode: [{\n required: true,\n message: '请选择行政区划',\n trigger: 'blur'\n }],\n address: [{\n required: true,\n message: '请输入详细地址',\n trigger: 'blur'\n }],\n memo: [{\n required: true,\n message: '请输入事件原因',\n trigger: 'blur'\n }],\n orgInfo: [{\n required: true,\n validator: validateOrg,\n tirgger: 'change'\n }]\n },\n basicsData: {\n orgInfo: ''\n },\n areaCode: [],\n noise: [],\n noiseOptions: [],\n //噪音标准\n sjflList: [],\n //事件分类\n options: [],\n //行政区划\n squareList: [],\n btnLoading: false,\n url: '',\n srcList: [],\n processDeptId: [],\n processDepLsit: [] //处置单位\n\n };\n },\n created: function created() {\n this.getNoiseTree();\n this.getPlazaLocation();\n this.getTownTree();\n this.getOrgTree();\n this.sjflList = dictUtils.getDictItemsFromCache('sjfl');\n },\n methods: {\n open: function open(data) {\n var _this2 = this;\n\n this.basicsData.id = data.id;\n\n if (data) {\n EventManage.detailId(data.id, function (res) {\n _this2.basicsData = res;\n _this2.areaCode = res.areaFullCode ? res.areaFullCode.split('/').splice(1) : [];\n });\n }\n\n this.visible = true;\n },\n //行政区划\n getTownTree: function getTownTree() {\n var _this3 = this;\n\n Team.townTree({}, function (res) {\n if (res.state) {\n _this3.options = res.value;\n }\n\n console.log(res);\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 handleNoise: function handleNoise(val) {\n var arr = JSON.parse(JSON.stringify(val));\n console.log(arr);\n this.basicsData.noiseTypeId = arr[0] ? arr[0] : '';\n this.basicsData.noiseLevelId = arr[1] ? arr[1] : '';\n },\n //获取广场舞地点\n getPlazaLocation: function getPlazaLocation() {\n var _this5 = this;\n\n IntelligentDevice.plazaQuery({\n pageBean: {\n page: 1,\n pageSize: -1\n }\n }, function (res) {\n _this5.squareList = res.rows;\n });\n },\n //处理行政区划\n handleChange: function handleChange(val) {\n console.log(val);\n var arr = JSON.parse(JSON.stringify(val));\n this.basicsData.areaFullCode = '/' + arr.join('/');\n this.basicsData.areaCode = arr.pop();\n },\n //处理广场舞地点\n handleSelect: function handleSelect(val) {\n var _this6 = this;\n\n console.log(this.squareList);\n this.squareList.forEach(function (e) {\n if (e.id === val) {\n _this6.areaCode = e.areaFullCode ? e.areaFullCode.split('/').splice(1) : [];\n _this6.basicsData.areaFullCode = e.areaFullCode;\n _this6.basicsData.areaCode = e.areaCode;\n _this6.basicsData.address = e.detailAddress;\n }\n });\n },\n handleCancel: function handleCancel() {\n this.$refs.form.resetFields(); // this.basicsData = {}\n\n this.noise = [];\n this.visible = false;\n },\n //提交\n handleSubmit: function handleSubmit() {\n var _this7 = this;\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this7.btnLoading = true;\n EventManage.submitEvent(_this7.basicsData, function (res) {\n if (res.state) {\n _this7.$notify({\n type: 'success',\n message: '提交成功',\n duration: 2000\n });\n\n _this7.handleCancel();\n\n _this7.$emit('getData');\n } else {\n _this7.$message.warning(res.message);\n }\n\n _this7.btnLoading = false;\n });\n }\n });\n },\n // 打开预警图片\n openImg: function openImg() {\n var _this8 = this;\n\n // console.log(this.$refs.warningImg);\n if (this.basicsData.imgUrl) {\n bigScreenAPI.getImgByUrl(this.basicsData.imgUrl).then(function (res) {\n _this8.srcList = res;\n\n _this8.$refs.warningImg.clickHandler();\n });\n } else {\n this.$message({\n message: '暂无图片!',\n type: 'warning'\n });\n }\n },\n handleClose: function handleClose() {},\n //组织树\n getOrgTree: function getOrgTree() {\n var _this9 = this;\n\n EventManage.orgTree(function (res) {\n _this9.processDepLsit = res;\n });\n },\n // 协同处理\n getProcessPersons: function getProcessPersons(val) {\n var _this10 = this;\n\n setTimeout(function () {\n console.log(val); //当前选中数据\n\n _this10.basicsData.orgInfo = '';\n\n var nodesObj = _this10.$refs['cascaders'].getCheckedNodes();\n\n console.log(nodesObj);\n _this10.basicsData.orgInfo = JSON.stringify(nodesObj.map(function (it) {\n return {\n orgId: it.value,\n orgName: it.label\n };\n }));\n console.log(_this10.basicsData.orgInfo);\n }, 100);\n }\n }\n};",null]}