获取省份
This commit is contained in:
parent
52cb62467d
commit
d861606971
|
|
@ -43,3 +43,11 @@ export const addProjectOutAPI = (data) => {
|
|||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 获取省份
|
||||
export const getProvinceListAPI = () => {
|
||||
return request({
|
||||
url: '/material-mall/cnarea/provinces',
|
||||
method: 'GET',
|
||||
})
|
||||
}
|
||||
|
|
@ -752,7 +752,7 @@ import {
|
|||
getManufacturerSelectApi
|
||||
} from '@/api/EquipmentLedger/index.js'
|
||||
import { firstLevel, secondAndThirdLevel } from '@/api/EquipmentEntryApply'
|
||||
import { getMaxFeatureAPI } from '@/api/EquipmentLedger/equ-out.js'
|
||||
import { getMaxFeatureAPI, getProvinceListAPI } from '@/api/EquipmentLedger/equ-out.js'
|
||||
|
||||
export default {
|
||||
name: 'EquipmentLedger',
|
||||
|
|
@ -901,6 +901,12 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
// 获取省份
|
||||
getProvinceList() {
|
||||
getProvinceListAPI().then((res) => {
|
||||
this.provinceList = res.data
|
||||
})
|
||||
},
|
||||
// 获取厂家
|
||||
getManufacturerSelectList() {
|
||||
getManufacturerSelectApi().then((res) => {
|
||||
|
|
@ -1340,6 +1346,7 @@ export default {
|
|||
},
|
||||
|
||||
async created() {
|
||||
this.getProvinceList()
|
||||
this.getFirstLevel()
|
||||
this.getManufacturerSelectList()
|
||||
// 并行加载初始数据
|
||||
|
|
|
|||
Loading…
Reference in New Issue