|
@@ -19,8 +19,6 @@ import payScope from './conditionFilter/payScope.vue'
|
|
|
import educationType from './conditionFilter/educationType.vue'
|
|
|
import scale from './conditionFilter/scale.vue'
|
|
|
import financingStatus from './conditionFilter/financingStatus.vue'
|
|
|
-// import { reactive, defineExpose } from 'vue'
|
|
|
-// import { useRoute } from 'vue-router'
|
|
|
defineOptions({name: 'retrieval-components-conditionFilter'})
|
|
|
const emits = defineEmits(['change'])
|
|
|
|
|
@@ -28,34 +26,4 @@ const inputChange = (key, arr) => {
|
|
|
const str = arr.length ? arr.join('_') : ''
|
|
|
emits('change', key, str)
|
|
|
}
|
|
|
-// const route = useRoute()
|
|
|
-
|
|
|
-// const removeEmptyStringsAndReturnNew = (obj) => {
|
|
|
-// const result = {}
|
|
|
-// Object.keys(obj).forEach(function(key) {
|
|
|
-// if (obj[key]) {
|
|
|
-// result[key] = obj[key]
|
|
|
-// }
|
|
|
-// })
|
|
|
-// return result
|
|
|
-// }
|
|
|
-
|
|
|
-// const params = reactive({})
|
|
|
-// let query = reactive({})
|
|
|
-
|
|
|
-// if (route.query?.content) {
|
|
|
-// query['content'] = route.query.content
|
|
|
-// emits('change')
|
|
|
-// }
|
|
|
-
|
|
|
-// const inputChange = (key, { values }) => {
|
|
|
-// params[key] = values
|
|
|
-// query[key] = Array.isArray(values) ? values.join('_') : values
|
|
|
-// query = removeEmptyStringsAndReturnNew(query)
|
|
|
-// emits('change', query.value)
|
|
|
-// }
|
|
|
-// const getQuery = () => {
|
|
|
-// return query
|
|
|
-// }
|
|
|
-// defineExpose({ getQuery, params })
|
|
|
</script>
|