|
@@ -8,27 +8,27 @@ function list(obj) {
|
|
|
formData.append(key,obj[key]);
|
|
|
}
|
|
|
|
|
|
- return request.post(constant.serverUrl + "/base/companyInfo/list",formData);
|
|
|
+ return request.post(constant.serverUrl + "/bus/companyInfo/list",formData);
|
|
|
}
|
|
|
|
|
|
function pageList(formData) {
|
|
|
- return request.post(constant.serverUrl + "/base/companyInfo/pageList", formData);
|
|
|
+ return request.post(constant.serverUrl + "/bus/companyInfo/pageList", formData);
|
|
|
}
|
|
|
|
|
|
function loadChildren(formData) {
|
|
|
- return request.post(constant.serverUrl + "/base/companyInfo/children",formData);
|
|
|
+ return request.post(constant.serverUrl + "/bus/companyInfo/children",formData);
|
|
|
}
|
|
|
|
|
|
function create() {
|
|
|
- return request.get(constant.serverUrl + "/base/companyInfo/create");
|
|
|
+ return request.get(constant.serverUrl + "/bus/companyInfo/create");
|
|
|
}
|
|
|
|
|
|
function edit(id) {
|
|
|
- return request.get(constant.serverUrl + "/base/companyInfo/edit/" + id);
|
|
|
+ return request.get(constant.serverUrl + "/bus/companyInfo/edit/" + id);
|
|
|
}
|
|
|
|
|
|
function add(formModel) {
|
|
|
- return request.post(constant.serverUrl + "/base/companyInfo/add", formModel, {
|
|
|
+ return request.post(constant.serverUrl + "/bus/companyInfo/add", formModel, {
|
|
|
headers: {
|
|
|
"Content-Type": "application/json"
|
|
|
}
|
|
@@ -36,7 +36,7 @@ function add(formModel) {
|
|
|
}
|
|
|
|
|
|
function update(formModel) {
|
|
|
- return request.post(constant.serverUrl + "/base/companyInfo/update", formModel, {
|
|
|
+ return request.post(constant.serverUrl + "/bus/companyInfo/update", formModel, {
|
|
|
headers: {
|
|
|
"Content-Type": "application/json"
|
|
|
}
|
|
@@ -44,11 +44,11 @@ function update(formModel) {
|
|
|
}
|
|
|
|
|
|
function remove(id) {
|
|
|
- return request.post(constant.serverUrl + "/base/companyInfo/delete/" + id);
|
|
|
+ return request.post(constant.serverUrl + "/bus/companyInfo/delete/" + id);
|
|
|
}
|
|
|
|
|
|
function batchRemove(idList) {
|
|
|
- return request.post(constant.serverUrl + "/base/companyInfo/batchDelete", idList, {
|
|
|
+ return request.post(constant.serverUrl + "/bus/companyInfo/batchDelete", idList, {
|
|
|
headers: {
|
|
|
"Content-Type": "application/json"
|
|
|
}
|
|
@@ -58,7 +58,7 @@ function batchRemove(idList) {
|
|
|
function queryBindDeviceList(formData) {
|
|
|
var objData = {};
|
|
|
formData.forEach((value, key) => objData[key] = value);
|
|
|
- return request.get(constant.serverUrl + "/base/companyInfo/queryBindDeviceList", {
|
|
|
+ return request.get(constant.serverUrl + "/bus/companyInfo/queryBindDeviceList", {
|
|
|
params: objData,
|
|
|
headers: {
|
|
|
"Content-Type": "application/json"
|
|
@@ -67,19 +67,19 @@ function queryBindDeviceList(formData) {
|
|
|
}
|
|
|
|
|
|
function bindDevice(formData) {
|
|
|
- return request.post(constant.serverUrl + "/base/companyInfo/bindDevice", formData);
|
|
|
+ return request.post(constant.serverUrl + "/bus/companyInfo/bindDevice", formData);
|
|
|
}
|
|
|
|
|
|
function unbindDevice(formData) {
|
|
|
- return request.post(constant.serverUrl + "/base/companyInfo/unbindDevice", formData);
|
|
|
+ return request.post(constant.serverUrl + "/bus/companyInfo/unbindDevice", formData);
|
|
|
}
|
|
|
|
|
|
function treeList() {
|
|
|
- return request.post(constant.serverUrl + "/base/companyInfo/treeList");
|
|
|
+ return request.post(constant.serverUrl + "/bus/companyInfo/treeList");
|
|
|
}
|
|
|
|
|
|
function isOpenMobilePayment(formData) {
|
|
|
- return request.post(constant.serverUrl + "/base/companyInfo/isOpenMobilePayment",formData);
|
|
|
+ return request.post(constant.serverUrl + "/bus/companyInfo/isOpenMobilePayment",formData);
|
|
|
}
|
|
|
|
|
|
|