1
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import http from "@/utils/http";
|
||||
class FileServe {
|
||||
async upload_oos_img(row) {
|
||||
let res = await http.postFormData("/sys_file/upload_oos_img", row);
|
||||
let res = await window.framework.http.postFormData("/sys_file/upload_oos_img", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async upload_Img(row) {
|
||||
let res = await http.postFormData("/file/upload_Img", row);
|
||||
let res = await window.framework.http.postFormData("/file/upload_Img", row);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,27 +1,27 @@
|
||||
import http from '@/utils/http'
|
||||
class RolePermissionServer {
|
||||
async getRoles(callback) {
|
||||
let res = await http.get('/SysRolePermission/Query', {})
|
||||
let res = await window.framework.httpget('/SysRolePermission/Query', {})
|
||||
return res
|
||||
}
|
||||
|
||||
async getRole(row) {
|
||||
let res = await http.get('/SysRolePermission/QueryByRoleId', row)
|
||||
let res = await window.framework.httpget('/SysRolePermission/QueryByRoleId', row)
|
||||
return res
|
||||
}
|
||||
|
||||
async add(row) {
|
||||
let res = await http.post('/SysRolePermission/add', row)
|
||||
let res = await window.framework.http.post('/SysRolePermission/add', row)
|
||||
return res
|
||||
}
|
||||
|
||||
async edit(row) {
|
||||
let res = await http.post('/SysRolePermission/edit', row)
|
||||
let res = await window.framework.http.post('/SysRolePermission/edit', row)
|
||||
return res
|
||||
}
|
||||
|
||||
async del(row) {
|
||||
let res = await http.post('/SysRolePermission/del', row)
|
||||
let res = await window.framework.http.post('/SysRolePermission/del', row)
|
||||
return res
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
import http from "@/utils/http";
|
||||
class RoleServer {
|
||||
async list() {
|
||||
let res = await http.get("/sys_role/index", {});
|
||||
let res = await window.framework.httpget("/sys_role/index", {});
|
||||
return res;
|
||||
}
|
||||
|
||||
async add(row) {
|
||||
let res = await http.post("/sys_role/add", row);
|
||||
let res = await window.framework.http.post("/sys_role/add", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async edit(row) {
|
||||
let res = await http.post("/sys_role/edit", row);
|
||||
let res = await window.framework.http.post("/sys_role/edit", row);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
async del(row) {
|
||||
let res = await http.post("/sys_role/del", row);
|
||||
let res = await window.framework.http.post("/sys_role/del", row);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import http from '@/utils/http'
|
||||
class ShpProfitServer {
|
||||
async report(param) {
|
||||
let res = await http.post('/shpProfit/report', param)
|
||||
let res = await window.framework.http.post('/shpProfit/report', param)
|
||||
return res
|
||||
}
|
||||
|
||||
async list(param) {
|
||||
let res = await http.post('/shpProfit/list', param)
|
||||
let res = await window.framework.http.post('/shpProfit/list', param)
|
||||
return res
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
import http from '@/utils/http'
|
||||
class SpecificationServer {
|
||||
async list() {
|
||||
let res = await http.post('/specification/list', {})
|
||||
let res = await window.framework.http.post('/specification/list', {})
|
||||
return res
|
||||
}
|
||||
|
||||
async add(row) {
|
||||
let res = await http.post('/specification/add', row)
|
||||
let res = await window.framework.http.post('/specification/add', row)
|
||||
return res
|
||||
}
|
||||
|
||||
async edit(row) {
|
||||
let res = await http.post('/specification/edit', row)
|
||||
let res = await window.framework.http.post('/specification/edit', row)
|
||||
return res
|
||||
}
|
||||
|
||||
async del(row) {
|
||||
let res = await http.post('/specification/del', row)
|
||||
let res = await window.framework.http.post('/specification/del', row)
|
||||
return res
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import http from "@/utils/http";
|
||||
class SysAddress {
|
||||
async index(param) {
|
||||
let res = await http.get("/sys_address/index", param);
|
||||
let res = await window.framework.httpget("/sys_address/index", param);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,27 +1,27 @@
|
||||
import http from "@/utils/http";
|
||||
class SysModuleServer {
|
||||
async all() {
|
||||
let res = await http.get("/sys_menu/all", {});
|
||||
let res = await window.framework.httpget("/sys_menu/all", {});
|
||||
return res;
|
||||
}
|
||||
|
||||
async list(row) {
|
||||
let res = await http.get("/sys_menu/all", row);
|
||||
let res = await window.framework.httpget("/sys_menu/all", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async add(row) {
|
||||
let res = await http.post("/sys_menu/add", row);
|
||||
let res = await window.framework.http.post("/sys_menu/add", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async edit(row) {
|
||||
let res = await http.post("/sys_menu/edit", row);
|
||||
let res = await window.framework.http.post("/sys_menu/edit", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async del(row) {
|
||||
let res = await http.post("/sys_menu/del", row);
|
||||
let res = await window.framework.http.post("/sys_menu/del", row);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,27 +1,27 @@
|
||||
import http from "@/utils/http";
|
||||
class SysLogServe {
|
||||
async all(param) {
|
||||
let res = await http.get("/sys_log/all", param);
|
||||
let res = await window.framework.httpget("/sys_log/all", param);
|
||||
return res;
|
||||
}
|
||||
|
||||
async detail(param) {
|
||||
let res = await http.get("/sys_log/detail", param);
|
||||
let res = await window.framework.httpget("/sys_log/detail", param);
|
||||
return res;
|
||||
}
|
||||
|
||||
async delete(param) {
|
||||
let res = await http.get("/sys_log/delete", param);
|
||||
let res = await window.framework.httpget("/sys_log/delete", param);
|
||||
return res;
|
||||
}
|
||||
|
||||
async delete_all(param) {
|
||||
let res = await http.get("/sys_log/delete_all", param);
|
||||
let res = await window.framework.httpget("/sys_log/delete_all", param);
|
||||
return res;
|
||||
}
|
||||
|
||||
async operates(param) {
|
||||
let res = await http.get("/sys_log/operates", param);
|
||||
let res = await window.framework.httpget("/sys_log/operates", param);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import http from '@/utils/http';
|
||||
class systemTypeClServer {
|
||||
async all(param) {
|
||||
let res= await http.get('/sys_project_type/all', param);
|
||||
let res= await window.framework.httpget('/sys_project_type/all', param);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
async page(row) {
|
||||
let res= await http.post('/sys_project_type/page', row);
|
||||
let res= await window.framework.http.post('/sys_project_type/page', row);
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -18,17 +18,17 @@ class systemTypeClServer {
|
||||
}
|
||||
|
||||
async add(row) {
|
||||
let res= await http.post('/sys_project_type/add', row);
|
||||
let res= await window.framework.http.post('/sys_project_type/add', row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async edit(row) {
|
||||
let res= await http.post('/sys_project_type/edit', row);
|
||||
let res= await window.framework.http.post('/sys_project_type/edit', row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async del(row) {
|
||||
let res= await http.post('/sys_project_type/del', row);
|
||||
let res= await window.framework.http.post('/sys_project_type/del', row);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,29 +1,29 @@
|
||||
import http from '@/utils/http'
|
||||
class TableServer {
|
||||
async getAll(callback) {
|
||||
return await http.get('/table/index', {})
|
||||
return await window.framework.httpget('/table/index', {})
|
||||
}
|
||||
|
||||
async add(row, callback) {
|
||||
return await http.post('/table/add', row)
|
||||
return await window.framework.http.post('/table/add', row)
|
||||
}
|
||||
|
||||
async edit(row, callback) {
|
||||
return await http.post('/table/edit', row, function(res) {
|
||||
return await window.framework.http.post('/table/edit', row, function(res) {
|
||||
callback && callback(res)
|
||||
})
|
||||
}
|
||||
|
||||
async del(row, callback) {
|
||||
return await http.post('/table/del', row)
|
||||
return await window.framework.http.post('/table/del', row)
|
||||
}
|
||||
|
||||
async autoApi(id) {
|
||||
return await http.get('/template/api', { id: id })
|
||||
return await window.framework.httpget('/template/api', { id: id })
|
||||
}
|
||||
|
||||
async autoDb(id) {
|
||||
return await http.get('/template/autoDb', { id: id })
|
||||
return await window.framework.httpget('/template/autoDb', { id: id })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import http from "@/utils/http";
|
||||
class UserServer {
|
||||
async login(row) {
|
||||
let res = await http.post("/sys_user/login", row);
|
||||
let res = await window.framework.http.post("/sys_user/login", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async all() {
|
||||
let res = await http.get("/sys_user/index", {});
|
||||
let res = await window.framework.httpget("/sys_user/index", {});
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -16,22 +16,22 @@ class UserServer {
|
||||
}
|
||||
|
||||
async authorityMenus() {
|
||||
let res = await http.post("/sys_user/authorityMenus", {});
|
||||
let res = await window.framework.http.post("/sys_user/authorityMenus", {});
|
||||
return res;
|
||||
}
|
||||
|
||||
async add(row) {
|
||||
let res = await http.post("/sys_user/add", row);
|
||||
let res = await window.framework.http.post("/sys_user/add", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async edit(row) {
|
||||
let res = await http.post("/sys_user/edit", row);
|
||||
let res = await window.framework.http.post("/sys_user/edit", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async del(row) {
|
||||
let res = await http.post("/sys_user/del", row);
|
||||
let res = await window.framework.http.post("/sys_user/del", row);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user