แก้สมัครสอบ
This commit is contained in:
parent
88d84927d6
commit
7ba783f9a5
3 changed files with 6 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import env from '../index'
|
import env from '../index'
|
||||||
const person = `${env.API_URI}/metadata/main/`
|
const person = `${env.API_URI}/org/metadata/main/`
|
||||||
const district = `${env.API_URI}/metadata/district/`
|
const district = `${env.API_URI}/org/metadata/province/`
|
||||||
const subDistrict = `${env.API_URI}/metadata/sub-district/`
|
const subDistrict = `${env.API_URI}/org/metadata/district/`
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
person: `${person}person`,
|
person: `${person}person`,
|
||||||
|
|
|
||||||
|
|
@ -346,7 +346,7 @@ const fetchDistrict = async (id: string, position: string) => {
|
||||||
await http
|
await http
|
||||||
.get(config.API.listDistrict(id))
|
.get(config.API.listDistrict(id))
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const data = res.data.result
|
const data = res.data.result.districts
|
||||||
let option: DataOption[] = []
|
let option: DataOption[] = []
|
||||||
data.map((r: DataOption) => {
|
data.map((r: DataOption) => {
|
||||||
option.push({ id: r.id.toString(), name: r.name.toString() })
|
option.push({ id: r.id.toString(), name: r.name.toString() })
|
||||||
|
|
@ -370,7 +370,7 @@ const fetchSubDistrict = async (id: string, position: string) => {
|
||||||
await http
|
await http
|
||||||
.get(config.API.listSubDistrict(id))
|
.get(config.API.listSubDistrict(id))
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const data = res.data.result
|
const data = res.data.result.subDistricts
|
||||||
let option: DataOption[] = []
|
let option: DataOption[] = []
|
||||||
data.map((r: DataOption) => {
|
data.map((r: DataOption) => {
|
||||||
option.push({
|
option.push({
|
||||||
|
|
|
||||||
|
|
@ -602,7 +602,7 @@ const fetchDistrict = async (id: string) => {
|
||||||
await http
|
await http
|
||||||
.get(config.API.listDistrict(id))
|
.get(config.API.listDistrict(id))
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const data = res.data.result
|
const data = res.data.result.districts
|
||||||
let option: DataOption[] = []
|
let option: DataOption[] = []
|
||||||
data.map((r: DataOption) => {
|
data.map((r: DataOption) => {
|
||||||
option.push({ id: r.id.toString(), name: r.name.toString() })
|
option.push({ id: r.id.toString(), name: r.name.toString() })
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue