|
@@ -12,24 +12,18 @@
|
|
|
</template>
|
|
|
<script setup>
|
|
|
import areaTree from './areaCascader'
|
|
|
-// import { reactive, ref, defineExpose } from 'vue'
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
defineOptions({name: 'retrieval-components-cityFilter'})
|
|
|
const emits = defineEmits(['change'])
|
|
|
-// let query = reactive({})
|
|
|
const checkedInputChange = (idChecked) => {
|
|
|
let city = ''
|
|
|
if (idChecked?.length) {
|
|
|
- // const obj = {}
|
|
|
idChecked.forEach((_e, index) => {
|
|
|
if (_e?.length) {
|
|
|
- // obj[`level${index+1}`] = _e.join('_')
|
|
|
- // city += `${index ? '%' : ''}CL${index+1}_${_e.join('_')}` // CL: city-level
|
|
|
city += `${index ? '__' : ''}${_e.join('_')}` // CL: city-level
|
|
|
}
|
|
|
})
|
|
|
- // query = obj
|
|
|
emits('change', 'city', city)
|
|
|
}
|
|
|
}
|
|
@@ -37,8 +31,4 @@ const checkedInputChange = (idChecked) => {
|
|
|
const tab = ref(1)
|
|
|
const tabClick = () => {
|
|
|
}
|
|
|
-// const getQuery = () => {
|
|
|
-// return query
|
|
|
-// }
|
|
|
-// defineExpose({ getQuery })
|
|
|
</script>
|