소스 검색

清空注释代码

lifanagju_citu 11 달 전
부모
커밋
b1961432f1
2개의 변경된 파일0개의 추가작업 그리고 34개의 파일을 삭제
  1. 0 24
      src/views/recruit/position/components/areaCascader/index.vue
  2. 0 10
      src/views/recruit/position/components/cityFilter.vue

+ 0 - 24
src/views/recruit/position/components/areaCascader/index.vue

@@ -80,30 +80,6 @@ getDict('areaTreeData', {}, 'areaTreeData').then(({ data }) => {
         })
       }
     })
-    // Object.keys(query).forEach(key => {
-    //   if(key.includes('level')) {
-    //     const levelIndex = key.split('level')[1] - 1
-    //     if (levelIndex !== -1 && treeList.value[levelIndex]?.length) {
-    //       const idsStr = route.query[key]?.split(',')[0] || ''
-    //       if (idsStr) {
-    //         const arr = idsStr.split('_')
-    //         if (arr?.length) {
-    //           arr.forEach(idItem => {
-    //             const dataItem = treeList.value[levelIndex].find(findItem => (findItem.id - 0) === (idItem - 0))
-    //             const params = {
-    //               item: dataItem,
-    //               index: levelIndex,
-    //               expand: true,
-    //               updateSearch: false
-    //             }
-    //             if (dataItem) handleNext(params)
-    //           })
-    //         }
-    //       }
-    //     }
-
-    //   }
-    // })
   } else {
     // 默认展开城市到defaultOpen级
     if (props.defaultOpen > 0) {

+ 0 - 10
src/views/recruit/position/components/cityFilter.vue

@@ -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>