import conditionObjectBase from '../condition-object-base.js'
import { locations } from "@/api/webApi/career-other";

export default {
  ...conditionObjectBase,
  key: 'location',
  title: '地域',
  getList: function(param) {
    return new Promise((resolve, reject) => {
      locations().then(res => resolve(res.rows))
        .catch(e => reject(e))
    })
  },
  getCode: function(item) {
    return item
  },
  getLabel: function(item) {
    return item
  }
}
