jsy-app/store/modules/system/land.js

33 lines
545 B
JavaScript
Raw Normal View History

2024-11-20 18:20:46 +08:00
import {
2024-11-20 19:09:37 +08:00
getLandList,
getLandInfo
2024-11-20 18:20:46 +08:00
} from "@/api/system/land"
const land = {
actions: {
// 获取地块列表
getLandList({}, data) {
return new Promise((resolve, reject) => {
getLandList(data)
.then(res => {
resolve(res)
})
.catch(error => {
reject(error)
})
})
2024-11-20 19:09:37 +08:00
},
getLandInfo({}, data) {
return new Promise((resolve, reject) => {
getLandInfo(data)
.then(res => {
resolve(res)
})
.catch(error => {
reject(error)
})
})
},
2024-11-20 18:20:46 +08:00
}
}
export default land