Commit 50c415df authored by youjj's avatar youjj

修改分公司列表接口

parent d0cb77f7
...@@ -10,6 +10,14 @@ export function page(query) { ...@@ -10,6 +10,14 @@ export function page(query) {
}); });
} }
export function allPage(query) {
return fetch({
url: '/vehicle/branchCompany/allPage',
method: 'get',
params: query
});
}
export function getObj(id) { export function getObj(id) {
return fetch({ return fetch({
url: '/vehicle/branchCompany/' + id, url: '/vehicle/branchCompany/' + id,
......
...@@ -74,7 +74,8 @@ ...@@ -74,7 +74,8 @@
addObj, addObj,
getObj, getObj,
delObj, delObj,
putObj putObj,
allPage
} from 'api/base_info/branch_company'; } from 'api/base_info/branch_company';
import chinaMap from './chinaMap'; import chinaMap from './chinaMap';
import companyMap from "./companyMap"; import companyMap from "./companyMap";
...@@ -321,7 +322,7 @@ ...@@ -321,7 +322,7 @@
} }
} }
this.send = !0; this.send = !0;
page(this.listQuery) allPage(this.listQuery)
.then(response => { .then(response => {
let listTemp = response.data.data; let listTemp = response.data.data;
//一次读入所有涉及地区,防止多次读取 //一次读入所有涉及地区,防止多次读取
......
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