{"remainingRequest":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\BasicData\\components\\placesDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\BasicData\\components\\placesDialog.vue","mtime":1703831130694},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport pagination from '@/components/pagination'\r\nimport plazaLocation from '@/api/basicConfiguration/PlazaLocation'\r\nimport PlazaLocationDialog from './PlazaLocationDialog.vue'\r\nimport Team from '@/api/basicConfiguration/Team'\r\nexport default {\r\n name: 'placesDialog',\r\n components: {\r\n pagination,\r\n PlazaLocationDialog,\r\n },\r\n props: {\r\n isMultiple: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n },\r\n data() {\r\n return {\r\n visible: false,\r\n loading: false,\r\n multipleSelection: [],\r\n chooseList: [],\r\n reqData: {\r\n querys: [\r\n {\r\n group: 'main',\r\n operation: 'LIKE',\r\n parentGroup: '',\r\n property: 'searchIn',\r\n relation: 'AND',\r\n value: '',\r\n },\r\n {\r\n group: 'main',\r\n operation: 'LIKE',\r\n parentGroup: '',\r\n property: 'l.area_full_code_',\r\n relation: 'AND',\r\n value: '',\r\n },\r\n ],\r\n pageBean: {\r\n page: 1,\r\n pageSize: 20,\r\n total: 0,\r\n showTotal: true,\r\n },\r\n sorter: [\r\n {\r\n direction: 'DESC',\r\n property: 'createTime',\r\n },\r\n ],\r\n },\r\n tableData: [],\r\n currentRow: null,\r\n options: [],\r\n areaList: [],\r\n }\r\n },\r\n methods: {\r\n handleAddPalce() {\r\n this.$refs.formDialog.open()\r\n },\r\n open(data) {\r\n this.visible = true\r\n if (data) {\r\n this.chooseList = data\r\n }\r\n this.areaList = this.$store.state.user.currentUserDetail.org[0]\r\n .orgAddvcdFull\r\n ? this.$store.state.user.currentUserDetail.org[0].orgAddvcdFull\r\n .split('/')\r\n .splice(1)\r\n : []\r\n this.reqData.querys[1].value =\r\n this.$store.state.user.currentUserDetail.org[0].orgAddvcdFull\r\n this.getTownTree()\r\n this.getData()\r\n },\r\n handleClose() {\r\n this.visible = false\r\n },\r\n handleSubmit() {\r\n if (this.isMultiple) {\r\n let arr = this.multipleSelection.map((it) => {\r\n return {\r\n squareLocationName: it.squareLocationName,\r\n squareLocationId: it.id,\r\n areaCode: it.areaCode,\r\n areaFullCode: it.areaFullCode,\r\n }\r\n })\r\n this.$emit('changePlaces', arr)\r\n this.$refs.table.clearSelection()\r\n } else {\r\n this.$emit('changePlaces', {\r\n squareLocationName: this.currentRow.squareLocationName,\r\n id: this.currentRow.id,\r\n areaCode: this.currentRow.areaCode,\r\n areaFullCode: this.currentRow.areaFullCode,\r\n })\r\n }\r\n this.visible = false\r\n this.currentRow = null\r\n this.tableData = []\r\n },\r\n currentChange(currentRow, oldCurrentRow) {\r\n this.currentRow = currentRow\r\n },\r\n getData(page) {\r\n this.loading = true\r\n page ? (this.reqData.pageBean.page = page) : null\r\n plazaLocation.dataQuery(this.reqData, (res) => {\r\n this.reqData.pageBean.total = res.total\r\n this.loading = false\r\n this.tableData = res.rows\r\n this.$nextTick(() => {\r\n this.chooseList.forEach((item) => {\r\n this.tableData.forEach((it) => {\r\n if (item.squareLocationId === it.id) {\r\n this.$refs.table.toggleRowSelection(it, true)\r\n }\r\n })\r\n })\r\n })\r\n console.log('this.tableData', this.tableData)\r\n })\r\n },\r\n handleSizeChange(pageSize) {\r\n this.reqData.pageBean.pageSize = pageSize\r\n this.getData(1)\r\n },\r\n handleCurrentChange(page) {\r\n this.reqData.pageBean.page = page\r\n this.getData()\r\n },\r\n handleSelectionChange(val) {\r\n this.multipleSelection = val\r\n },\r\n //获取Id\r\n getRowKey(row) {\r\n return row.id\r\n },\r\n getTownTree() {\r\n Team.townTree({}, (res) => {\r\n if (res.state) {\r\n this.options = res.value\r\n }\r\n })\r\n },\r\n handleChange(val) {\r\n console.log(val)\r\n this.reqData.querys[1].value = val[val.length - 1]\r\n this.getData(1)\r\n },\r\n },\r\n}\r\n",null]}