Commit e823953a authored by 周健威's avatar 周健威

修改营地相关

parent 56b2b57a
...@@ -10,6 +10,14 @@ export function page(query) { ...@@ -10,6 +10,14 @@ export function page(query) {
}); });
} }
export function allPage(query) {
return fetch({
url: '/vehicle/campsite/allPage',
method: 'get',
params: query
});
}
export function getObj(id) { export function getObj(id) {
return fetch({ return fetch({
url: '/vehicle/campsite/' + id, url: '/vehicle/campsite/' + id,
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
/*引入postcss-px2rem 通过require的形式*/ /*引入postcss-px2rem 通过require的形式*/
// var px2rem = require('postcss-px2rem'); // var px2rem = require('postcss-px2rem');
import { import {
page allPage
} from 'api/base_info/campsite'; } from 'api/base_info/campsite';
import chinaMap from '../companyInfo/chinaMap'; import chinaMap from '../companyInfo/chinaMap';
import companyMap from "../companyInfo/companyMap"; import companyMap from "../companyInfo/companyMap";
...@@ -339,7 +339,7 @@ ...@@ -339,7 +339,7 @@
let params = this.objDeepCopy(this.listQuery);//深拷贝 let params = this.objDeepCopy(this.listQuery);//深拷贝
params.page = this.page++; params.page = this.page++;
this.send = !0; this.send = !0;
page(params) allPage(params)
.then(res => { .then(res => {
this.loading = false; this.loading = false;
let allList = []; let allList = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment