接口修改
This commit is contained in:
@@ -174,6 +174,9 @@ export const createTask = (scode, ecode) => post('api/pda/createTask', {
|
||||
* 点位管理
|
||||
*/
|
||||
export const getAllPointList = () => post('api/pda/getAllPointList', {})
|
||||
export const getRegionPointList = (code) => post('api/pda/getRegionPointList', {
|
||||
region_code: code
|
||||
})
|
||||
|
||||
/**
|
||||
* 呼叫搬运
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
<script>
|
||||
import NavBar from '@components/NavBar.vue'
|
||||
import {getPointListByRegion} from '@config/getData2'
|
||||
import {getRegionPointList} from '@config/getData2'
|
||||
export default {
|
||||
name: 'PointManage',
|
||||
components: {
|
||||
@@ -54,7 +54,7 @@ export default {
|
||||
methods: {
|
||||
async _getAllPointList () {
|
||||
try {
|
||||
let res = await getPointListByRegion(this.$route.query.id)
|
||||
let res = await getRegionPointList(this.$route.query.id)
|
||||
if (res.code === '1') {
|
||||
this.dataList = [...res.result]
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user