{"remainingRequest":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/src/components/modulesDetail/ViewCity.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/src/components/modulesDetail/ViewCity.vue","mtime":1701674859503},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/cache-loader/dist/cjs.js","mtime":1701674874584},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/thread-loader/dist/cjs.js","mtime":1701674873947},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/babel-loader/lib/index.js","mtime":1701674874357},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/cache-loader/dist/cjs.js","mtime":1701674874584},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/vue-loader/lib/index.js","mtime":1701674874903}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 cityOptions from '@/assets/js/cityData';\nexport default {\n name: 'ViewCity',\n data: function data() {\n return {\n menuHeight: 0,\n //默认加载城市\n mapCity: {\n country: '',\n // 国家\n address: [],\n //联动地址数组\n province: '',\n // 省\n city: '',\n // 区\n town: '',\n // 县\n isRoute: true // 是否生成路线\n\n },\n // 联动数据\n cityOptions: cityOptions\n };\n },\n props: {\n viewId: String,\n viewModuleDataObj: Object\n },\n methods: {\n // 默认加载城市\n changeProvince: function changeProvince(item) {\n if (item.length === 2) {\n this.mapCity.province = item[0];\n this.mapCity.city = item[1];\n } else if (item.length === 3) {\n this.mapCity.province = item[0];\n this.mapCity.city = item[1];\n this.mapCity.town = item[2];\n }\n\n this.$emit(\"mapCityObj\", this.mapCity);\n },\n save: function save() {\n return this.mapCity;\n }\n },\n mounted: function mounted() {\n var clientHeight = document.documentElement.clientHeight || document.body.clientHeight; //60 头部, 32 面包屑, 20 父组件外边距,41 标签页,50 内部按钮\n\n this.menuHeight = clientHeight - 60 - 32 - 41 - 50 - 20 - 16; //根据视图数据渲染默认加载城市页签\n\n var data = this.viewModuleDataObj;\n this.mapCity.country = data.country ? data.country : \"\"; // 国家\n\n this.mapCity.province = data.province ? data.province : \"\"; // 省\n\n this.mapCity.city = data.city ? data.city : \"\"; // 区\n\n this.mapCity.town = data.town ? data.town : \"\"; // 县\n\n this.mapCity.isRoute = data.isRoute; // 是否生成路线\n // 拼接为联动地址\n\n if (this.mapCity.town === \"\" && this.mapCity.city !== \"\") {\n this.mapCity.address = [this.mapCity.province, this.mapCity.city];\n } else if (this.mapCity.town !== \"\") {\n this.mapCity.address = [this.mapCity.province, this.mapCity.city, this.mapCity.town];\n } else {\n this.mapCity.address = [];\n }\n\n this.$emit(\"mapCityObj\", this.mapCity);\n }\n};",null]}