123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- import request from '@/utils/request'
- import constant from '@/constant'
- function list(obj) {
- var formData = new FormData();
- for(var key in obj){
- formData.append(key,obj[key]);
- }
-
- return request.post(constant.serverUrl + "/base/companyInfo/list",formData);
- }
- function pageList(formData) {
- return request.post(constant.serverUrl + "/base/companyInfo/pageList", formData);
- }
- function loadChildren(formData) {
- return request.post(constant.serverUrl + "/base/companyInfo/children",formData);
- }
- function create() {
- return request.get(constant.serverUrl + "/base/companyInfo/create");
- }
- function edit(id) {
- return request.get(constant.serverUrl + "/base/companyInfo/edit/" + id);
- }
- function add(formModel) {
- return request.post(constant.serverUrl + "/base/companyInfo/add", formModel, {
- headers: {
- "Content-Type": "application/json"
- }
- });
- }
- function update(formModel) {
- return request.post(constant.serverUrl + "/base/companyInfo/update", formModel, {
- headers: {
- "Content-Type": "application/json"
- }
- });
- }
- function remove(id) {
- return request.post(constant.serverUrl + "/base/companyInfo/delete/" + id);
- }
- function batchRemove(idList) {
- return request.post(constant.serverUrl + "/base/companyInfo/batchDelete", idList, {
- headers: {
- "Content-Type": "application/json"
- }
- });
- }
- function queryBindDeviceList(formData) {
- var objData = {};
- formData.forEach((value, key) => objData[key] = value);
- return request.get(constant.serverUrl + "/base/companyInfo/queryBindDeviceList", {
- params: objData,
- headers: {
- "Content-Type": "application/json"
- }
- });
- }
- function bindDevice(formData) {
- return request.post(constant.serverUrl + "/base/companyInfo/bindDevice", formData);
- }
- function unbindDevice(formData) {
- return request.post(constant.serverUrl + "/base/companyInfo/unbindDevice", formData);
- }
- function treeList() {
- return request.post(constant.serverUrl + "/base/companyInfo/treeList");
- }
- function isOpenMobilePayment(formData) {
- return request.post(constant.serverUrl + "/base/companyInfo/isOpenMobilePayment",formData);
- }
- export default {
- list, create, edit, add, update, remove, batchRemove, pageList, queryBindDeviceList,
- bindDevice, unbindDevice,loadChildren,treeList,isOpenMobilePayment
- }
|