{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\components\\GisMapDrawer.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\components\\GisMapDrawer.vue","mtime":1691463999680},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nexport default {\n name: 'GisMapDrawer',\n components: {},\n props: {\n afterConfirm: {\n type: Function,\n default: null\n }\n },\n data: function data() {\n return {\n drawer: false,\n selectVal: [],\n params: null,\n title: '',\n // src: '/gisapi/station-n-map/#/DeviceManagerGisView?mapMode=2D'\n src: 'http://183.230.176.125:18081/station-n-map/#/DeviceManagerGisView?mapMode=2D'\n };\n },\n methods: {\n setArea: function setArea(row) {\n this.params = row;\n this.title = '设置【' + row.name + '】的区域';\n this.selectVal = [];\n this.drawer = true;\n\n if (this.params.area) {\n if (this.$refs.windowiframe) {\n this.clear();\n this.$refs.windowiframe.contentWindow.deviceGisFunction.addElectronicFence({\n id: this.params.id,\n points: JSON.parse(this.params.area)\n }, []);\n } else {\n var t = this;\n setTimeout(function () {\n t.clear();\n t.$refs.windowiframe.contentWindow.deviceGisFunction.addElectronicFence({\n id: t.params.id,\n points: JSON.parse(t.params.area)\n }, []);\n }, 6000);\n }\n } else {\n if (this.$refs.windowiframe) {\n this.clear();\n }\n }\n },\n selectPoint: function selectPoint() {\n var _this = this;\n\n this.$refs.windowiframe.contentWindow.deviceGisFunction.pickPoint().then(function (point) {\n // alert(point)\n _this.selectVal.push(point);\n\n console.log(point);\n });\n },\n selectArea: function selectArea() {\n var _this2 = this;\n\n this.$refs.windowiframe.contentWindow.deviceGisFunction.drawPolygon().then(function (area) {\n _this2.selectVal = [];\n\n _this2.selectVal.push(area);\n\n console.log(area);\n });\n },\n clear: function clear() {\n this.$refs.windowiframe.contentWindow.deviceGisFunction.clearPolygonDraw();\n this.$refs.windowiframe.contentWindow.deviceGisFunction.clearElectronicFence();\n },\n confirm: function confirm() {\n if (!this.selectVal || this.selectVal === null || this.selectVal.length === 0) {\n this.$message.warning('没有任何可选信息');\n return;\n }\n\n this.$emit('confirm', this.selectVal, this.params);\n this.drawer = false;\n }\n }\n};",null]}