Переглянути джерело

数据改为只有中国的数据

lifanagju_citu 8 місяців тому
батько
коміт
7c2f7ee730

+ 3 - 2
src/components/AreaSelect/index.vue

@@ -67,8 +67,9 @@ if (props.select.length) idChecked.value = props.select.map(e => e + '') // 数
 
 getDict('areaTreeData', null, 'areaTreeData').then(({ data }) => {
   data = data?.length && data || []
-  const china = data.find(e => e.id === '1')
-  items.value = china?.children?.length ? china.children : []
+  // const china = data.find(e => e.id === '1')
+  // items.value = china?.children?.length ? china.children : []
+  items.value = data
 })
 
 // 设置选中ids

+ 3 - 3
src/views/recruit/enterprise/positionManagement/components/jobRequirements.vue

@@ -224,9 +224,9 @@ const provinceChange = (value, val, obj) => {
 getDict('areaTreeData', null, 'areaTreeData').then(({ data }) => {
   data = data?.length && data || []
   if (!data?.length) return console.error('areaTreeData获取失败!')
-  //
-  const china = data.find(e => e.id === '1')
-  const chinaTreeData = china?.children?.length ? china.children : []
+  // const china = data.find(e => e.id === '1')
+  // const chinaTreeData = china?.children?.length ? china.children : []
+  const chinaTreeData = data
   //
   if (!chinaTreeData?.length) return console.error('chinaTreeData获取失败!')
   const item = items.value.options.find(e => e.key === 'workAreaProvinceId')

+ 3 - 2
src/views/recruit/personal/remuse/components/basicInfo.vue

@@ -432,8 +432,9 @@ getDict('areaTreeData', null, 'areaTreeData').then(({ data }) => {
   data = data?.length && data || []
   if (!data?.length) return console.error('areaTreeData获取失败!')
   //
-  const china = data.find(e => e.id === '1')
-  const chinaTreeData = china?.children?.length ? china.children : []
+  // const china = data.find(e => e.id === '1')
+  // const chinaTreeData = china?.children?.length ? china.children : []
+  const chinaTreeData = data
   //
   if (!chinaTreeData?.length) return console.error('chinaTreeData获取失败!')
   const item = items.value.options.find(e => e.key === 'workAreaProvinceId')

+ 3 - 2
src/views/recruit/personal/remuse/components/jobIntention.vue

@@ -218,8 +218,9 @@ getDict('areaTreeData', null, 'areaTreeData').then(({ data }) => {
   data = data?.length && data || []
   if (!data?.length) return console.error('areaTreeData获取失败!')
   //
-  const china = data.find(e => e.id === '1')
-  const chinaTreeData = china?.children?.length ? china.children : []
+  // const china = data.find(e => e.id === '1')
+  // const chinaTreeData = china?.children?.length ? china.children : []
+  const chinaTreeData = data
   //
   if (!chinaTreeData?.length) return console.error('chinaTreeData获取失败!')
   const item = items.value.options.find(e => e.key === 'workAreaProvinceId')