33 lines
545 B
JavaScript
33 lines
545 B
JavaScript
import {
|
|
getLandList,
|
|
getLandInfo
|
|
} from "@/api/system/land"
|
|
const land = {
|
|
actions: {
|
|
// 获取地块列表
|
|
getLandList({}, data) {
|
|
return new Promise((resolve, reject) => {
|
|
getLandList(data)
|
|
.then(res => {
|
|
resolve(res)
|
|
})
|
|
.catch(error => {
|
|
reject(error)
|
|
})
|
|
})
|
|
},
|
|
getLandInfo({}, data) {
|
|
return new Promise((resolve, reject) => {
|
|
getLandInfo(data)
|
|
.then(res => {
|
|
resolve(res)
|
|
})
|
|
.catch(error => {
|
|
reject(error)
|
|
})
|
|
})
|
|
},
|
|
|
|
}
|
|
}
|
|
export default land |