This commit is contained in:
张成
2025-10-09 23:50:03 +08:00
parent 0b78af46cd
commit 88cd8d6e72
37 changed files with 444 additions and 240 deletions

View File

@@ -1,12 +1,12 @@
import http from "@/utils/http";
class FileServe {
async upload_oos_img(row) {
let res = await window.framework.http.postFormData("/sys_file/upload_oos_img", row);
let res = await http.postFormData("/sys_file/upload_oos_img", row);
return res;
}
async upload_Img(row) {
let res = await window.framework.http.postFormData("/file/upload_Img", row);
let res = await http.postFormData("/file/upload_Img", row);
return res;
}
}

View File

@@ -1,51 +0,0 @@
import http from '@/utils/http';
/**
* 热门城市二维码配置相关API
*/
// 获取配置列表
const getHotCityQrConfigList = (params) => {
return window.framework.http.get('/wch_hot_city_qr_config/list', { params });
};
// 获取所有配置
const getAllHotCityQrConfig = () => {
return window.framework.http.get('/wch_hot_city_qr_config/all');
};
// 获取配置详情
const getHotCityQrConfigDetail = (id) => {
return window.framework.http.get(`/wch_hot_city_qr_config/detail/${id}`);
};
// 创建配置
const createHotCityQrConfig = (data) => {
return window.framework.http.post('/wch_hot_city_qr_config/create', data);
};
// 更新配置
const updateHotCityQrConfig = (id, data) => {
return window.framework.http.post(`/wch_hot_city_qr_config/update/${id}`, data);
};
// 删除配置
const deleteHotCityQrConfig = (id) => {
return window.framework.http.post(`/wch_hot_city_qr_config/delete/${id}`);
};
// 批量删除配置
const batchDeleteHotCityQrConfig = (ids) => {
return window.framework.http.post('/wch_hot_city_qr_config/batch_delete', { ids });
};
export default {
getHotCityQrConfigList,
getAllHotCityQrConfig,
getHotCityQrConfigDetail,
createHotCityQrConfig,
updateHotCityQrConfig,
deleteHotCityQrConfig,
batchDeleteHotCityQrConfig
};

View File

@@ -1,7 +1,6 @@
// 系统 API 统一导出
export { default as fileServe } from './fileServe'
export { default as hotCityQrConfigServer } from './hot_city_qr_config_server'
export { default as plaAccountServer } from './pla_account_server'
export { default as rolePermissionServer } from './rolePermissionServer'
export { default as roleServer } from './roleServer'
@@ -13,5 +12,4 @@ export { default as sysLogServe } from './sys_log_serve'
export { default as systemTypeServer } from './systemType_server'
export { default as tableServer } from './tableServer'
export { default as userServer } from './userServer'
export { default as wchProfessionsServer } from './wch_professions_server'

View File

@@ -3,36 +3,36 @@ import http from '@/utils/http'
export default {
// 获取所有平台账户
all(param) {
return window.framework.http.get('/pla_account/all', param)
return http.get('/pla_account/all', param)
},
// 获取平台账户详情
detail(param) {
return window.framework.http.get('/pla_account/detail', param)
return http.get('/pla_account/detail', param)
},
// 分页查询平台账户
page(param) {
return window.framework.http.post('/pla_account/page', param)
return http.post('/pla_account/page', param)
},
// 新增平台账户
add(param) {
return window.framework.http.post('/pla_account/add', param)
return http.post('/pla_account/add', param)
},
// 编辑平台账户
edit(param) {
return window.framework.http.post('/pla_account/edit', param)
return http.post('/pla_account/edit', param)
},
// 删除平台账户
del(param) {
return window.framework.http.post('/pla_account/del', param)
return http.post('/pla_account/del', param)
},
// 导出平台账户数据
exportCsv(param) {
return window.framework.http.post('/pla_account/export', param)
return http.post('/pla_account/export', param)
}
}

View File

@@ -1,27 +1,27 @@
import http from '@/utils/http'
class RolePermissionServer {
async getRoles(callback) {
let res = await window.framework.http.get('/SysRolePermission/Query', {})
let res = await http.get('/SysRolePermission/Query', {})
return res
}
async getRole(row) {
let res = await window.framework.http.get('/SysRolePermission/QueryByRoleId', row)
let res = await http.get('/SysRolePermission/QueryByRoleId', row)
return res
}
async add(row) {
let res = await window.framework.http.post('/SysRolePermission/add', row)
let res = await http.post('/SysRolePermission/add', row)
return res
}
async edit(row) {
let res = await window.framework.http.post('/SysRolePermission/edit', row)
let res = await http.post('/SysRolePermission/edit', row)
return res
}
async del(row) {
let res = await window.framework.http.post('/SysRolePermission/del', row)
let res = await http.post('/SysRolePermission/del', row)
return res
}
}

View File

@@ -1,23 +1,23 @@
import http from "@/utils/http";
class RoleServer {
async list() {
let res = await window.framework.http.get("/sys_role/index", {});
let res = await http.get("/sys_role/index", {});
return res;
}
async add(row) {
let res = await window.framework.http.post("/sys_role/add", row);
let res = await http.post("/sys_role/add", row);
return res;
}
async edit(row) {
let res = await window.framework.http.post("/sys_role/edit", row);
let res = await http.post("/sys_role/edit", row);
return res;
}
async del(row) {
let res = await window.framework.http.post("/sys_role/del", row);
let res = await http.post("/sys_role/del", row);
return res;
}
}

View File

@@ -1,12 +1,12 @@
import http from '@/utils/http'
class ShpProfitServer {
async report(param) {
let res = await window.framework.http.post('/shpProfit/report', param)
let res = await http.post('/shpProfit/report', param)
return res
}
async list(param) {
let res = await window.framework.http.post('/shpProfit/list', param)
let res = await http.post('/shpProfit/list', param)
return res
}
}

View File

@@ -1,22 +1,22 @@
import http from '@/utils/http'
class SpecificationServer {
async list() {
let res = await window.framework.http.post('/specification/list', {})
let res = await http.post('/specification/list', {})
return res
}
async add(row) {
let res = await window.framework.http.post('/specification/add', row)
let res = await http.post('/specification/add', row)
return res
}
async edit(row) {
let res = await window.framework.http.post('/specification/edit', row)
let res = await http.post('/specification/edit', row)
return res
}
async del(row) {
let res = await window.framework.http.post('/specification/del', row)
let res = await http.post('/specification/del', row)
return res
}
}

View File

@@ -1,7 +1,7 @@
import http from "@/utils/http";
class SysAddress {
async index(param) {
let res = await window.framework.http.get("/sys_address/index", param);
let res = await http.get("/sys_address/index", param);
return res;
}
}

View File

@@ -1,27 +1,27 @@
import http from "@/utils/http";
class SysModuleServer {
async all() {
let res = await window.framework.http.get("/sys_menu/all", {});
let res = await http.get("/sys_menu/all", {});
return res;
}
async list(row) {
let res = await window.framework.http.get("/sys_menu/all", row);
let res = await http.get("/sys_menu/all", row);
return res;
}
async add(row) {
let res = await window.framework.http.post("/sys_menu/add", row);
let res = await http.post("/sys_menu/add", row);
return res;
}
async edit(row) {
let res = await window.framework.http.post("/sys_menu/edit", row);
let res = await http.post("/sys_menu/edit", row);
return res;
}
async del(row) {
let res = await window.framework.http.post("/sys_menu/del", row);
let res = await http.post("/sys_menu/del", row);
return res;
}
}

View File

@@ -1,27 +1,27 @@
import http from "@/utils/http";
class SysLogServe {
async all(param) {
let res = await window.framework.http.get("/sys_log/all", param);
let res = await http.get("/sys_log/all", param);
return res;
}
async detail(param) {
let res = await window.framework.http.get("/sys_log/detail", param);
let res = await http.get("/sys_log/detail", param);
return res;
}
async delete(param) {
let res = await window.framework.http.get("/sys_log/delete", param);
let res = await http.get("/sys_log/delete", param);
return res;
}
async delete_all(param) {
let res = await window.framework.http.get("/sys_log/delete_all", param);
let res = await http.get("/sys_log/delete_all", param);
return res;
}
async operates(param) {
let res = await window.framework.http.get("/sys_log/operates", param);
let res = await http.get("/sys_log/operates", param);
return res;
}
}

View File

@@ -1,13 +1,13 @@
import http from '@/utils/http';
class systemTypeClServer {
async all(param) {
let res= await window.framework.http.get('/sys_project_type/all', param);
let res= await http.get('/sys_project_type/all', param);
return res;
}
async page(row) {
let res= await window.framework.http.post('/sys_project_type/page', row);
let res= await http.post('/sys_project_type/page', row);
return res;
}
@@ -18,17 +18,17 @@ class systemTypeClServer {
}
async add(row) {
let res= await window.framework.http.post('/sys_project_type/add', row);
let res= await http.post('/sys_project_type/add', row);
return res;
}
async edit(row) {
let res= await window.framework.http.post('/sys_project_type/edit', row);
let res= await http.post('/sys_project_type/edit', row);
return res;
}
async del(row) {
let res= await window.framework.http.post('/sys_project_type/del', row);
let res= await http.post('/sys_project_type/del', row);
return res;
}
}

View File

@@ -1,29 +1,29 @@
import http from '@/utils/http'
class TableServer {
async getAll(callback) {
return await window.framework.http.get('/table/index', {})
return await http.get('/table/index', {})
}
async add(row, callback) {
return await window.framework.http.post('/table/add', row)
return await http.post('/table/add', row)
}
async edit(row, callback) {
return await window.framework.http.post('/table/edit', row, function(res) {
return await http.post('/table/edit', row, function(res) {
callback && callback(res)
})
}
async del(row, callback) {
return await window.framework.http.post('/table/del', row)
return await http.post('/table/del', row)
}
async autoApi(id) {
return await window.framework.http.get('/template/api', { id: id })
return await http.get('/template/api', { id: id })
}
async autoDb(id) {
return await window.framework.http.get('/template/autoDb', { id: id })
return await http.get('/template/autoDb', { id: id })
}
}

View File

@@ -1,12 +1,12 @@
import http from "@/utils/http";
class UserServer {
async login(row) {
let res = await window.framework.http.post("/sys_user/login", row);
let res = await http.post("/sys_user/login", row);
return res;
}
async all() {
let res = await window.framework.http.get("/sys_user/index", {});
let res = await http.get("/sys_user/index", {});
return res;
}
@@ -16,22 +16,22 @@ class UserServer {
}
async authorityMenus() {
let res = await window.framework.http.post("/sys_user/authorityMenus", {});
let res = await http.post("/sys_user/authorityMenus", {});
return res;
}
async add(row) {
let res = await window.framework.http.post("/sys_user/add", row);
let res = await http.post("/sys_user/add", row);
return res;
}
async edit(row) {
let res = await window.framework.http.post("/sys_user/edit", row);
let res = await http.post("/sys_user/edit", row);
return res;
}
async del(row) {
let res = await window.framework.http.post("/sys_user/del", row);
let res = await http.post("/sys_user/del", row);
return res;
}
}

View File

@@ -1,33 +0,0 @@
import http from '@/utils/http'
export default {
// 获取职业列表
page: (params) => {
return window.framework.http.post('/wch_professions/page', params)
},
// 获取所有职业
all: (params) => {
return window.framework.http.post('/wch_professions/all', params)
},
// 新增职业
add: (params) => {
return window.framework.http.post('/wch_professions/add', params)
},
// 更新职业
edit: (params) => {
return window.framework.http.post('/wch_professions/edit', params)
},
// 删除职业
del: (params) => {
return window.framework.http.post('/wch_professions/del', params)
},
// 导出职业数据
exportCsv: (params) => {
return window.framework.http.post('/wch_professions/exportCsv', params)
}
}