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