{"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\\BigScreen\\components\\eventConfirmation.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\BigScreen\\components\\eventConfirmation.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//\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 eventRow: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n typeSource: {\n type: String,\n default: ''\n }\n },\n mixins: [TableMixin],\n name: 'eventConfirmation',\n data: function data() {\n return {\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 },\n basicsData: {},\n areaCode: [],\n noise: [],\n noiseOptions: [],\n //噪音标准\n sjflList: [],\n //事件分类\n options: [],\n //行政区划\n squareList: [],\n btnLoading: false,\n url: '',\n srcList: []\n };\n },\n created: function created() {\n this.getNoiseTree();\n this.getPlazaLocation();\n this.getTownTree();\n this.sjflList = dictUtils.getDictItemsFromCache('sjfl');\n this.open();\n },\n methods: {\n open: function open() {\n var _this = this;\n\n this.basicsData.id = this.eventRow.id;\n\n if (this.eventRow) {\n EventManage.detailId(this.eventRow.id, function (res) {\n _this.basicsData = res;\n _this.areaCode = res.areaFullCode ? res.areaFullCode.split('/').splice(1) : [];\n });\n }\n },\n //行政区划\n getTownTree: function getTownTree() {\n var _this2 = this;\n\n Team.townTree({}, function (res) {\n if (res.state) {\n _this2.options = res.value;\n }\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 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 _this4 = this;\n\n IntelligentDevice.plazaQuery({\n pageBean: {\n page: 1,\n pageSize: -1\n }\n }, function (res) {\n _this4.squareList = res.rows;\n });\n },\n //处理行政区划\n handleChange: function handleChange(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 _this5 = this;\n\n this.squareList.forEach(function (e) {\n if (e.id === val) {\n _this5.areaCode = e.areaFullCode ? e.areaFullCode.split('/').splice(1) : [];\n _this5.basicsData.areaFullCode = e.areaFullCode;\n _this5.basicsData.areaCode = e.areaCode;\n _this5.basicsData.address = e.detailAddress;\n }\n });\n },\n handleCancel: function handleCancel() {\n this.$refs.form.resetFields(); // this.basicsData = {}\n\n this.noise = [];\n this.$emit('closeConfirmation');\n },\n //提交\n handleSubmit: function handleSubmit() {\n var _this6 = this;\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this6.btnLoading = true;\n EventManage.submitEvent(_this6.basicsData, function (res) {\n if (res.state) {\n _this6.$notify({\n type: 'success',\n message: '提交成功',\n duration: 2000\n });\n\n _this6.handleCancel();\n\n _this6.$emit('getData');\n } else {\n _this6.$message.warning(res.message);\n }\n\n _this6.btnLoading = false;\n });\n }\n });\n },\n // 打开预警图片\n openImg: function openImg() {\n var _this7 = this;\n\n // console.log(this.$refs.warningImg);\n if (this.basicsData.imgUrl) {\n bigScreenAPI.getImgByUrl(this.basicsData.imgUrl).then(function (res) {\n _this7.srcList = res;\n\n _this7.$refs.warningImg.clickHandler();\n });\n } else {\n this.$message({\n message: '暂无图片!',\n type: 'warning'\n });\n }\n }\n }\n};",null]}