{"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\\BasicData\\components\\PlazaLocationDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\BasicData\\components\\PlazaLocationDialog.vue","mtime":1703831130678},{"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/es6.regexp.split\";\nimport \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 PlazaLocation from '@/api/basicConfiguration/PlazaLocation';\nimport Team from '@/api/basicConfiguration/Team';\nexport default {\n props: {},\n name: 'PersonalDialog',\n data: function data() {\n return {\n visible: false,\n loading: false,\n rules: {\n squareLocationName: [{\n required: true,\n message: '请输入广场名称',\n trigger: 'blur'\n }],\n shortName: [{\n required: true,\n message: '请输入简称',\n trigger: 'blur'\n }],\n noiseTypeId: [{\n required: true,\n message: '请选择噪音标准',\n trigger: 'blur'\n }],\n detailAddress: [{\n required: true,\n message: '请选择详细地址',\n trigger: 'blur'\n }],\n areaCode: [{\n required: true,\n message: '请选择行政区划',\n trigger: 'blur'\n }]\n },\n xboptions: [],\n type: '新增',\n formData: {},\n areaCode: [],\n options: [],\n noise: [],\n //噪音标准\n noiseOptions: [],\n //噪音下拉数据\n squareTeam: [],\n squareTeamList: [],\n //组织团队\n btnLoading: false\n };\n },\n created: function created() {\n this.getTownTree();\n this.getNoiseTree();\n this.getTeam();\n },\n methods: {\n //行政区划\n getTownTree: function getTownTree() {\n var _this = this;\n\n Team.townTree({}, function (res) {\n if (res.state) {\n _this.options = res.value;\n console.log(res.value);\n }\n });\n },\n handleChange: function handleChange(val) {\n var _this2 = this;\n\n this.$nextTick(function () {\n var nodesObj = _this2.$refs['cascader'].getCheckedNodes();\n\n console.log(nodesObj);\n\n if (nodesObj.length) {\n _this2.formData.areaCode = nodesObj[0].data.code;\n _this2.formData.areaFullCode = nodesObj[0].data.fullCode;\n _this2.formData.areaFullName = nodesObj[0].data.fullName;\n } else {\n _this2.formData.areaCode = '';\n _this2.formData.areaFullCode = '';\n _this2.formData.areaFullName = '';\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 handleNoise: function handleNoise(val) {\n var arr = JSON.parse(JSON.stringify(val));\n this.formData.noiseTypeId = arr[0] ? arr[0] : '';\n this.formData.noiseLevelId = arr[1] ? arr[1] : '';\n },\n //组织团队\n getTeam: function getTeam() {\n var _this4 = this;\n\n Team.dataQuery({\n pageBean: {\n page: 1,\n pageSize: -1\n }\n }, function (res) {\n if (res.rows) {\n _this4.squareTeamList = res.rows;\n }\n });\n },\n open: function open(data) {\n this.noise = [];\n this.squareTeam = [];\n this.areaCode = [];\n this.visible = true;\n this.formData = {};\n this.type = '新增';\n },\n handleClose: function handleClose() {\n this.visible = false;\n },\n submitForm: function submitForm(formName) {\n this.$refs.form.validate(function (valid) {\n if (valid) {\n alert('submit!');\n } else {\n console.log('error submit!!');\n return false;\n }\n });\n },\n edit: function edit(val) {\n var _this5 = this;\n\n this.noise = [];\n this.squareTeam = [];\n this.areaCode = [];\n this.formData = {};\n this.type = '编辑';\n this.visible = true;\n PlazaLocation.detailId(val, function (res) {\n if (res) {\n _this5.formData = res;\n\n if (res.squareTeamList) {\n res.squareTeamList.forEach(function (e) {\n _this5.squareTeam.push(e.teamFillingId);\n });\n }\n\n _this5.areaCode = res.areaFullCode ? res.areaFullCode.split('/').splice(1) : [];\n console.log(_this5.areaCode);\n\n if (res.noiseLevelId && res.noiseTypeId) {\n _this5.noise = [res.noiseTypeId, res.noiseLevelId];\n } else if (res.noiseTypeId) {\n _this5.noise = [res.noiseTypeId];\n } else {\n _this5.noise = [];\n }\n }\n });\n },\n handleSave: function handleSave() {\n var _this6 = this;\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this6.btnLoading = true; // this.formData.squareTeamList = []\n // this.squareTeam.forEach((e) => {\n // this.formData.squareTeamList.push({\n // teamFillingId: e,\n // })\n // })\n\n var method;\n\n if (_this6.type === '新增') {\n method = PlazaLocation.addSave;\n } else {\n method = PlazaLocation.upData;\n }\n\n method(_this6.formData, function (response) {\n if (response.state) {\n _this6.$notify({\n type: 'success',\n message: _this6.type + '成功',\n duration: 2000\n });\n\n _this6.handleClose();\n\n _this6.$emit('getData');\n } else {\n _this6.$message.warning(response.message);\n }\n\n _this6.btnLoading = false;\n });\n } else {\n _this6.$notify({\n type: 'warning',\n message: '请完善表单信息!',\n duration: 2000\n });\n }\n });\n }\n }\n};",null]}