{"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\\PlazaLocationDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\FeedbackArchiving\\components\\PlazaLocationDialog.vue","mtime":1698376082042},{"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.function.name\";\nimport \"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//\nimport utils from '@/utils.js';\nimport HighFrequencyLocation from '@/api/FeedbackArchiving/HighFrequencyLocation.js';\nimport Team from '@/api/basicConfiguration/Team';\nimport placesDialog from \"../../BasicData/components/placesDialog.vue\";\nexport default {\n props: {},\n name: 'PersonalDialog',\n components: {\n placesDialog: placesDialog\n },\n data: function data() {\n return {\n visible: false,\n loading: false,\n rules: {\n // squareLocationName: [\n // {\n // required: true,\n // message: '请输入广场名称',\n // trigger: 'blur'\n // }\n // ],\n detailAddress: [{\n required: true,\n message: '请输入详细地址',\n trigger: 'blur'\n }],\n lgtd: [{\n required: true,\n message: '请选择经度',\n trigger: 'blur'\n }],\n lttd: [{\n required: true,\n message: '请选择维度',\n trigger: 'blur'\n }],\n areaCode: [{\n required: true,\n message: '请选择行政区划',\n trigger: 'blur'\n }]\n },\n type: '新增',\n formData: {\n squareLocationId: null,\n //id\n squareLocationName: null,\n // 广场名称\n areaCode: null,\n // 行政区划\n detailAddress: null,\n // 详细地址\n lgtd: null,\n // 经度\n lttd: null,\n // 维度\n addressFullName: null,\n // 地点全称(由行政区划+详细地址组成)\n areaName: ''\n },\n areaCode: [],\n areaTree: [],\n // 行政区划列表\n areaName: '',\n btnLoading: false\n };\n },\n created: function created() {\n this.getTownTree();\n },\n methods: {\n //行政区划\n getTownTree: function getTownTree() {\n var _this = this;\n\n Team.townTree({}, function (res) {\n if (res.state) {\n _this.areaTree = res.value;\n console.log(res.value);\n }\n });\n },\n open: function open(data) {\n this.areaCode = [];\n this.visible = true;\n this.type = '新增';\n },\n handleClose: function handleClose() {\n this.formData = {\n squareLocationId: null,\n //id\n squareLocationName: null,\n // 广场名称\n areaCode: null,\n // 行政区划\n detailAddress: null,\n // 详细地址\n lgtd: null,\n // 经度\n lttd: null,\n // 维度\n addressFullName: null // 地点全称(由行政区划+详细地址组成)\n\n };\n this.visible = false;\n },\n edit: function edit(val) {\n var _this2 = this;\n\n this.areaCode = [];\n this.formData = {};\n this.type = '编辑';\n this.visible = true;\n HighFrequencyLocation.highFrequencyById(val, function (res) {\n if (res) {\n _this2.formData = res;\n\n if (res.squareTeamList) {\n res.squareTeamList.forEach(function (e) {\n _this2.squareTeam.push(e.teamFillingId);\n });\n }\n\n _this2.areaCode = res.areaFullCode ? res.areaFullCode.split('/').splice(1) : [];\n\n _this2.changeArea();\n }\n });\n },\n handleSave: function handleSave() {\n var _this3 = this;\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this3.btnLoading = true;\n\n if (_this3.areaName) {\n _this3.formData.addressFullName = _this3.areaName + _this3.formData.detailAddress;\n }\n\n var method;\n\n if (_this3.type === '新增') {\n method = HighFrequencyLocation.highFrequencyAdd;\n } else {\n method = HighFrequencyLocation.highFrequencyUpload;\n }\n\n method(_this3.formData, function (response) {\n if (response.state) {\n _this3.$notify({\n type: 'success',\n message: _this3.type + '成功',\n duration: 2000\n });\n\n _this3.handleClose();\n\n _this3.$emit('getData');\n } else {\n _this3.$message.warning(response.message);\n }\n\n _this3.btnLoading = false;\n });\n } else {// this.$notify({\n // type: 'warning',\n // message: '请完善表单信息!',\n // duration: 2000\n // })\n }\n });\n },\n handleSearchPlaces: function handleSearchPlaces() {\n this.$refs.placesDialog.open();\n },\n changePlaces: function changePlaces(data) {\n console.log(data);\n this.formData.squareLocationName = data.squareLocationName;\n this.formData.squareLocationId = data.id;\n this.formData.areaCode = data.areaCode;\n this.formData.areaFullCode = data.areaFullCode ? data.areaFullCode.split('/').splice(1) : [];\n this.formData.lgtd = data.lgtd;\n this.formData.lttd = data.lttd;\n this.formData.detailAddress = data.detailAddress;\n this.formData.squareLocationId = data.id;\n this.changeArea();\n this.$forceUpdate();\n },\n changeArea: function changeArea() {\n var _this4 = this;\n\n this.$nextTick(function () {\n var nodesObj = _this4.$refs['cascader'].getCheckedNodes();\n\n console.log(nodesObj);\n\n if (nodesObj.length) {\n _this4.formData.areaCode = nodesObj[0].data.code;\n _this4.formData.areaFullCode = nodesObj[0].data.fullCode;\n _this4.formData.areaName = nodesObj[0].data.name;\n _this4.areaName = nodesObj[0].label;\n } else {\n _this4.formData.areaCode = '';\n _this4.formData.areaFullCode = '';\n _this4.formData.areaName = '';\n _this4.areaName = '';\n }\n });\n }\n }\n};",null]}